Sonoff SV as a relay (Gate motor)

Great work…How did it pan out?
Hi, sorry, installed mine and then I got busy with work... I have one running in my gate motor for a while now without any issues. I tried a shortcut to include an opener for pedestrian as well, but that is not working. Apart from that, you can open/close and monitor the gate motor.

I need to solder a few more so if you are interested let me know. You just need a Sonoff SV with the two Zero Ohm resistors removed, and this little board plugs into the GPIO's.
 
Hi, sorry, installed mine and then I got busy with work... I have one running in my gate motor for a while now without any issues. I tried a shortcut to include an opener for pedestrian as well, but that is not working. Apart from that, you can open/close and monitor the gate motor.

I need to solder a few more so if you are interested let me know. You just need a Sonoff SV with the two Zero Ohm resistors removed, and this little board plugs into the GPIO's.
Yes I am interested.
Few things I want to find out, as mentioned previously the led status, outputs different light signals when the gate is open or closing etc if I’m correct. Did this pose a problem to you within in the app? I will be flashing the sonoff sv with HAA (HomeKit).
 
Yes I am interested.
Few things I want to find out, as mentioned previously the led status, outputs different light signals when the gate is open or closing etc if I’m correct. Did this pose a problem to you within in the app? I will be flashing the sonoff sv with HAA (HomeKit).
I flashed my Sonoff with ESPHome (I use that for most of my projects). I would not say the light signals caused a problem because it gives you extra information. When the gate is open, it's on and when it's closed, it off. It does flash intermittently while opening/closing and although I still need to implement such a state correctly in ESPHome/HA, I have not been able to do that.
I did detect that my battery in the gate motor was on it's way out. If the battery voltage is low, it also flashes intermittently but at a different 'frequency' if I remember correctly.

When I monitor HA, I can see it switching between open/closed for a few seconds, then I know the gate is in motion.
 
I soldered and tested the first unit. It seems to be working so far (I added one to 2 features that I still need to confirm) testing outside of the gate motor. I will install the first unit in my gate motor this weekend if I get a chance to do proper testing. If that works ok, I will start to assemble more units.
Did you manage to assemble a few more? I’m very interested in getting one. Really just need to get the status of the gate integrated into HA. I already already have one of these https://www.robofactory.co.za/smart-switches/57-sonoff-gate-garage-wifi-smart-switch.html to remotely open and close.
 
Did you manage to assemble a few more? I’m very interested in getting one. Really just need to get the status of the gate integrated into HA. I already already have one of these https://www.robofactory.co.za/smart-switches/57-sonoff-gate-garage-wifi-smart-switch.html to remotely open and close.
I have some more, but need to solder and test them. These are however built to plugin directly on top of the Sonoff SV. (I am not very familiar with the Sonoff Gate/Garage Smart Switch, and not sure if that exposes some I/O pins?)
 
I have some more, but need to solder and test them. These are however built to plugin directly on top of the Sonoff SV. (I am not very familiar with the Sonoff Gate/Garage Smart Switch, and not sure if that exposes some I/O pins?)
Oh awesome. I was planning to just get a SV and wire it into the gate controller too, so that's not an issue. Would even be happy to replace that one with an SV, if I can do it all in one..
 
@McGuywer hope this helps:
View attachment 1139810
For opening and closing the gate I use my SV in Isolated mode (as per the picture above). You need to remove both resistors to the left and right of the jumper at the bottom left.

I then connected the Ground (-) to the "Input +" on the left of the board. The "Output +" go to the trigger on the gate. Power the board with 12V DC.

I programmed my SV with ESPHome. The gate trigger is to turn the relay on for 1 second, and then off. This will basically pull the Gate trigger low for 1 second.
Thanks for this, @wab512. Much appreciated.

Just to confirm: If I only want to trigger gate open/close (Centurion), all I need do is remove the two resistors as shown, then connect 12V gate battery to Input + and -. Do I need to change any jumper?

Where do I connect the Output from the Sonoff SV? To Trigger and what? Here's a snap of the gate motor controller:

2021 09 10 - Centurion Gate Controller at Oudtshoorn house (3).jpg
 
Last edited:
Thanks for this, @wab512. Much appreciated.

Just to confirm: If I only want to trigger gate open/close (Centurion), all I need do is remove the two resistors as shown, then connect 12V gate battery to Input + and -.

Where do I connect the Output from the Sonoff SV? Here's a snap of the gate motor controller:

View attachment 1238402
Hi, just to be clear on the instructions since looking at the picture again it's easy to get it wrong... You connect the 12V DC and ground to the DC 5-24V Power Supply on the Sonoff SV. You then connect Ground to the Input + (input to the relay) and the Output+ go to the TRG connector on the EVO Board.

Hope this helps..
 
Hi, just to be clear on the instructions since looking at the picture again it's easy to get it wrong... You connect the 12V DC and ground to the DC 5-24V Power Supply on the Sonoff SV. You then connect Ground to the Input + (input to the relay) and the Output+ go to the TRG connector on the EVO Board.

Hope this helps..
Thanks for the heads-up!

Is this correct? Your guidance and expertise much appreciated, @wab512!

sonoff-sv-trigger.jpg
 
Last edited:
Hi, just to be clear on the instructions since looking at the picture again it's easy to get it wrong... You connect the 12V DC and ground to the DC 5-24V Power Supply on the Sonoff SV. You then connect Ground to the Input + (input to the relay) and the Output+ go to the TRG connector on the EVO Board.

Hope this helps..

I found on mine that the ground for the 12V and ground for the trigger were connected on the switch, so only needed to connect one of them up.
 
Thanks for the heads-up!

Is this correct? Your guidance and expertise much appreciated, @wab512!

View attachment 1238422
Happy if I can help! (Sorry for the delay.. Friday afternoon meetings...)

Not sure why the Input+ is connected to the Output+ on the image above? That is not needed in my opinion. As soon as the relay "closes", it will switch the Input+ to the Output+, so you only need to connect Ground to Input+.

@Speedster Interesting... Did you remove the two zero ohm resistors? I tested a board here now and I don't get the same.
 
1643978019758.png
This is the way I have mine. Note the removal of the 2 resistors as highlighted in yellow. I do not use the INPUT- and OUTPUT-.
 
Happy if I can help! (Sorry for the delay.. Friday afternoon meetings...)

Not sure why the Input+ is connected to the Output+ on the image above? That is not needed in my opinion. As soon as the relay "closes", it will switch the Input+ to the Output+, so you only need to connect Ground to Input+.

@Speedster Interesting... Did you remove the two zero ohm resistors? I tested a board here now and I don't get the same.
I didn't remove anything. Although mine isn't a sonoff, it's some other no name thing I picked up from banggood. Also uses ewelink though so could easily pull it into HA.
 
View attachment 1238476
This is the way I have mine. Note the removal of the 2 resistors as highlighted in yellow. I do not use the INPUT- and OUTPUT-.
Thank-you most kindly. You are a scholar and a gentleman.

I flashed the Sonoff SV with Tasmota and wired it up to the Centurion gate controller as per your sketch above.

The good news: it connects to my wifi, and it triggers the gate when I click On on the Tasmota control screen.

The not-so-good news: I now need to learn how to send the right sort of trigger from the Sonoff SV to the gate controller so that it only opens and closes the gate.

Here's what now happens:

First toggle from Off to On: the gate opens a few degrees and then stops.
Next toggle from On to Off: the gate opens all the way, and stays there without the auto-close kicking in.
Next toggle from Off to On: the gate closes.

Here are the module and template parameters as currently set (default Tasmota). Any advice on how to make the On/Off on the Tasmota screen simply trigger the gate to open and then close. I'm not looking for anything more at this stage, taking small steps at a time as all the stuff is beyond my pay grade. Thanks muchly.


module-parameters.jpg

template-parameters.jpg
 
Thank-you most kindly. You are a scholar and a gentleman.

I flashed the Sonoff SV with Tasmota and wired it up to the Centurion gate controller as per your sketch above.

The good news: it connects to my wifi, and it triggers the gate when I click On on the Tasmota control screen.

The not-so-good news: I now need to learn how to send the right sort of trigger from the Sonoff SV to the gate controller so that it only opens and closes the gate.

Here's what now happens:

First toggle from Off to On: the gate opens a few degrees and then stops.
Next toggle from On to Off: the gate opens all the way, and stays there without the auto-close kicking in.
Next toggle from Off to On: the gate closes.

Here are the module and template parameters as currently set (default Tasmota). Any advice on how to make the On/Off on the Tasmota screen simply trigger the gate to open and then close. I'm not looking for anything more at this stage, taking small steps at a time as all the stuff is beyond my pay grade. Thanks muchly.


View attachment 1238752

View attachment 1238754

You need to set PulseTime.

The problem you have is that the “button” is held too long and that it then sees it as a second press and stops the gate again.

I think mine is 50.

Issue PulseTime 50 in the console.

Increase and decrease as required.


Basically the PulseTime is how long the relay will stay on before turning back off again. It’s emulating a remote button push so too short and it won’t trigger and too long it sees it as two pressed.

You don’t need anything but the default Sonoff SV template.

If you get more advanced you’d wire into the GPIO for the gate status, either by fitting a Reed switch yourself or wiring into one from the gate motor.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X