get the state correctly (#11256)

This commit is contained in:
Bas Nijholt 2019-11-22 21:56:08 +01:00 committed by Franck Nijhof
parent 0b70f37b58
commit 1e7238a4b6

View File

@ -151,7 +151,7 @@ switch:
switches:
skylight:
friendly_name: "Skylight"
value_template: "{{ is_state('sensor.skylight.state', 'on') }}"
value_template: "{{ is_state('sensor.skylight', 'on') }}"
turn_on:
service: switch.turn_on
data: