ESP32-S3 with LD2420

Hello there,

I’ve been trying since hours to get the LD2420 working with my esp32.

I tried different configuration but it always say, LD2420 marked as failed.

I’m thinking that something is working with the pins.

Does anyone have an ESP-S3 with an LD2420 working? And could tell me where I have to set the pins and how to change it in the config?

I’m quite sure you find better support here if you post your wiring and your yaml to start with…

I made it to work, it was just the code.

ld2420:

text_sensor:

  • platform: ld2420
    fw_version:
    name: LD2420 Firmware

sensor:

  • platform: ld2420
    moving_distance:
    name : Moving Distance

binary_sensor:

  • platform: ld2420
    has_target:
    name: Presence

switch:

  • platform: restart
    name: Restart ESPHome Node

select:

  • platform: ld2420
    operating_mode:
    name: Operating Mode
    number:
  • platform: ld2420
    presence_timeout:
    name: Detection Presence Timeout
    min_gate_distance:
    name: Detection Gate Minimum
    max_gate_distance:
    name: Detection Gate Maximum
    gate_select:
    name: Select Gate to Set
    still_threshold:
    name: Set Still Threshold Value
    move_threshold:
    name: Set Move Threshold Value
    button:
  • platform: ld2420
    apply_config:
    name: Apply Config
    factory_reset:
    name: Factory Reset
    restart_module:
    name: Restart Module
    revert_config:
    name: Undo Edits

Great!
Next time you post code, use code tags. Click that gear icon on top right and select “Preformatted text”. So the code presents like this:

text_sensor:
  - platform: ld2420
    fw_version:
    name: LD2420 Firmware

sensor:
  - platform: ld2420
    moving_distance:
    name : Moving Distance