I have a monostable switch opening / closing the gate and a reed switch, which informs about whether the gate is open or closed. I would like to get an effect like the graphic presented. Can someone help achieve this effect?
cover:
- platform: template
covers:
garage_door:
friendly_name: "Garage Door"
value_template: "{{ states('binary_sensor.brama_wjazdowa', 'on') }}"
open_cover:
service: switch.turn_on
data:
entity_id: switch.brama_wjazdowa2
close_cover:
service: switch.turn_on
data:
entity_id: switch.brama_wjazdowa2
stop_cover:
service: switch.turn_on
data:
entity_id: switch.brama_wjazdowa2
icon_template: >-
{% if is_state('binary_sensor.brama_wjazdowa', 'on') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
Does anyone know why it does not work?
bad icon and does not change with the state change