Privacy centered “smart” doorbells appear to be few and much between so I made a decision to construct one which integrates with Home Assistant by way of ESPHome and is straightforward to construct.
This mission is geared toward being easy whereas permitting a ton of customisation and adaptability. To get began, you’ll want an occasion of Home Assistant operating with the ESPHome add-on in addition to the Home Assistant companion app in your cell phone to obtain notifications when somebody presses the doorbell button.
I’ve used an 8 RGB LED ring gentle in my model however if you wish to simplify issues, you possibly can skip this and use the ESP32-CAM’s inbuilt LED as a flash – it’s surprisingly vivid.
Parts record:
- ESP32-CAM (Amazon – US, UK, DE) Make certain to get one with a “flash/download/io0” button to make your life simpler whenever you flash ESPHome onto it for the primary time. If you make the identical mistake as me and purchase the one with out that button, observe this information to flash the ESP32-CAM utilizing an FTDI adapter.
- Momentary push button (Amazon – US, UK, DE)
- 10k resistor
- 8 RGB LED ring gentle (Amazon – US, DE) Note: these aren’t the precise ones that I used however they’re the closest ones that I may discover. I used the Pi Supply PIS-1270 from RS Components.
- 10m Micro USB cable (Amazon – US, UK, DE)
- M2.5 brass inserts (Amazon – US, UK, DE)
- M2.5 screws (Amazon – US, UK, DE)
- eSUN white PETG filament (Amazon – US, UK, DE)
You can discover the .stl’s on Printables right here and the house assistant config in my github repo: thatguy-za/esp32-cam-doorbell.
Build information
Step 1 – Printing the enclosure
This step takes the longest so lets ship the .stl’s to the printer whereas we crack on with the remainder of the construct. There are three items that you simply’ll have to print:
1. The predominant physique
2. The ESP32-CAM retention plate
3. The again plate/wall mount
You’ll have to print the entrance and the again of the enclosure with helps. I printed it utilizing PLA however you’ll need to use PETG or ABS filament so it’s waterproof and use 20-30% infill.
Once the whole lot has printed, you’ll want so as to add two M2.5 threaded inserts:
1. Into the entrance cowl so you possibly can screw the ESP32-CAM retention bracket into it.
1. Into the underside of the backplate so you possibly can screw on the face plate with a 10mm M2.5 screw
Step 2 – Configuring the ESP32-CAM in ESPHome
Hold down the “flash/download/io0” button and join your ESP32-CAM to your pc utilizing a micro USB cable. This will boot it into flashing mode.
Launch Google Chrome, go to your occasion of Home Assistant and launch the ESPHome Add-on by clicking Settings -> Add-ons -> ESPHome -> Open Web UI. Chrome is vital as a result of it appears to be essentially the most dependable browser for flashing firmware onto the ESP32-CAM.
Click + New Device so as to add a brand new system.Give it a reputation (“Doorbell” might be place to begin).
When requested to pick the system sort, choose ESP32 and verify the field “use really useful settings’.
Once the configuration has been created, you possibly can skip putting in it onto the system – we’ll try this later.
From your record of ESPHome gadgets, click on Edit on the system that you’ve got simply created.
At the underside of the yaml file (under captive_portal:
), paste the configuration code from my github repository that’s linked above.
Click Save and Install.
Select Plug into this pc.
Click Open ESPHome Web, this may let you flash the firmware onto the system from the net browser. This is the place it will be significant that you’re utilizing Google Chrome.
Once the firmware has compiled, it’s best to be capable to click on Download Project – this might take a couple of minutes.
Head over to ESPHome Web and observe the prompts to flash the firmware onto your ESP32-CAM.
Home Assistant ought to uncover the brand new system as soon as the brand new firmware has been flashed onto it – yay! Now you possibly can add no matter entities you need to your dashboard.
Step 3 – Time for some automation & notifications
We need to create an Automation to take a snapshot from the doorbell’s digicam and ship it to your cell phone when somebody presses the doorbell button.
Click Settings -> Automations -> + Create Automation after which create a brand new automation from scratch.
Click on the three vertical dots within the high proper hand nook of the display after which click on Edit in YAML
Paste the automation from my github repo (linked above) into the editor and replace entity names for gadgets resembling your cell phone.
Save the automation and restart Home Assistant so the brand new automation turns into energetic.
Here is a abstract of how the automation ought to behave.
Step 4 – Time to wire it up
Once the enclosure is printed, we will begin the ultimate meeting.
There are just a few variants of the ESP32-CAM board, every with barely totally different pinouts so double verify the pinout on the board you get.
Follow the wiring information under. I soldered the whole lot onto the again of the decrease PCB (the one with the micro USB port). It’s vital so as to add the 10k ohm pull down resistor between GPIO14 and floor as a result of with out it, I seen GPIO14 was floating excessive on very often.
This is what it ought to seem like whenever you’re finished. Bonus factors for overlaying the resistor in heatshrink tube.
Here are some pics of mine earlier than it goes up subsequent to the entrance door!
*The product hyperlinks on this submit could include affiliate hyperlinks. Any fee earned is used to maintain the servers operating and the gin cool.
Thanks for making it to the top of the submit! Did this text assist you or do you want my work?
☕Buy Me a Coffee☕
…. to be continued
Read the Original Article
Copyright for syndicated content material belongs to the linked Source : Hacker News – https://tristam.ie/2023/758/