Hi all, a really numpty question from me. And I have trawled the internet for days and days to find an answer and even resorted to ChatGPT 🤦♂️🤦♂️. Please don’t judge 😂😂
Q. The HA VPE, using the uart pins. The ones labled on the pcb What GPIO # are they, I have also used 40&41. I have connected a presence sensor LD2410B
When I boot the VPE, it provides a single reading from the sensor and that’s it. It appears as it’s not updating.
What am I doing wrong. I am using the original yaml and added this code,
uart:
id: uart_ld2410
tx_pin: GPIO40 # ESP32 TX → LD2410C RX
rx_pin: GPIO41 # ESP32 RX ← LD2410C TX
baud_rate: 256000
uart_num: 1 # Use hardware UART1
rx_buffer_size: 1024
ld2410:
uart_id: uart_ld2410
binary_sensor:
- platform: ld2410
has_target:
name: "LD2410 Presence"
has_moving_target:
name: "LD2410 Motion"
has_still_target:
name: "LD2410 Still Presence"
sensor:
- platform: ld2410
moving_distance:
name: "LD2410 Moving Distance"
unit_of_measurement: "cm"
still_distance:
name: "LD2410 Still Distance"
unit_of_measurement: "cm"
moving_energy:
name: "LD2410 Moving Energy"
unit_of_measurement: "%"
still_energy:
name: "LD2410 Still Energy"
unit_of_measurement: "%"
Sensor still works with the Bluetooth app on my phone when connected to the VPE.
Also, sensor works fine in esp32 etc
Thanks again.