# ESP32-LD2410 - Pb réglage sur détection de lumière

**URL:** <https://forum.hacf.fr/t/esp32-ld2410-pb-reglage-sur-detection-de-lumiere/65124>\
**Category:** Entraide Home Assistant\
**Tags:** automatisation-automation, aide, zigbee2mqtt\
**Created:** [Juillet 20, 2025, 10:25 UTC](https://forum.hacf.fr/t/esp32-ld2410-pb-reglage-sur-detection-de-lumiere/65124 "2025-07-20T10:25:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Juillet 20, 2025, 10:39 UTC](https://forum.hacf.fr/t/esp32-ld2410-pb-reglage-sur-detection-de-lumiere/65124/2 "2025-07-20T10:39:36Z")

</div>

Bonjour,  
j'utilise le capteur de lumière intégré au LD2410 et fais l'automatisation directement dans le code du ESP.

> [@\[Article\] Multi-capteurs DYI : radar de présence, température, lumière et bien plus](https://forum.hacf.fr/t/article-multi-capteurs-dyi-radar-de-presence-temperature-lumiere-et-bien-plus/65051/7):
>
> Bonjour, tu ne parles pas du mode engineering et du capteur de lumière sur le LD2410. A moins que j’ai mal lu. Je le trouve pratique quand on n’a pas de capteur de luminosité, pour faire des scenarios. esphome: name: ${name} name\_add\_mac\_suffix: false friendly\_name: ${friendly\_name} on\_boot: then: - switch.turn\_on: engineering\_mode\_on sensor: - platform: ld2410 light: #intensité lumineuse name: light id: lightintensite switch: - platform: ld2410 …

> [@\[Article\] Multi-capteurs DYI : radar de présence, température, lumière et bien plus](https://forum.hacf.fr/t/article-multi-capteurs-dyi-radar-de-presence-temperature-lumiere-et-bien-plus/65051/7):
>
> ```auto
> esphome:
> name: ${name}
> name_add_mac_suffix: false
> friendly_name: ${friendly_name}
> on_boot: 
> then:      
> - switch.turn_on: engineering_mode_on
> 
> sensor:
> - platform: ld2410
> light: #intensité lumineuse
> name: light
> id: lightintensite
> 
> switch:
> - platform: ld2410
> engineering_mode:
> name: engineering mode
> id: engineering_mode_on
> entity_category: "diagnostic"
> 
> ```
> 
> ```auto
> - platform: ld2410
> has_target: #Présence
> name: Presence
> on_press:
> - if:
> condition:
> lambda: return id(lightintensite).state < 95;
> then:
> - homeassistant.action:
> action: light.turn_on
> data:
> entity_id: light.0x00158d000501ccd9
> on_release:
> - if:
> condition:
> text_sensor.state:
> id: hotteaspirante
> state: 'off'
> then:
> - homeassistant.action:
> action: light.turn_off
> data:
> entity_id: light.0x00158d000501ccd9
> 
> ```

avant je passais par une automatisation sur HA:

```auto
alias: Cuisine Auto Présence
description: ""
mode: single
triggers:
  - entity_id:
      - binary_sensor.s3_display_presence
    to: "on"
    id: "on"
    trigger: state
  - entity_id:
      - binary_sensor.s3_display_presence
    to: "off"
    id: "off"
    trigger: state
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "on"
          - condition: numeric_state
            entity_id: sensor.s3_display_light
            below: 95
            enabled: true
        sequence:
          - data: {}
            target:
              entity_id: light.0x00158d000501ccd9
            action: light.turn_on
      - conditions:
          - condition: trigger
            id:
              - "off"
        sequence:
          - data: {}
            target:
              entity_id: light.0x00158d000501ccd9
            action: light.turn_off

```

---

_[View the full topic](https://forum.hacf.fr/t/esp32-ld2410-pb-reglage-sur-detection-de-lumiere/65124)._
