Im currently using a Raspberry PI3 B, Sonoff SV and magnetic reed switch to control my Garage door. I do not get status update on open/close when making contact with reed switch. Status seems to get stuck in open position and stays there no matter the reed switch status. There is no problem activating the buttons to open and close for 1 second.
I cannot understand where im going wrong , see configuration below:
#In Groups:
garage_doors:
name: Garage Door
view: no
control: hidden
icon: mdi:garage
entities:
cover.garage
#In Customization:
cover.garage:
device_class: garage
friendly_name: Garage Door
When i toggle the reed switch , my sonoff console reflects these:
21:42:28 MQT: cmnd/2/POWER2 = OFF
21:42:28 MQT: cmnd/2/POWER2 = ON
21:42:30 MQT: cmnd/2/POWER2 = OFF
21:42:32 MQT: cmnd/2/POWER2 = ON
Oddly enough, I got an SV working with my 2 garages and reed switches this morning. How are you determining the status?
On my setup I can tell whether the garage is open or closed by looking at the up and down arrows and seeing which is greyed. (That and using CustomUI to change the icon colour! )
PS When you post code or yaml excerpts make sure to paste, then highlight and hit the </> button in the toolbar so people can read what you have posted.
Hi, I’m determining the status via a magnetic switch on GPIO14 and GND. However the open arrow is greyed out and does not change state even though I make and disconnect the magnetic switch…Not sure why…I will send my code asap…
OK, you need to highlight the bits you paste and then hit the </> key - not the whole post! It is impossible to see the indenting in either of the ways you have posted.
First thing I would try is watching your MQTT posts. When you open the door do you see a publication of
When i toggle the reed switch , my sonoff console reflects these:
21:42:28 MQT: cmnd/2/POWER2 = OFF
21:42:28 MQT: cmnd/2/POWER2 = ON
21:42:30 MQT: cmnd/2/POWER2 = OFF
21:42:32 MQT: cmnd/2/POWER2 = ON