I used a 10 dollar sonoff wifi relay, soldered a zener to it to power it from 5V and cut the Live tracé so it can be used as a dry contact relay.
It just need to give a short pulse to start and open/close the door.
And to read out the door state I added a LDR circuit on the GPIO that is attached to the motor LED.
Has been working very well last three years using HA. no need for any of that expensive cloud connected hardware.
Yeah I do the same thing but flashed tasmota instead of using the sonoff stuff. Cost me $20 and works on anything. Tasmota/esphome/mqtt is all you need.