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

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 »