I successfully connected my garage door control unit RG1 24DL to home assistant with Shelly 1.
The problem is that the only signal I can use to detect whether garage is open is output for indicator light, which is off when door closed, on when door open, but flashing with 0.5Hz frequency if opening and with 1 Hz frequency if closing.
You could create a history stats sensor to count the number of on-off transitions in a fixed time period and then use the state of that sensor to say if the state is opening or closing.
here is an example of what I came up with to sense a boolean that cycles on and off every second:
. I personally don’t need info if door is opening or closing, just if it’s closed or not. So, I installed reed relay contact for closed position. Then you need a module with inputs (or make it -modify existing, if you know how) and you have binary indication when door is closed. Say, Shelly i4 - it has 4 inputs, so if you want you can install reed switch for open position also, that way you’ll also be able to “predict” which direction door is moving (if “open” switch toggles door is closing, if “closed” switchtoggles it’s opening).