#HA VPE - Sensors not updating

1 messages · Page 1 of 1 (latest)

wanton comet
#

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.

hard sirenBOT
#

@wanton comet To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

silent garnet
#

you could try adding throttle to the ld2410 section . its supposed to default to 1000ms update period but maybe something is going wrong?

but realistically you might find better help over on the ESPHome discord server as people will be a lot mor knowledgeable on this sort of thing
https://discord.gg/VNHdXErq

wanton comet
silent garnet
#

also btw for code you want to use backticks instead of quotes to format

#

` not '

wanton comet
#

@silent garnet That does work great, if use anything other than the vpe. What I am trying to do, is when you enter a room the LD2410 picks you up and performs a task. The 2410 fits nicely into the vpe case without any mods

#

The Bluetooth app works great, it’s as if the rx/tx on the vpe cannot process the data.

silent garnet
#

yeah i was just pointing out the code that the EPL uses rarther than suggesting you getting a different device

#

see if there is any differnces of implementation between that and yours and maybe find a clue

wanton comet
#

I’ve tried everything 🤦‍♂️😂. It’s got me stumped

silent garnet
#

probably heeading over to esphome discord with the full config is where to go. as people over there will know much more tbh

wanton comet
#

I thought is was a power issue so i used a 27w pi psu, no difference