Skip to content

LD2410 mmwave Motion detection in ESPHome for Home Assistant . Can be combined with temperature, humidity and lux sensor

Notifications You must be signed in to change notification settings

kippesikgithub/esp_motion_mmwave

Repository files navigation

LD2410 mmwave Motion detection

LD2410 mmwave Motion detection in ESPHome for Home Assistant . Can be combined with temperature, humidity and lux sensor
sensor: https://nl.aliexpress.com/item/1005004786874722.html?spm=a2g0o.order_list.order_list_main.83.7b9c79d21Hc0g0&gatewayAdapt=Pc2Msite

3D Printed box used: https://www.thingiverse.com/thing:5631878

Step 1

copy the code from uart_read_line_sensor_ld2410v3.h into a new file in the esphome directory, using for example Studio Code server

Step 2

Choose the ESP32 or ESP8266 code for your board
image

Pinout ESP32 (ESP32-S2)

esphome example code: esp-motion-kinderkamer-lucas.yaml
ESP32-S2 | LD2410
5V <-> VCC
GND <-> GND
GPIO18 <-> RX
GPIO33 <-> TX
GPIO5 <-> OUT

Pinout ESP8266 (Wemos d1 mini) Board

esphome example code: esp-motion-toilet.yaml
ESP8266 | LD2410
5V <-> VCC
GND <-> GND
TX <-> RX
RX <-> TX
D7 <-> OUT
image

Example including ESP32-S2 + DHT11 + Lux sensor

esphome example code: esp-motion-kinderkamer-sophie.yaml
image image image

Step 3

Make sure you change all the !secret values, or create them in your esphome secrets
Change at least the following (example)
file: esp-motion-kinderkamer-lucas.yaml

  • name of the board you use
  • names of the board in esphome and the motion sensor name (around line 166)

Step 4

Add to code to a new device in esphome
Once finsihed and sensor is online, you can add it in Home assistant or visit the webpage of the device.

Home Assistant

image

Web Config

image image

other sources used

https://community.home-assistant.io/t/mmwave-wars-one-sensor-module-to-rule-them-all/453260/2

https://github.com/rain931215/ESPHome-LD2410

About

LD2410 mmwave Motion detection in ESPHome for Home Assistant . Can be combined with temperature, humidity and lux sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages