Rewrite statusled implementation.

- Read it now from app.config JSON file.
- Allow for inverted status leds (Sonoff et al)
- Clean up unit tests.
This commit is contained in:
Pim van Pelt
2018-01-24 13:33:13 +01:00
parent f0fa04dc26
commit 118eb14447
11 changed files with 56 additions and 43 deletions

View File

@ -1,6 +1,7 @@
{
"name": "Sonoff Basic, S20, SV, RF, TH, Touch",
"status_led": 13,
"statusled": 13,
"statusled_invert": true,
"channels": [
{ "led": -1, "relay": 12, "button": 0 }
]