Hi
Can you tell me which hardware parts you used and send me links to bye them? Thanks
Would love to see a clip of it in action
I used:
*Arduino Wemos d1 Mini Pro: https://wiki.wemos.cc/products:d1:d1_mini_pro (https://www.tinytronics.nl/shop/nl/arduino/wemos/wemos-d1-mini-pro-esp8266-cp2104)
- Wemos Relay shield: https://wiki.wemos.cc/products:d1_mini_shields:relay_shield (https://www.tinytronics.nl/shop/nl/arduino/wemos/wemos-relais-shield-voor-d1-mini)
- A simple doorbell button.
- A standard doorbell (see my drawing above)
- A synology running 2 docker containers (mosquito and HomeAssistant).
- Some cables and shrink wrap
Good luck!
@armandjanssen I like your setup. I’m new with Wemos D1 Mini and maybe you can show which pins to connect and how to upload the arduino code.
I would appreciate if you can make a tutorial vid how to set up step by step from start to end. .
There are enough resources online which describe this.
-
Which Pins I use, can be seen on my diagram and can be read in the sketch in the constants.
-
Code is programmed with Arduino IDE: https://www.arduino.cc/en/Main/Software
Wemos & Arduino CC intro: https://youtu.be/utKpl1Z4nEM -
Watch this video: https://youtu.be/jpjfVc-9IrQ (and all other video’s from Bruh)
Then play around and try and find more video’s and tutorials.
Great! I like the way you have Google Home integrated with the doorbell.
I can also ring the door remotely. Not sure why I’d wanna do that, but I can
@quadmasta U could use that functionality to use the bell as an alarm signal.
In my solution, the bell would subscribe to an mqtt topic and then enter a loop which rings te bell each second for 2 minutes (or something like that).
It’s an electro-mechanical relay so the relay would probably die. If you used a SSR, definitely
@quadmasta Do you mean a relay like this? If yes, please elaborate why it would / could die?!
I don’t know that much about this stuff. Just copying, stealing and learning on the way.
They don’t deal well with fast, repeated switching. The coil overheats and they either stick open or closed. A solid state relay is essentially a giant transistor. Here’s a 5V Breakout with a SSR on it. Looks like it’s normally open so it’d work perfectly for this project.
https://www.amazon.com/Channel-G3MB-202P-Resistive-Atomic-Market/dp/B01DLDGGFU/ref=sr_1_1?ie=UTF8&qid=1496515342&sr=8-1&keywords=5V+SSR
Little update.
I had some issues with interference from cables that run along the doorbell cables in the wall. Whenever someone turned on the light in the downstairs bathroom it caused the Wemos to trigger and the doorbell to go off.
I suspect that the wires are close to one and another causing some electric field which in turn was detected by the Wemos as if the doorbell was pressed. Getting the wiring redone was not an option so I had to check for different ways.
Inspired by the following blog http://brentsaltzman.com/make-your-doorbell-smart/ I order a reed relais. Basically this relais makes contact when a magnet is present. The bell operates with a magnetic field. So when the old doorbell is activated it creates the magnetic field and the reed relais makes contact and then all the magic happens
The test with a magnet was working and sofar it seems to work when it is all in place as well.
My layout is something like this. Although I need to tidy things up like, but I wait with this until it all proofs to be reliable.
I used:
- Arduino Wemos d1 Mini: https://wiki.wemos.cc/products:d1:d1_mini (https://www.tinytronics.nl/shop/nl/arduino/wemos/wemos-d1-mini-v2-esp8266-12f-ch340)
- Reed relais Relay shield: https://www.tinytronics.nl/shop/nl/componenten/schakelaars/reed-relais-2*14mm
- A standard doorbell button.
- A standard doorbell (see my drawing above)
- A Raspberry Pi running Hasspian.
- Cloudmqtt for my mqtt instance.
- Some cables and shrink wrap
Nice! A very non-intrusive way to picking up state change
I tried something similar. I used a Vision Z-wave door sensor. But the bell solenoid did not make a strong enough magnetic field to trigger it. A small “Arduino” reed switch might work better.
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?
Sorry, indeed I missed where the wemos gets it’s power from. It is powered by USB.
I don’t have any ideas how to resume. But if you figure that out I would very much appreciate it when you could share that solution
I run mine off of an AC/DC adjustable buck controller. Voltage from the doorbell transformer(18VAC) goes into it and 5VDC comes out
@quadmasta what would you have used if you would have to step down from 230v to 3.3v?
To which pins did you connect, simple 5v and gnd??
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