Last night after laying down in bed one of my switches caught my eye as it will flash red then green in a loop when it loses a WiFi connection or connection to my MQTT server.
I open up my laptop to troubleshoot and discover that I no longer have WiFi, and in general my network seems to be down.
Long story short my main server that runs my router (PFsense), Home Assistant, and some other services is dead as a door nail. I am guessing a power supply failure as there was no life in it at all. (autopsy when I have some time)
You can see details on my setup here:
Guessing that this might happen one day I have always planned to have duplicate hardware around. Commence ripping out hardware from a spare and swapping in HDDs and a multiport NIC and fire it up.
Awhile back I put together some items I have found helpful /good practices:
Static IPs - This helped a ton, as my DHCP server was also down and my DNS going by host names wasn’t going to work. Also, having hardware automatically use (not DHCP) an IP is invaluable when that section of your network isn’t functioning.
Backups - I didn’t need this one for this issue luckily. However, if the power supply had taken out my drive, I have an offsite backup (the Google drive backup add-on is awesome) I can quickly rebuild my instance based on a snapshot from that morning.
Plan for things to go wrong - I only have 1 light that depends on HA to function. Running around my house finding hardware would have been a nightmare if I depended on HA for lighting as I would have been in the dark.
This is the biggie, I can pull the plug on my instance (or it could die again) and with the exception of the one light I mentioned, our home is pretty easy to get back into “manual” mode. My in-wall switches function without HA and things like HVAC function like normal as HA only adjusts settings instead of actually running the system.
Anyway, I thought I would share, I think the message is getting out about backups, but the same principle of easy restoration goes for your entire system, or be able to live without it.
Id be interested to hear what others have done to plan for an untimely death or failure when your not around.