Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Reboot strategy if wifi connection is lost #37

Open
tilman opened this issue Apr 6, 2021 · 8 comments
Open

Reboot strategy if wifi connection is lost #37

tilman opened this issue Apr 6, 2021 · 8 comments

Comments

@tilman
Copy link

tilman commented Apr 6, 2021

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?

@HeikoGr
Copy link

HeikoGr commented Apr 6, 2021

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.

@tilman
Copy link
Author

tilman commented Apr 6, 2021

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.

@john30
Copy link
Owner

john30 commented Apr 11, 2021

does pressing the reset button help in this case?

@tilman
Copy link
Author

tilman commented Apr 11, 2021

Yes, pressing the reset button works as well.

@john30
Copy link
Owner

john30 commented Apr 11, 2021

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

@tilman
Copy link
Author

tilman commented Aug 21, 2022

Hey, are there any updates on this? :)

@john30
Copy link
Owner

john30 commented Oct 30, 2022

not yet

@kecksk0enig
Copy link

kecksk0enig commented Oct 10, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants