From 8c76ff8112c29785b482118f8916380c29137a15 Mon Sep 17 00:00:00 2001 From: Rob Coleman Date: Thu, 30 Nov 2023 23:43:08 -0800 Subject: [PATCH] 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. --- source/_integrations/switch.template.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_integrations/switch.template.markdown b/source/_integrations/switch.template.markdown index e473b8cdab6..f372081c176 100644 --- a/source/_integrations/switch.template.markdown +++ b/source/_integrations/switch.template.markdown @@ -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: