ESPHome - esp32-S2Mini et LD2410C - 2/2 Code yaml LD2410c

Bonjour à tous,

Voici une quinzaine de jours, j’ai réussi tant bien que mal et surtout avec votre aide à configurer un esp32-S2Mini dans Home Assistant.
voir ESPHome - esp32-S2Mini et LD2410C - 1/2 Configuration esp

Il est prêt maintenant à recevoir un superbe code yaml pour piloter le LD2410c qui boue d’impatience.
C’est là que je suis un peu perdu entre les diverses publications plus ou moins précises, voire obsolètes qui ont été faites, dont celle des frères Poulain qui renvoie juste sur le LD2410 du site d’ESPHome…
J’ai une autre piste avec le GitHub de Fridcheese (très bien fait au demeurant), mais il affecte des GPIO 15, 18 et 33 qui ne sont pas alignés…

Bref, si je pouvais partir du bon pied avec votre aide pour trouver le bon code, ce serait super…
Merci pour votre aide,
patrickp78

Tu as déjà tout ici, nos configs et échange, dommage de récréer un post à part !
https://forum.hacf.fr/t/tuto-ld2410-detecteur-de-presence-avec-esphome/29644

1 « J'aime »

Il est bien dommage aussi qu’à un moment on ne puisse pas compiler des dizaines de posts de tous bords (esp32, esp32 mini, LD2410, LD2410C, boitier 3D…) qui ont permis d’arriver à la solution et que celle-ci ne soit pas clairement mise en avant une fois validée…
En fait, difficile souvent de savoir si les auteurs font vraiment référence à un S2Mini et à un LD2410c
patrickp78

Salut,
voici un exemple pour ton S2-Mini et un LD2410:

esphome:
  name: detecteur-mili-bureau
  friendly_name: Détecteur Mili Bureau

esp32:
  board: lolin_s2_mini
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxxxxxxx"

ota:
  password: "xxxxxxxxxxxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

captive_portal:

uart:
  tx_pin: GPIO18
  rx_pin: GPIO33
  baud_rate: 256000
  id: uart_1
  parity: NONE
  stop_bits: 1

ld2410:
  - uart_id: uart_1

binary_sensor:
  - platform: ld2410
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target
    out_pin_presence_status:
      name: out pin presence status

sensor:
  - platform: ld2410
    light:
      name: light
    moving_distance:
      name : Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Move Energy
    still_energy:
      name: Still Energy
    detection_distance:
      name: Detection Distance

Regarde le tuto sur ce post Tuto LD2410 - Détecteur de présence avec ESPHome pour configurer plus d’option pour le LD2410.

Un autre exemple avec plus d’option Code pour esp 32 +ld2410 - #16 par Kiki35

1 « J'aime »

Super ! Merci beaucoup.
Je pense que je vais gagner un temps fou…
patrickp78

Bonjour,

On avance. Doucement, mais on avance…
Me voici avec un beau Tableau de bord plein de paramètres et d’indicateurs… tous notés comme 'Inconnu"
J’ai déjà lu des remarques à ce sujet mais impossible de savoir si elles font références à des LD2410 ou des LD2410c
Par contre, alors que les pins occupés sont les VBUS, GND, 16, 18 et 33, je ne vois rien dans mon code yaml concernant la 16.
Si quelqu’un a une piste… merci d’avance.

Voici mon code à partir de captive portal :

captive_portal:

uart:
  tx_pin: GPIO18
  rx_pin: GPIO33
  baud_rate: 256000
  id: uart_1
  parity: NONE
  stop_bits: 1

ld2410:
  - uart_id: uart_1

binary_sensor:
  - platform: ld2410
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target
    out_pin_presence_status:
      name: out pin presence status

sensor:
  - platform: ld2410
    light:
      name: light
    moving_distance:
      name : Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Move Energy
    still_energy:
      name: Still Energy
    detection_distance:
      name: Detection Distance
    
    g0:
      move_energy:
        name: g0 move energy
      still_energy:
        name: g0 still energy
    g1:
      move_energy:
        name: g1 move energy
      still_energy:
        name: g1 still energy
    g2:
      move_energy:
        name: g2 move energy
      still_energy:
        name: g2 still energy
    g3:
      move_energy:
        name: g3 move energy
      still_energy:
        name: g3 still energy
    g4:
      move_energy:
        name: g4 move energy
      still_energy:
        name: g4 still energy
    g5:
      move_energy:
        name: g5 move energy
      still_energy:
        name: g5 still energy
    g6:
      move_energy:
        name: g6 move energy
      still_energy:
        name: g6 still energy
    g7:
      move_energy:
        name: g7 move energy
      still_energy:
        name: g7 still energy
    g8:
      move_energy:
        name: g8 move energy
      still_energy:
        name: g8 still energy
  - platform: internal_temperature
    name: ESP Temperature
    unit_of_measurement: °C
    device_class: TEMPERATURE
    update_interval: 30s
    entity_category: "diagnostic"
  - platform: uptime
    name: Uptime
    id: sys_uptime
    update_interval: 10s
  - platform: wifi_signal 
    name: WiFi RSSI
    id: wifi_signal_db
    update_interval: 30s
    entity_category: "diagnostic"

switch:
  - platform: ld2410
    engineering_mode:
      name: "LD2410 Engineering Mode"
    bluetooth:
      name: "LD2410 Bluetooth"

number:
  - platform: ld2410
    timeout:
      name: Timeout
    light_threshold:
      name: Light Threshold
    max_move_distance_gate:
      name: Max Move Distance Gate
    max_still_distance_gate:
      name: Max Still Distance Gate
    g0:
      move_threshold:
        name: g0 move threshold
      still_threshold:
        name: g0 still threshold
    g1:
      move_threshold:
        name: g1 move threshold
      still_threshold:
        name: g1 still threshold
    g2:
      move_threshold:
        name: g2 move threshold
      still_threshold:
        name: g2 still threshold
    g3:
      move_threshold:
        name: g3 move threshold
      still_threshold:
        name: g3 still threshold
    g4:
      move_threshold:
        name: g4 move threshold
      still_threshold:
        name: g4 still threshold
    g5:
      move_threshold:
        name: g5 move threshold
      still_threshold:
        name: g5 still threshold
    g6:
      move_threshold:
        name: g6 move threshold
      still_threshold:
        name: g6 still threshold
    g7:
      move_threshold:
        name: g7 move threshold
      still_threshold:
        name: g7 still threshold
    g8:
      move_threshold:
        name: g8 move threshold
      still_threshold:
        name: g8 still threshold

button:
  - platform: ld2410
    factory_reset:
      name: "LD2410 Factory Reset"
    restart:
      name: "LD2410 Reboot"
    query_params:
      name: "LD2410 Query Params"
  - platform: restart
    icon: mdi:power-cycle
    name: "ESP Reboot"

text_sensor:
  - platform: ld2410
    version:
      name: "LD2410 Firmware Version"
    mac_address:
      name: "LD2410 MAC Address"

select:
  - platform: ld2410
    distance_resolution:
      name: "Distance Resolution"
    baud_rate:
      name: "Baud Rate"
    light_function:
      name: Light Function
    out_pin_level:
      name: Out Pin Level

light:
  - platform: status_led
    name: sys_status
    pin: 
      number: GPIO15
      inverted: True
    internal: True
    restore_mode: ALWAYS_OFF

Salut,
le pin TX et RX suffit, 33 et 18. Pas besoin de configurer le 16.

Ton code a l’air bon, je vois rien comme erreur.
Faudrais regarder les logs par wifi, dans le dashboard ESPHome . Tu clique sur logs et sans fil, voir si tu peu voir des erreurs.

Verifie t’es soudures aussi.

OK je vais regarder ça. je vois aussi que j’ai un pin 15 paramétré (à la fin du code) et non connecté…

  • GPIO15 LED (blue status LED)

c’est une led du s2-mini, d’après ton code, ca éteint la led.
Le pin 15 est optionnel.

Ta pas d’entité, car il y a l’option internal: True

Options avancées:

  • internal ( Facultatif , booléen) : marquez ce composant comme interne. Les composants internes ne seront pas exposés au frontend (comme Home Assistant). Seule la spécification d’un id sans a name définira implicitement cela sur true.

Heu… ça veut dire quoi ?

de quoi ? :upside_down_face:

Est-ce que je dois laisser le code comme ça et quelle est l’utilité de cette led ?

La led sert de statut pour l’esp, si il est allumer ou pas.
Par défaut ta une led bleu qui s’allume quand l’esp est branché. Ca peu déranger la nuit, si ta pas de boitier car elle eclair pas mal :sweat_smile:
Ce code que ta, permet d’éteindre la led au démarrage.
A toi de voir si tu le garde ou pas.

Voici le log.
je n’ai pas l’impression qu’il y ait des erreurs…

INFO ESPHome 2024.3.0
INFO Reading configuration /config/esphome/esp32s2mini-01.yaml...
INFO Starting log output from esp32s2mini-01.local using esphome API
INFO Successfully connected to esp32s2mini-01 @ 192.168.1.36 in 1.946s
INFO Successful handshake with esp32s2mini-01 @ 192.168.1.36 in 0.097s
[13:43:23][I][app:102]: ESPHome version 2024.3.0 compiled on Mar 22 2024, 11:54:07
[13:43:23][C][status_led:065]: Status Led Light:
[13:43:23][C][status_led:066]:   Pin: GPIO15
[13:43:23][C][wifi:580]: WiFi:
[13:43:23][C][wifi:408]:   Local MAC: 80:65:99:4F:83:80
[13:43:23][C][wifi:413]:   SSID: 'Livebox-09C0'[redacted]
[13:43:23][C][wifi:416]:   IP Address: 192.168.1.36
[13:43:23][C][wifi:420]:   BSSID: 7C:C1:77:65:09:C0[redacted]
[13:43:23][C][wifi:421]:   Hostname: 'esp32s2mini-01'
[13:43:23][C][wifi:423]:   Signal strength: -48 dB ▂▄▆█
[13:43:23][C][wifi:427]:   Channel: 11
[13:43:23][C][wifi:428]:   Subnet: 255.255.255.0
[13:43:23][C][wifi:429]:   Gateway: 192.168.1.1
[13:43:23][C][wifi:430]:   DNS1: 192.168.1.1
[13:43:23][C][wifi:431]:   DNS2: 0.0.0.0
[13:43:23][C][logger:166]: Logger:
[13:43:23][C][logger:167]:   Level: DEBUG
[13:43:23][C][logger:169]:   Log Baud Rate: 115200
[13:43:23][C][logger:170]:   Hardware UART: USB_CDC
[13:43:23][C][uart.arduino_esp32:137]: UART Bus 0:
[13:43:23][C][uart.arduino_esp32:138]:   TX Pin: GPIO18
[13:43:23][C][uart.arduino_esp32:139]:   RX Pin: GPIO33
[13:43:23][C][uart.arduino_esp32:141]:   RX Buffer Size: 256
[13:43:23][C][uart.arduino_esp32:143]:   Baud Rate: 256000 baud
[13:43:23][C][uart.arduino_esp32:144]:   Data Bits: 8
[13:43:23][C][uart.arduino_esp32:145]:   Parity: NONE
[13:43:23][C][uart.arduino_esp32:146]:   Stop bits: 1
[13:43:23][C][uptime.sensor:031]: Uptime Sensor 'Uptime'
[13:43:23][C][uptime.sensor:031]:   Device Class: 'duration'
[13:43:23][C][uptime.sensor:031]:   State Class: 'total_increasing'
[13:43:23][C][uptime.sensor:031]:   Unit of Measurement: 's'
[13:43:23][C][uptime.sensor:031]:   Accuracy Decimals: 0
[13:43:23][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[13:43:23][C][light:103]: Light 'sys_status'
[13:43:23][C][ld2410:022]: LD2410:
[13:43:23][C][ld2410:024]:   TargetBinarySensor 'Presence'
[13:43:23][C][ld2410:024]:     Device Class: 'occupancy'
[13:43:23][C][ld2410:025]:   MovingTargetBinarySensor 'Moving Target'
[13:43:23][C][ld2410:025]:     Device Class: 'motion'
[13:43:23][C][ld2410:026]:   StillTargetBinarySensor 'Still Target'
[13:43:23][C][ld2410:026]:     Device Class: 'occupancy'
[13:43:23][C][ld2410:027]:   OutPinPresenceStatusBinarySensor 'out pin presence status'
[13:43:23][C][ld2410:027]:     Device Class: 'presence'
[13:43:23][C][ld2410:068]:   EngineeringModeSwitch 'LD2410 Engineering Mode'
[13:43:23][C][ld2410:070]:     Icon: 'mdi:pulse'
[13:43:23][C][ld2410:079]:     Device Class: 'switch'
[13:43:23][C][ld2410:091]:     Restore Mode: always OFF
[13:43:23][C][ld2410:068]:   BluetoothSwitch 'LD2410 Bluetooth'
[13:43:23][C][ld2410:070]:     Icon: 'mdi:bluetooth'
[13:43:23][C][ld2410:079]:     Device Class: 'switch'
[13:43:23][C][ld2410:091]:     Restore Mode: always OFF
[13:43:23][C][ld2410:034]:   ResetButton 'LD2410 Factory Reset'
[13:43:23][C][ld2410:034]:     Icon: 'mdi:restart-alert'
[13:43:23][C][ld2410:035]:   RestartButton 'LD2410 Reboot'
[13:43:23][C][ld2410:035]:     Icon: 'mdi:restart'
[13:43:23][C][ld2410:036]:   QueryButton 'LD2410 Query Params'
[13:43:23][C][ld2410:036]:     Icon: 'mdi:database'
[13:43:23][C][ld2410:039]:   LightSensor 'light'
[13:43:23][C][ld2410:039]:     Device Class: 'illuminance'
[13:43:23][C][ld2410:039]:     State Class: ''
[13:43:23][C][ld2410:039]:     Unit of Measurement: ''
[13:43:23][C][ld2410:039]:     Accuracy Decimals: 0
[13:43:23][C][ld2410:039]:     Icon: 'mdi:lightbulb'
[13:43:23][C][ld2410:040]:   MovingTargetDistanceSensor 'Moving Distance'
[13:43:23][C][ld2410:040]:     Device Class: 'distance'
[13:43:23][C][ld2410:040]:     State Class: ''
[13:43:23][C][ld2410:040]:     Unit of Measurement: 'cm'
[13:43:23][C][ld2410:040]:     Accuracy Decimals: 0
[13:43:23][C][ld2410:040]:     Icon: 'mdi:signal-distance-variant'
[13:43:23][C][ld2410:041]:   StillTargetDistanceSensor 'Still Distance'
[13:43:23][C][ld2410:041]:     Device Class: 'distance'
[13:43:23][C][ld2410:041]:     State Class: ''
[13:43:23][C][ld2410:041]:     Unit of Measurement: 'cm'
[13:43:23][C][ld2410:041]:     Accuracy Decimals: 0
[13:43:23][C][ld2410:041]:     Icon: 'mdi:signal-distance-variant'
[13:43:23][C][ld2410:042]:   MovingTargetEnergySensor 'Move Energy'
[13:43:23][C][ld2410:042]:     State Class: ''
[13:43:23][C][ld2410:042]:     Unit of Measurement: '%'
[13:43:23][C][ld2410:042]:     Accuracy Decimals: 0
[13:43:23][C][ld2410:042]:     Icon: 'mdi:motion-sensor'
[13:43:23][C][ld2410:043]:   StillTargetEnergySensor 'Still Energy'
[13:43:23][C][ld2410:043]:     State Class: ''
[13:43:24][C][ld2410:043]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:043]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:043]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:044]:   DetectionDistanceSensor 'Detection Distance'
[13:43:24][C][ld2410:044]:     Device Class: 'distance'
[13:43:24][C][ld2410:044]:     State Class: ''
[13:43:24][C][ld2410:044]:     Unit of Measurement: 'cm'
[13:43:24][C][ld2410:044]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:044]:     Icon: 'mdi:signal-distance-variant'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g0 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g1 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g2 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g3 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g4 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g5 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g6 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g7 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:046]:   NthGateStillSesnsor 'g8 still energy'
[13:43:24][C][ld2410:046]:     State Class: ''
[13:43:24][C][ld2410:046]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:046]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:046]:     Icon: 'mdi:flash'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g0 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g1 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g2 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g3 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g4 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g5 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g6 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g7 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:049]:   NthGateMoveSesnsor 'g8 move energy'
[13:43:24][C][ld2410:049]:     State Class: ''
[13:43:24][C][ld2410:049]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:049]:     Accuracy Decimals: 0
[13:43:24][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:053]:   VersionTextSensor 'LD2410 Firmware Version'
[13:43:24][C][ld2410:053]:     Icon: 'mdi:chip'
[13:43:24][C][ld2410:054]:   MacTextSensor 'LD2410 MAC Address'
[13:43:24][C][ld2410:054]:     Icon: 'mdi:bluetooth'
[13:43:24][C][ld2410:057]:   LightFunctionSelect 'Light Function'
[13:43:24][C][ld2410:057]:     Icon: 'mdi:lightbulb'
[13:43:24][C][ld2410:058]:   OutPinLevelSelect 'Out Pin Level'
[13:43:24][C][ld2410:058]:     Icon: 'mdi:scale'
[13:43:24][C][ld2410:059]:   DistanceResolutionSelect 'Distance Resolution'
[13:43:24][C][ld2410:059]:     Icon: 'mdi:ruler'
[13:43:24][C][ld2410:060]:   BaudRateSelect 'Baud Rate'
[13:43:24][C][ld2410:060]:     Icon: 'mdi:thermometer'
[13:43:24][C][ld2410:063]:   LightThresholdNumber 'Light Threshold'
[13:43:24][C][ld2410:063]:     Icon: 'mdi:lightbulb'
[13:43:24][C][ld2410:063]:     Device Class: 'illuminance'
[13:43:24][C][ld2410:064]:   MaxStillDistanceGateNumber 'Max Still Distance Gate'
[13:43:24][C][ld2410:064]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:064]:     Device Class: 'distance'
[13:43:24][C][ld2410:065]:   MaxMoveDistanceGateNumber 'Max Move Distance Gate'
[13:43:24][C][ld2410:065]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:065]:     Device Class: 'distance'
[13:43:24][C][ld2410:066]:   TimeoutNumber 'Timeout'
[13:43:24][C][ld2410:066]:     Icon: 'mdi:timelapse'
[13:43:24][C][ld2410:066]:     Unit of Measurement: 's'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g0 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g1 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g2 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g3 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g4 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g5 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g6 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g7 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:068]:   Still Thresholds Number 'g8 still threshold'
[13:43:24][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:068]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:068]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g0 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g1 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g2 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g3 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g4 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g5 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g6 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g7 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:24][C][ld2410:071]:   Move Thresholds Number 'g8 move threshold'
[13:43:24][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:43:24][C][ld2410:071]:     Unit of Measurement: '%'
[13:43:24][C][ld2410:071]:     Device Class: 'signal_strength'
[13:43:25][C][ld2410:075]:   Throttle_ : 1000ms
[13:43:25][C][ld2410:076]:   MAC Address : 
[13:43:25][C][ld2410:077]:   Firmware Version : 
[13:43:25][C][internal_temperature:059]: Internal Temperature Sensor 'ESP Temperature'
[13:43:25][C][internal_temperature:059]:   Device Class: 'temperature'
[13:43:25][C][internal_temperature:059]:   State Class: 'measurement'
[13:43:25][C][internal_temperature:059]:   Unit of Measurement: '°C'
[13:43:25][C][internal_temperature:059]:   Accuracy Decimals: 1
[13:43:25][C][restart.button:017]: Restart Button 'ESP Reboot'
[13:43:25][C][restart.button:017]:   Icon: 'mdi:power-cycle'
[13:43:25][C][captive_portal:088]: Captive Portal:
[13:43:25][C][mdns:115]: mDNS:
[13:43:25][C][mdns:116]:   Hostname: esp32s2mini-01
[13:43:25][C][ota:096]: Over-The-Air Updates:
[13:43:25][C][ota:097]:   Address: esp32s2mini-01.local:3232
[13:43:25][C][ota:100]:   Using Password.
[13:43:25][C][ota:103]:   OTA version: 2.
[13:43:25][C][api:139]: API Server:
[13:43:25][C][api:140]:   Address: esp32s2mini-01.local:6053
[13:43:25][C][api:142]:   Using noise encryption: YES
[13:43:25][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi RSSI'
[13:43:25][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[13:43:25][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[13:43:25][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[13:43:25][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[13:43:29][D][sensor:094]: 'ESP Temperature': Sending state 42.61380 °C with 1 decimals of accuracy
[13:43:30][D][sensor:094]: 'Uptime': Sending state 4940.72021 s with 0 decimals of accuracy
[13:43:35][D][sensor:094]: 'WiFi RSSI': Sending state -50.00000 dBm with 0 decimals of accuracy
[13:43:40][D][sensor:094]: 'Uptime': Sending state 4950.72314 s with 0 decimals of accuracy
[13:43:50][D][sensor:094]: 'Uptime': Sending state 4960.71777 s with 0 decimals of accuracy
[13:43:59][D][sensor:094]: 'ESP Temperature': Sending state 42.61380 °C with 1 decimals of accuracy
[13:44:00][D][sensor:094]: 'Uptime': Sending state 4970.71777 s with 0 decimals of accuracy
[13:44:05][D][sensor:094]: 'WiFi RSSI': Sending state -51.00000 dBm with 0 decimals of accuracy
[13:44:10][D][sensor:094]: 'Uptime': Sending state 4980.71777 s with 0 decimals of accuracy

Tu devrais avoir des logs du LD2410:

[13:47:49][D][sensor:094]: 'Still Energy': Sending state 23.00000 % with 0 decimals of accuracy
[13:47:50][D][sensor:094]: 'wifi_signal_db': Sending state -61.00000 dBm with 0 decimals of accuracy
[13:47:50][D][sensor:094]: 'WiFi Signal Percent': Sending state 78.00000 % with 0 decimals of accuracy
[13:47:50][D][sensor:094]: 'Still Energy': Sending state 22.00000 % with 0 decimals of accuracy
[13:47:51][D][sensor:094]: 'Still Energy': Sending state 21.00000 % with 0 decimals of accuracy
[13:47:52][D][sensor:094]: 'Still Energy': Sending state 18.00000 % with 0 decimals of accuracy
[13:47:52][D][sensor:094]: 'light': Sending state 116.00000  with 0 decimals of accuracy
[13:47:53][D][sensor:094]: 'Still Energy': Sending state 19.00000 % with 0 decimals of accuracy
[13:47:53][D][sensor:094]: 'light': Sending state 115.00000  with 0 decimals of accuracy
[13:47:54][D][sensor:094]: 'Still Energy': Sending state 18.00000 % with 0 decimals of accuracy
[13:47:55][D][sensor:094]: 'Still Energy': Sending state 24.00000 % with 0 decimals of accuracy
[13:47:55][D][sensor:094]: 'light': Sending state 114.00000  with 0 decimals of accuracy
[13:47:56][D][sensor:094]: 'Still Energy': Sending state 25.00000 % with 0 decimals of accuracy
[13:47:57][D][sensor:094]: 'Still Energy': Sending state 21.00000 % with 0 decimals of accuracy
[13:47:58][D][sensor:094]: 'Still Energy': Sending state 20.00000 % with 0 decimals of accuracy
[13:47:59][D][sensor:094]: 'Still Energy': Sending state 13.00000 % with 0 decimals of accuracy
[13:47:59][D][sensor:094]: 'light': Sending state 115.00000  with 0 decimals of accuracy

cherche les logs sensor:094pour le LD2410, ceux que tu montre sont ceux du esp ( temp, uptime , wifi )

tu devrais voir les noms déclarés dans le code, pour les logs:

sensor:
  - platform: ld2410
    light:
      name: light
    moving_distance:
      name : Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Move Energy
    still_energy:
      name: Still Energy
    detection_distance:
      name: Detection Distance

C’est pourtant bien du LD2410, ça…

[13:51:33][C][ld2410:022]: LD2410:
[13:51:33][C][ld2410:024]:   TargetBinarySensor 'Presence'
[13:51:33][C][ld2410:024]:     Device Class: 'occupancy'
[13:51:33][C][ld2410:025]:   MovingTargetBinarySensor 'Moving Target'
[13:51:33][C][ld2410:025]:     Device Class: 'motion'
[13:51:33][C][ld2410:026]:   StillTargetBinarySensor 'Still Target'
[13:51:33][C][ld2410:026]:     Device Class: 'occupancy'
[13:51:33][C][ld2410:027]:   OutPinPresenceStatusBinarySensor 'out pin presence status'
[13:51:33][C][ld2410:027]:     Device Class: 'presence'
[13:51:33][C][ld2410:068]:   EngineeringModeSwitch 'LD2410 Engineering Mode'
[13:51:33][C][ld2410:070]:     Icon: 'mdi:pulse'
[13:51:33][C][ld2410:079]:     Device Class: 'switch'
[13:51:33][C][ld2410:091]:     Restore Mode: always OFF
[13:51:33][C][ld2410:068]:   BluetoothSwitch 'LD2410 Bluetooth'
[13:51:33][C][ld2410:070]:     Icon: 'mdi:bluetooth'
[13:51:33][C][ld2410:079]:     Device Class: 'switch'
[13:51:33][C][ld2410:091]:     Restore Mode: always OFF
[13:51:33][C][ld2410:034]:   ResetButton 'LD2410 Factory Reset'
[13:51:33][C][ld2410:034]:     Icon: 'mdi:restart-alert'
[13:51:33][C][ld2410:035]:   RestartButton 'LD2410 Reboot'
[13:51:33][C][ld2410:035]:     Icon: 'mdi:restart'
[13:51:33][C][ld2410:036]:   QueryButton 'LD2410 Query Params'
[13:51:33][C][ld2410:036]:     Icon: 'mdi:database'
[13:51:33][C][ld2410:039]:   LightSensor 'light'
[13:51:33][C][ld2410:039]:     Device Class: 'illuminance'
[13:51:33][C][ld2410:039]:     State Class: ''
[13:51:33][C][ld2410:039]:     Unit of Measurement: ''
[13:51:33][C][ld2410:039]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:039]:     Icon: 'mdi:lightbulb'
[13:51:33][C][ld2410:040]:   MovingTargetDistanceSensor 'Moving Distance'
[13:51:33][C][ld2410:040]:     Device Class: 'distance'
[13:51:33][C][ld2410:040]:     State Class: ''
[13:51:33][C][ld2410:040]:     Unit of Measurement: 'cm'
[13:51:33][C][ld2410:040]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:040]:     Icon: 'mdi:signal-distance-variant'
[13:51:33][C][ld2410:041]:   StillTargetDistanceSensor 'Still Distance'
[13:51:33][C][ld2410:041]:     Device Class: 'distance'
[13:51:33][C][ld2410:041]:     State Class: ''
[13:51:33][C][ld2410:041]:     Unit of Measurement: 'cm'
[13:51:33][C][ld2410:041]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:041]:     Icon: 'mdi:signal-distance-variant'
[13:51:33][C][ld2410:042]:   MovingTargetEnergySensor 'Move Energy'
[13:51:33][C][ld2410:042]:     State Class: ''
[13:51:33][C][ld2410:042]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:042]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:042]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:043]:   StillTargetEnergySensor 'Still Energy'
[13:51:33][C][ld2410:043]:     State Class: ''
[13:51:33][C][ld2410:043]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:043]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:043]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:044]:   DetectionDistanceSensor 'Detection Distance'
[13:51:33][C][ld2410:044]:     Device Class: 'distance'
[13:51:33][C][ld2410:044]:     State Class: ''
[13:51:33][C][ld2410:044]:     Unit of Measurement: 'cm'
[13:51:33][C][ld2410:044]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:044]:     Icon: 'mdi:signal-distance-variant'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g0 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g1 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g2 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g3 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g4 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g5 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g6 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g7 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:046]:   NthGateStillSesnsor 'g8 still energy'
[13:51:33][C][ld2410:046]:     State Class: ''
[13:51:33][C][ld2410:046]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:046]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:046]:     Icon: 'mdi:flash'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g0 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g1 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g2 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g3 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g4 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g5 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g6 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g7 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:049]:   NthGateMoveSesnsor 'g8 move energy'
[13:51:33][C][ld2410:049]:     State Class: ''
[13:51:33][C][ld2410:049]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:049]:     Accuracy Decimals: 0
[13:51:33][C][ld2410:049]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:053]:   VersionTextSensor 'LD2410 Firmware Version'
[13:51:33][C][ld2410:053]:     Icon: 'mdi:chip'
[13:51:33][C][ld2410:054]:   MacTextSensor 'LD2410 MAC Address'
[13:51:33][C][ld2410:054]:     Icon: 'mdi:bluetooth'
[13:51:33][C][ld2410:057]:   LightFunctionSelect 'Light Function'
[13:51:33][C][ld2410:057]:     Icon: 'mdi:lightbulb'
[13:51:33][C][ld2410:058]:   OutPinLevelSelect 'Out Pin Level'
[13:51:33][C][ld2410:058]:     Icon: 'mdi:scale'
[13:51:33][C][ld2410:059]:   DistanceResolutionSelect 'Distance Resolution'
[13:51:33][C][ld2410:059]:     Icon: 'mdi:ruler'
[13:51:33][C][ld2410:060]:   BaudRateSelect 'Baud Rate'
[13:51:33][C][ld2410:060]:     Icon: 'mdi:thermometer'
[13:51:33][C][ld2410:063]:   LightThresholdNumber 'Light Threshold'
[13:51:33][C][ld2410:063]:     Icon: 'mdi:lightbulb'
[13:51:33][C][ld2410:063]:     Device Class: 'illuminance'
[13:51:33][C][ld2410:064]:   MaxStillDistanceGateNumber 'Max Still Distance Gate'
[13:51:33][C][ld2410:064]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:064]:     Device Class: 'distance'
[13:51:33][C][ld2410:065]:   MaxMoveDistanceGateNumber 'Max Move Distance Gate'
[13:51:33][C][ld2410:065]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:065]:     Device Class: 'distance'
[13:51:33][C][ld2410:066]:   TimeoutNumber 'Timeout'
[13:51:33][C][ld2410:066]:     Icon: 'mdi:timelapse'
[13:51:33][C][ld2410:066]:     Unit of Measurement: 's'
[13:51:33][C][ld2410:068]:   Still Thresholds Number 'g0 still threshold'
[13:51:33][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:33][C][ld2410:068]:   Still Thresholds Number 'g1 still threshold'
[13:51:33][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:33][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:33][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g2 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g3 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g4 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g5 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g6 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g7 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:068]:   Still Thresholds Number 'g8 still threshold'
[13:51:34][C][ld2410:068]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:068]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:068]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g0 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g1 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g2 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g3 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g4 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g5 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g6 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g7 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:071]:   Move Thresholds Number 'g8 move threshold'
[13:51:34][C][ld2410:071]:     Icon: 'mdi:motion-sensor'
[13:51:34][C][ld2410:071]:     Unit of Measurement: '%'
[13:51:34][C][ld2410:071]:     Device Class: 'signal_strength'
[13:51:34][C][ld2410:075]:   Throttle_ : 1000ms
[13:51:34][C][ld2410:076]:   MAC Address : 
[13:51:34][C][ld2410:077]:   Firmware Version : 
[13:51:34][C][internal_temperature:059]: Internal Temperature Sensor 'ESP Temperature'
[13:51:34][C][internal_temperature:059]:   Device Class: 'temperature'
[13:51:34][C][internal_temperature:059]:   State Class: 'measurement'
[13:51:34][C][internal_temperature:059]:   Unit of Measurement: '°C'
[13:51:34][C][internal_temperature:059]:   Accuracy Decimals: 1
[13:51:34][C][restart.button:017]: Restart Button 'ESP Reboot'
[13:51:34][C][restart.button:017]:   Icon: 'mdi:power-cycle'
[13:51:34][C][captive_portal:088]: Captive Portal:
[13:51:34][C][mdns:115]: mDNS:
[13:51:34][C][mdns:116]:   Hostname: esp32s2mini-01
[13:51:34][C][ota:096]: Over-The-Air Updates:
[13:51:34][C][ota:097]:   Address: esp32s2mini-01.local:3232
[13:51:34][C][ota:100]:   Using Password.
[13:51:34][C][ota:103]:   OTA version: 2.
[13:51:34][C][api:139]: API Server:
[13:51:34][C][api:140]:   Address: esp32s2mini-01.local:6053
[13:51:34][C][api:142]:   Using noise encryption: YES
[13:51:34][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi RSSI'
[13:51:34][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[13:51:34][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[13:51:34][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[13:51:34][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[13:51:35][D][sensor:094]: 'WiFi RSSI': Sending state -47.00000 dBm with 0 decimals of accuracy
[13:51:40][D][sensor:094]: 'Uptime': Sending state 5430.71777 s with 0 decimals of accuracy
[13:51:50][D][sensor:094]: 'Uptime': Sending state 5440.72021 s with 0 decimals of accuracy
[13:51:59][D][sensor:094]: 'ESP Temperature': Sending state 42.17520 °C with 1 decimals of accuracy
[13:52:00][D][sensor:094]: 'Uptime': Sending state 5450.71777 s with 0 decimals of accuracy
[13:52:05][D][sensor:094]: 'WiFi RSSI': Sending state -45.00000 dBm with 0 decimals of accuracy
[13:52:10][D][sensor:094]: 'Uptime': Sending state 5460.71924 s with 0 decimals of accuracy
[13:52:20][D][sensor:094]: 'Uptime': Sending state 5470.72217 s with 0 decimals of accuracy
[13:52:29][D][sensor:094]: 'ESP Temperature': Sending state 41.73660 °C with 1 decimals of accuracy
[13:52:30][D][sensor:094]: 'Uptime': Sending state 5480.71777 s with 0 decimals of accuracy
[13:52:35][D][sensor:094]: 'WiFi RSSI': Sending state -45.00000 dBm with 0 decimals of accuracy
[13:52:40][D][sensor:094]: 'Uptime': Sending state 5490.71777 s with 0 decimals of accuracy
[13:52:50][D][sensor:094]: 'Uptime': Sending state 5500.72314 s with 0 decimals of accuracy
[13:52:59][D][sensor:094]: 'ESP Temperature': Sending state 40.85940 °C with 1 decimals of accuracy
[13:53:00][D][sensor:094]: 'Uptime': Sending state 5510.71777 s with 0 decimals of accuracy
[13:53:05][D][sensor:094]: 'WiFi RSSI': Sending state -47.00000 dBm with 0 decimals of accuracy
[13:53:10][D][sensor:094]: 'Uptime': Sending state 5520.71777 s with 0 decimals of accuracy
[13:53:20][D][sensor:094]: 'Uptime': Sending state 5530.71777 s with 0 decimals of accuracy
[13:53:29][D][sensor:094]: 'ESP Temperature': Sending state 39.54360 °C with 1 decimals of accuracy
[13:53:30][D][sensor:094]: 'Uptime': Sending state 5540.71777 s with 0 decimals of accuracy

Oui, mais c’est les entités que esp a créer. On dirait que le LD2410 est mal brancher. Tu est sur des soudures ?

Tu devrais avoir des logs avec sensor:094 qui dise qu’un valeur est envoyer.

je vois rien pour ton LD2410

[13:51:35][D][sensor:094]: 'WiFi RSSI': Sending state -47.00000 dBm with 0 decimals of accuracy
[13:51:40][D][sensor:094]: 'Uptime': Sending state 5430.71777 s with 0 decimals of accuracy
[13:51:50][D][sensor:094]: 'Uptime': Sending state 5440.72021 s with 0 decimals of accuracy
[13:51:59][D][sensor:094]: 'ESP Temperature': Sending state 42.17520 °C with 1 decimals of accuracy
[13:52:00][D][sensor:094]: 'Uptime': Sending state 5450.71777 s with 0 decimals of accuracy
[13:52:05][D][sensor:094]: 'WiFi RSSI': Sending state -45.00000 dBm with 0 decimals of accuracy
[13:52:10][D][sensor:094]: 'Uptime': Sending state 5460.71924 s with 0 decimals of accuracy
[13:52:20][D][sensor:094]: 'Uptime': Sending state 5470.72217 s with 0 decimals of accuracy
[13:52:29][D][sensor:094]: 'ESP Temperature': Sending state 41.73660 °C with 1 decimals of accuracy
[13:52:30][D][sensor:094]: 'Uptime': Sending state 5480.71777 s with 0 decimals of accuracy
[13:52:35][D][sensor:094]: 'WiFi RSSI': Sending state -45.00000 dBm with 0 decimals of accuracy
[13:52:40][D][sensor:094]: 'Uptime': Sending state 5490.71777 s with 0 decimals of accuracy
[13:52:50][D][sensor:094]: 'Uptime': Sending state 5500.72314 s with 0 decimals of accuracy
[13:52:59][D][sensor:094]: 'ESP Temperature': Sending state 40.85940 °C with 1 decimals of accuracy
[13:53:00][D][sensor:094]: 'Uptime': Sending state 5510.71777 s with 0 decimals of accuracy
[13:53:05][D][sensor:094]: 'WiFi RSSI': Sending state -47.00000 dBm with 0 decimals of accuracy
[13:53:10][D][sensor:094]: 'Uptime': Sending state 5520.71777 s with 0 decimals of accuracy
[13:53:20][D][sensor:094]: 'Uptime': Sending state 5530.71777 s with 0 decimals of accuracy
[13:53:29][D][sensor:094]: 'ESP Temperature': Sending state 39.54360 °C with 1 decimals of accuracy
[13:53:30][D][sensor:094]: 'Uptime': Sending state 5540.71777 s with 0 decimals of accuracy

tu devrais voir:

[13:47:49][D][sensor:094]: 'Still Energy': Sending state 23.00000 % with 0 decimals of accuracy

les valeurs qu’on vois dans ton logs correspond aux entités que ta mis dans ton code:

  - platform: internal_temperature
    name: ESP Temperature
    unit_of_measurement: °C
    device_class: TEMPERATURE
    update_interval: 30s
    entity_category: "diagnostic"
  - platform: uptime
    name: Uptime
    id: sys_uptime
    update_interval: 10s
  - platform: wifi_signal 
    name: WiFi RSSI
    id: wifi_signal_db
    update_interval: 30s
    entity_category: "diagnostic"

Ca c’est bon, ca fonctionne.

OK, j’ai un deuxième esp en ligne sur lequel je peux souder un autre LD2410c.
Je fais ça ce soir, je verrai s’il y a un problème sur le premier…
Merci pour ton aide,

Bingo !
Tout fonctionne parfaitement avec mon deuxième jeu esp32-S2Mini - LD410c !
Je n’ai plus qu’à bosser sur tous ces paramètres et voir ce qui ne va pas sur le premier…
Merci WarC0zes pour ton aide et à bientôt pour de nouvelles questions… :smirk:
patrickp78

1 « J'aime »

un soucis de matériel ou soudure ?