I’m setting up a garage door opener relay, and DHT shield on a D1Mini and I cant for the life of me figure out a way to incorporate my binary-sensory to give Hassio the status of the door. All of the examples I seem to only find are using MQTT however I don’t want to go this route. This is my YAML
I use the scripts to check the current position of the door before I allow the door to be operated by voice command since Alexa doesn’t know what state the door is in and If I say to close the door and the door is already closed then the door would open instead. And that wouldn’t be good.
close_gdn:
alias: Close the North Garage Door
sequence:
- condition: state
entity_id: binary_sensor.garage_door_north_position_sensor
state: 'on'
- service: switch.turn_on
entity_id: switch.garage_door_north_operator_switch
open_gdn:
alias: Open the North Garage Door
sequence:
- condition: state
entity_id: binary_sensor.garage_door_north_position_sensor
state: 'off'
- service: switch.turn_on
entity_id: switch.garage_door_north_operator_switch