I managed to get a LD2410C working with a Wemos D1 Mini Compatible ESP32 board and also got it to light up the internal blue LED when motion is detected. The LD2410C is connected using the UART pins (the pins marked TX and RX on the D1 Mini ESP32 board didn’t work and I had to use GPIO16 and GPIO17). Also the Bluetooth Proxy has been enabled for Home Assistant.
If it will help anyone, here is my config which got the LED working:
substitutions:
name: "esp32-motion-sensor"
esphome:
name: ${name}
name_add_mac_suffix: false
api:
ota:
logger:
level: INFO
baud_rate: 0
esp32:
board: esp32dev
framework:
type: esp-idf
esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms
active: true
bluetooth_proxy:
active: true
cache_services: false
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
uart:
id: ld2410_uart
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
uart_id: ld2410_uart
binary_sensor:
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
on_press:
then:
- light.turn_on: led
on_release:
then:
- light.turn_off: led
has_still_target:
name: Still Target
output:
- platform: ledc
id: onboard_led
pin:
number: GPIO2
inverted: false
light:
- platform: monochromatic
name: "Onboard LED"
output: onboard_led
id: led