ebusd-esp icon indicating copy to clipboard operation
ebusd-esp copied to clipboard

Reboot strategy if wifi connection is lost

Open tilman opened this issue 3 years ago • 8 comments

My esp-ebus-adapter sometimes becomes unavailable and does not come up again. From other projects I know that the low-level IP stack of esp sometimes can make problems and requires a full reboot to be able to connect to the wifi again. Therefore I wonder if there is any restart strategy implemented if the wifi connection is lost (or/and if no ebusd is connected) for a couple of minutes?

tilman avatar Apr 06 '21 14:04 tilman

I used FHEM and had similar issues.

The ebus-esp came back to the wifi-network but FHEM, ebusd or the esp had some trouble to reinit properly.

Until today in the morning i had a check in FHEM using doif and GetHttpFile (i don't use the esp Version since adapter v. 3 is out)

Define DoIf_ebus_bai_down DOIF
([MQTT2_ebusd_bai]) \
 ()\
 ({GetHttpFile("ebus-wifi.fritz.box", "/config?reboot=1")})\
 (set push msg 'ebus bai down')\
 (set push msg 'ebus bai still down')

attr DoIf_ebus_bai_down do resetwait
attr DoIf_ebus_bai_down room Intern->Push
attr DoIf_ebus_bai_down wait 0,120,240,300:0

so i forced a reboot if the ebus-esp went unreachable and sent an pushmessage if the error lasted longer than two minutes.

In most cases the esp reboot solved all problems.

maybe this solves your problem or gives you a hint.

HeikoGr avatar Apr 06 '21 15:04 HeikoGr

Actually the esp disconnects from the wifi completely in my case. So it is not reachable via the network anymore (no ping response & not visible in the router UI).

Only possible solution is to unplug the esp power supply and plug it back in after a few seconds.

tilman avatar Apr 06 '21 16:04 tilman

does pressing the reset button help in this case?

john30 avatar Apr 11 '21 08:04 john30

Yes, pressing the reset button works as well.

tilman avatar Apr 11 '21 10:04 tilman

note to myself: perform hardest possible reset if there is no wifi connection for more than a certain time

john30 avatar Apr 11 '21 16:04 john30

Hey, are there any updates on this? :)

tilman avatar Aug 21 '22 16:08 tilman

not yet

john30 avatar Oct 30 '22 22:10 john30

I recently upgraded to latest firmware, since then I get wifi Disconnects way more often.the installation/position of AP and ebus adapter did not change.

could there be a flaw in the current firmware resulting in wifi disconnect? Currently I have to reset the adapter everey 2 to three hours.

Is there any way to provide useful logs concerning this issue?

Edit: I got the v5 hw version

kecksk0enig avatar Oct 10 '23 07:10 kecksk0enig