Reboot if ESP loses connection - #296
EasilyBoredEngineer
started this conversation in
General
Replies: 1 comment 4 replies
-
PS If anyone can recommend an action other than a restart that might work to reestablish comms in such a circumstance, please do suggest :) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Just to let you know a way to reboot your esp if you have a crappy wifi AP and find that your esp periodically loses connection.
At first I tried using the 'restart' platform set as a switch with an 'interval' automation set to every 15 minutes, but that put the esp in a reboot loop as interval is executed automatically at boot.
The solution is to use the time component - below is the relevant code block.
It basically tests every 2 minutes to see if your esp has a connection to home assistant, and if it doesn't it reboots. Seems to have made my system more solid - but, as I said, this isn't to address a problem with syssi's project (It's great!!) - it's just to address an issue I've found with my particular cheap wifi AP.
Beta Was this translation helpful? Give feedback.
All reactions