HLK-LD2450 Initial experiments to connect to HomeAssistant

Could you provide the latest firmware for HLK ld-2450 and the method to update the radar.

about zone.h and where to put it, i dont understand you say to put it where the yaml is. so does that i have to put it on the esp32 or what do you mean. and you say its easier to compile the code on pc…? How to do that :slight_smile:

Put the zone.h in the same folder as the yaml config file on Hass, go to esphome dashboard and compile/install the ld2450 yaml config.

3 Likes

Thanks for your help:slight_smile:

@Selecus First of all, thanks for your work! I am currently using 4 zones and also the ā€œTarget must leaveā€ function. It’s working great so far, but I’m still testing.

However, I would also like to use the ESP32 as a Bluetooth proxy, but when I try to enable this in the ESPHome code, the program becomes too large. Is there a way to solve this?

I tried using this code along with bluetooth proxy and I’m getting Error: The program size (1994633 bytes) is greater than maximum allowed (1835008 bytes)

Shouldn’t it be able to fit together?

You need the HLKRadar Tool from Play Store (or whatever iphone like)

The most up to date Firmware is still 2.04.23101915 which is kinda old.
Not sure why there are no new firmware version… did HKL produce a newer better version?

Does anyone tried to combine two sensors on one esp32-s3?

I tried to add second sensor in the code but still didn’t manage because of lot compile errors.

I want to combine two sensors so that they point to different directions

Its been a while since you wrote this, I was wondering if there were any more multi target updates? I’m curious if its something we can code out of the box or if we have to change the firmware somehow. Also, do you have a link/source for the firmware? I cannot find it anywhere…

For anyone who has based their YAML implementation on the screek code, upgrading to esphome 2025.2.1 will result in errors due to the code including via external components an old version of esp32. Making the following changes should allow it to be updated:

external_components:
  - source:
      type: git
      url: https://github.com/screekworkshop/custom_components_support_for_screek_2a
      ref: main
    components: [uart]

Also add ā€˜ignore_pin_validation_error: true’ to the pin configuration for GPIO12 and GPIO13 like below:

output:
  - platform: gpio
    id: board_info_ed
    pin: 
      number: GPIO12
      ignore_pin_validation_error: true

thx, we update the github code now. Update: Support ESPHome 2025.2.0, remove kernel modifications Ā· screekworkshop/screek-human-sensor@db2b68d Ā· GitHub

i Get this error after i try to modify the code to work on a esp8266.

Compiling .pioenvs/screek-human-sensor-2a/lib67b/ESP8266WiFi/ESP8266WiFiAP.cpp.o
/config/esphome/mmwave-koekken.yaml: In lambda function:
/config/esphome/mmwave-koekken.yaml:665:14: error: 'temperatureRead' was not declared in this scope
  665 |     unit_of_measurement: °C
      |              ^~~~~~~~~~~~~~
/config/esphome/mmwave-koekken.yaml: In lambda function:
/config/esphome/mmwave-koekken.yaml:683:38: error: 'MALLOC_CAP_INTERNAL' was not declared in this scope
  683 |     unit_of_measurement: 'kB'
      |                                      ^                  
/config/esphome/mmwave-koekken.yaml:683:14: error: 'heap_caps_get_free_size' was not declared in this scope
  683 |     unit_of_measurement: 'kB'
      |              ^~~~~~~~~~~~~~~~       
Compiling .pioenvs/screek-human-sensor-2a/lib67b/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
*** [.pioenvs/screek-human-sensor-2a/src/main.cpp.o] Error 1
========================= [FAILED] Took 33.25 seconds =========================

Hi guys, could you please help? Maybe someone has encountered this issue— the blue marker is constantly at zero. How can I make it move?

good luck with that it’ll never move lol
this fooled me once to its marking the center spot of where your sensor is ?
walk through the room and you should see a another appear

I walk around the room, but it doesn’t move anywhere. I created 3 zones, and when I walk around the room, the zones change colors, but ā€œperson 1ā€ stays at zero.

I would like to take different and easy route to hack LD2450 by replacing transmit antenna with 25 dBi gain and narrower beamwidth.

What do you think would be consequence besides longer range ?

Thanks.

I would use this antenna for transmission:

Can you post the yaml code that you are using for the chart?
Something to check is that the unit of measure for the zones and for the ā€˜person 1’ co-ordinates are the same. Take a look at the X and Y sensor values for ā€˜person 1’ and whether they are within the ranges setup for the zones.

Does the tool software only work with Windows? Trying to get the demo to work with a Mac. Barring that, I’ve created Micropython code for this thing, but I can’t seem to get it to work with 2-3 targets. I think it might be a firmware issue…

Did you ever figure out how to visualize the sensor display in Home Assistant?