The solid state relay I used has an integrated optocoupler. The driver end is an LED like an optocoupler. Looks like a similar part, I believe mine has a mosfet on the switch side, but I'm sure either work for this application!
https://www.mouser.ca/ProductDetail/Omron-Electronics/G3VM-61A1?qs=FGnoE8EzQwuo0pqKalkj6w%3D%3D
Interstingly. I first started this project like Linus, thinking I could just use a relay on the wires going to the wall unit. I quickly learnt that's not the case. So I thought "Oh this must be some clever serial 2 wire w/ power protocol then, no worries, i'll use the ESPs UART and send the bytes needed". After hooking it up to an osciloscope and learning what it's doing. It is a serial protocol over the 2 wires, It's not actually wireless like Linus was told. But it uses Liftmaster's "Security+ 2.0" protocol which has a rotating code. So it's rediculously complicated crypto for a internal wired switch!!! This seems totally overkill and made me pretty frustrated, which led me to this solution.