I didn’t set my roof up, however, the 9m x 6m roof is driven by a 0.25hp electric motor and stainless steel cable which wraps around a grooved pulley (for grip). Cable is attached to roof at either end...forward opens it, reverse close it. Gear reduction from drive pulley to motor means roof travels at around 0.2m a second.
Both open and close position sees a limit switch stop the motor. I’m no electronics expert but it appears a fairly simply relay system running it. I cut into the open/close switches circuits with my USB relay for control.......basically rather than pressing a button to close the circuit I click the relay remotely. I’ve put the power switch for the roof on a second of the relay switches which I use as an emergency stop if needed cuts power)
Here’s a video of it from a year or so ago the first time I got the roof working....
https://youtu.be/IfTshNIecfI