mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
get the state correctly (#11256)
This commit is contained in:
parent
0b70f37b58
commit
1e7238a4b6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user