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
Gpio to log in a virtual sensor a contact between 2 wires
Moderator: leecollings
-
- Posts: 97
- Joined: Friday 05 December 2014 22:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Gpio to log in a virtual sensor a contact between 2 wires
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
- nayr
- Posts: 354
- Joined: Tuesday 11 November 2014 18:42
- Target OS: Linux
- Domoticz version: github
- Location: Denver, CO - USA
- Contact:
Re: Gpio to log in a virtual sensor a contact between 2 wire
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.
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.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Who is online
Users browsing this forum: No registered users and 1 guest