patrick3399 / Hi-Link_mmWave_Radar_ESPHome

Hi-Link LD1115H, LD1125H, LD017, LD016 mmWave Radar with ESPHome Example Code
246 stars 36 forks source link

Settings (TH1 TH2, Fading times) don't get saved #7

Open softhuntermike opened 2 years ago

softhuntermike commented 2 years ago

Whenever the sensor is restarted (eg.unplugged then replugged), TH1, TH2, fading settings get reset to original (TH1=120, TH2=250, Clearence Time = 5, Movement time =1).

softhuntermike commented 2 years ago

It doesn't write the new settings it seemed. After adjusting, a refresh will reset everything back

patrick3399 commented 2 years ago

In template number, if restore_value set to true, it will restore the value.

r34220 commented 1 year ago

I see the same. restore_value is set to true but nothing is saved.

Surgikill commented 6 months ago

I have this same issue. Is there any fix for it?

Surgikill commented 6 months ago

I fixed this issue.

https://github.com/Surgikill/LD1125h_esp32/blob/main/presencebox/presencebox_esphome.yaml

There needs to be a delay between each uart.write message or else it floods the uart and the presence sensor cannot receive the messages.