Our garage door opener is a Somfy Dexxo Pro that is communicating via RTS. This means there is no return information from the motor on whether the garage door is open or closed. In Home Assistant the Garage Door Device has status “Unknown”.
We have other motors that use the IO standard, and they give return information (e.g. 40% open, etc.).
There is a contact sensor on the garage door to see if it is open or closed, and this binary sensor can be used to define a Cover (Garage door) that shows correct status.
In configuration.yaml add a cover:
cover:
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garage Door"
value_template: >-
{% if(states('binary_sensor.garage_door_is_open') == "on") %}
open
{% else %}
closed
{% endif %}
icon_template: >-
{% if(states('binary_sensor.garage_door_is_open') == "on") %}
mdi:garage-open-variant
{% else %}
mdi:garage-variant
{% endif %}
open_cover:
action: cover.open_cover
target:
entity_id: cover.dexxo_pro
close_cover:
action: cover.close_cover
target:
entity_id: cover.dexxo_pro
stop_cover:
action: cover.stop_cover
target:
entity_id: cover.dexxo_pro
Save and restart. Now you have a device that can be controlled and give status information with correct icon.
I have added this device as a favourite in my Android Auto, and can control the Garage door from the smart-screen in my car.