Making Domoticz failsafe
Posted: Saturday 23 May 2020 11:37
Hi Everyone!
due to the Corona situation I am kind of stranded abroad for over 2 months now, without any physical access to my devices.
I didn't plan that, but that is a differend story anyway....
However, domoticz functioning is very critical to me, my heating and other essential things rely on it.
During this time I had 2 or 3 failures of my system, so I had to ask a neighbour to go to my house and restart my RPI.
The failures were related to a known bug, where the Wifi interface stops functioning, so the device is unreachable.
What I did so far to get on top of this:
Configured watchdog on the Raspi according to this guide:
https://www.domoticz.com/wiki/Setting_u ... i_watchdog
Additionally, a node red flow pings my router every 30 secs and writes a logfile, that gets monitored by watchdog
the wifi interface gets monitored by watchdog too
So in case any of this goes belly up, the watchdog should reboot the device (didn't happen yet).
the PI itself reboots twice a week, controlled by a cronjob
Domoticz service restarts every night
At the moment, the PI gets its power through a powerbank, that will keep it alive for a few hours in case of a power outage. I plan to remove this and plug a Shelly Plug into the power supply (when I get back home), so in worst case, I can hard reboot it from the shellies web interface (not the best thing to do, I know).
So....whast do you think about my measures? any comments are welcome, as well as any other/additional strategies...
due to the Corona situation I am kind of stranded abroad for over 2 months now, without any physical access to my devices.
I didn't plan that, but that is a differend story anyway....
However, domoticz functioning is very critical to me, my heating and other essential things rely on it.
During this time I had 2 or 3 failures of my system, so I had to ask a neighbour to go to my house and restart my RPI.
The failures were related to a known bug, where the Wifi interface stops functioning, so the device is unreachable.
What I did so far to get on top of this:
Configured watchdog on the Raspi according to this guide:
https://www.domoticz.com/wiki/Setting_u ... i_watchdog
Additionally, a node red flow pings my router every 30 secs and writes a logfile, that gets monitored by watchdog
the wifi interface gets monitored by watchdog too
So in case any of this goes belly up, the watchdog should reboot the device (didn't happen yet).
the PI itself reboots twice a week, controlled by a cronjob
Domoticz service restarts every night
At the moment, the PI gets its power through a powerbank, that will keep it alive for a few hours in case of a power outage. I plan to remove this and plug a Shelly Plug into the power supply (when I get back home), so in worst case, I can hard reboot it from the shellies web interface (not the best thing to do, I know).
So....whast do you think about my measures? any comments are welcome, as well as any other/additional strategies...