mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Fix cover state checks (#30083)
Two `value_template` templates were comparing the state of a cover entity to "on"/"off" in one place, and "open"/"closed" in another. The latter are the correct state values.
This commit is contained in:
parent
2d0d5a3bef
commit
8c76ff8112
@ -212,7 +212,7 @@ switch:
|
||||
- platform: template
|
||||
switches:
|
||||
garage:
|
||||
value_template: "{{ is_state('cover.garage_door', 'on') }}"
|
||||
value_template: "{{ is_state('cover.garage_door', 'open') }}"
|
||||
turn_on:
|
||||
service: cover.open_cover
|
||||
target:
|
||||
@ -242,7 +242,7 @@ switch:
|
||||
- platform: template
|
||||
switches:
|
||||
garage:
|
||||
value_template: "{{ is_state('cover.garage_door', 'on') }}"
|
||||
value_template: "{{ is_state('cover.garage_door', 'open') }}"
|
||||
turn_on:
|
||||
service: cover.open_cover
|
||||
target:
|
||||
|
Loading…
x
Reference in New Issue
Block a user