Hi, I am trying to change my switch to a cover but state reports open, when the switch is indeed off (so, the garage door should report as closed), what am I doing wrong? Thanks.
- platform: template
covers:
garage_door:
friendly_name: "Garage Door"
open_cover:
service: switch.turn_on
data:
entity_id: switch.garagem_27
close_cover:
service: switch.turn_off
data:
entity_id: switch.garagem_27
stop_cover:
service: switch.turn_on
data:
entity_id: switch.garagem_27
icon_template: >-
{% if is_state('switch.garagem_27', 'on') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}