I have an old dry contact garage door opener. I’ve wired it to a nifty ratgdo device to control it with Home Assistant. I ran into an issue with wiring reed switches to report the garage door state (open / closed.) The wires carrying the data would pick up RFI that made my remotes stop working. I never did find a way around this wired issue, so I went wireless and installed a Zigbee door sensor.
I struggled to get Home Assistant to report the state of the door as reported by the sensor. After much reading of documentation I finally got it working! Here is my configuration.yml:
cover:
– platform: template
covers:
east_garage_door:
device_class: garage
friendly_name: “East Garage Door”
unique_id: “east_garage_door”
value_template: “{{ is_state(‘binary_sensor.east_garage_door_opening’, ‘on’) }}”
open_cover:
– action: button.press
target:
entity_id: button.east_garage_door_toggle_door
close_cover:
– action: button.press
target:
entity_id: button.east_garage_door_toggle_door
stop_cover:
action: button.press
target:
entity_id: button.east_garage_door_toggle_door