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:
Rob Coleman 2023-11-30 23:43:08 -08:00 committed by GitHub
parent 2d0d5a3bef
commit 8c76ff8112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: