I’ve had a LD2420 based presence sensor that has been rock solid stable for months if not a year. Suddenly it seems to be very unreliable, almost loses config or something then basically requires a hard reset (pulling power, simply rebooting the esp32 via software doesn’t work)
Any ideas here? I have the hardware to simply replace everything but I’d like to get to the bottom of it and understand what’s going on. The yaml is full “stock” as listed in the general guide from esphome pages. Is there a way to pull any kind of logs to troubleshoot?
Are you running ESPHome builder? If so, click on the logs button.
I never found the sample code to be that stable. If your requirement is simple motion detection, use the sample code to set the parameters, then remove everything except the binary sensor for motion on the presence signal pin.
I didn’t see anything obvious in the logs at all. The best way I can describe it is that it’s almost as if it’s configuration just “goes away”. Hard reboot (pull power) brings it back - then after several hours it just happens again… This is pre-reboot after it’s stopped working:
less than 8 hours go by before it goes into what I’m calling the “lost config” state - trying to narrow down the timeline further but today that’s what I’ve been able to determine.
Thx - disabled the webserver - let’s see how that does. Kinda odd though because the YAML hasn’t changed since I deployed it really - the instability just came out of no where.
Disabling the webserver bought me like 48 hours as opposed to ~8 which is great but something is clearly still amiss, any other ideas or sample simplified code? I guess I could also just throw a beafier ESP32 at it but I’d still love to figure out why something that went from rock solid is suddenly not anymore
My only suggestion is to roll back to a previous version, if that works.
I have one device that runs on 2024.11, that was because there were issues with temperature sensors introduced then that I couldn’t be bothered fixing. I have a large project that is still on 2025.5 because the next update changed how http_request: was handled and it broke badly.
I use the “Legacy ESPHome versions repository” which means I can have previous versions of the builder running in parallel to the current one.
BTW there were changes to the Arduino framework that main affected ESP32s (considerable increase in size) that happened with 2025/7. Possibly caused memory issues with ESP8266? There’s nothing in the release notes though.
I am experimenting with ESPHome and the LD2420 and I have the exact same issue: it works well for a few hours, then it just freezes and becomes unusable requiring a complete hardware reset.
Any update on this?
(p.s. will submit this as an issue on Github if no one else did…)
UPDATE: I have updated ESPHome to 2025.8.4 recently and since then I get a lot more mileage with my prototype LD2420 based presence sensor module. Hopefully (fingers crossed) the issue was fixed for good…
I’ll wait a while longer though before calling it conclusive…