For use in the Wild West of home automation development.
This app will reboot your hub when a 500 error occurs
Installation Instructions
>>>Read this<<<
You MUST edit the section between lines 41 and 45 before you use this. I can't make these settings, because it takes away the reliability of the app.
If your app goes beyond the limit set in your bootLoop settings, you must uninstall and reinstall the app to make it work again. >0.95 resets this counter after a successful boot, so this is more of a last-ditch fix than anything.
History:
Summary
I'd noticed that certain events would still fire, even when my hub DB was unreachable. This app (ab)uses that feature and adds onto it.
Once a cookie is obtained then the hub can rebooted using an HTTP POST with a command such as:
curl -sb $cookiefile -X POST http://hubitat.ip:8080/hub/reboot
So if there is a means to store the cookie file in an app or driver, the method can be used in Rootin' Tootin' Self-Rebootin' for hubs with login/password
You know? I might know of a way to do that locally...
Here’s a success story—a couple hours ago I told @chuck.schwer I wouldn’t be able to test if the limiter was working. Sure enough, I just had one of my hubs 500 twice in a row, and it self-healed/added to the limiter no problem
The hub crashed about a minute after booting up, the logs say.
Well I don't know what's going on with my Hub, but I installed this app as per the instructions and it just send the Hub into a boot loop.
I have to remove the app in a small window when the Hub is rebooted and before the next reboot command is sent.
Not sure why it is doing that, but everything seems to be working fine without the app. So may be the app is picking up an error somewhere it's not meant to be?
Yeah, that shouldn’t happen I think whats happening is the rule can’t keep up with the app on boot. I’ll add a 5 minute delay or something to the startup process and I think that’ll fix it.
@adamkempenich are you still working towards making this work with a login? Or is this unfortunately a current limitation of the HE platform? Also Nice work on creating this app.