Not sure if this goes here or hardware…move as necessary.
I’ve currently got a Shelly 1 relay hooked up to make my garage door “smart” with a reed switch to give it open/close status. However, I don’t like that once I tell it to open in Home Assistant, I have no idea what’s going on until the door is all the way open and the reed switch closes and then it just says closed as soon as it starts closing.
So I had an idea, though I’m not sure if it will work. I have a spare ESP 32, SW-420, and a couple reed switches, I was thinking I could grab a 24v relay to include and then hook it all up to the garage door opener. I would have each reed switch setup give open/close confirmation states and then the sw-420 vibration sensor would provide opening/closing/error state.
The logic would go something like;
Door Closed
If Reed 1 closed set door state to closed
Door Opening
If Reed 1 previous state closed, reed 2 state open and sw-420 state detected, set door state to opening
Door Open
If Reed 2 state closed set door state to open
Door Closing
If Reed 2 previous state closed, reed 1 state open and sw-420 state detected, set door to closing
Door Partially Open (or Error state)
If Reed 1 open, Reed 2 open, and sw-420 state clear, set door to partially open
Here’s a super sweet MSPaint mock up