Using two ld2450 on one esp32

HI I have set up a few esp32’s with ld2450 and it has been working but I would like to use two ld2450 on one esp32 and basically have coverage from one side of a wall to another. I’m not even sure if it is possible.


esp32:
  board: esp32dev
  framework:
    type: esp-idf

external_components:
  - source:
      type: git
      url: https://github.com/hareeshmu/esphome
      ref: ld2450
    components: [ ld2450 ]

uart:
  - id: uart_1
    rx_pin:  
      number: GPIO16
      mode:
        input: true
        pullup: true
  -  tx_pin: 
      number: GPIO17
      mode:
        input: true
        pullup: true
    baud_rate: 256000
  - id: uart_bus_2
    rx_pin: 
      number: GPIO03
      mode:
        input: true
        pullup: true
    tx_pin: 
      number: GPIO01
      mode:
        input: true
        pullup: true
    baud_rate: 256000
  parity: NONE
  stop_bits: 1
  data_bits: 8




ld2450:
  id: ld2450_radar
  uart_id: uart_bus
  throttle: 1000ms

binary_sensor:
  - platform: ld2450
    ld2450_id: ld2450_radar
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target
  - platform: template
    name: "Zone-1 Presence"
    id: zone_1_presence
    device_class: motion
  - platform: template
    name: "Zone-2 Presence"
    id: zone_2_presence
    device_class: motion
  - platform: template
    name: "Zone-3 Presence"
    id: zone_3_presence
    device_class: motion

  - platform: ld2450
    ld2450_id: ld2450_radar_2
    has_target:
      name: Presence 2
    has_moving_target:
      name: Moving Target 2
    has_still_target:
      name: Still Target 2
  - platform: template
    name: "Zone-4 Presence"
    id: zone_4_presence
    device_class: motion
  - platform: template
    name: "Zone-5 Presence"
    id: zone_5_presence
    device_class: motion
  - platform: template
    name: "Zone-6 Presence"
    id: zone_6_presence
    device_class: motion
    
button:
  - platform: restart
    icon: mdi:power-cycle
    name: "Reboot"

number:
  - platform: ld2450
    ld2450_id: ld2450_radar
    presence_timeout:
      name: "Timeout"
    zone_1:
      x1:
        name: Zone-1 X1
      y1:
        name: Zone-1 Y1
      x2:
        name: Zone-1 X2
      y2:
        name: Zone-1 Y2
    zone_2:
      x1:
        name: Zone-2 X1
      y1:
        name: Zone-2 Y1
      x2:
        name: Zone-2 X2
      y2:
        name: Zone-2 Y2
    zone_3:
      x1:
        name: Zone-3 X1
      y1:
        name: Zone-3 Y1
      x2:
        name: Zone-3 X2
      y2:
        name: Zone-3 Y2

  - platform: ld2450
    ld2450_id: ld2450_radar_2
    presence_timeout:
      name: "Timeout"
    zone_4_presence:
      x1:
        name: Zone-4 X1
      y1:
        name: Zone-4 Y1
      x2:
        name: Zone-4 X2
      y2:
        name: Zone-4 Y2
    zone_5_presence:
      x1:
        name: Zone-5 X1
      y1:
        name: Zone-5 Y1
      x2:
        name: Zone-5 X2
      y2:
        name: Zone-5 Y2
    zone_6_presence:
      x1:
        name: Zone-6 X1
      y1:
        name: Zone-6 Y1
      x2:
        name: Zone-6 X2
      y2:
        name: Zone-6 Y2

output:
  - platform: ledc
    pin:
      number: GPIO2
      mode: OUTPUT
    id: notif_gpio

light:
  - platform: monochromatic
    name: "On Board LED"
    output: notif_gpio
    id: notif_light
    default_transition_length: 0.3s
    restore_mode: ALWAYS_OFF

switch:
  - platform: ld2450
    ld2450_id: ld2450_radar
    bluetooth:
      name: "Bluetooth"
    multi_target:
      name: "Multi Target Tracking"

select:
  - platform: ld2450
    ld2450_id: ld2450_radar
    baud_rate:
      name: "Baud rate"
    zone_type:
      name: "Zone Type"

  - platform: ld2450
    ld2450_id: ld2450_radar_2
    baud_rate:
      name: "Baud rate"
    zone_type:
      name: "Zone Type"


text_sensor:
  - platform: ld2450
    ld2450_id: ld2450_radar
    version:
      name: "LD2450 Firmware"
    mac_address:
      name: "LD2450 BT MAC"
    target_1:
      direction:
        name: "Target-1 Direction"
    target_2:
      direction:
        name: "Target-2 Direction"
    target_3:
      direction:
        name: "Target-3 Direction"
  
  - platform: ld2450
    ld2450_id: ld2450_radar_2
    version:
      name: "LD2450 Firmware"
    mac_address:
      name: "LD2450 BT MAC"
    target_1:
      direction:
        name: "Target-4 Direction"
    target_2:
      direction:
        name: "Target-5 Direction"
    target_3:
      direction:
        name: "Target-6 Direction"

sensor:

    
  - platform: ld2450
    ld2450_id: ld2450_radar
    target_count:
      name: Presence Target Count
    still_target_count:
      name: Still Target Count
    moving_target_count:
      name: Moving Target Count
    target_1:
      x:
        name: Target-1 X
      y:
        name: Target-1 Y
      speed:
        name: Target-1 Speed
      angle:
        name: Target-1 Angle
      distance:
        name: Target-1 Distance
      resolution:
        name: Target-1 Resolution
    target_2:
      x:
        name: Target-2 X
      y:
        name: Target-2 Y
      speed:
        name: Target-2 Speed
      angle:
        name: Target-2 Angle
      distance:
        name: Target-2 Distance
      resolution:
        name: Target-2 Resolution
    target_3:
      x:
        name: Target-3 X
      y:
        name: Target-3 Y
      speed:
        name: Target-3 Speed
      angle:
        name: Target-3 Angle
      distance:
        name: Target-3 Distance
      resolution:
        name: Target-3 Resolution
    zone_1:
      target_count:
        name: Zone-1 All Target Count
        id: zone_1_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_1_presence
                state: !lambda 'return id(zone_1_count).state > 0;'
      still_target_count:
        name: Zone-1 Still Target Count
      moving_target_count:
        name: Zone-1 Moving Target Count
    zone_2:
      target_count:
        name: Zone-2 All Target Count
        id: zone_2_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_2_presence
                state: !lambda 'return id(zone_2_count).state > 0;'
      still_target_count:
        name: Zone-2 Still Target Count
      moving_target_count:
        name: Zone-2 Moving Target Count
    zone_3:
      target_count:
        name: Zone-3 All Target Count
        id: zone_3_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_3_presence
                state: !lambda 'return id(zone_3_count).state > 0;'
      still_target_count:
        name: Zone-3 Still Target Count
      moving_target_count:
        name: Zone-3 Moving Target Count

  - platform: ld2450
    ld2450_id: ld2450_radar_2
    target_count:
      name: Presence Target Count 2
    still_target_count:
      name: Still Target Count 2
    moving_target_count:
      name: Moving Target Count 2
    target_4:
      x:
        name: Target-4 X
      y:
        name: Target-4 Y
      speed:
        name: Target-4 Speed
      angle:
        name: Target-4 Angle
      distance:
        name: Target-4 Distance
      resolution:
        name: Target-4 Resolution
    target_5:
      x:
        name: Target-5 X
      y:
        name: Target-5 Y
      speed:
        name: Target-5 Speed
      angle:
        name: Target-5 Angle
      distance:
        name: Target-5 Distance
      resolution:
        name: Target-5 Resolution
    target_6:
      x:
        name: Target-6 X
      y:
        name: Target-6 Y
      speed:
        name: Target-6 Speed
      angle:
        name: Target-6 Angle
      distance:
        name: Target-6 Distance
      resolution:
        name: Target-6 Resolution
    zone_4:
      target_count:
        name: Zone-4 All Target Count
        id: zone_4_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_4_presence
                state: !lambda 'return id(zone_4_count).state > 0;'
      still_target_count:
        name: Zone-4 Still Target Count
      moving_target_count:
        name: Zone-4 Moving Target Count
    zone_5:
      target_count:
        name: Zone-5 All Target Count
        id: zone_5_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_5_presence
                state: !lambda 'return id(zone_5_count).state > 0;'
      still_target_count:
        name: Zone-5 Still Target Count
      moving_target_count:
        name: Zone-5 Moving Target Count
    zone_6:
      target_count:
        name: Zone-6 All Target Count
        id: zone_6_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_6_presence
                state: !lambda 'return id(zone_6_count).state > 0;'
      still_target_count:
        name: Zone-6 Still Target Count
      moving_target_count:
        name: Zone-6 Moving Target Count

this works

esp32:
  board: esp32dev
  framework:
    type: esp-idf

external_components:
  - source:
      type: git
      url: https://github.com/hareeshmu/esphome
      ref: ld2450
    components: [ ld2450 ]

uart:
  id: uart_bus
  rx_pin: 
    number: GPIO16
    mode:
      input: true
      pullup: true
  tx_pin: 
    number: GPIO17
    mode:
      input: true
      pullup: true
  baud_rate: 256000
  parity: NONE
  stop_bits: 1
  data_bits: 8

ld2450:
  id: ld2450_radar
  uart_id: uart_bus
  throttle: 1000ms

binary_sensor:
  - platform: ld2450
    ld2450_id: ld2450_radar
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target
  - platform: template
    name: "Zone-1 Presence"
    id: zone_1_presence
    device_class: motion
  - platform: template
    name: "Zone-2 Presence"
    id: zone_2_presence
    device_class: motion
  - platform: template
    name: "Zone-3 Presence"
    id: zone_3_presence
    device_class: motion
    
button:
  - platform: restart
    icon: mdi:power-cycle
    name: "Reboot Sensor"

number:
  - platform: ld2450
    ld2450_id: ld2450_radar
    presence_timeout:
      name: "Timeout"
    zone_1:
      x1:
        name: Zone-1 X1
      y1:
        name: Zone-1 Y1
      x2:
        name: Zone-1 X2
      y2:
        name: Zone-1 Y2
    zone_2:
      x1:
        name: Zone-2 X1
      y1:
        name: Zone-2 Y1
      x2:
        name: Zone-2 X2
      y2:
        name: Zone-2 Y2
    zone_3:
      x1:
        name: Zone-3 X1
      y1:
        name: Zone-3 Y1
      x2:
        name: Zone-3 X2
      y2:
        name: Zone-3 Y2

output:
  - platform: ledc
    pin:
      number: GPIO2
      mode: OUTPUT
    id: notif_gpio

light:
  - platform: monochromatic
    name: "On Board LED"
    output: notif_gpio
    id: notif_light
    default_transition_length: 0.3s
    restore_mode: ALWAYS_OFF

switch:
  - platform: ld2450
    ld2450_id: ld2450_radar
    bluetooth:
      name: "Bluetooth"
    multi_target:
      name: "Multi Target Tracking"

  - platform: restart
    name: "Living Room Restart"

select:
  - platform: ld2450
    ld2450_id: ld2450_radar
    baud_rate:
      name: "Baud rate"
    zone_type:
      name: "Zone Type"

text_sensor:
  - platform: ld2450
    ld2450_id: ld2450_radar
    version:
      name: "LD2450 Firmware"
    mac_address:
      name: "LD2450 BT MAC"
    target_1:
      direction:
        name: "Target-1 Direction"
    target_2:
      direction:
        name: "Target-2 Direction"
    target_3:
      direction:
        name: "Target-3 Direction"

sensor:

    
  - platform: ld2450
    ld2450_id: ld2450_radar
    target_count:
      name: Presence Target Count
    still_target_count:
      name: Still Target Count
    moving_target_count:
      name: Moving Target Count
    target_1:
      x:
        name: Target-1 X
      y:
        name: Target-1 Y
      speed:
        name: Target-1 Speed
      angle:
        name: Target-1 Angle
      distance:
        name: Target-1 Distance
      resolution:
        name: Target-1 Resolution
    target_2:
      x:
        name: Target-2 X
      y:
        name: Target-2 Y
      speed:
        name: Target-2 Speed
      angle:
        name: Target-2 Angle
      distance:
        name: Target-2 Distance
      resolution:
        name: Target-2 Resolution
    target_3:
      x:
        name: Target-3 X
      y:
        name: Target-3 Y
      speed:
        name: Target-3 Speed
      angle:
        name: Target-3 Angle
      distance:
        name: Target-3 Distance
      resolution:
        name: Target-3 Resolution
    zone_1:
      target_count:
        name: Zone-1 All Target Count
        id: zone_1_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_1_presence
                state: !lambda 'return id(zone_1_count).state > 0;'
      still_target_count:
        name: Zone-1 Still Target Count
      moving_target_count:
        name: Zone-1 Moving Target Count
    zone_2:
      target_count:
        name: Zone-2 All Target Count
        id: zone_2_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_2_presence
                state: !lambda 'return id(zone_2_count).state > 0;'
      still_target_count:
        name: Zone-2 Still Target Count
      moving_target_count:
        name: Zone-2 Moving Target Count
    zone_3:
      target_count:
        name: Zone-3 All Target Count
        id: zone_3_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_3_presence
                state: !lambda 'return id(zone_3_count).state > 0;'
      still_target_count:
        name: Zone-3 Still Target Count
      moving_target_count:
        name: Zone-3 Moving Target Count

@kools did you get it to work?

did it work? I am planing to use 2x ESP32 & 2x ld2450 to get 360 degrees detection and bump into yout post.

Anyone got it to work?

Yes, finally got it to work. Here is the code I used


substitutions:
  name: esphome-web-f8da9c
  friendly_name: Dual LD2450 Radar

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  min_version: 2024.6.0
  name_add_mac_suffix: false
  project:
    name: esphome.web
    version: dev

esp32:
  board: esp32dev
  framework:
    type: esp-idf

external_components:
  - source:
      type: git
      url: https://github.com/hareeshmu/esphome
      ref: ld2450
    components: [ ld2450 ]

# -----------------------------
# ✅ UART BUS
# -----------------------------
uart:
  - id: uart_ld1
    rx_pin: GPIO16
    tx_pin: GPIO17
    baud_rate: 256000

  - id: uart_ld2
    rx_pin: GPIO3
    tx_pin: GPIO1
    baud_rate: 256000

# -----------------------------
# ✅ LD2450 SENSOR
# -----------------------------
ld2450:
  - id: ld1
    uart_id: uart_ld1
    throttle: 500ms

  - id: ld2
    uart_id: uart_ld2
    throttle: 500ms

# -----------------------------
# ✅ BINARY SENSORS
# -----------------------------
binary_sensor:
  # Sensor 1
  - platform: ld2450
    ld2450_id: ld1
    has_target:
      name: "LD2450 #1 Presence"
    has_moving_target:
      name: "LD2450 #1 Moving"
    has_still_target:
      name: "LD2450 #1 Still"
  - platform: template
    name: "LD2450 #1 Zone-1 Presence"
    id: zone_11_presence
    device_class: presence
  - platform: template
    name: "LD2450 #1 Zone-2 Presence"
    id: zone_12_presence
    device_class: presence
  - platform: template
    name: "LD2450 #1 Zone-3 Presence"
    id: zone_13_presence
    device_class: presence
    
  # Sensor 2
  - platform: ld2450
    ld2450_id: ld2
    has_target:
      name: "LD2450 #2 Presence"
    has_moving_target:
      name: "LD2450 #2 Moving"
    has_still_target:
      name: "LD2450 #2 Still"
  - platform: template
    name: "LD2450 #2 Zone-1 Presence"
    id: zone_21_presence
    device_class: presence
  - platform: template
    name: "LD2450 #2 Zone-2 Presence"
    id: zone_22_presence
    device_class: presence
  - platform: template
    name: "LD2450 #2 Zone-3 Presence"
    id: zone_23_presence
    device_class: presence

# -----------------------------
# ✅ SWITCHES (BT + Multi-target)
# -----------------------------
switch:
  - platform: ld2450
    ld2450_id: ld1
    bluetooth:
      name: "LD2450 #1 Bluetooth"
    multi_target:
      name: "LD2450 #1 Multi Target"

  - platform: ld2450
    ld2450_id: ld2
    bluetooth:
      name: "LD2450 #2 Bluetooth"
    multi_target:
      name: "LD2450 #2 Multi Target"

# -----------------------------
# ✅ SELECTS (Baudrate + Zone type)
# -----------------------------
select:
  - platform: ld2450
    ld2450_id: ld1
    baud_rate:
      name: "LD2450 #1 Baudrate"
    zone_type:
      name: "LD2450 #1 Zone Type"

  - platform: ld2450
    ld2450_id: ld2
    baud_rate:
      name: "LD2450 #2 Baudrate"
    zone_type:
      name: "LD2450 #2 Zone Type"

# -----------------------------
# ✅ TEXT SENSORS (Firmware, MAC, Directions)
# -----------------------------
text_sensor:
  # Sensor 1
  - platform: ld2450
    ld2450_id: ld1
    version:
      name: "LD2450 #1 Firmware"
    mac_address:
      name: "LD2450 #1 BT MAC"
    target_1:
      direction:
        name: "LD2450 #1 Target-1 Direction"
    target_2:
      direction:
        name: "LD2450 #1 Target-2 Direction"
    target_3:
      direction:
        name: "LD2450 #1 Target-3 Direction"

  # Sensor 2
  - platform: ld2450
    ld2450_id: ld2
    version:
      name: "LD2450 #2 Firmware"
    mac_address:
      name: "LD2450 #2 BT MAC"
    target_1:
      direction:
        name: "LD2450 #2 Target-1 Direction"
    target_2:
      direction:
        name: "LD2450 #2 Target-2 Direction"
    target_3:
      direction:
        name: "LD2450 #2 Target-3 Direction"

# -----------------------------
# ✅ NUMBERS (Zones + Timeout)
# -----------------------------
number:
  - platform: ld2450
    ld2450_id: ld1
    presence_timeout:
      name: "LD2450 #1 Timeout"
    zone_1:
      x1: { name: "LD2450 #1 Zone1 X1" }
      y1: { name: "LD2450 #1 Zone1 Y1" }
      x2: { name: "LD2450 #1 Zone1 X2" }
      y2: { name: "LD2450 #1 Zone1 Y2" }
    zone_2:
      x1: { name: "LD2450 #1 Zone2 X1" }
      y1: { name: "LD2450 #1 Zone2 Y1" }
      x2: { name: "LD2450 #1 Zone2 X2" }
      y2: { name: "LD2450 #1 Zone2 Y2" }
    zone_3:
      x1: { name: "LD2450 #1 Zone3 X1" }
      y1: { name: "LD2450 #1 Zone3 Y1" }
      x2: { name: "LD2450 #1 Zone3 X2" }
      y2: { name: "LD2450 #1 Zone3 Y2" }

  - platform: ld2450
    ld2450_id: ld2
    presence_timeout:
      name: "LD2450 #2 Timeout"
    zone_1:
      x1: { name: "LD2450 #2 Zone1 X1" }
      y1: { name: "LD2450 #2 Zone1 Y1" }
      x2: { name: "LD2450 #2 Zone1 X2" }
      y2: { name: "LD2450 #2 Zone1 Y2" }
    zone_2:
      x1: { name: "LD2450 #2 Zone2 X1" }
      y1: { name: "LD2450 #2 Zone2 Y1" }
      x2: { name: "LD2450 #2 Zone2 X2" }
      y2: { name: "LD2450 #2 Zone2 Y2" }
    zone_3:
      x1: { name: "LD2450 #2 Zone3 X1" }
      y1: { name: "LD2450 #2 Zone3 Y1" }
      x2: { name: "LD2450 #2 Zone3 X2" }
      y2: { name: "LD2450 #2 Zone3 Y2" }

# -----------------------------
# ✅ SENSORS (Targets, Counts, Zones)
# -----------------------------
sensor:
  # Sensor 1
  - platform: ld2450
    ld2450_id: ld1
    target_count:
      name: "LD2450 #1 Target Count"
    still_target_count:
      name: "LD2450 #1 Still Count"
    moving_target_count:
      name: "LD2450 #1 Moving Count"

    target_1:
      x: { name: "LD2450 #1 Target1 X" }
      y: { name: "LD2450 #1 Target1 Y" }
      speed: { name: "LD2450 #1 Target1 Speed" }
      angle: { name: "LD2450 #1 Target1 Angle" }
      distance: { name: "LD2450 #1 Target1 Distance" }
      resolution: { name: "LD2450 #1 Target1 Resolution" }

    target_2:
      x: { name: "LD2450 #1 Target2 X" }
      y: { name: "LD2450 #1 Target2 Y" }
      speed: { name: "LD2450 #1 Target2 Speed" }
      angle: { name: "LD2450 #1 Target2 Angle" }
      distance: { name: "LD2450 #1 Target2 Distance" }
      resolution: { name: "LD2450 #1 Target2 Resolution" }

    target_3:
      x: { name: "LD2450 #1 Target3 X" }
      y: { name: "LD2450 #1 Target3 Y" }
      speed: { name: "LD2450 #1 Target3 Speed" }
      angle: { name: "LD2450 #1 Target3 Angle" }
      distance: { name: "LD2450 #1 Target3 Distance" }
      resolution: { name: "LD2450 #1 Target3 Resolution" }
    
    zone_1:
      target_count:
        name: "LD2450 #1 Zone_1 All Target Count"
        id: zone_11_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_11_presence
                state: !lambda 'return id(zone_11_count).state > 0;'
      still_target_count:
        name: "LD2450 #1 Zone-1 Still Target Count"
      moving_target_count:
        name: "LD2450 #1 Zone-1 Moving Target Count"
    
    zone_2:
      target_count:
        name: "LD2450 #1 Zone-2 All Target Count"
        id: zone_12_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_12_presence
                state: !lambda 'return id(zone_12_count).state > 0;'
      still_target_count:
        name: "LD2450 #1 Zone-2 Still Target Count"
      moving_target_count:
        name: "LD2450 #1 Zone-2 Moving Target Count"
    
    zone_3:
      target_count:
        name: "LD2450 #1 Zone-3 All Target Count"
        id: zone_13_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_13_presence
                state: !lambda 'return id(zone_13_count).state > 0;'
      still_target_count:
        name: "LD2450 #1 Zone-3 Still Target Count"
      moving_target_count:
        name: "LD2450 #1 Zone-3 Moving Target Count" 
        
  # Sensor 2
  - platform: ld2450
    ld2450_id: ld2
    target_count:
      name: "LD2450 #2 Target Count"
    still_target_count:
      name: "LD2450 #2 Still Count"
    moving_target_count:
      name: "LD2450 #2 Moving Count"

    target_1:
      x: { name: "LD2450 #2 Target1 X" }
      y: { name: "LD2450 #2 Target1 Y" }
      speed: { name: "LD2450 #2 Target1 Speed" }
      angle: { name: "LD2450 #2 Target1 Angle" }
      distance: { name: "LD2450 #2 Target1 Distance" }
      resolution: { name: "LD2450 #2 Target1 Resolution" }

    target_2:
      x: { name: "LD2450 #2 Target2 X" }
      y: { name: "LD2450 #2 Target2 Y" }
      speed: { name: "LD2450 #2 Target2 Speed" }
      angle: { name: "LD2450 #2 Target2 Angle" }
      distance: { name: "LD2450 #2 Target2 Distance" }
      resolution: { name: "LD2450 #2 Target2 Resolution" }

    target_3:
      x: { name: "LD2450 #2 Target3 X" }
      y: { name: "LD2450 #2 Target3 Y" }
      speed: { name: "LD2450 #2 Target3 Speed" }
      angle: { name: "LD2450 #2 Target3 Angle" }
      distance: { name: "LD2450 #2 Target3 Distance" }
      resolution: { name: "LD2450 #2 Target3 Resolution" }
    
    zone_1:
      target_count:
        name: "LD2450 #2 Zone_1 All Target Count"
        id: zone_21_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_21_presence
                state: !lambda 'return id(zone_21_count).state > 0;'
      still_target_count:
        name: "LD2450 #2 Zone-1 Still Target Count"
      moving_target_count:
        name: "LD2450 #2 Zone-1 Moving Target Count"
    
    zone_2:
      target_count:
        name: "LD2450 #2 Zone-2 All Target Count"
        id: zone_22_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_22_presence
                state: !lambda 'return id(zone_22_count).state > 0;'
      still_target_count:
        name: "LD2450 #2 Zone-2 Still Target Count"
      moving_target_count:
        name: "LD2450 #2 Zone-2 Moving Target Count"
    
    zone_3:
      target_count:
        name: "LD2450 #2 Zone-3 All Target Count"
        id: zone_23_count
        on_value:
        - then:
            - binary_sensor.template.publish:
                id: zone_23_presence
                state: !lambda 'return id(zone_23_count).state > 0;'
      still_target_count:
        name: "LD2450 #2 Zone-3 Still Target Count"
      moving_target_count:
        name: "LD2450 #2 Zone-3 Moving Target Count" 


# -----------------------------
# ✅ BASIS
# -----------------------------
logger:

api:

ota:
- platform: esphome

wifi:
  ap: {}

captive_portal:

improv_serial:

dashboard_import:
  package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
  import_full_config: true

esp32_improv:
  authorizer: none

# To have a "next url" for improv serial
web_server:
1 Like