[SOLVED] Magnetic sensor in GPIO14

Hi there,

I have a doorbell with solenoides 8-12VAC, and I have installed a magnetic switch close to the solenoid and conected to a sonoff basic. When the doorbell rings, I get a notification, it seems that everything works fine, but from time to time, I got “status changes” maybe due to the voltage in the solenoide, I do not know.

Do you have any idea how to avoid this kind of fakes notifications?

I have thought about other solution like, use a “noise sensor” for the bell… or a kind of circuit that open/close when reach a 12VAC in the doorbell, but I do not know how to build it.

2018-05-29 10:05:08.122 [vent.ItemStateChangedEvent] - sonoff07 changed from OFF to ON
2018-05-29 10:05:08.130 [vent.ItemStateChangedEvent] - sonoff07 changed from ON to OFF
2018-05-29 11:02:42.590 [vent.ItemStateChangedEvent] - sonoff07 changed from OFF to ON
2018-05-29 11:02:42.596 [vent.ItemStateChangedEvent] - sonoff07 changed from ON to OFF

Use a 12V relay. Put the input in the door bell. When the door bell rings, the relays closes. Use the output of the relay as an input in the sonoff.

1 Like