Hello Everyone,
I recently setup an Aqara T2 Relay to control my garage door locally in conjunction with an Ecolink Z-wave Tilt Sensor and in order to combine both of these devices. I created a Custom Garage Door Opener Template in my Configuration yaml. I have included the yaml below:
cover:
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garage Door"
value_template: "{{ is_state('binary_sensor.garage_door_sensor_sensor_state_any','on') }}"
open_cover:
- service: light.toggle
entity_id: light.garage_door_controller
close_cover:
service: light.toggle
entity_id: binary_sensor.garage_door_sensor_sensor_state_any
stop_cover:
service: light.toggle
entity_id: light.garage_door_controller
icon_template: >-
{% if states('binary_sensor.garage_door_sensor_sensor_state_any')=="on" %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
Everything works great with this template, the status updates correctly, stop and open works with no issue. But for some strange reason the Close cover doesn’t work, if I call the light.toggle service from the developer options it closes my garage door but if I do it through the interface its doesn’t work. If I use the stop cover option which is the other option available through the UI it closes my garage door but this defeats the purpose since I want to use the Close Cover option through the UI. Not sure what else to try. Any assistance that can be provided would be greatly appreciated.
Thanks in advance