yeah, mine is a different type of problem.
I actually added a 12V relay (NT72C IIRC) to my sonoff SV in the gate motor as follows:
12V + and - (from the gate motor supply) to the sonoff + and - power input
sonoff SV output (+ and -) to relay input
relay output (NO contact) to gate motor trigger contacts
Previously, without the above relay, when sonoff triggers it would short the contacts on the gate motor trigger and this is not good. I therefore had to put the above relay in place in order to avoid shorting the "trigger" and "common 12V+" contacts on the gate motor.
If the above isn't very clear I can make a quick schematics or take a few photos of the wiring in my D5.
There's a lot of interest in gates and garages, I'd like to add something to the website blog/forum that I can point people to. So anything you have to offer would be great.