#homelab #diy #homeassistant
🚀 Build Your Own Presence Sensor with ESP32 and Home Assistant
We are diving into the wonderful world of ESP32 by creating our very own presence or proximity sensor. We will be using the tiny ESP32 C Super Mini and the LD2410 a Human Presence Radar Sensor Module. I will walk you through wiring it up, deploying it, uploading code to run your mmWave sensor, setting it up in Home Assistant, writing some automations for it in Home Assistant, soilder it all together, and then finely print a 3-D case for our presence sensor.
🖥️ Products and Links
Project Materials - https://amzn.to/3EfaFEa
Installing Home Assistant - https://www.home-assistant.io/installation/
Installing ESPHome on Home Assistant - https://esphome.io/guides/getting_started_hassio
The 3-D Case - I recomposed this to add front holes and I switched to a different case as the intial one was a little tight for this project. This case gives you more ventilation, better exit for radar, and more space to shove it all in there. https://makerworld.com/en/models/1302910-esp32-c3-super-mini-ld2410c-case-front-holes#profileId-1335617
The Code - (be sure to add in your own wifi creditials if needed and add in the output_power
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
output_power: 8.5dB
https://pastebin.com/fK07Jpyu
The 3-D Print
💡One of the great things about Home Assistant is they teamed with ESPhome in order to provide an easy way to onboard your custom sensors. By using ESPhome builder, home assistan add on, we can quickly deploy our sensors on our networks and easily upload code. You can even upload firmware and code over the air via wifi once you have them deployed.
🗒️Chapters
00:00 - What are we building?
01:40 - ESP32 C3 Pinout
03:20 - Wiring it all up
04:35 - Do you have Home Assistant?
05:33 - Using ESPHome Builder to Deploy
09:00 - Setting it up in Home Assistant
10:40 - Making some Home Automatoins
13:18 - Does it work?
13:45 - 3-D Printed Case
14:48 - Word of caution
16:00 - Soildering it
16:42 - Wrapping it all up
🔋Once we get our ESP32 Proximidy and Presence Sensor running inside of Home Assistant, the fun begins by using the LD2410 outputs to run some automations. I will walk you through a lighting scenerio for home automation needs where I replace my PIR sensors with homemade ESP32 sensor. This way I can better tell if someone is in the room or is not in the room. Thus giving me much better way to control automating my lighting.
📽️ My Other Home Lab Videos
Discover my Top Home Lab Applications - https://youtu.be/yS72gNkpqok
Learning Docker for Home Labs - https://youtu.be/RNlS4y-wfZs
Virtual Machines for Homelabs - https://youtu.be/WjoiQgrFWXY
How to Start a Home Lab - https://youtu.be/RqZSwEDXg_A
Building Your Own Home Lab - https://youtu.be/y6ECUcVGg8o
BUILD Your Own Cloud Storage - https://youtu.be/4hNcpdWEghQ
I Chose UNRAID Over TrueNas - https://youtu.be/6V1qdiDoIL4
Discover my Top Home Lab Applications - https://youtu.be/yS72gNkpqok
Basics of Home labs - https://youtu.be/y6ECUcVGg8o
Raspberry Pi NVME Under Hat - https://youtu.be/jQRmBGEBkbg
Raspberry Pi POE Hat - https://youtu.be/4mvGzSBd9Lg
After this we have some fun, I show you my horrible soildering skils and I print out a 3-D case for the ESP32.
🚨 Be sure to like, comment, and subscribe for more tech related videos.