Forked from kippesikgithub (thanks!) Added some links and info, and adjusted to my needs
LD2410B mmwave Motion detection + ESP8266 (Wemos d1 mini) Board in ESPHome for Home Assistant. Can be combined with temperature, humidity and lux sensor, but I don't use lux sensor here. The LD2410B can be updated to measure luminance as well (I've read somewhere)
Shopping list
-
ESP8266 (Wemos d1 mini)(E 2.00): https://nl.aliexpress.com/item/4001157391459.html
-
LD2410B (with Bluetooth) sensor (E 3.50): https://a.aliexpress.com/_mqyYb5S
-
cable for LD2410B (E 1.50): https://nl.aliexpress.com/item/1005004971647691.html
-
DHT11 digital Humidity & Temperature sensor (E 1.00) https://nl.aliexpress.com/item/32840892862.html
-
3D-printed housing: https://www.thingiverse.com/thing:5631878 Price example: 6x housing+lid, white, € 35 all-in, (printics.nl)
Download this repository: https://github.com/PeterKawa/esp_motion_mmwave/archive/refs/heads/main.zip
copy the code from the downloaded file uart_read_line_sensor_ld2410v3.h
into a new file in the /config/esphome directory, using for example 'Studio Code server';
Do the same with the downloaded file presence-woonkamer_git.yaml
use the 'File editor' and upload those 2 files to /config/esphome
In HA, install the ESPhome add-on;
Extended ESPhome how-to: https://esphome.io/guides/getting_started_hassio.html
How to connect the stuff
5V <-> VCC
GND <-> GND
TX <-> RX
RX <-> TX
D7 <-> OUT
Solder three wires to the DHT11:
3.3V <-> VDD
GND <-> GND
D2 <-> DATA
Make sure you change all the !secret values, or create them in your /config/esphome/secrets.yaml
Merge (do NOT overwrite), so MERGE the example yaml code (presence-woonkamer_git.yaml
) to the yaml code of a new device in ESPhome. You should keep the unique device keys and password stuff;
In the end, the new device yaml should look the same as the example yaml, except from these details:
# Enable Home Assistant API
api:
encryption:
key: "KeepTheGeneratedKey"
ota:
password: "KeepOtaPassword"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "KeepDeviceNameAsSsid"
password: "KeepGeneratedPassword"
Once finsihed and sensor is online, you can add it in Home assistant
You can monitor the distance & sensitivity by temporary enabling show_target_stats
And hidden from view inside a (fake) flower pot ;-)
https://community.home-assistant.io/t/mmwave-wars-one-sensor-module-to-rule-them-all/453260/2