DIY Wireless Smart Doorbell: Program ESP8266 NodeMCU with Arduino or ESPHomeYAML

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 มิ.ย. 2018
  • Project parts list from amazon:
    Wireless Doorbell: amzn.to/2JO7CEB
    NodeMCU: amzn.to/2HmqcyH
    2n2222 NPN Transistors: amzn.to/2sSRVmb
    Reed Switches: amzn.to/2y6QTbd
    Essentials:
    Hook Up Wire: amzn.to/2JsDtuF
    Security Sensor Wire: amzn.to/2l5HxD6
    Soldering Iron: amzn.to/2JuTQa6
    Wire Cutters: amzn.to/2Ls4Imr
    *As an Amazon Associate I earn a % of qualifying purchases at no cost to you.*
    Arduino code: github.com/thehookup/Wireless...
    Arduino based configuration yaml: github.com/thehookup/Wireless...
    Arduino based Node-RED flow: github.com/thehookup/Wireless...
    Otto Winter's Repository: github.com/OttoWinter/esphome...
    ESPHomeYAML Documentation: esphomelib.com/esphomeyaml/
    ESPHomeYAML Code: github.com/thehookup/Wireless...
    MQTT Autodiscovery YAML: github.com/thehookup/Wireless...
    ESPHomeYAML Node-RED Flow:github.com/thehookup/Wireless...
    Wiring Schematic Doorbell PCB: github.com/thehookup/Wireless...
    Wiring Schematic NodeMCU: github.com/thehookup/Wireless...
    Support my channel:
    Patreon: / thehookup
    Tesla Refferal Code: www.tesla.com/referral/robert...
    Music by www.BenSound.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 235

  • @andyjame5150
    @andyjame5150 9 หลายเดือนก่อน +23

    We ended up exchanging this model for the slimmer version th-cam.com/users/postUgkx0jZ_lGlDVJhDnmagEU8gn47cmfPNlLQU because it was too wide for the only door trim area that made sense to mount it on. However, we should have just noted the dimensions prior to purchasing. Otherwise, we love the doorbell. It works perfectly, and the video is very clear, even at night.

  • @eclecticlife
    @eclecticlife 5 ปีที่แล้ว +2

    Rob, you have no idea how thankful I am for your videos. I really want to thank you for the hard work that you put on making them. This one inspired me to implement something very similar, although since my existing doorbell uses RF 433Mhz and I already have a Sonoff RF bridge, it was very easy to just use the RF signal instead of having to add a nodemcu. Thank again for all you do.

  • @stevedublin6592
    @stevedublin6592 5 ปีที่แล้ว +2

    Great video!! - just built a version of this but used IFTTT as I haven’t been brave enough to use HA yet! Added a hacked echo button with relay so Alexa announces across the house that someone is at the door when doorbell is pressed - thanks again for great vid👍

  • @pucbaldwin
    @pucbaldwin 6 ปีที่แล้ว

    This is great - I did almost exactly the same thing about a year ago - same doorbell, wired it up to a Wemos D1 mini, used the led flash to trigger an input on the D1 which then sent an MQTT message to Node Red. Powered the whole thing off an old 5v phone charger. Nice work!

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      Nice! someone on reddit said they had used the same one with a node-mcu too... great minds think alike.

  • @Photograaf11
    @Photograaf11 2 ปีที่แล้ว

    THANKS DUDE! i modified your script by just a little bit and now i made my own "smart mqqt remote" to power on or off devices in node-red!!!

  • @kumwamd
    @kumwamd 6 ปีที่แล้ว +3

    You are really doing great stuff with this videos. Keep them coming please! So inspiring for home automation :)

  • @MartinPugh
    @MartinPugh 5 ปีที่แล้ว +2

    Hi Rob. Firstly, thanks for the great videos. I'm new to Home Assistant and Node Red but slowly putting things together with your help, and DrZZS.
    Have you already covered any details about the camera setup you have to get those images into Home Assistant? If not, any chance of a video with some pointers on how to get started? I don;t have any IP cameras in place yet but if there are any makes and models that work best with Home Assistant I'd be interested in your thoughts. Thanks

  • @exportedafrican
    @exportedafrican 6 ปีที่แล้ว

    Great video. I'm holding out on learning mqtt but looks like I'll eventually get there.
    Thinking I'll just use the konnected code to get started. Love the toggle for sound on or off!

  • @VAKUL-DC
    @VAKUL-DC 6 ปีที่แล้ว +1

    been waiting for the reed switch code...now need to figure out how to add it to the ben's multinode sensor. Also thank you for the bonus tutorial about the hassio addon, that is awesome.

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว +2

      I thought about including all those sensors in this project as well, there's plenty of room inside the doorbell case to fit them, and plenty of open pins on the nodemcu.

  • @fnflores
    @fnflores 5 ปีที่แล้ว

    Great job! Thanks for sharing!

  • @sslx1118
    @sslx1118 2 ปีที่แล้ว

    Thank you for this very helpful guide. I have recently brought the new version of the 1byone. Indeed the methodology still works, but 1) for the LED, need to connect to the ground not the positive, 2) for the 2N2222, need to connect after the 1byone is powered on (otherwise the sound is not functioning at all).

  • @luketerare6322
    @luketerare6322 5 ปีที่แล้ว

    Great Video, very concise. Thanks

  • @mattedwards7581
    @mattedwards7581 4 ปีที่แล้ว +1

    Hey Rob, I know this is an old video, but I have the plug-in version (UK) of this doorbell, could I just connect everything apart from the 3v3/Ground of the NodeMCU to the 1 by One board and then plug in the NodeMCU next to the plugged in doorbell? Cheers.

  • @tcruiser60
    @tcruiser60 ปีที่แล้ว

    Hi thanks for all the great videos been watching them to help the start of my home automation journey. Along with setting up HA, I am creating a version of the door bell project. This leads me to some questions ? So in your door dell sketch you have a topic of ‘checkin’
    Is this just your own topic or a common topic ? Also do you setup individual username/passwords for all of your devices and do you do it in Mosquito or Home assistant. Thanks Rob look forward to the next project. Cheers Tim

  • @andyuk8693
    @andyuk8693 6 ปีที่แล้ว +2

    Thank you for a great video. The way you do your videos is very easy to follow. Please could you do some videos on setting and using home assistant.
    Andy

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      I'm trying not to remake videos that I think are already made well somewhere else on youtube. Is there a specific part of home assistant setup that you aren't able to find on youtube?

  • @s.awesomeness3920
    @s.awesomeness3920 4 ปีที่แล้ว

    does the sending notification on your phone works even when your not at home?
    What app do you use?

  • @pingwuan_works
    @pingwuan_works 4 ปีที่แล้ว

    THANKS SO MUCH!!!! I got this working with the newer non-battery powered one. You were so right with working through the code and getting it just right!

    • @GG-kq6ok
      @GG-kq6ok 4 ปีที่แล้ว

      Pingwuan how did you wire it with the non battery one?

    • @pingwuan_works
      @pingwuan_works 4 ปีที่แล้ว +2

      @@GG-kq6ok imgur.com/L56Zg2P That is a link to a picture of the board. I labeled what Ground, 5v, and the LED pin you need to hook up to D0. You will want to remove the mains from it completely and hook it up to a 5v charger. The transformer in this thing doesn't have enough amperage for the nodemcu and the door bell chime unfortunately. :( I hope this helps!!

    • @GG-kq6ok
      @GG-kq6ok 4 ปีที่แล้ว

      Will give it it try, first try to find the doorbell in the netherlands.. thanks a lot!!

    • @krdesigns
      @krdesigns 4 ปีที่แล้ว

      @@pingwuan_works hi there can you tell us which bell did you purchase? Maybe you can share some guide?

    • @pingwuan_works
      @pingwuan_works 4 ปีที่แล้ว +2

      @@krdesigns Sorry for the late reply here is the link to the doorbell I used. www.amazon.com/gp/product/B017SJKYQ0/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 As for a guide I haven't made one but if you feel like you could use one I could look into making one.

  • @TheKris00000
    @TheKris00000 4 ปีที่แล้ว

    The UI in Phone @11 is from Home Assist app or HAClient App in mobile?

  • @JasonSouthernGB
    @JasonSouthernGB 5 ปีที่แล้ว

    In ESPHome you just need to add a filter section to stop the sensor triggering with every flash.
    I used 5 seconds, but you can adjust accordingly.
    binary_sensor:
    - platform: gpio
    name: "Doorbell"
    pin:
    number: D0
    inverted: False
    mode: INPUT_PULLDOWN_16
    filters:
    - delayed_off: 5s

  • @RaniKorkise
    @RaniKorkise 5 ปีที่แล้ว

    Do you have a sprinkler system? I need to build one, thinking ESP32, solenoid and relay switch board...
    If you've built one in the past, I'd love to check it out! :)

  • @larry91403
    @larry91403 4 ปีที่แล้ว

    So could I just use the doorbell that is hardwired into my front door to trigger something in home assistant to activate the camera, and send a notification to my phone?

  • @bobbinbob
    @bobbinbob 5 ปีที่แล้ว

    Just a heads up that my board was broadcasting an SSID of esp8266_last 6 digits of mac - consuming channel frequency otherwise used for day to day wifi so I prefer to run the module without that - I modified the source code at line 37 just before the wifi is started to state: WiFi.mode(WIFI_STA); to set it to not act as a AP as well, works and no longer any odd wifi SSID's!

  • @miticanicu
    @miticanicu 5 ปีที่แล้ว

    Hello.
    Sir, the thing you've done is great, but you do not mind, I did not get in too well. Have you installed Hassio on a virtual machine or linux? if so, does it behave like a server and keep it running always to communicate with the MQTT and ESP8266 application? I'm a beginner and I'm very much asking you to help me install Hassio. Or at least guide me to a tutorial for beginners.
    Thank you very much.

  • @DesignitBuilditRepairit
    @DesignitBuilditRepairit 6 ปีที่แล้ว

    Another great video

  • @godelrt
    @godelrt 5 ปีที่แล้ว

    Would you be able to do a vid on MQTT setup in HA? I looked on TH-cam but they seem outdated.. If I’m using ssl with duck dns for HA do I have to use ssl on MQTT? Not sure how to set it up.. thanks! Awesome tutorials!

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Other than the Mosquitto addon? I don't use SSL for MQTT since it's only local and not exposed to the outside world.

  • @casperdeboer12
    @casperdeboer12 5 ปีที่แล้ว +3

    Hi i have a different doorbel i was wondering is the 2n2222 hooked up on the switch where you select between soun/led.

    • @Ghust2
      @Ghust2 4 ปีที่แล้ว +1

      I just made this project myself. The 2N2222 is hooked up on the switch, and actually bridges between the LED and sound paths. When the transistor is up it lets the current pass, else it's silent.
      I know it's a year old, but maybe you're still wondering? ;)

    • @mattedwards7581
      @mattedwards7581 3 ปีที่แล้ว

      @@Ghust2 Hey - can you help, where on my board would I put the 2N2222, please?
      simpletosmart.com/images/Doorbell_QH-823AK_Front.jpg
      simpletosmart.com/images/Doorbell_QH-823AK_back.jpg
      Cheers

  • @lewisbarnard3606
    @lewisbarnard3606 6 ปีที่แล้ว

    Hi there! Awesome video, have you done a video on how to get your camera on nodered?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      Do you already use home assistant?

  • @93DavidJ
    @93DavidJ 4 ปีที่แล้ว +15

    The doorbell isn't available anymore, do you have an updated recommendation for a doorbell?

    • @tristanjustice1071
      @tristanjustice1071 3 ปีที่แล้ว

      Dunno if anyone gives a damn but if you're stoned like me atm you can watch pretty much all of the new series on Instaflixxer. I've been binge watching with my gf for the last few months =)

    • @SamPhoenix_
      @SamPhoenix_ 2 ปีที่แล้ว

      You can use any 2xAA powered doorbell receiver as long it has a flashing light

  • @NetworkGeek280
    @NetworkGeek280 4 ปีที่แล้ว

    Thanks for this. Ordered the doorbell. Still a bit of a noob (I use ESPHOME and Hassio automations) but on face value it appears ESPHOME has a bunch of binary sensor timers I can play with for the chime detection. I'll see how I go.

    • @NetworkGeek280
      @NetworkGeek280 4 ปีที่แล้ว

      I got this working nicely with just esphome. I dare say the option wasn't available at the time. I just added the following to the binary sensor:
      filters:
      - delayed_off: 6000ms

  • @ianrobertson912
    @ianrobertson912 5 ปีที่แล้ว

    Thanks for this. Any chance of we having non Node-Red code for capturing a photo from the camera and including it as a message.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      It can be done with automations in HASS, you can use the same URL that I had in the video.

  • @tomar5e115
    @tomar5e115 6 ปีที่แล้ว +2

    Could also use a rf receiver and just use that to send receive the doorbell signal

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว +2

      Yep, if all you wanted to do was monitor the doorbell an RF receiver would do the trick.

    • @ianrobertson912
      @ianrobertson912 5 ปีที่แล้ว

      How do you do this if I may ask. I was thinking same. I need to Doorbell and would like to use Broadlink 1SC hub or if possible Broadlink Pro+. I do not think I could add 3rd partly BF sender with 1SC kit. Any hints would be useful

  • @dablet
    @dablet 4 ปีที่แล้ว

    you are doing a lot of fancy stuff with this. what if i just want to know if the doorbell was pushed? i only need 1 wire from LED to nodeMCU D0 pin, correct?

  • @jhavens12
    @jhavens12 6 ปีที่แล้ว

    super interesting, i have a bunch of nodeMCU chips at home that I attempted to use with BruhAutomation's mutlisensor but they freeze up for some reason and are unreliable. This would be easy enough to connect some reed switches and create simple door sensors (given that I can find someway to power them) Thanks!

  • @skeepskeeperson
    @skeepskeeperson 5 ปีที่แล้ว +2

    I ended up having some issues with the Smart Doorbell Arduino sketch. I was getting ghost rings after about a week of it working flawlessly and once they started they would trigger every 5 to 15 minutes, over and over again. Could have been the Adafruit Huzzah Feather board I am using vs. the NodeMCU board, but I couldn't figure out the issue. I even ended up completely rewriting the Arduino code removing all the Serial.print code and debounced the LED to help look for noise. I also looked over the HIGH / LOW NodeMCU boot-up diagrams you provided, to which everything looked good. But again worked great for about a week but ended up going nuts again after a quick power surge. For anyone wondering ... yes, it's plugged into a surge protector.
    I finally ended up installing Tasmota on the Huzzah Feather and setting the Audio to Relay1, LED Trigger to Switch2 and the Reed Switch to Switch3. I updated my Node-Red MQTT topics and now everything has been running for about two weeks with no issues.
    EDIT - Update 1 (3 Days Later): Over the weekend another power surge with a heavy rainstorm and ghost ringing started all over again. So let me retract everything above!
    This time with the Tasmota console I was able to see the problem was the push button ringer. Tasmota showed that it looked like the button had been pressed. At which point I went outside grabbed the button, opened it up, removed the battery and let it sit. Ghost ringing stopped and I let it sit for a couple hours just to make sure. Guessing some humidity was getting into the push button and also guessing there were some cold solder joints. So, I re-soldered everything and covered the electronics with a thin layer of Polymorph minus the button and LED. I also, added an 18650 with a 03962A-Micro USB 5V 1A Lithium Battery Charger with Protection to the indoor unit. Hoping this does the trick and if not I will add another update here to where I change the board or bought another push button.
    Just wanted to throw this out there if anyone else was having similar issues. Still a great project, so thanks for creating and putting it up on TH-cam!

    • @garyphillips7993
      @garyphillips7993 5 ปีที่แล้ว

      Hi, I'm trying, in vain, to get this working with Tasmota. I have everything up and running as per your settings :) But the one thing I can't figure out is the LED flashing multiple times and causing ON/OFF messages/notifications. I'm no coder etc, I can see from TheHookUps code that he has implemented some code so that you only get one notification, instead of many. I was wondering how you had done that with Tasmota?

    • @Kipperfoot1
      @Kipperfoot1 5 ปีที่แล้ว

      I had the same issue with ghost "rings". I think the fix is to change the channel of the door bell. Instructions say to remove battery for 1 minute, then press channel button. So far so good for me!

  • @rathodnagendrasinh9077
    @rathodnagendrasinh9077 5 ปีที่แล้ว

    very helpful video. can you please suggest me if i want to live stream(instead of image we can able to see person and interact with him) on doorbell button press what changes i need to do and best SBC to deal with live stream. thanks in advance

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      To my knowledge you can't have a live stream in an actionable notification. You could link to the rtsp stream through.

  • @BrianThomas
    @BrianThomas 4 ปีที่แล้ว

    Awesome video. I love tinkering with electronics so I'm going to choose the Arduino route. My question is what if I'd like to go with an AC/DC powered chime instead of battery operation. How would this change my wiring design?

    • @TheHookUp
      @TheHookUp  4 ปีที่แล้ว

      You'd need to find a 5 volt source on the inside of the board, if you aren't super comfortable looking at a circuit board and finding high and low voltage areas I wouldn't recommend it.

  • @dablet
    @dablet 4 ปีที่แล้ว

    my doorbell is "dead" after 3 or 4 days, just like the Windows Blind. i see it is still on the network but it just doesnt do anything.
    is there a code that i can add at the end of your ino file to force a restart after 24hrs?
    i found this piece of code online but it refuses to work and i have no idea what's the syntax to get it working:
    if (millis() => 86400000){
    ESP.restart();
    }

  • @dartfrogdk
    @dartfrogdk 6 ปีที่แล้ว +3

    Thanks for your videos, they really help a lot, i got a lot of esp sensors arround my house, it can sometimes jam the wifi, I was thinking maybe a video on using rf instead and connect them to the sonoff rf, maybe this is something you would consider ;o) keep up the great work and open a patron acount so we can contribute to your work.

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      DrZzs did a video this week on the Sonoff RF, but 433mhz devices have the limitation that they only send information, and cannot receive it. How many devices do you have on your wifi? If the ESPs are using MQTT they shouldn't really contribute much to network traffic. Most modern routers should support 50+ devices without any slowdowns at all.

    • @Drogfild
      @Drogfild 6 ปีที่แล้ว

      Have you checked MySensors project?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว +1

      I did play around with MySensors a bit. I honestly wasn't a huge fan. You still end up writing arduino code and dealing with all of the issues the arduino IDE sometimes has (com port errors, library errors, local file errors), but you don't learn much about arduino coding and you don't have as much control over the program.
      A project like ESPHomeYAML is great because it doesn't try to be arduino, it's just a drop in replacement for it. In my opinion, if you're going to mess around learning MySensors you should just take the few extra hours in arduino to learn the rest of the coding portion.

    • @dartfrogdk
      @dartfrogdk 6 ปีที่แล้ว

      I got more than 50 ESP running in my house including wemos and sonoffs, they work fine but sometimes i feel my wifi is slow

    • @dartfrogdk
      @dartfrogdk 6 ปีที่แล้ว

      all run tasmota and other mqtt software

  • @markferrick10
    @markferrick10 6 ปีที่แล้ว +1

    Great video as always. I love that you have ALL the documentation / files on github. Makes it real easy. Whats the best way to get past the 'hacking' stage for learning Arduino?
    Over 3000 subscribers. Kool...............

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว +2

      Best way to get past that stage is to keep hacking other people's code, after a while you'll start to notice things in common between code, then you'll start to realize you don't need to copy other people's code because you already know how to do the thing you want to do.
      It was a really strange feeling the first time I sat down to code something, I loaded up someone else's code to start with, and then I read through it and deleted out section by section because it didn't to exactly what I wanted. After I finished I noticed that I had removed about 95% of the code. That was the point I realized I didn't need to modify someone else's code anymore.
      The funny thing is that everyone has their own coding style, little things like using #define or const int for pins, adding an extra return before {, or using timers or the millis() function. I can always tell if I've written a section of code because it just feels like mine.

  • @hugodelaroza
    @hugodelaroza 5 ปีที่แล้ว +1

    Hi, I think your wotk is great!! I've implemented the doorbell and the pc remote switch and they work perfect!! I wonder if maybe you could improve the code so the device hostname can be configured and we could find it easily it in the network, and maybe it could have a little web server to show its name and ip address.
    Tkanks!!

  • @candlemedia
    @candlemedia 5 ปีที่แล้ว +2

    @ 1:18 .... YES, yes we are worth it!
    :-D Thank you!

  • @sats4eva81
    @sats4eva81 6 ปีที่แล้ว

    Since this is run off a battery, how does that look for a busy area like the front door and the reed switch? I don’t see a deep sleep implemented so what is battery life like?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      It's not running off a battery. The NodeMCU is running off a wall adapter, and then powering the doorbell via the 3v3 pin.

  • @andreimicosovici1482
    @andreimicosovici1482 5 ปีที่แล้ว

    Hi. Thank you for all your shared ideas. Do you have an idea how to use HA to integrate the 2 way audio communication of the very wide used video wifi intercoms? I spent a lot of time without success. Thank you

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Do you have a link to an example product?

    • @andreimicosovici1482
      @andreimicosovici1482 5 ปีที่แล้ว

      @@TheHookUp sure. One is widely used in our country www.amazon.com/Dahua-DHI-VTO2111D-WP-Outdoor-Indication-Intercom/dp/B07KSJ19SY/ref=mp_s_a_1_fkmr1_1?ie=UTF8&qid=1546792877&sr=8-1-fkmr1&pi=AC_SX236_SY340_QL65&keywords=dahua+door+intercom+video+wifi
      And the second:
      www.ebay.com/itm/Slinex-WiFi-Wireless-Video-DoorBell-Best-Design-Doorbell-Camera-/162891625397?nordt=true&rt=nc&_trksid=p2349624.m43663.l44720#vi__app-cvip-panel

    • @andreimicosovici1482
      @andreimicosovici1482 5 ปีที่แล้ว

      @@TheHookUp Can you please give some time to this subject? Thank you

  • @nebhead77
    @nebhead77 6 ปีที่แล้ว

    How is the battery life with this? Or do you have the chime plugged into the wall?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      I've got it plugged in, battery life would be bad with this configuration (the ESP is always on). You could make a battery version with an ESP-01 if you wired the LED up to the reset pin and just had it deepSleep until the chime.

  • @mahmahmahmuh
    @mahmahmahmuh 5 ปีที่แล้ว

    Great video!
    I have a different wireless door-bell, and I can't for the life of me get PIN D0 to read the LED correctly. What baffles me is, that when I measure with a multimeter between LED + and - I always get ~ 1 V. I had it working almost correctly, but only when I silence the speaker with the D4 -> transistor (which works flawlessly). I can't seem to find anywhere on the PCB, where I have ~ 0V when the bell isn't ringing and more when it is. Any tips?

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Can you branch off the + lead of the LED?

    • @mahmahmahmuh
      @mahmahmahmuh 5 ปีที่แล้ว

      I didn't manage to find a spot anywhere near the LED, but somewhere behind the IC, there was a diode (not an LED, an actual zener-diode), and probing around, this proved to be a nice spot to tap in. So, I got it working in the end! Oh, and great video BTW, the turn off/on of the speaker is brilliant :)

  • @stevecarter5758
    @stevecarter5758 5 ปีที่แล้ว +1

    Does anybody know if it's possible to trigger the chime from MQTT rather than/as well as the button press?

    • @ardonbailey2654
      @ardonbailey2654 5 ปีที่แล้ว

      Wondering the same thing. Were you able to get it to work?

  • @Ghust2
    @Ghust2 4 ปีที่แล้ว

    Hi Rob! Just made this project, was super fun (and taught me that "transistors" aren't some fancy magic things but pretty simple stuff) to do!
    Still have one question: how would you make the doorbell ring over MQTT?
    We want to use our current doorbell button so I'm wondering where you'd simulate the button press.
    Ideally I'd hook up the button to a shelly1 and have that send an MQTT message.
    Any ideas?

    • @dablet
      @dablet 4 ปีที่แล้ว

      if your existing doorbell has an LED that turns on when the button is pushed, attach the MCU to that LED. pin D0 goes to 1 end of the LED+, pin ground goes to the other end of the LED-. now if that does not work in HA, swap the LED terminals. all you need is to add this code in your configuration.yaml:
      sensor:
      - platform: mqtt
      name: "Doorbell"
      state_topic: "doorbell"
      expire_after: 10

    • @Ghust2
      @Ghust2 4 ปีที่แล้ว

      @@dablet but that would not allow me to send an mqtt message to ring the bell, would it?

    • @dablet
      @dablet 4 ปีที่แล้ว

      @@Ghust2 oh that part i dont know. for my house, i just need to know if someone rang the doorbell. once rang, HomeAssistant will flash the lights on the 2nd and 3rd floor because we cant hear the doorbell.

  • @drreality1
    @drreality1 5 ปีที่แล้ว

    Huge thanks to you sir.
    Also, I'd be ever so grateful if you could kindly do this tutorial using node- red please
    Thank you again

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      th-cam.com/video/SuoSXVqjyfc/w-d-xo.html

  • @PK-bq1jv
    @PK-bq1jv 5 ปีที่แล้ว

    If using arduino to upload your code to the ESP, what board do you select? I purchased a similar ESP to yours but, mine has the CH340G serial adapter. I'm using Board: Generic ESP8266, flash size 4M 3 Spiifs, CPU 80, UL Speed reduced to 9600. I followed your troubleshooting ESP vids but, no luck. Keep getting the following errors:
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Can you post a link to the ESP you are using?

  • @Surbitron9000
    @Surbitron9000 5 ปีที่แล้ว

    Really great tutorial. Thanks for sharing. Mine is working well on my LAN but I notice the NodeMCU is also presenting as an insecure access point named AI-Thinker-*** with DHCP and Bonjour services on the default IP (4.1). Is there a switch in the code to disable this once it acquires an IP from an external access point? Thanks again.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Add:
      WiFi.mode(WIFI_STA);
      in the wifi configure section. I left it out by accident. I actually have a function in my personal code that allows me to change the ssid by connecting directly to it, but I left it out of this sketch because I didn't want to add extra libraries.

    • @Surbitron9000
      @Surbitron9000 5 ปีที่แล้ว

      Cool, thanks.

    • @Surbitron9000
      @Surbitron9000 5 ปีที่แล้ว

      Cool, thanks.

  • @jtube3000
    @jtube3000 5 ปีที่แล้ว

    You reading comments on an older video is probably a long shot, but I was wondering if you are still happy with your doorbell? My implementation is different than yours -- using my "doorbell" as an alert button that sends a voice notification to the networked speakers throughout the house (think "Help! I've fallen and I can't get up.") -- but the hardware components are exactly the same as yours.
    Anyway I get one or two spurious notifications every day when the button was not pushed. The doorbell receiver is being occasionally triggered by the 433MHz motion detector on my front porch and I don't know what to do about it (other than remove the motion detector). Any ideas?
    You did a great video and I really like this project, but I can't really use it as an alert mechanism when it gives a couple of false alarms every day.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      I did have an incident where a motion detector was triggering the doorbell, after I figured it out and re paired the doorbell and haven’t had any other issues

    • @jtube3000
      @jtube3000 5 ปีที่แล้ว

      That seemed to fix it. Have gone 48 hours now without a false alert. Thank you! I didn't even realize the transmitter/receiver could be re-paired. Should have actually read the manual when I received the doorbell. :-) And yes, figuring it out was the hard part. I went down 2 other rabbit holes of investigation first before I figured out the RF motion detector was involved.

  • @redbad
    @redbad 5 ปีที่แล้ว +1

    Nice video Rob!
    Does this doorbell work on 433mhz?

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      It is an RF doorbell, but it doesn't show up on my RF bridge, so probably not 433mhz.

    • @redbad
      @redbad 5 ปีที่แล้ว

      @@TheHookUp Thanks. Do you still recommend this doorbell? I think you metioned something about it on your last livestream but can't remember exactly what was it.

  • @chuc2rk
    @chuc2rk 5 ปีที่แล้ว

    Dose nodered needed for this guide

  • @skeepskeeperson
    @skeepskeeperson 6 ปีที่แล้ว

    So I have attempted this project with an Adafruit Huzzah ESP8266 and mostly everything works but the Audio - Silent / Sound. I am unable to mute the sound at all.
    So, I have a question that didn't seem to be covered in the video. Does the original board's sound switch need to be removed? It didn't look like you removed it from the split second view of the finished product that the video showed. If it didn't need to be removed (which I didn't and managed to solder the NPN resistor fine) I just may have my Emitter / Collector incorrect.

    • @skeepskeeperson
      @skeepskeeperson 6 ปีที่แล้ว

      Nevermind, I see that you never connected the base to the back of the board. I just ended up de-soldering the base from the board and re-soldering just the wire to the base.

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      oh, yeah, I was actually worried about that on the diagram. I couldn't figure out a good way to show that there was no connection there.

    • @Kipperfoot1
      @Kipperfoot1 6 ปีที่แล้ว

      Hi, I'm having the same issue. Can you explain again how this is configured and what happens to the legacy switch again please? Many thanks for the vids.

    • @DavidKomando
      @DavidKomando 6 ปีที่แล้ว +1

      Legacy switch stays. NPN transistor's base is not connected to the board at all. Just connect the base to the wire.

  • @stevecarter5758
    @stevecarter5758 6 ปีที่แล้ว +1

    Ran into a small problem with this. When I connect the base of the transistor to the nodemcu, the chime stops sounding. I can turn the chime on and off through HA and can see through serial monitor that the silent/audio messages are coming through but it makes no difference to the audio output (or lack of) of the chime. Either the nodemcu is not sending the high/low signal or there’s something wrong with my circuit. I’ve replaced the transistor, same problem and both old and new transistors test ok on my multimeter.
    Any ideas what to try next?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      Do you have the base connected to the board? It should not be soldered to the board.

    • @stevecarter5758
      @stevecarter5758 6 ปีที่แล้ว

      Thanks for the reply. No, only the emitter and collector are soldered to the board. The base is connected only to d4.
      OK, after a little more testing...
      With the board switch set to chime and led:
      If I power up the nodemcu with d4 attached, i can get no sound out of the chime, no matter what state the switch in HA is set to. If I disconnect d4 from the doorbell board the chime remains silent.
      If I power up the nodemcu with d4 disconnected, the chime sounds. If i then connect d4 the chime still sounds no matter what state the switch in HA is set to.
      With the board switch set to led only:
      If I power up the nodemcu with d4 attached, i can get no sound out of the chime, no matter what state the switch in HA is set to. If I disconnect d4 from the doorbell board the chime remains silent.
      If I power up the nodemcu with d4 disconnected, the chime is silent. If i then connect d4 the chime works as it should and is silent if the switch is off in HA, when I flip the switch in HA the chime sounds.
      So, it looks like I can get it to work as it should but only by connecting d4 AFTER the unit is powered up and only if the board switch is set to LED only.
      Is there a pinout for the 3 position switch anywhere?
      Steve

    • @stevecarter5758
      @stevecarter5758 6 ปีที่แล้ว +2

      Fixed. I altered the code to use d2 instead of d4 as the silent pin. Reflashed the nodemcu and it’s all now working properly. I found a site where they’d tested all of the gpio pins on a nodemcu during boot and there was only d2 and d3 that didn’t go high or fluctuate during boot so I thought I’d swap to one of those two. I can only think that this fluctuation was screwing up the transistor somehow.
      Now to get iOS notifications working...

    • @vinokurovalexey
      @vinokurovalexey 5 ปีที่แล้ว

      Thank you for this comment! I've been struggling to figure this out.

    • @RAFAEI_
      @RAFAEI_ 5 ปีที่แล้ว

      @@TheHookUp Thanks. I had it soldered. Works flawlessly now

  • @BryantHayward67
    @BryantHayward67 3 ปีที่แล้ว

    It would be awesome to post an updated video with a D1 Mini 32 and video camera integration for those of us who don't already have a camera and want something a little more like a Ring doorbell...

  • @NonnofYobiznes
    @NonnofYobiznes ปีที่แล้ว

    It's been almost 5 years. Surely this ca be improved.

  • @sonybansi
    @sonybansi 6 ปีที่แล้ว

    Can i use Wemos D1 mini or must use ESP8266 NodeMCU ?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      yes, a wemos D1 will work fine.

  • @grzeg8102
    @grzeg8102 5 ปีที่แล้ว

    hello! nice and helpful videos. Would you consider a video about programming a Sonoff Basic to be controllable via MQTT for Home Assistant. All this to be done with esphomeyaml? While I discivered esphomelibe recently and I think it has a great potential to make the programming process easy for many people without ESP programming experience - I also think it's not enaough documented. I'm a beginner in it and I'm not able to prepare a config file in esphomeyaml that would replicate Sonoff's default software - report relay state changes to HA and control the relay also locally via the in-built switch. Sonoff devices are very popular in some regions of the world, so there's already a demand for the know-how abput reprogramming them for specific needs or adapting their software to use them with some home automation systems like Home Assistant.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Check out DrZzs on TH-cam. His videos are very easy to follow.

  • @rottison
    @rottison 6 ปีที่แล้ว

    fantastic videos they are a great asset. Any chance you have a Koi pond? would be great if you could make a controller for one that would report back to Hassio

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      I don't have a koi pond, salt water reef tanks, but no koi poind. What are you trying to measure on your controller?

    • @rottison
      @rottison 6 ปีที่แล้ว

      I want to measure temp and water level in 2 or 3 40 gallon barrels and be able to turn on my uv and shut it off. If water stops coming in from the main line I need to shut off the UV so it does not over heat if this can be done with a board that has a wireless chip on it would be great but to be honest I can not program a Dorito I know on other forums users have asked for this kind of thing regular controllers for a pond is like buying one for a reef tank for my 180 reef I use this one www.robo-tank.ca/ be cause I know the guy who made it

  • @respaceits2283
    @respaceits2283 6 ปีที่แล้ว

    Can we set up the door open/close only through the hassio add on method? If so does it have a battery config so that it programs deep sleep? If not it may be a good thing to show if you do an “customer feedback review video again” :)

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      ESPHomeYAML does have a deepsleep function, but I haven't checked it out yet: esphomelib.com/esphomeyaml/components/deep_sleep.html

  • @ardonbailey2654
    @ardonbailey2654 5 ปีที่แล้ว +1

    If I wanted to trigger the doorbell from mqtt, how would I go about doing so?

    • @Ghust2
      @Ghust2 4 ปีที่แล้ว +1

      Did you ever figure this out? :)

    • @ardonbailey2654
      @ardonbailey2654 3 ปีที่แล้ว

      Looking for this too

  • @gjlp25
    @gjlp25 5 ปีที่แล้ว

    Awesome! I followed your instruction but i get a weird thing. It connects to mqtt just fine, but almost immediately disconnect and reconnects agains. And this sequence loops. Is there something i'm missing here?

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Do you have 2 clients with the same client ID?

    • @gjlp25
      @gjlp25 5 ปีที่แล้ว

      Good one, i'll check and let you know

    • @gjlp25
      @gjlp25 5 ปีที่แล้ว

      @@TheHookUp Seems not. I have a "checkln/DoorbellMCU" an "doorbell" and "doorbell/commands". The doorbell chime switch in hassio does not stay in the "on" position when pressed. It publishes the topic Audio Doorbell. The "checkln/DoorbellMCU" publishes the "Reconnected" message every 10 or so seconds..

  • @miticanicu
    @miticanicu 5 ปีที่แล้ว

    Sir, the messages or alerts arriving on the phone are also audible warning
    Thank you.

  • @jimb032
    @jimb032 5 ปีที่แล้ว

    For a more fun way to do it without tearing the receiver to bits, watch Andreas Speiss video with the SDR and the weather station. You can pick up that 433mhz signal and send it through to MQTT! You can also do it with those sensors you bought too without the Sonoff bridge. But I did your way too on that same brand wireless driveway sensor before I discovered how easy it was to intercept all these 433mhz signals...

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      I was also trying to be able to control whether the doorbell chime was audible.

    • @jimb032
      @jimb032 5 ปีที่แล้ว

      OK, I didn't think to automate the speaker too, I just put a switch because most all the time I left it off except to debug. But in the end, that's why I ended up getting rid of the receiver because it was easier to just do it all with existing software I had already written. I used the SDR dongle, intercepted the signal, and played the chime through Alexa via bluetooth. This way I can selectively turn it on and off, same way you did. I already had the SDR running for my weatherstation, so I need no additional hardware at all to do it either.
      You MAY be able to even intercept that signal with the Sonoff RF bridge, I haven't tried that. I'll bet it can work though. Interesting experiment to try.
      The SDR dongle is a real fun project to play with - you should try it. And with small modification to the code, you can about intercept anything.

  • @marmao78
    @marmao78 3 ปีที่แล้ว

    I would like to propose a challenge for you. I think your video to integrate a doorbell is fantastic. My challenge is to add face recognition to your doorbell project. There are several codes available for face recognition and after that, use Alexa to announce who is outside. I think you are the best person to do that. I will be happy to see your solution.

  • @zephsmith3499
    @zephsmith3499 5 ปีที่แล้ว

    What is the 2N2222 transistor actually doing? Shorting the speaker? If so, is that safe?

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      it's "flipping" the switch on the PCB. It completes the ground circuit of the speaker.

    • @OrlandoCombita
      @OrlandoCombita 5 ปีที่แล้ว

      The Hook Up but the circuit is not completed also when led goes ON anyway?I didn’t quite understand this part of the transistor.

    • @willhutcheon4144
      @willhutcheon4144 5 ปีที่แล้ว

      Zeph - The transistor is an "electronic" switch, just like the "mechanical" switch on the original hardware design. Interrupting the ground connection to the speak (" aka cutting the wire ") is not a SHORT - it is the OPPOSITE - OPEN circuit (infinite resistance). The transistor either completes the circuit (NO RESISTANCE/MINIMAL) or OPENS the circuit (INFINITE resistance) and no electrical connection. I hope this helps.

  • @Drogfild
    @Drogfild 6 ปีที่แล้ว

    I believe you can use filters in ESPhomeYAML code also. So you could filter multiple button presses there also?

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      I tried that, you can't filter a binary_sensor, only a sensor, and setting up a custom sensor was way more detail than I was looking to include in the video (it's actually easier to just use arduino if you're going to use custom sensors).

    • @ottowinter7995
      @ottowinter7995 6 ปีที่แล้ว +1

      In 1.7.0, esphomeyaml will have binary sensor filters support :) I'm currently writing all the docs for that release and hoping I can push the release today 🎉
      Edit: + also RF receiver/transmitter support :)

    • @Drogfild
      @Drogfild 6 ปีที่แล้ว

      So I was just a bit early ;)

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      Awesome!

  • @ianrobertson912
    @ianrobertson912 5 ปีที่แล้ว

    I am ready to do this project. Ordered Wireless Doorbell and has a Node MCU (not sure what is the difference but what I have is a "Wireless module NodeMcu Lua WIFI Internet of Things development board based ESP8266 CP2102 with pcb Antenna and usb port" and hope it would work. This is the same NodeMCU I have used to create 5x of Ben's multi-sensor nodes
    From video I understand that I could skip the door sensor (I already have broad link door sensor on my front door)
    My questions
    a) can I skip 2n2222 NPN Transistor as I am keen on Audio Doorbell/Silent Doorbell function and would like to minimise soldering.
    c) if I skip the transistor and door reader do I need to change the Arduino code or can I just upload the full code from your project. I know what I need to add to configuration.YAML in HA. My experience in creating Ben's Sensor nodes is that I could omit adding physical sensor and still could upload the full Arduino code to NodeMCU and only omit relevant code in HA.
    So in short I am only going to use the doorbell to send a mqtt message when doorbell is pressed. I have tested picture capture and notifying with Blue-iris and pushbullet. Just need to use your project as a trigger.
    Thanks in advance.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว +1

      The NPN transistor is what controls the silent/audible doorbell, so if you skip it that part won't work. The code doesn't need to be modified at all, you can leave out as many of the hardware parts as you want and the code will still function.

    • @ianrobertson912
      @ianrobertson912 5 ปีที่แล้ว

      @@TheHookUp thank you very much for the carification

    • @colmtobin6876
      @colmtobin6876 5 ปีที่แล้ว

      @@TheHookUp as a follow up to this question, if I didn't want a Reed switch or the option to turn sound off (literally just want a notification with a camera snap from HA to my android phone when someone presses the bell), can I omit the transistor, and wires from D3 and D4 on nodeMCU?

  • @lennposthumus9630
    @lennposthumus9630 5 ปีที่แล้ว

    Is a pull down resister necessary?

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      You mean other than the built in pulldown on the nodemcu?

  • @JimmieMcCullough
    @JimmieMcCullough 5 ปีที่แล้ว

    So i flashed my NodeMCU with tasmota and did the rest of the build as instructed. I get the notifications just fine, but can't get the sound to work. I tried changing the transistor around every way I could think and nothing. I have pin D4 as a relay that I tried switching on and off and get nothing. When I remove D4 from the transistor base, the sound plays, but D4 connected, silence.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Are you using the transistor I linked?

    • @JimmieMcCullough
      @JimmieMcCullough 5 ปีที่แล้ว

      @@TheHookUp Yep. Didn't notice until my 3rd time watching the video that I had to add the transistor. I gave up and am just using the switch on the back to manually turn the sound on/off. I disconnected the D4 pin and am just using the MQTT notifications.

    • @willhutcheon4144
      @willhutcheon4144 5 ปีที่แล้ว +1

      @@JimmieMcCullough -- Pin D4 is a "special boot" pin that must be HIGH on boot for the ESP8266 chip to boot your code properly. If this pin is LOW on boot, your code will not execute. The same can be said of PIN D8 - Must be kept LOW during boot if it is used for a sensor. As other has mentioned above, swap D4 for PIN D2 - change the reference in the sketch, and it will work fine. --- This is a very common mistake I also learned the hard way on the Wemos D1 Mini board - very similar.

  • @ameggs
    @ameggs 6 ปีที่แล้ว +1

    I like this!! Great video!
    Can you recommend any tutorials, sources , websites etc to learn arduino?

    • @VAKUL-DC
      @VAKUL-DC 6 ปีที่แล้ว +2

      here on YT - "aurdiuno for absolute beginers"

  • @maans2001
    @maans2001 4 ปีที่แล้ว

    Hey Rob (Sorry if I spelled your name wrong) , I want to make a DIY project
    I'm not experienced with Arduino and I need some guidelines , you seem like someone who knows how to tinker with electronics
    It would be awesome if you can help me out
    Is there a way I could reach you in a private chat ?

  • @ianrobertson912
    @ianrobertson912 4 ปีที่แล้ว

    Hi Rob
    I had this working for many months. I stooped updating Hass.io from firmware 0.74 for many months because I was busy moving places and I did not want to deal with break in changes changes etc and then updated to 0.84 and now running latest hass.io.
    My doorbell since I updated hass.io broke and I spend lot of time to analyse and fix it but no luck. I used MQTTlense and I can see that MQTT message "Ding" get transmitted when I press the doorbell. Also the the sensor
    sensor:
    - platform: mqtt
    name: "Doorbell"
    state_topic: "doorbell"
    expire_after: 10
    seems to be working because I can see in the logbook the state change entry at the time of pressing the door bell - for instance "7.15PM: Doorbell changed to unknown"
    However for whatever automation below does not trigger
    - alias: 'Doorbell_Notify'
    trigger:
    platform: mqtt
    topic: doorbell
    payload: 'Ding'
    action:
    - service: camera.snapshot
    data:
    entity_id: camera.dafang_extrance
    filename: '/config/temp/ENTRANCE.jpg'
    - service: notify.mypushbullet
    data:
    title: Doorbell
    message: 'Check who has come'
    data:
    file: /config/temp/ENTRANCE.jpg
    When if I change the trigger to fixed time or to my broadlink door sensor the automation trigger but for some reason it does not trigger for the following MQTT as per your original instrction
    trigger:
    platform: mqtt
    topic: doorbell
    payload: 'Ding'
    I could not find any breaking changes relating to it to get working with latest version of HAss.io. So my question is for you is it still working. I did not do any changes to the NodeMCU and remain same before. Many thanks

    • @TheHookUp
      @TheHookUp  4 ปีที่แล้ว

      Mine is working, but I moved my automation to node-red long ago.

    • @ianrobertson912
      @ianrobertson912 4 ปีที่แล้ว

      @@TheHookUp Thanks Rob. I am not very good with Node red so I took a shortcut.
      I converted action part of my automation as a script and got rid of automation. Used input MQTT node to trigger service (script). It works now.
      So something has changed in HA to stop triggering automation based on MQTT payload
      I better spend more time on node red because HA is breaking things
      Thanks
      Sanjeewa

  • @PK-bq1jv
    @PK-bq1jv 5 ปีที่แล้ว

    Excellent videos. I'm trying to do this build but having some issues: Can you please explain the MQTT server port and MQTT server Address referenced in the arduino code?

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      If you don't have an MQTT server for your home automation platform (Most people who run home assistant also run an MQTT server on the same RaspberryPi), you can use an online MQTT broker like cloudMQTT or io.adafruit.com.

    • @PK-bq1jv
      @PK-bq1jv 5 ปีที่แล้ว

      I was actually referring to the settings needed in your arduino codoe for both the Server and port when using HA. I also am having troubles getting your arduino code to compile.. I'm sure that this is a problem on my side of things - perhaps not understanding how to include some of the includes. I have successfully connected to the 8266 with the blink demo. Lastly- a thought to improve your project- why not include a temp sensor?? This will be my variant if I can get it to work ;) Thanks again- your channel is great!!

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Adding a temp sensor is super easy, only requires about 10 lines of code.
      The MQTT server port and address will vary based on your personal setup. If you're running HA you probably use 1883 for port and the server address is the IP of the raspberry pi that runs your HA.

    • @PK-bq1jv
      @PK-bq1jv 5 ปีที่แล้ว

      Thx.. makes sense and I'm down that path (looking @ the Brauh multisensor) Still having issues with compiling the Arduino side though. should I d/l the github links in your code & include them Sketch>include library>add .zip library. I am missing something here.. very sorry.

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Yes, you'll need to put those libraries in to be able to compile.

  • @JanSeewald
    @JanSeewald 6 ปีที่แล้ว +3

    MQTT SWITCH :D

  • @JasonWho
    @JasonWho 5 ปีที่แล้ว +2

    I bet I could use your WiFi battery powered reed switch design to send a message to HA, which then could send an RF message via Sonoff RF Bridge to the cheap “smart” doorbell you also created. I bought the initial parts for the doorbell, have to figure out exactly how I want to do the wireless reed switches. I love the idea of recessed magnetic ones that I could hide in a door, door trim, or window trim.

  • @lpfigue
    @lpfigue 6 วันที่ผ่านมา

    The pre esphome era. Oh boy

    • @TheHookUp
      @TheHookUp  6 วันที่ผ่านมา +1

      ESPHome was just a little baby when I made this video.

    • @lpfigue
      @lpfigue 6 วันที่ผ่านมา

      @@TheHookUp nowdays is a big monster. The entry bar is a lot lower at diy electronics. Thank you for tqking the time to teach such useful things. Love from Argentina

  • @krdesigns
    @krdesigns 4 ปีที่แล้ว

    Nice tips however the bell is not for sale anymore, is there an alternative bell??

    • @GG-kq6ok
      @GG-kq6ok 4 ปีที่แล้ว

      King Richard indeed! Any suggestions?

    • @krdesigns
      @krdesigns 4 ปีที่แล้ว

      @@GG-kq6ok my guess should be newer 1byone bell??

    • @GG-kq6ok
      @GG-kq6ok 4 ปีที่แล้ว

      King Richard Cant find them in the netherlands..

    • @krdesigns
      @krdesigns 4 ปีที่แล้ว

      @@GG-kq6ok www.amazon.com/dp/B01M3Z1XRV maybe??

    • @GG-kq6ok
      @GG-kq6ok 4 ปีที่แล้ว

      No sellers.. :(

  • @Teleport73
    @Teleport73 4 ปีที่แล้ว

    Thanks for a great guide. I've now successfully achieved a similar result with my 2 mains doorbell receivers. However, I've one concern. I'm now left with the 2 Wemos D1 minis I used still broadcasting their SSIDs as unsecured networks. I'm concerned these may be a security risk, as they obviously contain the WiFi password for my router. Could someone access this info remotely somehow?

    • @TheHookUp
      @TheHookUp  4 ปีที่แล้ว +1

      The short answer to your question is "No, it's not possible". The better answer is add this line to the arduino code in the void setup section:
      WiFi.mode(WIFI_STA);
      It will turn off the broadcast SSID. I went ahead and updated the code on github as well.

    • @Teleport73
      @Teleport73 4 ปีที่แล้ว

      Thanks. Really appreciated.
      I've also now changed the code, so I can flash my 2 doorbell receivers over Wi-Fi. I just added the following code into the void setup.
      // No authentication by default
      // ArduinoOTA.setPassword("admin");
      // Password can be set with it's md5 value as well
      // MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
      // ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");
      ArduinoOTA.onStart([]() {
      String type;
      if (ArduinoOTA.getCommand() == U_FLASH) {
      type = "sketch";
      } else { // U_FS
      type = "filesystem";
      }
      // NOTE: if updating FS this would be the place to unmount FS using FS.end()
      Serial.println("Start updating " + type);
      });
      ArduinoOTA.onEnd([]() {
      Serial.println("
      End");
      });
      ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
      Serial.printf("Progress: %u%%
      ", (progress / (total / 100)));
      });
      ArduinoOTA.onError([](ota_error_t error) {
      Serial.printf("Error[%u]: ", error);
      if (error == OTA_AUTH_ERROR) {
      Serial.println("Auth Failed");
      } else if (error == OTA_BEGIN_ERROR) {
      Serial.println("Begin Failed");
      } else if (error == OTA_CONNECT_ERROR) {
      Serial.println("Connect Failed");
      } else if (error == OTA_RECEIVE_ERROR) {
      Serial.println("Receive Failed");
      } else if (error == OTA_END_ERROR) {
      Serial.println("End Failed");
      }
      });
      ArduinoOTA.setHostname("doorbellR1");
      ArduinoOTA.begin();
      Serial.println("Ready");
      Serial.print("IP address: ");
      Serial.println(WiFi.localIP());

  • @DjLundbladh
    @DjLundbladh 3 ปีที่แล้ว +1

    Make new updated video with a common doorbell! :D

    • @SamPhoenix_
      @SamPhoenix_ 2 ปีที่แล้ว

      You can use any 2xAA powered doorbell receiver as long it has a flashing light

  • @agudgi
    @agudgi 5 ปีที่แล้ว

    I have tried this, minus the Reed switch and option selector, but added a temperature sensor. All appeared good, but couple of hours later the receiver refuses to chime when the bell is pressed. If I unplug the 5v and plug back in again it will work correctly for some time before dying again. The nodemcu appears unaffected. 😩

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Did you make sure you are supplying 3.3v, not 5 to the board?

    • @agudgi
      @agudgi 5 ปีที่แล้ว

      @@TheHookUp yeah.. I originally had a 3.3 connected as described in the video and daisy chained from that on the receiver to my dht22. Later a hooked another 3.3 to the same bridge, thinking it wasn't getting enough mA. All same behaviour

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      Huh, maybe a bad doorbell board?

    • @agudgi
      @agudgi 5 ปีที่แล้ว

      @@TheHookUp sad! More testing... But great video! Thanks

  • @ianrobertson912
    @ianrobertson912 5 ปีที่แล้ว

    I am ready to do my doorbell so was watching the video again. I noted that you were talking about port forwarding for ha, node red, esphome etc etc. I had issues with Duckdns and port forwarding and then having SSL. I then installed NGINX reverse proxy (I did it on a windows 10 machine I have where I run Blueiris software for all my cameras 24x7). I created multiple domains with Duckdns and opened only port 443. when I come on say myha.duckdns.org I get to HA login page, mynr.duckdns.org I get to nodered, mybi.duckdns.org I am taken to Blue Iris log on page etc. It is super fast. I have created openSSL certificates and self signed them for each my my domains and added to NGINX. I also added more security in NGINX (NGINX is as powerful as Apache). There is a NGINX add on for Hass.io but I thought of having NGINX proxy in a different machine. May be something for you / Drzzz to implement and do a video (I am not good with video) as opening multiple ports on router and directly directing to various boxes is not a good thing. Just a suggestion

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      The better way to do it is to set up local dns on your router or even with your hosts file on your PC... I wouldn't recommend forwarding a bunch of ports as it leaves you more vulnerable to hacking.

  • @squalazzo
    @squalazzo 6 ปีที่แล้ว

    thanks, very useful :)
    1 suggestion: take a look at the EspEasy firmware for these type of setups... for example you could have done everything without even writing a single line of code, not in arduino nor in yaml style... you just need to flash the firmware, connect to the web interface, then use it to define your sensors and actuators, connect to mqtt, and it's done... :)
    look the actual list of official supported devices (others are in the forum in test version): www.letscontrolit.com/wiki/index.php/Devices

  • @NVAfilm
    @NVAfilm ปีที่แล้ว

    2:30 isn't that a board view not a schematic?

  • @dablet
    @dablet 4 ปีที่แล้ว

    i wired my MCU as such because i only care about "Ding" according to your advice: i.imgur.com/O2kgN49.jpg
    then in my config.yaml file, i only added this:
    sensor:
    - platform: mqtt
    name: "Doorbell"
    state_topic: "doorbell"
    expire_after: 10
    does not matter which LED i connect to D0, i still see "unknown," not "ding" as in your video. am i missing something in my yaml?

    • @dablet
      @dablet 4 ปีที่แล้ว

      im ok now. your code above is all that is needed. all i had to do was connect the other LED- to ground and it works! thank you

  • @sats4eva81
    @sats4eva81 5 ปีที่แล้ว

    Awesome video, I have a slightly different doorbell kit from 1byone so the board is a bit different. Where do you find info on the board and find all the relevant connections? Is there a site somewhere that has all this? For context this is the doorbell I have : www.amazon.ca/gp/product/B01MDVDE0T/ref=ppx_yo_dt_b_asin_title_o04__o00_s00?ie=UTF8&psc=1

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      I just figured it out by probing around with a multimeter.

    • @nortish
      @nortish 4 ปีที่แล้ว

      @@TheHookUp how would I find the emitter/collector on my board with a multimeter? Not sure when and how much volt I should expect on those points. My door bell seems to feed on about 4V (3xAA).

  • @PihkalTheTihkal
    @PihkalTheTihkal 4 ปีที่แล้ว

    Why not use MQTTgateway, RFlink or an RTL-SDR to pick up and decode the RF signal?
    That's how I interface HASS.IO with my wireless doorbell and wireless smoke alarms, a simple RTL-SDR.
    Works like a charm and RTL-SDR is dirt cheap.
    Paid 6€ for mine, shipping included.

  • @777ThunderMaster777
    @777ThunderMaster777 3 ปีที่แล้ว

    These days the rate limiter can also be programmed on the ESPHome itself using the 'throttle' filter.
    esphome.io/components/sensor/index.html#throttle

  • @elroyterpstra9828
    @elroyterpstra9828 4 ปีที่แล้ว

    it seems that my layout has changed. Can this doorbell still be used ? See: www.mupload.nl/img/2duuys5mw87xz.jpg

  • @mattedwards7581
    @mattedwards7581 3 ปีที่แล้ว

    Hey Rob, I am trying to follow this video, but I have the UK plug version, and can't work out where to connect the 2N2222? Here is a link to an image of my board..
    simpletosmart.com/images/Doorbell_QH-823AK_Front.jpg
    simpletosmart.com/images/Doorbell_QH-823AK_Back.jpg
    Thanks-in advance! Great video again!

  • @BorntobeWild.
    @BorntobeWild. 5 ปีที่แล้ว

    I felt like you where talking in a different language. But thanks for sharing.

  • @MrJgonzalez09
    @MrJgonzalez09 5 ปีที่แล้ว

    Cant i just pay u to do it for me!!

  • @tommh44
    @tommh44 5 ปีที่แล้ว

    esphomeyaml looked interesting so I gave it a try. All went well until the upload. After a lot of activity I got the following: INFO [esphomeyaml.espota] Starting on 0.0.0.0:6053
    INFO [esphomeyaml.espota] Upload size: 345696
    INFO [esphomeyaml.espota] Sending invitation to doorbell.local
    ERROR [esphomeyaml.espota] Failed
    ERROR [esphomeyaml.espota] Host doorbell.local Not Found
    what did I do wrong

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว

      doorbell.local seems like a strange address, was it trying to do an OTA flash?

    • @tommh44
      @tommh44 5 ปีที่แล้ว

      OOPs Sorry, I did not notice that the default was OTA. I changed that and all is OK. Based on my experience with your work, I knew that it must be my mistake. Thanks for all you do. BTW, you made a quick comment about using the MQTT add on instead of a separate MQTT broker so I changed. Much better... Thanks again.

  • @sonybansi
    @sonybansi 6 ปีที่แล้ว

    C:\Users\WinPC\Desktop\Doorbell_CONFIGURE\Doorbell_CONFIGURE.ino:1:67: fatal error: SimpleTimer.h: No such file or directory

    • @TheHookUp
      @TheHookUp  6 ปีที่แล้ว

      in the Doorbell_CONFIGURE.ino file each of the libraries listed at the top has a download link next to them. You'll need to add those 3 function libraries (simple timer, pubsub, and arduino OTA)

  • @wjn777
    @wjn777 2 ปีที่แล้ว

    Very nice project and thanks for sharing. I bought this doorbell of Amazon, but I see the board has a slight different design to yours, the serial number is also different - mine is "QH-823A-19". The ground and VCC wires enter on the right side as opposed to the left side.
    What is strange is I measure 3V+ between the board ground wire and the LED positive wire, when the LED is not triggered. If I measure between the LED positive and negative it looks like expected, 0V when not triggered
    As I see it, this won't work, since the wire from the LED + will be a high signal all the time
    Am I missing something?
    Here is my PCB:
    imgur.com/a/VTwrX8k

    • @wjn777
      @wjn777 2 ปีที่แล้ว +1

      For anyone else facing this issue:
      The LED is connected between V+ and the GPIO of the microcontroller on the PCB. The negative LED wire is not connected to ground, so the method suggested in this video won't work for this revision of the PCB.
      Whar does work, is to use an optocoupler, like the PC817C, with a resistor (I used 56E) on the input, connecting the led positive and negative, then I run the output to a RC filter and a 74HC14 IC, then on to a power latch circuit using a Si4599 (P / N channel mosfet) that acts as a power latch circuit. The ESP8266 is powered down, it is powered on when the LED flashes, and sends the MQTT message, then shuts itself down using the power latch. I don't power the doorbell from the ESP8266, I power the doorbell from a single LifePo4 3.2V cell, as well as the ESP8266 when it is powered on.

  • @ianrobertson912
    @ianrobertson912 5 ปีที่แล้ว +2

    Sorry to say your videos are too advanced because your explanations just go over my head. I am saying this even where I am considered to be quite tech savvy and you are really pitching things for people that are programmers with good electronics background. This is where we miss Ben a lot. He explain things in a way that most people could follow. Please slow down and explain - I will elaborate it with my question below
    I have HA and Blue Iris set up. Blue Iris sever has 9 cameras and integrated to HA too. I also have Node Red and SSL with NGINX -reverse proxy
    Now I do not want door sensors because I already having Broadlink S2 kit working with HA. So what I need is a method to give a state change to HA when door bell is pushed and then capture picture clip from my Blue Iris server and send as a notification. Blue Iris could do notifications too so I may want BI or HA to do this on door bell press. I was thinking of Amazon dash too but being IFTT dependent it would take more time. I also was thinking of Boradlink S2 door sensor in a housing to act as a door bell with two springs to detach and then when button press to create closed signal in HA to trigger rest. But your method is more - let me say professional.
    Now if I am to use your doorbell only without door sensor do I need to add the resister? Well I do not understand from your explanation. Also which part of the code in Arduino should I eliminate as I do not want door sensor? Also which part link to capturing picture from the camera and using messaging to send the MMS?
    Ben in his videos explain each part objective and explain things in very simple terms
    Well I am not having a go at you. I have been very keen to learn node red from your series but gave up altogether as you are not pitching in a level that someone new could understand concepts. I suggested a dummies series for node red for these is very little videos on node red. Now I found this person's video series (OpenHome Automation) th-cam.com/channels/B1Qn68LM2cNNNOS2k_j65w.html and he explain things like Ben so that more people could understand and be motivated to try. Well after following him I may be able to come and figure our your node red videos as without that I am as lost as any. As I said I am considered by many as very tech savvy but not a programmer nor electronics engineer
    I am not starting an argument here. Just some comments so that you could increase your user base and more people can be benefited from your good work (and no one would argue on that )
    Thanks

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว +3

      I hear ya. I agree that my videos do require a decent amount of background knowledge. One thing that I have tried to keep constant on my channel is keeping my videos well scripted and produced. I want to keep them relatively short, so I do cut out things that I think most people already know. I also try not to repeat the same thing in multiple videos, so I often link to others (like my node red video). I'm sorry to hear that it's not easy for you to follow.
      Here's the link you are looking for to include a picture in your SMS: YOURHASSIOADDRESS:8123/api/camera_proxy/camera.front_door?api_password=YOURPASSWORD
      It was in the github link in the description.

    • @ronanderson3884
      @ronanderson3884 5 ปีที่แล้ว +1

      I completely agree, as to where I am regarding all this home automation stuff. I've watched A LOT of videos, which start out basic and step by step, but QUICKLY start talking about code and making references to hardware stuff. Yikes. I then an lost and get discouraged. I need Step by step from the beginning of things. WHERE CAN I GO TO LEARN THAT???
      I watched Dr Zzzs recent video talking about home automation introduction and the 3 levels of hub integration. Loved that video... Thing is, the 3rd option sounded most appealing to me, but Now What? Where can I go to start learning The Very Basics in order to start putting a system together?

  • @l0st.in.translati0n91
    @l0st.in.translati0n91 4 ปีที่แล้ว

    does someone want to build me this and ship it to me? will pay all of the expenses

  • @michaelosmon
    @michaelosmon 3 ปีที่แล้ว

    I guess I have to go get a computer. It’s all your fault....and Dr Zzs

  • @rasalghul1904
    @rasalghul1904 5 ปีที่แล้ว

    Nice Video, but dont think its that good to implent those into

    • @TheHookUp
      @TheHookUp  5 ปีที่แล้ว +1

      As something of a script kiddie myself (I run the white hat hacking club at the school where I teach), the URL is embedded in the notification which is sent via https, it is not sent in in plaintext and cannot easily be read. I'd love to be able to use the api token for this, but unfortunately the token shifts every image, so you'd need to be able to have it be dynamic.