Correct output pin declaration (#9)

The way it was declared it didn't invert. It's needed an extra indentation in the line "inverted: True".
This commit is contained in:
r-jordan 2018-06-09 10:26:29 +02:00 committed by Otto Winter
parent dc929e3186
commit c3c50f2854
1 changed files with 4 additions and 3 deletions

View File

@ -250,8 +250,9 @@ of the basic functions.
# Register the green LED as a dimmable output ....
- platform: esp8266_pwm
id: s20_green_led
pin: GPIO13
inverted: True
pin:
number: GPIO13
inverted: True
light:
# ... and then make a light out of it.
@ -280,7 +281,7 @@ in Home Assistant, replace the last part with this:
id: s20_green_led
pin:
number: GPIO13
inverted: True
inverted: True
# Note: do *not* make the relay a dimmable (PWM) signal, relays cannot handle that
- platform: binary
id: s20_relay