Hi all!! Nice to join this community
I have a question for you guys! i’m trying to configure a template switch. The same that in present in the home assistant demo website into Bedroom. The “Window”.
I’ve try to write some code but is not working. This is che code + the error. do you know where i’m wrong?
-
platform: rpi_gpio
ports:
21: Uscita_21_Red_Led
20: Uscita_20_green_Led -
platform: template
switches:
blind:
friendly_name: Blind
value_template: “{{ is_state(‘switch.uscita_21_red_led’, ‘off’) }}”
turn_on:
service: switch.turn_on
entity_id: switch.uscita_20_green_led
turn_off:
service: switch.turn_on
entity_id: switch.uscita_21_red_led
Error from log:
17-01-03 15:33:21 homeassistant.util.yaml: mapping values are not allowed here
in “/home/homeassistant/.homeassistant/switches.yaml”, line 18, column 13
Thanks for the Help!