Close Menu
  • Home
  • Cd-player
  • Headphones
  • Microphones
  • Mp3-players
  • Receivers and Amplifiers
  • Speaker
Search

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

[wpforms id="14044" title="false"]
What's Hot

Disney Mixes it Up with Pint-Sized MP3 Player

21 June 2024

Onkyo C-N7050 review | What Hi-Fi?

21 June 2024

The best gaming speakers of 2024: Expert recommended

21 June 2024
Facebook X (Twitter) Instagram
Facebook X (Twitter) Instagram
Dutchieeaudio
  • Home
  • Cd-player
  • Headphones
  • Microphones
  • Mp3-players
  • Receivers and Amplifiers
  • Speaker
Dutchieeaudio
Home»Mp3-players»Build a DIY Smart Doorbell for Home Assistant with Push Notifications
Mp3-players

Build a DIY Smart Doorbell for Home Assistant with Push Notifications

dutchieeaudio.comBy dutchieeaudio.com27 October 2023No Comments7 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Share
Facebook Twitter LinkedIn Pinterest Email

A wise doorbell is a handy and revolutionary approach to improve your comfort and residential safety and discover who’s at your door, even when you’re not at dwelling.



Utilizing two ESP8266 boards, we’ll construct a completely practical Wi-Fi sensible doorbell that integrates with House Assistant sensible dwelling automation software program and sends push notifications to your smartphone at any time when somebody rings the doorbell. This works each regionally and remotely.


Issues You Will Want

You have to the next elements to construct the DIY Wi-Fi sensible doorbell.

  • 2 x ESP8266 microcontroller boards, corresponding to NodeMCU or D1 Mini, will function the mind of the doorbell
  • Doorbell swap
  • Micro USB energy provide
  • DFPlayer Mini (MP3 participant module)
  • microSD card (512MB or bigger)
  • 2W or 3W (1″ or 2″ extensive) speaker for the sound output
  • 2.4GHz Wi-Fi community
  • House Assistant server operating on a Raspberry Pi, or you could set up House Assistant on an x86 PC.
  • Jumper wires to attach all of the elements

Step 1: Compile the Firmware

We are going to compile two totally different firmwares:

  • Sensible bell speaker firmware (receiver)
  • Sensible bell swap firmware (transmitter)

To compile the sensible bell speaker and sensible bell swap firmware, comply with these steps:

  1. If not already put in, set up ESPHome in House Assistant: go to Settings > Add–Ons and click on ESPHome.
    install esphome in home assistant
    Screenshot by Ravi. NAR

  2. Click on Open Internet UI after which click on New System.
  3. Identify the gadget something you need. For this tutorial, we known as it “smart-bell-speaker”. Click on Subsequent > Skip this step.
  4. Then choose ESP8266 board from the choices after which click on Skip.
    create a new project in esphome home assistant

  5. This may see a brand new configuration named smart-bell-speaker.
  6. Equally, create yet another configuration and title it smart-bell-switch.
  7. As soon as the configurations are created, open the smart-bell-speaker configuration by clicking on the Edit button.
  8. Then paste the next code beneath the captive_portal: textual content.
     uart:
      tx_pin: GPIO3
      rx_pin: GPIO1
      baud_rate: 9600

    dfplayer:
      on_finished_playback:
        then:
          logger.log: 'Playback completed occasion'

    api:
      encryption:
        key: "kQ5tP73N1pOl6XDYtq5RY15IaPsXjTg2A9g5nzHPejE="
      providers:
      - service: dfplayer_next
        then:
          - dfplayer.play_next:
      - service: dfplayer_previous
        then:
          - dfplayer.play_previous:
      - service: dfplayer_play
        variables:
          file: int
        then:
          - dfplayer.play: !lambda 'return file;'
      - service: dfplayer_play_loop
        variables:
          file: int
          loop_: bool
        then:
          - dfplayer.play:
              file: !lambda 'return file;'
              loop: !lambda 'return loop_;'
      - service: dfplayer_play_folder
        variables:
          folder: int
          file: int
        then:
          - dfplayer.play_folder:
              folder: !lambda 'return folder;'
              file: !lambda 'return file;'

      - service: dfplayer_play_loop_folder
        variables:
          folder: int
        then:
          - dfplayer.play_folder:
              folder: !lambda 'return folder;'
              loop: true

      - service: dfplayer_set_device_tf
        then:
          - dfplayer.set_device: TF_CARD

      - service: dfplayer_set_device_usb
        then:
          - dfplayer.set_device: USB

      - service: dfplayer_set_volume
        variables:
          quantity: int
        then:
          - dfplayer.set_volume: !lambda 'return quantity;'
      - service: dfplayer_set_eq
        variables:
          preset: int
        then:
          - dfplayer.set_eq: !lambda 'return static_cast<dfplayer::EqPreset>(preset);'

      - service: dfplayer_sleep
        then:
          - dfplayer.sleep

      - service: dfplayer_reset
        then:
          - dfplayer.reset

      - service: dfplayer_start
        then:
          - dfplayer.begin

      - service: dfplayer_pause
        then:
          - dfplayer.pause

      - service: dfplayer_stop
        then:
          - dfplayer.cease

      - service: dfplayer_random
        then:
          - dfplayer.random

      - service: dfplayer_volume_up
        then:
          - dfplayer.volume_up

      - service: dfplayer_volume_down
        then:
          - dfplayer.volume_down

  9. Additionally, edit the Wi-Fi SSID and password secrets and techniques along with your Wi-Fi title and password. Make certain the place you will set up the smart-bell-speaker and smart-bell-switch has respectable Wi-Fi community protection.
     wifi: 
        ssid: "MyWiFiName"
        password: "MyWiFiPassword"
  10. Click on Save after which click on Set up.
  11. Select Guide obtain. This may begin the firmware compilation. As soon as compiled, obtain and save the firmware in your system.
    manual download the compiled firmware home assistant

  12. Now open the smart-bell-switch undertaking, change the Wi-Fi secrets and techniques after which paste the next code beneath the captive_portal:
     binary_sensor:
      - platform: gpio
        title: "Sensible Bell Change"
        pin:
          quantity: 4
          mode: INPUT_PULLUP
          inverted: True
        on_press:
          - swap.toggle: relay1
        inside: True

    swap:
      - platform: gpio
        title: "Sensible Door Bell"
        icon: 'mdi:bell'
        id: relay1
        pin:
          quantity: 2
          mode: OUTPUT
          inverted: True

  13. Click on Save after which click on Set up.
  14. Select Guide obtain. After the compilation, the firmware will routinely begin downloading. Save each firmware on the Desktop.

Step 2: Add MP3 Sound Information to a MicroSD card

Take a small-capacity microSD card (as little as 512MB will work). Join it to your PC. Obtain your favourite bell sounds from the web, or you possibly can document your personal or your voice, and save them as MP3 information on the microSD card. Make certain to call these information as 1.mp3, 2.mp3and so on.

Step 3: Flash the Firmware to the ESP8266 Microcontroller

To flash the firmware, join the NodeMCU or D1 Mini to the PC utilizing a micro USB cable after which comply with these steps:

  1. Obtain and launch ESPHome-Flasher device.
  2. Select the COM port after which click on Browse to pick the firmware file you downloaded within the earlier step.
  3. Click on Flash ESP. Await the firmware to flash.
    flash the downloaded firmware on esp8266 boards

  4. As soon as completed, the gadget will routinely connect with the Wi-Fi community.

Observe the identical steps to flash the firmware on the 2 ESP8266 boards.

Step 4: Wiring ESP8266 Board with DFPlayer and Speaker

Confer with the next diagram to wire the DFPlayer with the ESP8266 on which you flashed the smart-bell-speaker firmware.

connecting dfplayer speaker to make smart bell speaker

You should use jumper wires to make these connections and use a soldering iron to attach the speaker to the DFPlayer (MP3 participant module).

As soon as every little thing is linked, use two jumper wires (male to feminine) and join them to the smart-bell-switch ESP8266 board. It’s worthwhile to join one wire to the D2 pin on the NodeMCU or D1 Mini ESP8266 board and one other to the 3V or 3.3V pin. Then join the opposite two ends to your conventional push-button bell swap, as proven within the diagram beneath.

connecting the tradional push switch with smart bell esp8266 module

Make certain to double-check the wiring earlier than continuing.

Step 5: Add Units to House Assistant

We have to add each gadgets to House Assistant. To take action, comply with these steps:

  1. Go to Settings > Units & Providers.
  2. You will notice the smart-bell-switch and smart-bell-speaker (if powered on) within the Found Units checklist.
    configure thediscovered bell switch and smart bell speaker

  3. Click on Configure > Submit.
  4. Select an space from the drop-down and click on End.
    choose area to add the smart bell switch and smart bell speaker

  5. Equally, energy on and add the smart-bell-speaker gadget to your House Assistant.

Step 6: Create Automation for Customized Bell Sound and Push Notifications

To allow push notifications to your sensible DIY Wi-Fi sensible doorbell, it is advisable to create an automation within the House Assistant. To create, one, comply with these steps:

  1. In House Assistantgo to Settings > Automations & Scenes.
  2. Click on Create Automation > Create new automation.
    create a new automation in home assistant

  3. Click on Add Set off and choose System.
  4. Select smart-bell-switch after which choose Sensible Door Bell turned on within the Set off drop-down.
  5. Click on Add Motion and choose Name Service.
  6. Select ESPHome: smart_speaker_dfplayer_play from the drop-down.
    create a automation to play bell sound from the speaker when switch is pressed

  7. Within the filesort 1, 2 or 3 for whichever MP3 bell sound you need to play.
  8. Then click on Save.
    save the automation with description

  9. Give the automation a reputation after which click on Save once more.
  10. For push notifications in your telephone, set up the House Assistant app in your smartphone, sign up to your House Assistant, after which click on Add Motion within the automation window.
  11. Choose Name Service and select Notifications: Ship a notification by way of mobile_app_YourPhone.
    enable push notifications on smartphone when someone rings the doorbell

  12. Kind a message that you simply need to obtain within the notification and click on Save.

For those who now push the doorbell button, the bell sound will play from the smart-bell-speaker. You’ll be able to examine the logs for extra particulars if automation is working.

check logs to troubleshoot and fix issues

Make a Sensible Door Bell Smarter

Constructing your personal DIY Wi-Fi sensible doorbell utilizing ESP8266 microcontroller boards and House Assistant is a rewarding and cost-effective undertaking.

As soon as the fundamental performance of the DIY Wi-Fi sensible doorbell is working accurately, you possibly can add a CCTV IP digital camera, and combine with House Assistant utilizing Frigate NVR to create superior dwelling automation and enhance dwelling safety. You may additionally combine a PIR sensor or a contact capacitive sensor as a substitute of a standard doorbell swap. The chances with House Assistant are limitless.

Source link

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleBlack Friday Headphone Deals: What Sales to Expect in 2023
Next Article Elderly Instruments named top small business in the U.S.
dutchieeaudio.com
  • Website

Related Posts

Mp3-players

Disney Mixes it Up with Pint-Sized MP3 Player

21 June 2024
Mp3-players

5 best MP3 players that are making a comeback, in UAE, for 2024

21 June 2024
Mp3-players

How to use an old iPod in 2024

12 June 2024
Add A Comment

Comments are closed.

Top Posts

Disney Mixes it Up with Pint-Sized MP3 Player

21 June 2024

boAt Rockerz 370 Bluetooth Headphones price drops with a 60% discount; Check the offer now on Amazon!

12 August 2023

These are the Bose QuietComfort Ultra headphones — now with spatial audio

12 August 2023
Stay In Touch
  • Facebook
  • YouTube
  • TikTok
  • WhatsApp
  • Twitter
  • Instagram
Latest Reviews

Subscribe to Updates

Get the latest tech news from FooBar about tech, design and biz.

[wpforms id="14044" title="false"]
About Us

This website is all about providing information related to the Audio gadgets thats really usefull for you.
Thank You!

Legal Pages
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Newsletter
  • 1721260058.97
  • xtw183877e04
  • 1721365373.41
  • xtw18387578d
  • 1721377124.95
  • xtw18387ac27
  • 1721459042.14
  • xtw183875992
  • 1721496721.65
  • xtw18387aff1
  • 1721550036.77
  • xtw183870926
  • 1721608772.46
  • xtw183872112
  • 1721642059.15
  • xtw18387ce5c
  • 1721722731.73
  • xtw18387a01c
  • 1721732666.61
  • xtw18387344c
  • 1721826265.77
  • xtw18387b73d
  • 1721845326.54
  • xtw18387c0ab
  • 1721919029.77
  • xtw183879928
  • 1721963272.34
  • xtw18387623a
  • 1722011094.34
  • xtw18387c60d
  • 1722083025.69
  • xtw183870438
  • 1722100133.88
  • xtw183879b14
  • 1722189810.87
  • xtw183879388
  • 1722200970.52
  • xtw18387e13f
  • 1722286548.66
  • xtw18387c911
  • 1722330244.57
  • xtw18387223b
  • 1722380823.25
  • xtw183876d45
  • 1722581742.45
  • xtw183871615
  • 1722954911.47
  • xtw18387aa3e
  • 1722980755.02
  • xtw18387c097
  • 1723109026.22
  • xtw183876bb4
  • 1723163087.89
  • xtw18387cf1b
  • 1723250845.2
  • xtw18387d9ca
  • 1723273213.76
  • xtw18387aa3e
  • 1723638833.62
  • xtw18387d01e
  • 1723903409.92
  • xtw183878a37
  • 1724042563.97
  • xtw18387c379
  • 1724319326.97
  • xtw1838754c5
  • 1724493323.11
  • xtw183875386
  • 1724818263.93
  • xtw18387734e
  • 1724830961.6
  • xtw183877516
  • 1725042692.45
  • xtw183879ace
  • 1725149770.06
  • xtw18387ca3a
  • 1725252354.37
  • xtw1838712d5
  • 1725678567.46
  • xtw18387421e
  • 1726039009.75
  • xtw18387d393
  • 1726238764.3
  • xtw1838794e1
  • 1726474254.94
  • xtw183873622
  • 1726640092.34
  • xtw18387e24b
  • 1726703235.82
  • xtw18387ef6e
  • 1726757882.84
  • xtw18387cf02
  • 1726873847.52
  • xtw1838797f1
  • 1726943818.71
  • xtw183877557
  • 1726988971.29
  • xtw18387001f
  • 1727102306.75
  • xtw183876e44
  • 1727178650.24
  • xtw18387692f
  • 1727217964.9
  • xtw183870f2a
  • 1727367160.35
  • xtw18387a1fe
  • 1727489615.44
  • xtw183874087
  • 1727524046.0
  • xtw18387013f
  • 1727633578.73
  • xtw18387b30b
  • 1727718636.19
  • xtw18387e053
  • 1727747856.84
  • xtw1838788bb
  • 1727863954.25
  • xtw183878141
  • 1727989549.99
  • xtw1838755b9
  • 1728053558.78
  • xtw183870782
  • 1728369151.96
  • xtw183874350
  • 1728500424.41
  • xtw183874b10
  • 1728552589.46
  • xtw18387ca03
  • 1728625224.51
  • xtw1838702bc
  • 1728751187.75
  • xtw18387757d
  • 1728870534.65
  • xtw18387925b
  • 1728879125.98
  • xtw183873526
  • 1728981920.73
  • xtw183870d8c
  • 1728984906.63
  • xtw18387ac1b
  • 1729006888.26
  • xtw183872102
  • 1729029837.74
  • xtw18387ac41
  • 1729076179.23
  • xtw1838730b5
  • 1729077915.32
  • xtw183872704
  • 1729107985.14
  • xtw18387dae3
  • 1729125669.99
  • xtw183874523
  • 1729161538.19
  • xtw18387b8f8
  • 1729163999.53
  • xtw18387bcd8
  • 1729192096.6
  • xtw18387f074
  • 1729221034.55
  • xtw1838779e3
  • 1729241667.13
  • xtw183875c3c
  • 1729241946.73
  • xtw1838775e7
  • 1729291868.92
  • xtw1838747b1
  • 1729319372.19
  • xtw183874081
  • 1729388868.33
  • xtw18387ae6c
  • 1729441505.34
  • xtw183879e57
  • 1729446349.31
  • xtw18387f348
  • 1729491175.42
  • xtw18387907c
  • 1729521595.82
  • xtw183873b01
  • 1729541278.96
  • xtw18387434d
  • 1729592350.13
  • xtw1838720d2
  • 1729598340.74
  • xtw18387b1fc
  • 1729643099.4
  • xtw183872268
  • 1729675867.44
  • xtw183874802
  • 1729692086.57
  • xtw1838760fb
  • 1729740406.13
  • xtw1838792b0
  • 1729751629.73
  • xtw18387c17e
  • 1729789431.04
  • xtw18387a1e5
  • 1729834050.02
  • xtw1838772fa
  • 1729844321.8
  • xtw183873453
  • 1729892934.59
  • xtw1838731a2
  • 1729912644.94
  • xtw18387cca5
  • 1729945688.04
  • xtw18387f10e
  • 1729987358.72
  • xtw18387cef2
  • xtw18387cef2
  • 1730000634.67
  • xtw18387db22
  • 1730049269.25
  • xtw183877696
  • 1730061953.84
  • xtw18387bf83
  • 1730098342.24
  • xtw1838712c3
  • 1730146293.34
  • xtw18387b0d2
  • 1730163229.75
  • xtw18387404d
  • 1730212279.08
  • xtw183879e23
  • 1730222269.84
  • xtw183874ee6
  • 1730262868.53
  • xtw183879664
  • 1730301901.67
  • xtw18387cd66
  • 1730314858.21
  • xtw183871c38
  • 1730365782.16
  • xtw18387d0e0
  • xtw18387d0e0
  • 1730382039.54
  • xtw18387c8df
  • 1730417848.46
  • xtw18387fb43
  • 1730463628.21
  • xtw183870bf1
  • 1730469942.5
  • xtw183870c22
  • 1730521550.77
  • xtw18387a72b
  • 1730545432.19
  • xtw18387570d
  • 1730574001.64
  • xtw18387daa6
  • 1730623133.08
  • xtw1838705d4
  • 1730623838.1
  • xtw18387ca3b
  • 1730674137.45
  • xtw183878545
  • 1730700578.31
  • xtw18387366f
  • 1730724715.7
  • xtw183876397
  • 1730774909.7
  • xtw18387402e
  • 1730776538.18
  • xtw183870c04
  • 1730824477.34
  • xtw183870279
  • 1730852564.75
  • xtw18387257d
  • 1730874153.36
  • xtw183876092
  • 1730924011.58
  • xtw1838727a7
  • 1730929738.14
  • xtw18387a413
  • 1730977413.06
  • xtw18387b414
  • 1731016072.48
  • xtw18387d868
  • 1731036386.97
  • xtw18387d94c
  • 1731097721.31
  • xtw1838761dc
  • 1731109040.81
  • xtw1838751bb
  • 1731160300.4
  • xtw183879b51
  • 1731202855.59
  • xtw183879680
  • 1731220833.34
  • xtw183876f74
  • 1731284010.92
  • xtw1838743d6
  • 1731294931.45
  • xtw18387c980
  • 1731348629.16
  • xtw183873961

Type above and press Enter to search. Press Esc to cancel.