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?