Best UI to help configure the LD2410

What UIs are available for configuring the HLK-LD2410 presence sensor? I have both the B and C versions, and recently picked up a 2450. I know there are lots of sliders, but not the most friendly to use or optimize the setup. Something like the phone app but on desktop but more friendly. Or maybe someone has come up with a good set of steps for using the app??

Thanks.

1 Like

You can use the app if you want and the sliders will follow. Just enable bluetooth while using the app. Because it is a one time thing to set them right I didn’t bother to create a dashboard for it. The advantage is you can us your phone to walk around in the room while adjusting.

The sliders work for me too, in engineering mode I look at the numbers for the distance that is causing problems, and slightly adjust the slider to change the sensitivity.

I had put together a card based on Plotly Graphs that shows the charts similar to the HLK app:

The aim is to keep the Threshold line above the Energy line when no detection is desired so you will need to walk around and monitor how the Energy line moves and adjust the thresholds according when you are not present to ensure it detects you but not the ambient energy levels in the room that your LD2410 is picking up.

5 Likes

Very nice! Thanks for sharing!

That looks really nice.

How do I pass the name of my sensor?
What does $ex hass.states[“number.g0_still_threshold”].state mean?

The number.g0_still_threshold is the sensor name for the gate 0 still threshold value.
Have updated the code to use variables now instead of having to change each gate value from 0 to 8 with your sensor name.

So for example, my sensor names are:

number.g0_still_threshold_front_door
number.g1_still_threshold_front_door
number.g2_still_threshold_front_door
number.g3_still_threshold_front_door
number.g4_still_threshold_front_door
number.g5_still_threshold_front_door
number.g6_still_threshold_front_door
number.g7_still_threshold_front_door
number.g8_still_threshold_front_door
sensor.g0_still_energy_front_door
sensor.g1_still_energy_front_door
sensor.g2_still_energy_front_door
sensor.g3_still_energy_front_door
sensor.g4_still_energy_front_door
sensor.g5_still_energy_front_door
sensor.g6_still_energy_front_door
sensor.g7_still_energy_front_door

With my updated code, you just need to update the following variables:

  - $ex vars.stillEnergySensorName = "still_energy_front_door"
  - $ex vars.stillThresholdSensorName = "still_threshold_front_door"

[quote=“athua, post:8, topic:736913”]

now I got it, thanks a lot !!
1 Like

Excellent solution!
Thank you so much, my friend, for sharing!