Sonoff SV and Centurion Status LED

MrFrikkie

Member
Joined
Feb 19, 2021
Messages
11
Reaction score
2
Hey everyone, I’ve noticed a lot of posts about using the Sonoff SV on folks gate motors and a I’ve seen HA covers where the gate status is shown (open/closed).

I’ve seen some people use reed switches however, fortunately my Centurion D5 motor has a status pin which turns on an LED of the gate is open.

Has anyone been able to successfully connect their Status pin to their SV GPIO port?

I’ve tested with a multimeter that I’m at 0V when closed and 5V when open. I almost thought I damaged my board because initially I just connect the pin to the GPIO port forgetting the max input on ESP devices is 3.3V , however the Sonoff SV can in fact handle 5V. So I’m not sure as to why it’s not reading the status , I’ve used a simple binary sensor in my ESPConfig.

Appreciate the assistant
 
My sonoff sv use the led for status pin. On tasmota. No idea the volt on my led and I have a different motor.
 
Did you just directly connect the status led from the motor to the SV device?
Pretty much. The only thing I did check, was to ensure I keep negative/ground the same, because the led positive is only wire that connect to the gpio pin on the SV.
 
I checked that too , and made sure I don’t have a floating value with a pull down , it’s keeping me up at night that I can’t figure this out :/
 
I do not think it is possible using the Sonoff SV, with for example a D1 Mini (which can handle 5V analog input) you can use the A0 pin to read the voltage and then use this to know the status. When using a Digital Input/Output I would recommend a reed switch or switches for this. I have used the Analog pin on my old alarm to detect the armed/disarmed status before I upgraded my system to Paradox.
If it can be done with an SV I would also be interested.
 
@InusB so I met someone who got it to work , and per their instructions I'm still struggling, initially the plan was to use a reed switch, just thought I could find a less messy solution, if I don't come right, the reed will have to do, if I do come right, will let you know !
 
I use a reed switch.

But what is the concern here the external voltage? Use an opto-isolator(opto-coupler/photocoupler)
 
‬⁩Thanks for all the replies, got it to work although it's very messy, all I've done is still take the output 5V from the Status LED on the gate motor but before feeding into the Sonoff SV, I connected a voltage divider to lower the 5V to 3.3V on a mini breadboard and like magic, the status LED started working, below is the ESPHome code if anyone decides to go that route and not TASMOTA:

binary_sensor:
- platform: gpio
pin:
number: GPIO4
mode: INPUT
inverted: False
name: "Gate Status"
id: gate_status
device_class: garage_door
filters:
- delayed_off: 500ms # Adjust the value if needed, this adds a delay to the OFF state to account for gate motion
switch:
- platform: gpio
pin: GPIO12
id: relay
- platform: template
icon: "mdi:arrow-up-down-bold-outline"
name: "Gate Control"
turn_on_action:
- switch.turn_on: relay
- delay: 1500ms
- switch.turn_off: relay

sensor:
- platform: wifi_signal
name: "Garage Door WIFI Strength"
update_interval: 60s
- platform: duty_cycle
pin: GPIO4
name: Gate Percentage
 
Top
Sign up to the MyBroadband newsletter
X