This thread will show you how to use a 5V relay and raspberry Pi to temporarily disable your doorbell. (on command, or perhaps, by schedule)
Originally, (and perhaps still to come) I wanted to configure openHAB to trigger events (rules) when my doorbell was pressed. (For example, mute SONOS, flash the shop lights etc. However, the doorbell trigger wires are not accessible as the doorbell box is sealed inside the drywall. So I have parked that that for now. Instead, I made a way to disable the doorbell which is great when you do not want to be disturbed or if you have hardwood floors and are dog sitting… :)
I am running openHAB2 on a Raspberry Pi3 and recently started to explore and use the GPIO pins and a 5V relay board (to control my landscape wiring).
Prerequisite:
install the GPIO bindings (using Paper UI)
Here is my Services/GPIO.cfg
sysfs=/sys
debounce=10
My door bell is powered by a 16V transformer which is wired to the side of my electrical panel. 2 wires come off and run up to the bell/buzzer (black and white).
I used a 5V relay that is controlled by the GPIO pins on the Pi, I am now able to cut power to the doorbell.
I wired it in a Normally Open position, so that the doorbell will default to “ON” or working. To do so, used the C and NO terminals in the relay.
I chose to use GPIO # 13 which is pin 33.
Here is a quick diagram:
Items file
Switch GPIO_DOORBELL_POWER "Doorbell Power" { gpio="pin:13 force:yes activelow:no" }
Sitemap
Switch item=GPIO_DOORBELL_POWER
Now I can toggle the switch “Doorbell Power”. I could also incorporate this into a rule file for quiet hours.
I am still interested in detecting when the doorbell has been pressed (assuming it is enabled)…
I am going to look into whether i can use a voltage sensor that monitors the transformer to detect changes in voltage.
If anyone has suggestions that does not involve cutting open my drywall, they would be great to hear.