https://github.com/juaigl/esphome-garage-cover-single-control
For garage door motors operated by a single button to open, stop and close the door:
- has timing
- uses two endstop sensors to detect door state
- recognizes when the button was pressed outside of ESPHome (directly on the motor even)
- updates the state accordingly (including in motion states)
Thanks to @juaigl