Thanks for the shout-out! I'm really glad people are still finding the telegram library useful, I still think it's the easiest way to do push notifications on an esp device!
That was the reinvention of the tire. Had the same problem - the solution was a simple system for under 20€ from Reichelt with a sensor next to the bell that sends a wireless signal when it 'hears' sound and a receiver with a second bell or a light that flashes when the bell rings. No significant delay (maybe a few milliseconds) and you don't need an external service (a big plus). Something like that is sold for years for people that are deaf or need hearing aids or have a loud environment and works for every bell. Ritto, the company that built your house phone, has relays in their catalogue to switch external non Ritto products when the bell rings and offers additional wireless remote bells or remote flashing lights. Other companies even offer a high power relay (8KW) that you can integrate in a fuse box to flash all lights when someone rings the bell. It is used when all people in a household are deaf.
Well yes and no. I did also use a wireless sender/receiver product for my grandma, so she does not miss the bell when she is in the living room with the TV turned all the way up. Not as cheap as an ESP but a lot less hassle for sure! That said, the solution provided here is applicable (and used) for much more than deaf/hearing impaired/working in loud environments or with headphones! Since it is in fact NOT locally extending the bell alert, one can get notified away from home that somebody rang the doorbell and with the second contact mentioned even trigger the door buzzer remotely…. something the local RF extender cannot do.
Something tells me that this project is not for those who want easy solutions. xD It's a kind of fun all of its own to tinker about in electronic boards and chips and find out which pin does what, to then make some sort of system out of it with just a soldering iron and some cheap electrical components. Oh and an overpriced Rπ ofc.
5:22 The problem with the notification delay is due to Android's standby services (Doze Mode, to be more specific) since like A8, so you need to define "priority: high" parameter (look into dev documentation for HomeAssistant), then it bypasses it and notifications are pushed instantly.
Is it just doze mode and not something else as well? Afaik doze activates when the device is not in use for quite some time while stationary. So really he should only have issues when it's sitting on a desk for half an hour, not even in a pocket or so. But android devices have also picked up the habit of trying to shut off everything that's not high priority, even without doze, unfortunately.
@@LuLeBe In my experience with multiple Samsung phones, it's basically only the Doze, after disabling it via adb, everything works perfectly fine. Unfortunately without root it needs to be disabled after every restart, soo... after many headscratches I was insanely glad I found that there is something like a critical notification and it's possible to fix it at least for HomeAssistant. But sure, it could be also affected by other processes. (I'm more like stubborn tinkerer than a developer xD ) Btw: Doze intereferes even after 5minutes of "idle" (phone on a desk with display turned off), but it could be manufacturer dependant.
the SMS/messaging round trip is also incredibly slow and unreliable. i imagine it would be much faster to send some magic packet across your LAN to your device(s), that way you can even get desktop notifications or use something like Tasker on your phone to alert accordingly
As a landlord myself, I would strongly recommend using an optocoupler. These intercom systems are not as stable as you would think. The connected ground and the y capacitor in your smps are some troublemaker.
Yep. Especially when other tenants trigger the door opener, you can see huge voltage spikes on these systems caused by the inductor in the door opener.
In the beginning of your video, I was thinking "this is a job for the telegram botfather". Now that you've started down this road, you'll find you can get homeassistant to talk to the channel as well. My home talks to a house telegram channel, pushing notices as need, such as "hey, do you realise you've left the main gate open for more than five minutes?" And the whole family can subscribe to the channel - win win!
I would have used an optocoupler. That way the ground of my system won't be connected to the ground outside of the apartment. At any time someone can change the wiring and blow things up. Also reduces the possibility of anything I'm doing creating a shock hazard for others.
@@m3mem4chine86 From the looks of the layout the supply is basically floating. It can assume any voltage above ground it needs to. When you're running cables a long distance isolation is your friend. You have no control over what can happen on the other end of the wire.
I actually did it this way and it works perfectly. Tho my bell sits at 18V normally and rises up to 24V when ringing, so I put a zener infront of the optocoppler. Furthermore two optocopplers were used to be able to activate the push buttons on the intercom wirelessly (using homeassistant). Works like a charm!
Something cool you might add to the system you’ve already built is controlling the buttons to open up the door or answering the intercom from your smartphone without having to walk to your intercom
Answering the intercom might be a bit tricky, but something like opening the door should be relatively simple given that it's done through a simple momentary switch. Main issue with it would be interfacing in a non-destructive way so that it leaves no traces if you eventually move out again.
@@JeppeBeier i actually did that using a SONOFF RE5V1C whose switch is decoupled from power voltage although it was abit more weird cause my intercom uses 16v AC.
Did this also to my doorbell. I also connected a relay to the door opener, so the postman can come up to my apartment while I am moving to the door :) I used nodered for the Telegram message receive handling to open the door.
I think this is the better approach. If he already opened the intercom, connected an external power supply and created a whole new enclosure, the door opener would have made this project a 10 out of 10 for me.
A lot of apartments around me in the US have really analog systems with terminals by TekTone. They have a dedicated wire for the "warble" tone when the doorbell is pressed. So I put a current-transformer around that and use it as an input in ESPHome, which works reliably. And I figured out what terminals to connect to trigger the door strike and connected a relay to them. It works really well and doesn't even require soldering since all the connections are at the screw-terminals.
A light that flashes in your work space. A hard of hearing relative of my wife had a system that flashes rapidly if phone rings (old school home phone) and flashes a slower signal if the door bell is rung. Both elderly passed away more than a decade ago. It was part of a commercial security system that is long gone, but great idea.
Two days ago I was talking to some friends, that I need some kind of smartification for my apartment's bell. UA-cam's algorithm led me to you. Thanks for sharing the experience! :)
Really cool & useful system,. yet what I find most impressive is how he has cable cover/duct on a wall that has significant texture. Long ago I gave up on using any cable ducts on textured walls because they never last a month before loosing grip.
Thanks so much. I wanted to tackle the same system a year ago without reverse engineering the whole circuit board. (I've got the 4 button version without the phone handle) Was about to use ldr and a relay to trigger incomming bells and opening the door but decided against it as it would probably end up pretty unreliable. This makes it a lot easier. I'll probably use an optocoupler and a relay for opening to not interfere with the board but finally some guiding light without interfering with that complicated bus protocol. As said: Thanks! Got new motivation :)
@@greatscottlab I appreciate the honest response - no joke. An optocoupler does seem like a good idea. At minimum, it avoids a potential ground loop from the second (5V) supply many meters away from the system’s supply. Also, who knows how the system will react during power-up, power-down, lightning, etc. It also protects you and your equipment from any other electronics experimenters in your building :).
@@jasond.valentine5931 the two main ones for me would have been 1) decoupling the 5v reference of the other system. Who's to say that the ground references can be relied upon to be the same? 2) no risk of the controller putting voltage *out* back on to the intercom for example if the pins are briefly configured as outputs before your code starts to run on boot-up.
@@jasond.valentine5931 there is another comment made around the same time as mine which has gained more traction with a bunch more answers, so search for that one for more ideas
You could have used a supercap to provide power for the peeks. This would have enabled the whole thing to fit inside the original enclosure... Also you could have used bluetooth LE notifications so that your phone sound only if you are at home 👍
Neat project but I think, given the size and infrequency of visitors to your door you should have just added a lipo battery, bypassed the 5v->3.3v regulator and created a trickle charge circuit to draw
and one day the lipo bulges, catches fire while he's not at home and the landlord WILL be mad if his house is burned down from a not officially approved "smart home" device.
There are some things to note. Android Smartphones can be very tricky with engery savings, resulting in delayed or even no notification. A deeper look into the settings may help. There are a few things. Usually allowing an app to run it in the background and maybe even start itself and fideling with the engery settings of an app. Some apps can handle it better than others. Maybe it can be even an issue of the app itself. With push notifications there are different types. Usually push means a server is pushing a message to your phone. An old way and a slow one is when the app needs to pull the notification itself. When you are not happy on how apps work with these things, asking for help in the forums might give you options to change and help you to make it work for you better. With the energy I must say that pulling energy from the intercom might be illegal. It can be considered theft. In apartment buildings its usually powered from outside your apartment and meaning the community pays for it. There are smart home door solutions that are aware of it and they have options to power it from your end, so you don't steal energy. In reality it might be hard to spot and the landlord doesn't care. But let's not forget, everyone is paying for it, for something you only use. I also want to mention that this idea isn't new. There are solutions to connect an intercom to your phone. It's for the landline phone. You can control your intercom with it. It's usually for businesses. Also it's not that cheap, especially when you don't have a landline setup at home. But when your intercom supports it, you could open your door and speak to the intercom from your phone. You may not require a landline phone, because there are systems that support soft phones, meaning software phones and that means you could use a smartphone app. It's like a phone call. I think a remote opening might be useful for deliveries. This gives you the time to go to the door, when the delivery guy is going up the stairs. I'm not quite happy with the solution. It relys on external services. I would prefer a solution that doesn't need any external services. It would be nice when you could speak through the intercom via your phone and maybe even open it. The opening part should be optional, because this is a security risk and it might be good enough when you can speak to the person until you are at the door.
Awesome project, I pretty much did the same thing last year to the exact same intercom system. Take a look at pushover, I used that instead of telegram to add a custom button to the notification, which can immediately open the door as well. Super handy when you forgot the key or someone arrived earlier than you btw
@@greatscottlab You can also cut the the middleman without using universal telegram library and just send a POST request through Telegram API if it's just a one-way communication from ESP to telegram.
@@greatscottlab Pushover is great, it's also integrated into Home Assistant so you can add everything to Home Assistant and do all your automations and other such stuff there as well, and I found it quick and reliable for pushing notifications.
+1 for Pushover. Excellent messaging API. I use it and a backup channel for critical server monitoring notifications so both speed and reliability is key. In practice I almost always get the Pushover message a second or two before the email; the email is configured to send *first* 😛
Yes, agreed it would be better solution in an apartment you are renting in. If landlord sees you modified something like this they can take your deposit when you leave.
I've done pretty much exactly the same thing about a year ago. I just used a shelly to send a notification to my phone using MQTT and home assistant. It can also be used to controll the lights which would be quite helpful to a deaf person lol.
I am definitely going to be making some modifications to my front door now. I can never hear when people knock when I'm in my room tinkering, but I usually have a video running on my phone, so push notifications are the perfect solution for me.
Personally, I would recommend placing a small (100nf) capacitor between the ESP's GPIO pin and ground. This capacitor and the upper resistor of the voltage divider form an RC filter that will help to reduce any transient interference which might cause false triggering. I might also suggest a bidirectional TVS diode in the same location to protect against any large voltage spikes or ESD.
I also built something similar about 3 years ago with an arduino nano and an nrf24l01 which directly used the power of my Ritto door opener. I also added a solid state relay to turn on/off the bell at will and to fire the buzzer at the front door. It was really a fun project and extremely useful. Now after moving to my new apartment, I opted for a commercial solution: Nuki Door Opener. That thing is extremely easy to integrate with not much tinkering / reverse engineering the original door opener PCB. But OFC way more expensive (~100 Bucks).
Although this kind of projects might sound boring, it's my favorite (after the super crazy ones) because it solves those annoying little problems that end up being completely frustrating.
Cool project! I was thinking you could of gotten a long range wireless doorbell, wired the button into the intercom system so that when you press the intercom button it triggers the receiver, which you could have sitting on your desk. You could even add flashing lights to the receiver (some already come with this feature) so it's not just an audio chime alerting you. You obviously aren't notified when not at home though.
Thanks for the info, I was able to have my old 1970's doorbell to send notifications to my phone but i had to make some modifications to the code and the pins!
Just a word of warning: it is easy to fry the controller in the basement and sometimes just adding a wire to e.g. the door opening button can make the bus lock up due to some EMV. And the controllers are really expensive so maybe putting a microphone next to the piezo is a more non invasive way :) And yes, I witnessed these kind of projects going wrong three times
The problem with a microphone next to the piezo is that vacuuming near the door can, if the noise level is sufficient, also trigger a constant stream of messages. My little brother has cochlear implants, and my father installed a bell add-on in our house such that my little brother would receive an extra audible and visible notification to his room. It was unfortunately also triggered by vacuuming near the door, essentially making it quite useless.
@@Mrcaffinebean nope, definitely not. A 10m long cable attached to the door open buttons to operate it from a table locked up the system, removing the wire then allowed it to be used again
I did solve this problem by getting rid of headphones. A neat sound system connected to a digital mixer serves for playing musical instruments as well as listening to music. Also, a bluetooth to rca module connected to one of the stereo channels is the ultimate addition. Now you can play from any device... And feel the wonderful vibrations in your stomach 😂
Important to implement a Opto Isolation if you connect your power supply to any other ground referenced circuits so you do not have strange effects due to multiple grounding points-
Now that is really cool !, i might try this myself. I often have full over-ear headphones on, and so miss parcels. Ive actually taken to opening my CCTV on my laptop and leaving it in the corner of the screen just so i can visually see if anyone is at the front door while im working with music etc. Your right this is a solution everyone needs in the modern world. Could box it as a product and market it !.
Please dont do this. I work with this stuff and it is costly to replace because it is mostly old stuff that you cant buy anymore. It looks nice what he did but one little mistake and its gona cost you big. Even if you dont make a mistake it can go wrong because interference. The owner of the building aint gona like it .
i did almost the same in my flat years before :) I used a small mic, glued next to the ring speaker, and - since there was no ESP32 back then (or at least i don't had one) I made a louder alarm sound closer, where I usually stay :)
@@xmfclick There are maybe a few more ups to it. Because he get's notified even outside of his flat. Also he can use it for automations. I for example built a "Party mode" in mine. If party mode is set to on, it will automatically buzzer the entry door or if at the apartment door, open the nuki. So people arriving to the party or going for a smoke don't need a key or rely on somebody to let them in again.
I did something similar using Home Assistant. The compainion app notifies me, and HA saves the state of all lights, changes all lights to red and restores the state of all lights. So useful!
From watching your tutorials as a university student to get featured in your video (indirectly though 5:38 ). I never knew this is going to happen. Thank you for your tutorials which helped me learn alot!!!
I have the exact same doorbel and I used a shelly uni to do this without soldering (just some plugs that fit on the Ritto PCB). I integrated that with home assistant and I have a lamp on my desk that flashes a particular colour when the doorbel rings (and also other stuff like flash another colour when I leave the fridge door open for a couple minutes, which is read with a magnetic door sensor on the fridge door). Since shelly uni has a potential-free output, it can also open the door for you (I'm sure you can do this on the D1 mini as well), so I then used the email integration to read the email that Amazon/DHL sends that a package is arriving today and it automatically opens the door even if I'm not home, so I don't have to go pick up the parcel, the delivery person will simply leave it in front of my appartment door or downstairs inside the building (I can trust my neighbours). The only problem with my setup was that the power supply cannot handle the shelly uni and the voltage stops rising to 5V when ringing after a couple of weeks but your solution is just great to finally make my setup fully functional!
I've had something similar built into my intercoms for years. The first one was easy because there was a pin like yours where I could extract the ring signal. The second one I had to get creative, because I couldn't find such a pin and decided to trigger it based on speaker activity. I also added a relay to control the opening button remotely and this allowed me to open up the door from the Telegram notification itself :P I recently moved and have to open up the new intercom to investigate. Just might start doing that today...
Thank you for every inspiring video you post, but i would have to say that this time i was faster on creating similar system with a bit more functionalities. The one i built uses ESP32 and Uses battery as power source all enclosed inside the intercom itself. In addition to the regular notification that uses HA, i wired one of the pin to the unlock button, and using ESPhome that create a sensor, with some useful information such how many times my door being rang a month. I wanted to take that further, so i built an automation that will send actionable notification if i am home or away, but if i am at the building door but not inside the flat the system will trigger the unlock for me. so i do not need keys for the below door. it takes 7 seconds for the system to wake up from deep sleep, and trigger the door or send the notification.
9:34: Four seconds from pushing the doorbell and message appearing on the phone. Where I live, that's more than enough time for the delivery person to drop the package at some neighbor's house and race out of sight.
Exactly the problem I am facing in my new house! I live in Spain and our system is the same. I also hate how it sounds lol but I cannot change it. Will seriously consider this, thank you!
Interesting - I would take DC2DC converter and convert the 24+-V to 3.3V of the ESP. It uses peak 70mA, normally around 40mA, on 3.3V that makes 230mW peak, with 20% losses of the DC buck converter you get to 280mW max. No problem for neighbors :)
I was going to say the same thing! A DC-DC converter could easily power an ESP. Even at full ESP power, you have PLENTY of headroom. And if there was any worry about EMI, etc, you could just reduce it to 4/5v, and have the 3.3LDO drop the rest.
Nice would be to add remote door unlocking also, if you can send a message back to the controller you could just close the circuit of the unlock button
I ended up doing something very similar at my home, only that it was a different, video-enabled intercom, also with a digital bus. In my case, though, and in case it might probably happen to many of you interested in doing this for your homes, but you do not happen to "luckily" figure out/"discover" those extra 3 pins, there's a more straightforward but infallible approach (which worked flawlessly for me): Just follow the intercom circuit up until the pair of conductor lines that handle the speaker unit that produces the ring/bell. Measure the voltage variance between those when the bell rings, and then build a voltage divider to take that to the ESP GPID input level (3.3v). That's it :) (by the way, I used the more advanced ESP32 instead of an 8266) P.S: I also included an inbound feature: to be able to remotely "press the open button" with a similar approach. I wired the two pins of the open push button to a small relay driven by one of the ESP output pins... and . magic!
Some time later when Scott moves out and forgets the box. New occupant: "Gets a ring* Scott's phone: *Get a notification* Scott: "Oh crap forgot to remove that"
By far the most overcomplicated, overenginieered, unsafe, half-finished, unreliable, overkill semi-permanent solution to a non-problem. Absolutely loved it!
I made the same on a Ritto Doorbell with an Aqara door/window contact to use Zigbee instead of wifi in Home Assistant. Disassambled the reed contact and used a NPN transistor and a 1K resistror to switch the sensor state from the 5V ring-signal. No need for an additional power supply, wires or outside mounting. Fits into the Ritto housing. The battery should last a long time.
A relay can be added and commanded by ESP to short the “door open button” contacts. But probably he wants to listen to the person on the other side before opening the door!
@@ubiquitousingit Lol... Right. A better idea then! Add a camera to the ESP like the one he uses for security, facing outwards. The moment someone knocks the message contains a picture of whoever is at the door. Seems feasible 👌🏼
I've never had an excuse to tinker with an ESP before but knowing you can trivially do this kinda stuff I'll almost certainly be adding it to my collection of RPis, Picos and Arduinos :)
Out of curiosity - have you looked into Nuki? It’s not DIY, but similarly to your build attaches to the intercom and offers (remote) unlocking as well. I’ve been using it for a few years and it’s been a game-changer.
I once took a look inside the intercom in my apartment to try to do something similar and was shocked to find that the one I have ran on 230VAC, just at a screw terminal, that I can’t turn off myself. Needless to say, I put that project on the backburner and thought of alternative ways of detecting a ringing intercom. I do know some smartphones have a built in assistive listening feature that in theory would notify a user of a doorbell sound, but I’m guessing that’s only effective if the phone is close enough to hear it clearly
Nice project. But integrating it with esphome and home assistant would have been way better. Home assistant does intergrade with telegram and you could have added an led strip at your desk that could flash a couple times when someone's at the door.
Leaving a comment for if anyone explains on how to do this and also in combo with maybe a video feed, because i have a comelit with video 2 wire config and trying to figure it out but i am not that technical, only a bit 😅
I’ve had pretty good results using a webhook via IFTTT and sending a push notification to the IFTTT app from various devices. Whether it be from a raspberry Pi, an ESP32, or a Particle Photon. You can structure the message using various values passed to the webhook. Anything from door opening notifications to low battery monitors, notifications have been pretty quick, usually within a second or two. I need to check out that Telegram library though just for some other options.
tbh i like the old intro better. I find the real physically built LED sign to be more satisfying. plus im sure most of us can appreciate how long that took to make haha
I recently did something similar to this, but used an optocoupler with the 12v ring signal and a relay to open the main door. Means I can press a button on my phone to open the door and also using homeassistant can set it to automatically let me in when I ring my apartment when I’ve just arrived home! I chose this method to keep the systems completely isolated. I also use pushover for notifications.
Nice project. I now have interest in more info about the telegram bot. Anyways, I would have added a optocupler between your hardware and the intercom so as to fully isolate both systems.
i had the same problem, i installed a second buzzer next to my pc and connected it to the doorbell with the coax cable i no longer use but was still in the wall. but your solution is much more elegant haha.
I did a very similar thing more then two years ago. We have a HAT-402 in our appartment and there is a RSR-402 control relay on Amazon, which is basically an upgrade/extension you can more or less plug in. As it is a relay, it was very easy to wire it to an ESP32 like a button. It was my first electronic project and I spend days reading the HAT-402 manual to not mess up anything, but it felt great and it still works like a charm. Fun fact: I can even track the length of each door bell pressing, because the relay closes while the door bell is pressed. 😎 I also used telegram, but I build my own bot. Another plus for telegram: I do not use it for messaging, therefore I can better distingiush between smart home notifications and normal messages. 😉
You could also integrate the telegram notifications with the Home Assistant. That way, you not only can send the notification, but also trigger the door lock with telegram actions from your phone.
I’ve done a simular thing in my apartment. I use a smart relay to open the door if myself or someone rings the door. Atm I can’t know that somebody is ringing, but maybe after this video I should implement this. That way I can open the outside door by only ringing to myself. In an 5 min timeroom after I arrive home, if doorbell rings, then open door! 😊
Yes, and No, given a near buy Lighting Strike could induce many KV's into the intercom wiring, the optocoupler may be of no value. So I would give this design a fail.
100% agree with all the comments saying "USE OPTOCOUPLERS PLEASE" On the one side you seem to care not to overload the power supply in the basement because you don't want other appartement to be impacted by your tinkering.... the absolutely necessary next logical step is to electrically isolate your ESP from the intercom system. I would do that even if the intercom was my privately own intercom.
I had the same challenge. Despite my favor for projects/esp/designing, in the end I just ordered an RF doorbell for 8 euro's; ripped the button-part apart, soldered that inside my intercom and now have 1 doorbell with blinking light to put in any wallsocket. In meetings I can mute the bell, but still see the light flashing when someone rings the door!
Have an idea, to use that intercom system to call to your phone. You can probably use SIM800 modules or similar ones. You can control answering button with esp/arduino also. :) Good video by the way ;)
That system is actually in use in some apartment buildings, at my uncle's house they get a call whenever someone rings the bell and they can talk to the person at the door. I think it's opened by pressing a certain number key on the phone.
I got tired with my apartments 60's era thermostat to control the heat exchanger fan (central heat/cool and all we have is a heat exchanger and a fan in our unit). The Thermostat is a bimetallic switch with a very large hysteresis and excessive drift. I decided one day to replace it with a digital thermostat. So I got a 22v power supply and a 24v relay. I then wired the PSU into the digital thermostat and connected the fan contact to the relay coil (I also wired in a thermistor to the outlet of the coolant pipe using the "outdoor" temperature contacts). Then I wired the contacts of the relay in parallel with the bimetallic switch but instead of going to the heat/cold selector switch I made sure to be on the combined output of that switch. Now I have a digital thermostat that works in parallel to the original, I just set the temperature of the original one to a really high or low temperature and let the digital one turn on first. That way if a maintenance guy wants to mess with it he can without needing to know how the digital one is set. The on/off and speed selector switches still work like they used to. I get really consistent temperatrues that dont drift over the week and I can monitor the coolant temp to see if they switched from heat to cool or how well the chiller is doing to cool things down or if it has shut down completely like it always does if someone breathes wrong!
I'm so sorry for you having that intercom. Those things have become a personal nightmare over the past few years. Also I've seen a lot of people do something like this. BUT From the perspective of the guy searching an entire apartment building for whatever causes the intercom system to stop working. Always again fun.
OMG! I have exactly the same doorbell system in my terrible apartment, and the alarm sounds are just super painful, each time nearly giving me a heart attack! What do you think about a project that would give that crappy system some more pleasant ring tones? xD And I also have another idea: I'm in great fear of loosing my keys, because of the high cost to have some service open the door and possibly replace the door lock - so do you think you could create a system that opens your apartment's door by entering a programmable code sequence using the bell (like some letters in morse code or such..)
wait is that allowed by your landlord/law? I wanted to do something similar when I was living in an apartment but apparently (for me tho) it was illegal to mess with the intercom since I did not 'own' the the intercom.
I am not interfering with the intercom in any way. I use my own power and basically only listen for a certain signal. That is why I think it is kind of like a grey zone. But like always, rebuild it at your own risk.
The biggest issue with the solution may be that he soldered the wires on the connector tabs. At least when he forgets to remove the wires and solder when moving out, so adding an accessory with the proper connector there would involve additional work. And some contractor may just say that it has been altered and needs to be replaced entirely.
@@agnag1 If he just clips the wires inside the case, i doubt anyone would ever open it up, if it still works ofc. They will probably not even care at all, till someone tells them that it's not working. Just imagine the contractor opening all electronics and power outlets just to see if everything behind is still how it's "supposed to be" .. not gonna happen, ever.
I had the very same phone in my previous flat and I did a very similar project, (I even found the same post :D) the only difference is that I used a HC-12 to send a signal and the receiver was on my table while I was working. Initially I also tried to connect to the phone's power connection, which only worked when you ringed the bell using the switch next to our doors. (It was funny, because we didn't notice it for a week, so no packages for us) Sadly for my new flat I had to change the design a bit, because someone painted on the phone and I couldn't remove the cover without destroying the wall around it, but I used a light sensor, printed a closed box for it and I glued to the flashing button. (which I don't use anyway) It's working suprisingly good. I'm using a LiPo battery to power and a low voltage alarm to see when I need to recharge (every half a year) and the signal is immediately sent this way.
@ GreatScott! You can implent this with Home Assistant as well. Just do the doorbell ESP with ESP-Home and implement Telegram into your HomeAssistant. Ihave this with an automation for my washing machine and dryer. I get a message if the Powerconsumption drops under a certain value.
I have the same problem since March 2020 with the pandemic and home office, I made something similar but never put it on to work. Thanks for remind me to stop being lazy and finish the project 😅
This is very cool! Since most deliveries dont need signatures any more, I personally would love to be able to answer the door to let the delivery driver in and put it in the hall. I can cycle a few minutes from the office to get it to safety :) One could plugin into the the actual door button and the phone - but anyhows very cool!
A small delay for the notification might be because it comes through Firebase. If you disable Battery Opimizer for Telegram and make sure that in Telegram's settings the "Keep alive service" setting is ON the message might come quicker.
Home assistant also has messaging capabilities. By calling an URL,you can make an event/automation to notify the app on your phone. No additional app needed.
Thanks for this ingenious idea! I recently figured out that the door opener signal from my parent's house intercom (as you know, intercoms are pretty common in Germany) terminates in the door unit. Ugly security flaw, because the door unit can be disassembled easily (2 screws) and simple shorting opens the door. The open trigger pulse will stay inside the house after my modification. Plus I add an ESP32 (with photocoupler) which enables opening via fingerprint reader (Wiegand protocol) and via HTTP call. Will add a Telegram notification functionality, too.
Interesting topic. A while ago, I did a similar project with intercom but for opening the door at the entrance. The problem in my case was also powering the ESP because on the intercom only 24V AC was available. I tried using a FULL BRIDGE RECTIFIER :D but apparently connecting loads to this 24V AC source caused noice in the earpiece not only on this intercom but on every intercom in the building. So I ended up using an external power source as you did.
Awesome project i implemented a similar system in my home. Brians library is really awesome, but as an alternative telegram bots can be integrated directly into home assistant. Combined with sensors based on esphome you can archive the same result with minimal coding experience and you can use the huge amount of possibilities in home Assistent like logging and automations
I don't know how to feel about this. i was literally thinking about this 3 hours ago wondering whether it existed or not. now this appeared on my recommended. Funny/weird thing about it is that I wasn't even thinking out loud
Creative project - nicely done! Personally I would haved used Signal though instead of Telegram. E2E Encryption per default. I implemented a battery powered temperature logger with the ESP8266 a while back ago. The uC captured the room temperature every 30 minutes and sent it to a dedicated Signal Group. Worked really nice and without any delay.
8:39 those peak times are fleeting enough to use a capacitor to power the board from that 24v. The extra current comes off the capacitor which can have a slow recharge.
Nice! It's maybe better to send an MQTT message to Home Assistant though? From there, you can trigger automations, sound buzzers, flash lights, or send IM notifications using the same APIs. Seems like the more capable option.
Yep. I don't directly connect anything anymore. It all goes through MQTT and Node-Red. I can change the conditions and active times for any input and output that way. A button I push when I wake up can do something different an hour later and do something else again when it's bed time.
Thanks for the shout-out! I'm really glad people are still finding the telegram library useful, I still think it's the easiest way to do push notifications on an esp device!
Thanks for your great work :-)
I wasn’t aware of the library and ended up sending the POST request instead. Will be trying it out in my next project.
Brian's last name is pronounced "lock", you were close Scott!
Use it for everything! Complete and easy to use
Thank you for the library. I used it myself about a year ago with a PIR sensor to detect rat activity in one of the barns.
That was the reinvention of the tire. Had the same problem - the solution was a simple system for under 20€ from Reichelt with a sensor next to the bell that sends a wireless signal when it 'hears' sound and a receiver with a second bell or a light that flashes when the bell rings. No significant delay (maybe a few milliseconds) and you don't need an external service (a big plus). Something like that is sold for years for people that are deaf or need hearing aids or have a loud environment and works for every bell.
Ritto, the company that built your house phone, has relays in their catalogue to switch external non Ritto products when the bell rings and offers additional wireless remote bells or remote flashing lights. Other companies even offer a high power relay (8KW) that you can integrate in a fuse box to flash all lights when someone rings the bell. It is used when all people in a household are deaf.
Well yes and no. I did also use a wireless sender/receiver product for my grandma, so she does not miss the bell when she is in the living room with the TV turned all the way up. Not as cheap as an ESP but a lot less hassle for sure! That said, the solution provided here is applicable (and used) for much more than deaf/hearing impaired/working in loud environments or with headphones! Since it is in fact NOT locally extending the bell alert, one can get notified away from home that somebody rang the doorbell and with the second contact mentioned even trigger the door buzzer remotely…. something the local RF extender cannot do.
Something tells me that this project is not for those who want easy solutions. xD It's a kind of fun all of its own to tinker about in electronic boards and chips and find out which pin does what, to then make some sort of system out of it with just a soldering iron and some cheap electrical components. Oh and an overpriced Rπ ofc.
5:22 The problem with the notification delay is due to Android's standby services (Doze Mode, to be more specific) since like A8, so you need to define "priority: high" parameter (look into dev documentation for HomeAssistant), then it bypasses it and notifications are pushed instantly.
Thanks for the tip
Is it just doze mode and not something else as well? Afaik doze activates when the device is not in use for quite some time while stationary. So really he should only have issues when it's sitting on a desk for half an hour, not even in a pocket or so. But android devices have also picked up the habit of trying to shut off everything that's not high priority, even without doze, unfortunately.
@@LuLeBe In my experience with multiple Samsung phones, it's basically only the Doze, after disabling it via adb, everything works perfectly fine. Unfortunately without root it needs to be disabled after every restart, soo... after many headscratches I was insanely glad I found that there is something like a critical notification and it's possible to fix it at least for HomeAssistant. But sure, it could be also affected by other processes. (I'm more like stubborn tinkerer than a developer xD )
Btw: Doze intereferes even after 5minutes of "idle" (phone on a desk with display turned off), but it could be manufacturer dependant.
and not to mention that well.. it's the internet and you're relying on someone else not being overloaded (IE the bot or telegram)
the SMS/messaging round trip is also incredibly slow and unreliable. i imagine it would be much faster to send some magic packet across your LAN to your device(s), that way you can even get desktop notifications or use something like Tasker on your phone to alert accordingly
As a landlord myself, I would strongly recommend using an optocoupler. These intercom systems are not as stable as you would think. The connected ground and the y capacitor in your smps are some troublemaker.
Yep. Especially when other tenants trigger the door opener, you can see huge voltage spikes on these systems caused by the inductor in the door opener.
Why is everyone suggesting optocpuplers. I mean I love optocouplers (theyre so cool *-*..) but couldnt you just also simply use a relais ?
So cool to see old tech being "modernized" with the help of a little microcontroller :D
I think so too :-)
Thats not a little microcontroller though. Its pretty powerful for a micro controller
@@uvuvwevwevweossaswithglasses The dimensions are little.
@@greatscottlab U can sell cute little greatscott electronic components plushies!! I think people may buy them ! lol..
@@uvuvwevwevweossaswithglasses a micro controller is little, it literally has the word 'micro' on it...
In the beginning of your video, I was thinking "this is a job for the telegram botfather". Now that you've started down this road, you'll find you can get homeassistant to talk to the channel as well.
My home talks to a house telegram channel, pushing notices as need, such as "hey, do you realise you've left the main gate open for more than five minutes?"
And the whole family can subscribe to the channel - win win!
I would have used an optocoupler. That way the ground of my system won't be connected to the ground outside of the apartment. At any time someone can change the wiring and blow things up. Also reduces the possibility of anything I'm doing creating a shock hazard for others.
I was going to say the same thing. Also gets around the level shifting too.
This. You're also assuming that the 5V supply isn't grounded.
@@m3mem4chine86 From the looks of the layout the supply is basically floating. It can assume any voltage above ground it needs to. When you're running cables a long distance isolation is your friend. You have no control over what can happen on the other end of the wire.
Europlugs dont have ground connection that the powersupply used.
I actually did it this way and it works perfectly. Tho my bell sits at 18V normally and rises up to 24V when ringing, so I put a zener infront of the optocoppler. Furthermore two optocopplers were used to be able to activate the push buttons on the intercom wirelessly (using homeassistant). Works like a charm!
Something cool you might add to the system you’ve already built is controlling the buttons to open up the door or answering the intercom from your smartphone without having to walk to your intercom
Answering the intercom might be a bit tricky, but something like opening the door should be relatively simple given that it's done through a simple momentary switch. Main issue with it would be interfacing in a non-destructive way so that it leaves no traces if you eventually move out again.
@@JeppeBeier The mic and speaker of the handset should be quite easy to intercept, as they are analog and accessible via the connector.
@@JeppeBeier i actually did that using a SONOFF RE5V1C whose switch is decoupled from power voltage although it was abit more weird cause my intercom uses 16v AC.
@@ΜΑΝΟΣΚΟΥΤΣΑΚΗΣ-ν7δlooking for doing this project, with open notification AND open door with this PCB but i’m afraid to breack the intercomms system
Did this also to my doorbell. I also connected a relay to the door opener, so the postman can come up to my apartment while I am moving to the door :) I used nodered for the Telegram message receive handling to open the door.
I think this is the better approach. If he already opened the intercom, connected an external power supply and created a whole new enclosure, the door opener would have made this project a 10 out of 10 for me.
A lot of apartments around me in the US have really analog systems with terminals by TekTone. They have a dedicated wire for the "warble" tone when the doorbell is pressed. So I put a current-transformer around that and use it as an input in ESPHome, which works reliably. And I figured out what terminals to connect to trigger the door strike and connected a relay to them. It works really well and doesn't even require soldering since all the connections are at the screw-terminals.
A light that flashes in your work space. A hard of hearing relative of my wife had a system that flashes rapidly if phone rings (old school home phone) and flashes a slower signal if the door bell is rung. Both elderly passed away more than a decade ago. It was part of a commercial security system that is long gone, but great idea.
And super easy to implement with common smart home software (like ZigBee lamps)
If you have home automation you could probably even make the normal lights flash.
This could be done with WLED and http notifications - only a few lines of code in the existing esp8266
This is what I would have done. A big flashing light. So much more reliable and easier to integrate than what was presented here.
Two days ago I was talking to some friends, that I need some kind of smartification for my apartment's bell. UA-cam's algorithm led me to you. Thanks for sharing the experience! :)
Really cool & useful system,. yet what I find most impressive is how he has cable cover/duct on a wall that has significant texture. Long ago I gave up on using any cable ducts on textured walls because they never last a month before loosing grip.
Thanks so much.
I wanted to tackle the same system a year ago without reverse engineering the whole circuit board. (I've got the 4 button version without the phone handle)
Was about to use ldr and a relay to trigger incomming bells and opening the door but decided against it as it would probably end up pretty unreliable.
This makes it a lot easier. I'll probably use an optocoupler and a relay for opening to not interfere with the board but finally some guiding light without interfering with that complicated bus protocol.
As said: Thanks! Got new motivation :)
Did you consider putting an opto-isolator between the intercom and the ESP, rather than connecting the intercom's 5v signal directly to the ESP?
Not really.....
@@greatscottlab I appreciate the honest response - no joke. An optocoupler does seem like a good idea. At minimum, it avoids a potential ground loop from the second (5V) supply many meters away from the system’s supply. Also, who knows how the system will react during power-up, power-down, lightning, etc. It also protects you and your equipment from any other electronics experimenters in your building :).
curious newbie here, what problem would an octo solve?
@@jasond.valentine5931 the two main ones for me would have been 1) decoupling the 5v reference of the other system. Who's to say that the ground references can be relied upon to be the same? 2) no risk of the controller putting voltage *out* back on to the intercom for example if the pins are briefly configured as outputs before your code starts to run on boot-up.
@@jasond.valentine5931 there is another comment made around the same time as mine which has gained more traction with a bunch more answers, so search for that one for more ideas
You could have used a supercap to provide power for the peeks. This would have enabled the whole thing to fit inside the original enclosure... Also you could have used bluetooth LE notifications so that your phone sound only if you are at home 👍
Neat project but I think, given the size and infrequency of visitors to your door you should have just added a lipo battery, bypassed the 5v->3.3v regulator and created a trickle charge circuit to draw
Yup 👍🏻🇬🇧
an pcb edge connector wouldve been neat, agree
a buck converter like 2596 board is near 90% eficient, so 5v * 0.1a ( 80ma + loss) its .5w in 24v line not 6va
and one day the lipo bulges, catches fire while he's not at home and the landlord WILL be mad if his house is burned down from a not officially approved "smart home" device.
@@casemodder89 he can use a joule theif
There are some things to note. Android Smartphones can be very tricky with engery savings, resulting in delayed or even no notification. A deeper look into the settings may help. There are a few things. Usually allowing an app to run it in the background and maybe even start itself and fideling with the engery settings of an app. Some apps can handle it better than others.
Maybe it can be even an issue of the app itself. With push notifications there are different types. Usually push means a server is pushing a message to your phone. An old way and a slow one is when the app needs to pull the notification itself.
When you are not happy on how apps work with these things, asking for help in the forums might give you options to change and help you to make it work for you better.
With the energy I must say that pulling energy from the intercom might be illegal. It can be considered theft. In apartment buildings its usually powered from outside your apartment and meaning the community pays for it.
There are smart home door solutions that are aware of it and they have options to power it from your end, so you don't steal energy.
In reality it might be hard to spot and the landlord doesn't care. But let's not forget, everyone is paying for it, for something you only use.
I also want to mention that this idea isn't new. There are solutions to connect an intercom to your phone. It's for the landline phone. You can control your intercom with it. It's usually for businesses. Also it's not that cheap, especially when you don't have a landline setup at home. But when your intercom supports it, you could open your door and speak to the intercom from your phone. You may not require a landline phone, because there are systems that support soft phones, meaning software phones and that means you could use a smartphone app. It's like a phone call.
I think a remote opening might be useful for deliveries. This gives you the time to go to the door, when the delivery guy is going up the stairs.
I'm not quite happy with the solution. It relys on external services. I would prefer a solution that doesn't need any external services. It would be nice when you could speak through the intercom via your phone and maybe even open it. The opening part should be optional, because this is a security risk and it might be good enough when you can speak to the person until you are at the door.
Awesome project, I pretty much did the same thing last year to the exact same intercom system. Take a look at pushover, I used that instead of telegram to add a custom button to the notification, which can immediately open the door as well.
Super handy when you forgot the key or someone arrived earlier than you btw
Yep, i would also recommend taking a look at pushover.
Thanks for the tips!
@@greatscottlab You can also cut the the middleman without using universal telegram library and just send a POST request through Telegram API if it's just a one-way communication from ESP to telegram.
@@greatscottlab Pushover is great, it's also integrated into Home Assistant so you can add everything to Home Assistant and do all your automations and other such stuff there as well, and I found it quick and reliable for pushing notifications.
+1 for Pushover. Excellent messaging API. I use it and a backup channel for critical server monitoring notifications so both speed and reliability is key. In practice I almost always get the Pushover message a second or two before the email; the email is configured to send *first* 😛
That looks like a standard PCB edge connector. You could also have used one of those and avoided soldering to the board directly.
Yes, agreed it would be better solution in an apartment you are renting in. If landlord sees you modified something like this they can take your deposit when you leave.
I've done pretty much exactly the same thing about a year ago. I just used a shelly to send a notification to my phone using MQTT and home assistant. It can also be used to controll the lights which would be quite helpful to a deaf person lol.
I am definitely going to be making some modifications to my front door now. I can never hear when people knock when I'm in my room tinkering, but I usually have a video running on my phone, so push notifications are the perfect solution for me.
Personally, I would recommend placing a small (100nf) capacitor between the ESP's GPIO pin and ground. This capacitor and the upper resistor of the voltage divider form an RC filter that will help to reduce any transient interference which might cause false triggering. I might also suggest a bidirectional TVS diode in the same location to protect against any large voltage spikes or ESD.
I also built something similar about 3 years ago with an arduino nano and an nrf24l01 which directly used the power of my Ritto door opener. I also added a solid state relay to turn on/off the bell at will and to fire the buzzer at the front door. It was really a fun project and extremely useful. Now after moving to my new apartment, I opted for a commercial solution: Nuki Door Opener. That thing is extremely easy to integrate with not much tinkering / reverse engineering the original door opener PCB. But OFC way more expensive (~100 Bucks).
Although this kind of projects might sound boring, it's my favorite (after the super crazy ones) because it solves those annoying little problems that end up being completely frustrating.
Cool project! I was thinking you could of gotten a long range wireless doorbell, wired the button into the intercom system so that when you press the intercom button it triggers the receiver, which you could have sitting on your desk. You could even add flashing lights to the receiver (some already come with this feature) so it's not just an audio chime alerting you. You obviously aren't notified when not at home though.
Great video Mr. Scott. I love how you make your videos in such a way where it is useful for everyone, and not a very specific project.
Thanks for the info, I was able to have my old 1970's doorbell to send notifications to my phone but i had to make some modifications to the code and the pins!
Just a word of warning: it is easy to fry the controller in the basement and sometimes just adding a wire to e.g. the door opening button can make the bus lock up due to some EMV. And the controllers are really expensive so maybe putting a microphone next to the piezo is a more non invasive way :)
And yes, I witnessed these kind of projects going wrong three times
The problem with a microphone next to the piezo is that vacuuming near the door can, if the noise level is sufficient, also trigger a constant stream of messages. My little brother has cochlear implants, and my father installed a bell add-on in our house such that my little brother would receive an extra audible and visible notification to his room.
It was unfortunately also triggered by vacuuming near the door, essentially making it quite useless.
I bet more of them where from shorting the pins than anything else. It’s an easy mistake to make.
@@Mrcaffinebean nope, definitely not. A 10m long cable attached to the door open buttons to operate it from a table locked up the system, removing the wire then allowed it to be used again
I built one last year, after my son got the noise-cancelling AirPods pro and started wearing them all the time. Incredibly useful upgrade!
I believe Brian's surname is pronounced "lock" :) - I'm glad you selected his library. He did a good job on it!
More like a Scottish/German ch :)
I did solve this problem by getting rid of headphones.
A neat sound system connected to a digital mixer serves for playing musical instruments as well as listening to music.
Also, a bluetooth to rca module connected to one of the stereo channels is the ultimate addition. Now you can play from any device... And feel the wonderful vibrations in your stomach 😂
Important to implement a Opto Isolation if you connect your power supply to any other ground referenced circuits so you do not have strange effects due to multiple grounding points-
Yes, its not more complicated then voltage divider. I'm surprised such "solution"
Now that is really cool !, i might try this myself. I often have full over-ear headphones on, and so miss parcels. Ive actually taken to opening my CCTV on my laptop and leaving it in the corner of the screen just so i can visually see if anyone is at the front door while im working with music etc. Your right this is a solution everyone needs in the modern world. Could box it as a product and market it !.
Please dont do this. I work with this stuff and it is costly to replace because it is mostly old stuff that you cant buy anymore. It looks nice what he did but one little mistake and its gona cost you big. Even if you dont make a mistake it can go wrong because interference. The owner of the building aint gona like it .
@@firefly2472 I have my own house. So will just attach to a regular doorbell switch.
i did almost the same in my flat years before :) I used a small mic, glued next to the ring speaker, and - since there was no ESP32 back then (or at least i don't had one) I made a louder alarm sound closer, where I usually stay :)
Yes, early in the video I thought to myself, "Why doesn't he just rig up a louder ringer?" But then, he wouldn't have got a YT video out it!
@@xmfclick because you won't hear a louder ringer in the basement or garden.
@@xmfclick There are maybe a few more ups to it. Because he get's notified even outside of his flat. Also he can use it for automations. I for example built a "Party mode" in mine. If party mode is set to on, it will automatically buzzer the entry door or if at the apartment door, open the nuki. So people arriving to the party or going for a smoke don't need a key or rely on somebody to let them in again.
I did something similar using Home Assistant. The compainion app notifies me, and HA saves the state of all lights, changes all lights to red and restores the state of all lights.
So useful!
From watching your tutorials as a university student to get featured in your video (indirectly though 5:38 ). I never knew this is going to happen. Thank you for your tutorials which helped me learn alot!!!
Glad it was helpful!
I have the exact same doorbel and I used a shelly uni to do this without soldering (just some plugs that fit on the Ritto PCB). I integrated that with home assistant and I have a lamp on my desk that flashes a particular colour when the doorbel rings (and also other stuff like flash another colour when I leave the fridge door open for a couple minutes, which is read with a magnetic door sensor on the fridge door). Since shelly uni has a potential-free output, it can also open the door for you (I'm sure you can do this on the D1 mini as well), so I then used the email integration to read the email that Amazon/DHL sends that a package is arriving today and it automatically opens the door even if I'm not home, so I don't have to go pick up the parcel, the delivery person will simply leave it in front of my appartment door or downstairs inside the building (I can trust my neighbours). The only problem with my setup was that the power supply cannot handle the shelly uni and the voltage stops rising to 5V when ringing after a couple of weeks but your solution is just great to finally make my setup fully functional!
"Wife alert!" LOL 😆 I love it.
I've had something similar built into my intercoms for years. The first one was easy because there was a pin like yours where I could extract the ring signal. The second one I had to get creative, because I couldn't find such a pin and decided to trigger it based on speaker activity. I also added a relay to control the opening button remotely and this allowed me to open up the door from the Telegram notification itself :P
I recently moved and have to open up the new intercom to investigate. Just might start doing that today...
Thank you for every inspiring video you post, but i would have to say that this time i was faster on creating similar system with a bit more functionalities. The one i built uses ESP32 and Uses battery as power source all enclosed inside the intercom itself. In addition to the regular notification that uses HA, i wired one of the pin to the unlock button, and using ESPhome that create a sensor, with some useful information such how many times my door being rang a month. I wanted to take that further, so i built an automation that will send actionable notification if i am home or away, but if i am at the building door but not inside the flat the system will trigger the unlock for me. so i do not need keys for the below door. it takes 7 seconds for the system to wake up from deep sleep, and trigger the door or send the notification.
Can you provide more information on this please?
This will be awsomw if you could explain this a bit, and do you think it is possible to use this with also a video feed, i gave a comelit with video
pressure mat outside the apartment, coupled with a peep hole camera and a permanent display next to where you're working
9:34: Four seconds from pushing the doorbell and message appearing on the phone. Where I live, that's more than enough time for the delivery person to drop the package at some neighbor's house and race out of sight.
Exactly the problem I am facing in my new house! I live in Spain and our system is the same. I also hate how it sounds lol but I cannot change it.
Will seriously consider this, thank you!
Interesting - I would take DC2DC converter and convert the 24+-V to 3.3V of the ESP. It uses peak 70mA, normally around 40mA, on 3.3V that makes 230mW peak, with 20% losses of the DC buck converter you get to 280mW max. No problem for neighbors :)
The 8266 can draw up to 400ma in certain situations so you would definitely need a supercap or a lipo at least...
It's not a bad idea but I think the DC-DC converter could introduce EMI in the system
I was going to say the same thing! A DC-DC converter could easily power an ESP. Even at full ESP power, you have PLENTY of headroom. And if there was any worry about EMI, etc, you could just reduce it to 4/5v, and have the 3.3LDO drop the rest.
I'm actively working on switching off notifications. I work with bi-polar regularly.. so I am happy to be relaxed without interruptions.
Nice would be to add remote door unlocking also, if you can send a message back to the controller you could just close the circuit of the unlock button
I ended up doing something very similar at my home, only that it was a different, video-enabled intercom, also with a digital bus.
In my case, though, and in case it might probably happen to many of you interested in doing this for your homes, but you do not happen to "luckily" figure out/"discover" those extra 3 pins, there's a more straightforward but infallible approach (which worked flawlessly for me):
Just follow the intercom circuit up until the pair of conductor lines that handle the speaker unit that produces the ring/bell.
Measure the voltage variance between those when the bell rings, and then build a voltage divider to take that to the ESP GPID input level (3.3v).
That's it :) (by the way, I used the more advanced ESP32 instead of an 8266)
P.S: I also included an inbound feature: to be able to remotely "press the open button" with a similar approach. I wired the two pins of the open push button to a small relay driven by one of the ESP output pins... and . magic!
Seeing how much effort this took, I can see why you didn't have time to make the ESP play text-to-speech when you type a whatsapp message to it.
@BBMS Official pateron
@BBMS Official true. This is a difference between public and private videos.
@BBMS Official
Not 11 but 12 days ago😅
@BBMS Official sorry I should be more careful not to cause paradoxes in the time continuum.
That video intro was a nice surprise, very cool. also cool, a sponsor to a video that is actually relevant to the views.
Some time later when Scott moves out and forgets the box.
New occupant: "Gets a ring*
Scott's phone: *Get a notification*
Scott: "Oh crap forgot to remove that"
Yeah, he might forget about that while taking kitchen apart.
By far the most overcomplicated, overenginieered, unsafe, half-finished, unreliable, overkill semi-permanent solution to a non-problem. Absolutely loved it!
I made the same on a Ritto Doorbell with an Aqara door/window contact to use Zigbee instead of wifi in Home Assistant. Disassambled the reed contact and used a NPN transistor and a 1K resistror to switch the sensor state from the 5V ring-signal. No need for an additional power supply, wires or outside mounting. Fits into the Ritto housing. The battery should last a long time.
Exactly what NPN transistor did you use?
@@lpeter1172 Long time ago but I think it was a BC337.
Upgrade idea: Add an option to open the door from your workbench... Either an option in Telegram or a physical button.
A relay can be added and commanded by ESP to short the “door open button” contacts. But probably he wants to listen to the person on the other side before opening the door!
@@ubiquitousingit Lol... Right.
A better idea then!
Add a camera to the ESP like the one he uses for security, facing outwards. The moment someone knocks the message contains a picture of whoever is at the door.
Seems feasible 👌🏼
Skynet.
Not sure this is a really secure way to do this.
I've never had an excuse to tinker with an ESP before but knowing you can trivially do this kinda stuff I'll almost certainly be adding it to my collection of RPis, Picos and Arduinos :)
Out of curiosity - have you looked into Nuki? It’s not DIY, but similarly to your build attaches to the intercom and offers (remote) unlocking as well. I’ve been using it for a few years and it’s been a game-changer.
I once took a look inside the intercom in my apartment to try to do something similar and was shocked to find that the one I have ran on 230VAC, just at a screw terminal, that I can’t turn off myself.
Needless to say, I put that project on the backburner and thought of alternative ways of detecting a ringing intercom. I do know some smartphones have a built in assistive listening feature that in theory would notify a user of a doorbell sound, but I’m guessing that’s only effective if the phone is close enough to hear it clearly
Nice project. But integrating it with esphome and home assistant would have been way better. Home assistant does intergrade with telegram and you could have added an led strip at your desk that could flash a couple times when someone's at the door.
Leaving a comment for if anyone explains on how to do this and also in combo with maybe a video feed, because i have a comelit with video 2 wire config and trying to figure it out but i am not that technical, only a bit 😅
I’ve had pretty good results using a webhook via IFTTT and sending a push notification to the IFTTT app from various devices. Whether it be from a raspberry Pi, an ESP32, or a Particle Photon. You can structure the message using various values passed to the webhook. Anything from door opening notifications to low battery monitors, notifications have been pretty quick, usually within a second or two.
I need to check out that Telegram library though just for some other options.
tbh i like the old intro better. I find the real physically built LED sign to be more satisfying. plus im sure most of us can appreciate how long that took to make haha
I recently did something similar to this, but used an optocoupler with the 12v ring signal and a relay to open the main door. Means I can press a button on my phone to open the door and also using homeassistant can set it to automatically let me in when I ring my apartment when I’ve just arrived home! I chose this method to keep the systems completely isolated. I also use pushover for notifications.
Hi, can you please help me with my doorbell? It works also on 12v. What do I need in detail and how musst I connect it
Nice project. I now have interest in more info about the telegram bot. Anyways, I would have added a optocupler between your hardware and the intercom so as to fully isolate both systems.
i had the same problem, i installed a second buzzer next to my pc and connected it to the doorbell with the coax cable i no longer use but was still in the wall. but your solution is much more elegant haha.
TLDR How to get notifications on WhatsApp: Uninstall it, then get Telegram
Incorrect, use session
I did a very similar thing more then two years ago. We have a HAT-402 in our appartment and there is a RSR-402 control relay on Amazon, which is basically an upgrade/extension you can more or less plug in. As it is a relay, it was very easy to wire it to an ESP32 like a button. It was my first electronic project and I spend days reading the HAT-402 manual to not mess up anything, but it felt great and it still works like a charm. Fun fact: I can even track the length of each door bell pressing, because the relay closes while the door bell is pressed. 😎
I also used telegram, but I build my own bot. Another plus for telegram: I do not use it for messaging, therefore I can better distingiush between smart home notifications and normal messages. 😉
You could also integrate the telegram notifications with the Home Assistant. That way, you not only can send the notification, but also trigger the door lock with telegram actions from your phone.
Also a good idea :-)
That's not hard. Hard is listening the intercom with the phone to see if you can really open the door.
I’ve done a simular thing in my apartment. I use a smart relay to open the door if myself or someone rings the door. Atm I can’t know that somebody is ringing, but maybe after this video I should implement this. That way I can open the outside door by only ringing to myself. In an 5 min timeroom after I arrive home, if doorbell rings, then open door! 😊
Wouldn´t it be better to use a optocoupler between ESP and the phone circuit for electrical separation?
Yes, and No, given a near buy Lighting Strike could induce many KV's into the intercom wiring, the optocoupler may be of no value. So I would give this design a fail.
100% agree with all the comments saying "USE OPTOCOUPLERS PLEASE"
On the one side you seem to care not to overload the power supply in the basement because you don't want other appartement to be impacted by your tinkering.... the absolutely necessary next logical step is to electrically isolate your ESP from the intercom system.
I would do that even if the intercom was my privately own intercom.
Simply put a relay to the push button of the intercom/doorbell, cable it into a dedicated bright lamp in your room. 😃
Or a small microphone, tuned to the bell noise and activating a smartlamp on his desk. No fiddling with wires.
That doorbell is very far away from the door... its an apartment
@@se_mat sound recognition is exponentially harder and more sensitive.
@@runforitman The bell is not citing Shakespeare, it is a very distinguish sound that a frequency filter and loudness resistor can handle.
@runforitman if it is multi storey apartment with addressed doorbel to each unit, then you can relay a lamp from the doorbell speaker in your room.
I did something similar a while back. I used an esp + telegram library and a PIR module to detect rats in one of the barns. Worked really well.
I had the same challenge. Despite my favor for projects/esp/designing, in the end I just ordered an RF doorbell for 8 euro's; ripped the button-part apart, soldered that inside my intercom and now have 1 doorbell with blinking light to put in any wallsocket. In meetings I can mute the bell, but still see the light flashing when someone rings the door!
Have an idea, to use that intercom system to call to your phone. You can probably use SIM800 modules or similar ones. You can control answering button with esp/arduino also. :) Good video by the way ;)
That system is actually in use in some apartment buildings, at my uncle's house they get a call whenever someone rings the bell and they can talk to the person at the door. I think it's opened by pressing a certain number key on the phone.
I got tired with my apartments 60's era thermostat to control the heat exchanger fan (central heat/cool and all we have is a heat exchanger and a fan in our unit). The Thermostat is a bimetallic switch with a very large hysteresis and excessive drift. I decided one day to replace it with a digital thermostat. So I got a 22v power supply and a 24v relay. I then wired the PSU into the digital thermostat and connected the fan contact to the relay coil (I also wired in a thermistor to the outlet of the coolant pipe using the "outdoor" temperature contacts). Then I wired the contacts of the relay in parallel with the bimetallic switch but instead of going to the heat/cold selector switch I made sure to be on the combined output of that switch.
Now I have a digital thermostat that works in parallel to the original, I just set the temperature of the original one to a really high or low temperature and let the digital one turn on first. That way if a maintenance guy wants to mess with it he can without needing to know how the digital one is set. The on/off and speed selector switches still work like they used to.
I get really consistent temperatrues that dont drift over the week and I can monitor the coolant temp to see if they switched from heat to cool or how well the chiller is doing to cool things down or if it has shut down completely like it always does if someone breathes wrong!
I'm so sorry for you having that intercom. Those things have become a personal nightmare over the past few years.
Also
I've seen a lot of people do something like this.
BUT From the perspective of the guy searching an entire apartment building for whatever causes the intercom system to stop working.
Always again fun.
Been there, done that. It sucks. Dont do this ppl.
Exactly what i was searching for, was trying to sort out a solution for my doorbell too!! Just got the ESP delivered!!
Love u loads!!!!!
OMG! I have exactly the same doorbell system in my terrible apartment, and the alarm sounds are just super painful, each time nearly giving me a heart attack! What do you think about a project that would give that crappy system some more pleasant ring tones? xD
And I also have another idea:
I'm in great fear of loosing my keys, because of the high cost to have some service open the door and possibly replace the door lock - so do you think you could create a system that opens your apartment's door by entering a programmable code sequence using the bell (like some letters in morse code or such..)
iPhones (I think iOS 14 or above) have a feature, where they warn you if You use headphones and things like doorbells or fire alarms go off
wait is that allowed by your landlord/law? I wanted to do something similar when I was living in an apartment but apparently (for me tho) it was illegal to mess with the intercom since I did not 'own' the the intercom.
The main legal problem is the power supply. Use the power from the intercom is stealing. That is the reason commercial systems like Nuki use batteries
I am not interfering with the intercom in any way. I use my own power and basically only listen for a certain signal. That is why I think it is kind of like a grey zone. But like always, rebuild it at your own risk.
@@greatscottlab I think you should've used a connector or something. Soldering directly onto the PCB could be considered tampering with it
The biggest issue with the solution may be that he soldered the wires on the connector tabs. At least when he forgets to remove the wires and solder when moving out, so adding an accessory with the proper connector there would involve additional work.
And some contractor may just say that it has been altered and needs to be replaced entirely.
@@agnag1 If he just clips the wires inside the case, i doubt anyone would ever open it up, if it still works ofc. They will probably not even care at all, till someone tells them that it's not working. Just imagine the contractor opening all electronics and power outlets just to see if everything behind is still how it's "supposed to be" .. not gonna happen, ever.
I had the very same phone in my previous flat and I did a very similar project, (I even found the same post :D) the only difference is that I used a HC-12 to send a signal and the receiver was on my table while I was working. Initially I also tried to connect to the phone's power connection, which only worked when you ringed the bell using the switch next to our doors. (It was funny, because we didn't notice it for a week, so no packages for us)
Sadly for my new flat I had to change the design a bit, because someone painted on the phone and I couldn't remove the cover without destroying the wall around it, but I used a light sensor, printed a closed box for it and I glued to the flashing button. (which I don't use anyway) It's working suprisingly good. I'm using a LiPo battery to power and a low voltage alarm to see when I need to recharge (every half a year) and the signal is immediately sent this way.
Hi. Super Video. Ich suche schon ewig nach genau dieser Lösung. Würdest du vielleicht den Code auf Github o.ä. teilen? Würde mich sehr freuen.
The code is in the description
Der Code steht in der Beschreibung des Videos
@ GreatScott!
You can implent this with Home Assistant as well. Just do the doorbell ESP with ESP-Home and implement Telegram into your HomeAssistant. Ihave this with an automation for my washing machine and dryer. I get a message if the Powerconsumption drops under a certain value.
Next episode: how to extinguish a fire because the heat gun was left on while answering the doorbell.
I have the same problem since March 2020 with the pandemic and home office, I made something similar but never put it on to work. Thanks for remind me to stop being lazy and finish the project 😅
And this is where you realise the delivery guy never actually rang your doorbell in the first place.
Haha that really happens sometimes....
knock knock
@@ddpxl Who's there?
ESP32 camera module would solve that, just need to find a way to mount and power it.
Nice solution! The hass inconsistent respond time also boder me in this kind of projects!
Ich bin so froh, das ich dein Video entdeckt habe, da ich genau die gleiche Türklingel habe. Werde ich auf jeden Fall mal nachbauen!
This is very cool! Since most deliveries dont need signatures any more, I personally would love to be able to answer the door to let the delivery driver in and put it in the hall. I can cycle a few minutes from the office to get it to safety :) One could plugin into the the actual door button and the phone - but anyhows very cool!
A small delay for the notification might be because it comes through Firebase. If you disable Battery Opimizer for Telegram and make sure that in Telegram's settings the "Keep alive service" setting is ON the message might come quicker.
Home assistant also has messaging capabilities. By calling an URL,you can make an event/automation to notify the app on your phone. No additional app needed.
Thanks for this ingenious idea!
I recently figured out that the door opener signal from my parent's house intercom (as you know, intercoms are pretty common in Germany) terminates in the door unit. Ugly security flaw, because the door unit can be disassembled easily (2 screws) and simple shorting opens the door. The open trigger pulse will stay inside the house after my modification. Plus I add an ESP32 (with photocoupler) which enables opening via fingerprint reader (Wiegand protocol) and via HTTP call. Will add a Telegram notification functionality, too.
Interesting topic. A while ago, I did a similar project with intercom but for opening the door at the entrance. The problem in my case was also powering the ESP because on the intercom only 24V AC was available. I tried using a FULL BRIDGE RECTIFIER :D but apparently connecting loads to this 24V AC source caused noice in the earpiece not only on this intercom but on every intercom in the building. So I ended up using an external power source as you did.
This video fooled me several times into thinking there's somebody ringing my bell. Thanks for that
Awesome project i implemented a similar system in my home. Brians library is really awesome, but as an alternative telegram bots can be integrated directly into home assistant. Combined with sensors based on esphome you can archive the same result with minimal coding experience and you can use the huge amount of possibilities in home Assistent like logging and automations
Not just tapping into your intercom's power supply and checking it's rating was really responsible, great job great Scott.
I don't know how to feel about this. i was literally thinking about this 3 hours ago wondering whether it existed or not. now this appeared on my recommended. Funny/weird thing about it is that I wasn't even thinking out loud
Also you can use IFTTT to control a smart light every time you get a telegram notification
Creative project - nicely done!
Personally I would haved used Signal though instead of Telegram. E2E Encryption per default. I implemented a battery powered temperature logger with the ESP8266 a while back ago. The uC captured the room temperature every 30 minutes and sent it to a dedicated Signal Group. Worked really nice and without any delay.
8:39 those peak times are fleeting enough to use a capacitor to power the board from that 24v. The extra current comes off the capacitor which can have a slow recharge.
Nice! It's maybe better to send an MQTT message to Home Assistant though? From there, you can trigger automations, sound buzzers, flash lights, or send IM notifications using the same APIs. Seems like the more capable option.
Yep. I don't directly connect anything anymore. It all goes through MQTT and Node-Red. I can change the conditions and active times for any input and output that way. A button I push when I wake up can do something different an hour later and do something else again when it's bed time.