Looking at your layout I was wondering where the wemos D1 gets the power from? In the picture the wemos D1 is only connected by the reed switch. Is that correct?
Edit: I got it all working by powering the Wemos D1 via usb and play sound with Chromecast Audio when doorbell rings. Sweet! However I want the Chromecast to pause when doorbell rings and continue to play after that. Any tips how to automate this?
This is what I used. It can adjust 2.7-27V AC or DC to 1.5-7VDC. Iād be really shocked if your doorbell ran on mains power and didnāt have a transformer. https://www.amazon.com/dp/B00SO4T7IU
Hi Eric. I gave up the doorbell and stole adwolfers idea (magnet sensor). The signal was triggered by a surge in the power supply. This could be the relay or something else. I even tried octocoupler relay with seperate supply and some capacitors, but nothing helpedā¦ But that beeing said. I started my experience with Arduino/ESP8266 using this code. So when I needed to make a magnet sensor code I easly put together a new code. Now I have a doorbell which alerts my and starts some automations, but I can not silence the bell. I am happy with my system and hope you find a solution too!
Hey, finished building this last night. Working well but I think there may have been a couple of false triggers.
Could be interference as mentioned below? Iāll have another look tonight but I have some spare reed switches so tempted to try the @adwolters solution.
I implemented the design here: http://www.redgrendel.com/the-doorbell/
It is basically using a sonoff on the high voltage side to control the door bell.
It works well and I have HA sending me push notifications when the bell is rung with access to my camera to view who is at the door.
Only thing is I do get some false triggers which can be annoying.
Still trying to figure out what can be done about that.
Do your false triggers actually ring the bell? Or just false notifications? Iāve had two false triggers of the relay today which has rang the door bell. Confused everyone at home today haha
Triggers. It happens sometimes when i turn the lighting on in the bathroom. haha
I can see that the Wemos board send a MQTT message when this happens so i guess i should try using a shielded cable instead and see if this helps with anything.
Good to see that so many people want to automate their doorbell. I wanted to do the same but without interfering with the existing system.
In the first version I measured the voltage on the A0 pin of a Wemos but after reading an article in the German cāt magazine I created a version 2 with an optocoupler. Now itās just a digital input on the Wemos board and the two circuits are nicely separated.
On the Wemos I used Homie software to connect to the MQTT and from there on itās handled by Home Assistant. For now just a message to a slack bot but once you capture the signal in HA itās up to you.
A detailed description of the setup is on my Github page.