Hi,
i currently struggeling with the cover template. i live in a mulit tenant building and cant directly alter the controls for garage. thats why i came up with the idea to simply press the button on my garage door remote with a zigbee fingerbot and observe the state with a cheap zigbee door sensor.
i created a cover template according to the documentation but i cannot get a state change representing the value of the door sensor:
cover:
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garage Door"
value_template: "{{ is_state('binary_sensor.garage_sensor_opening','on') }}"
open_cover:
- condition: state
entity_id: binary_sensor.garage_sensor_opening
state: "off"
- service: switch.turn_on
target:
entity_id: switch.fingerbot_switch
close_cover:
- condition: state
entity_id: binary_sensor.garage_sensor_opening
state: "on"
- service: switch.turn_on
target:
entity_id: switch.fingerbot_switch
stop_cover:
service: switch.turn_on
target:
entity_id: switch.fingerbot_switch
icon_template: >-
{% if is_state('binary_sensor.garage_sensor_opening', 'closed') %}
mdi:garage
{% else %}
mdi:garage-open
{% endif %}
did i miss anything ? i changed the type of the fingerbot to be represented as garage door and the door sensor returns open/closed as state but that shoudn’t matter for value_template right ?