Page 1 of 1

Gpio to log in a virtual sensor a contact between 2 wires

Posted: Tuesday 12 January 2016 7:32
by multinet
Hello

I would like to check if catch a contact between two wire and to switch a log the contact in a virtual sensor in Domotique
Ex: my doorbell

Is it possible and if yes how to connect the 2 wires on the GPIO ?
(Using gnd?)

And finally how to log the contact automatically in Domoticz?

Thank you
Multinet

Re: Gpio to log in a virtual sensor a contact between 2 wire

Posted: Tuesday 12 January 2016 8:44
by nayr
wired 16VAC door bell? no that'd make your device go poof.. you could detect the button press if you wired only that to your GPIO and fire a relay to trigger your door bell with two separate circuits.. domoticz will be required for your doorbell to function, but you can use this to your advantage with some logic and block late night ding-dong ditchers.

basically cut your current wired door bell circuit in two, with your pi in the middle.. setup an GPIO input wired to the button, and a GPIO output wired to a relay to fire the ringer in place of the old button.

easiest hack ive seen is put a wireless magnetic alarm contact inside your door bell next to the electromagnet that fires the ringer, it'll detect it ringing, but not prevent it.