ESPSomfy-RTS: FW crash: Enable the watchdog to self-detect/recover a FW crash

Hardware

ESP32

Firmware version

v2.4.1

Application version

v2.4.1

What happened? What did you expect to happen?

First: The system works great and I am really impressed about the work that you did and it’s maturity.

The system works for a couple of months now, and I realize that every few weeks, the firmware crashes (web server/page of the device not reachable) and shades not controllable. After power cycle it works again. I am not software engineer and have some difficulties to look at the code, however by doing a search in the source about “Watchdog” I coud not find anything.

I think that it would be good to enable the ESP32 watchdog, so that in case the FW crashes (for any reason, even if not being a bug, like ESD discharge, temperature, or whatever else unexpected), the system will restart. It just makes the system more robust.

I could of course put a timer on the power socket and power cycle the device each night, but I think that it would be much more elegant to use the watchdog for this (it’s the purpose of the watchdog to handle this kind of things).

Thank you

How to reproduce it (step by step)

I have 4 Somfy RTS shades paired. Just let it stay for a few weeks (without any action), then the device is not responding anymore on the web interface, and shades can not be controlled anymore in Home-Assistant (or HomeKit, when using HomeAssistant's HomeKit integration).

Note that the device sits in my Veranda, where higher temperature variations as indoors are happening, but not extreme (the min and max I have observed are 5degC and 35degC), this should not be a problem but I still want to mention it.

Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I have increased the wdt timeout to 7 seconds are shortened the internet check. v2.4.3 has been released so report please open a new issue for any new issues.

Me too, 2 days ago and still running fine.

@cvhoang, @geokscott, and @cvhoang let me know if the update to the pre-release v2.4.3 solve the issue with your boards.

I also installed pre-2.4.3 and updated my HA component a couple days ago. So far so good. I will let you know if anything changes.