Adding Gate to HA

Slightly different approach, used an optocoupler to read the led output of the gate motor with the SV the opens the gate, this can give you much more than open/closed state if you read the pulses correctly.

Cheaper than the industrial reed switches.
 
Slightly different approach, used an optocoupler to read the led output of the gate motor with the SV the opens the gate, this can give you much more than open/closed state if you read the pulses correctly.

Cheaper than the industrial reed switches.
What did you connect it to? Can you please give some more details?
 
Slightly different approach, used an optocoupler to read the led output of the gate motor with the SV the opens the gate, this can give you much more than open/closed state if you read the pulses correctly.

Cheaper than the industrial reed switches.
That's a neat idea, although I'm not sure how you'll detect if the gate was lifted off its tracks?
 
That's a neat idea, although I'm not sure how you'll detect if the gate was lifted off its tracks?
Thats a different requirement to just knowing the open/closed state.
For "alarm" purposes, you would need a reed switch.

I have used both, I have a reed switch connected to my alarm, for gate lifting purposes, but also used the 4n35, as I can get handy data out of it, for instance i know the gate is moving and not in a stationary open position.
 
What did you connect it to? Can you please give some more details?
If you look at the image below.
1630576091444.png

You would connect pin 3 to ground and pin 1 to the LED output of the Centurion Gate Controller.
Pins 4 and 5 i have connected to one of the GPIO inputs of my sonoff SV.

Sadly I don't have the code anymore, this was one of the first projects I ever did, before the days of me doing HA backups. All i recall is creating a custom component in ESPHOME.
 
For the OP, I have a long distance (don't know correct term) magnetic reed switch connected to GPIO14 of the Sonoff SV that tells me open close status of gate. The distance is about 5-8cm

Considering my gate is wierdly built , finding a good spot was hard and took some attempts but the sensor sits inside the centurion motor housing and the other magnetic bit was glued onto gate. Works 100% reliably. Will take a pic tomorrow. You will laugh
Looks like for me this will be the simplest option although similarly finding a mounting point could be a challenge. My gate doesn't have sensors that tell it open v closed. It has a magnetic sensor that sees a magnet on the gate pass by it and the it works out open v closed based on distance from there.
 
Looks like for me this will be the simplest option although similarly finding a mounting point could be a challenge. My gate doesn't have sensors that tell it open v closed. It has a magnetic sensor that sees a magnet on the gate pass by it and the it works out open v closed based on distance from there.
So my comment that I had to fiddle to find a good position was that my original placement position idea , caused false positives with the centurion magnet on the gate as it was moving was entering the the field of the sensor registering as open/close when it should not have.

I also had a crazy thing that used to take place when loadshedding was on (and only during loadshedding) in that the gate would stop when the centurion magnet was in the field of the magnetic switch connected to GPIO14. I had to disconnect SV to use gate during this time - all I did was removed one of the power cables

With my current setup as per pic posted all working well as the centurion magnets are out of the field/range of the sensor.

Edit: To clean up bad grammar when original message was written on phone
 
Last edited:
Looks like for me this will be the simplest option although similarly finding a mounting point could be a challenge. My gate doesn't have sensors that tell it open v closed. It has a magnetic sensor that sees a magnet on the gate pass by it and the it works out open v closed based on distance from there.
What version of the control board is in your gate motor?
 
I have discovered that my gate has an output for an external 4.5VDC status LED. This LED will be on when the gate is open, off when it is closed and then flashes different codes depending on if the gate is opening, closing or blocked.

I am thinking I could get a relay like this https://www.diyelectronics.co.za/st...el-33v-to-10v-mosfet-relay-module-20a36v.html which (I think) should open and close instead of a light flashing. Connect that to the Switch input on the Shelly and I can get the signals into HA. Then I just need to figure out how to tell HA to react with different codes.
 
I have discovered that my gate has an output for an external 4.5VDC status LED. This LED will be on when the gate is open, off when it is closed and then flashes different codes depending on if the gate is opening, closing or blocked.

I am thinking I could get a relay like this https://www.diyelectronics.co.za/st...el-33v-to-10v-mosfet-relay-module-20a36v.html which (I think) should open and close instead of a light flashing. Connect that to the Switch input on the Shelly and I can get the signals into HA. Then I just need to figure out how to tell HA to react with different codes.
See my previous posts about using an opto on the LED output.
 
Thanks. Why the opto as opposed to a relay?
Opto has an invisible LED inside if youd call it that, its designed for this sort of logic level and voltage, but thats just my opinion. also a R5 component. That relay module would work as it is mosfet based, but overkill for the application. you arent switching current with it.
 
Opto has an invisible LED inside if youd call it that, its designed for this sort of logic level and voltage, but thats just my opinion. also a R5 component. That relay module would work as it is mosfet based, but overkill for the application. you arent switching current with it.
Thanks - please excuse the electronic noob questions. Reading up on the Opto, it provides an output voltage. "Collector to Emiter Voltage 30V" - will that not be a problem for the SW1 interface of the Shelly?
 
If you look at the image below.
View attachment 1139172

You would connect pin 3 to ground and pin 1 to the LED output of the Centurion Gate Controller.
Pins 4 and 5 i have connected to one of the GPIO inputs of my sonoff SV.

Sadly I don't have the code anymore, this was one of the first projects I ever did, before the days of me doing HA backups. All i recall is creating a custom component in ESPHOME.
Shot in the dark here, but can you do a write up on this?
Provide more steps on how to use this?
 
I don't have sonoff or Telegram nor do i know fokol about Nodes etc. Have a gsm call unit on my outside beams which works great, so was thinking of something similar for the gate.

Would you really want to be able to open your gate without having it in sight? Or is it just me?
 
Hoping someone can walk me through connecting a Sonoss or Shelly to an ET500.

d6712451a2a0e579b321983507228720.jpg


1261d0d29ba79ef237b98f5cfa697979.jpg
 
Top
Sign up to the MyBroadband newsletter
X