Your Home Assistant system will fail sometime in the future from some issue: hardware failure, software failure, configuration error, etc. It’s not if it will fail but when (and we usually don’t know when).
There are three options when this happens:
- Do nothing - accept the loss
- Rebuild everything from scratch
- Activate your disaster recovery plan (search for “disaster recovery planning” for more info).
Failure of HA
Backup & Restore Process
Good backups are a necessary part of the recovery plan. But backups are only good if you know they will recover your system. So, regularly test the restore process before you need it - you do not want to discover that your restore process fails when you need it.
A good practice is to keep your backups separate from the hardware running Home Assistant. The native Home Assistant Backup process can do this when backup locations are defined. Other methods to do this automatically include:
In addition, it’s not a bad idea to take copies of the yaml files in your config folder from time to time - they’re just text files. This can be done using the Samba Share Addon. If you do this, it means you can reinstate things - a single automation, say - without doing a restore of the whole system.
Add-ons are only available if you have a Home Assistant Operating System or Home Assistant Supervised installation.
What to Do While HA is Down
How will you or your family manage without HA? Will light switches still operate without HA? Will critical sensors (fire, intrusion, temperature, etc.) still alarm without HA? These types of questions should be considered when automating anything.
When HA Fails & the Recovery Process Fails.
Stuff happens…. Being creative, flexible, and determined may get the results you need. Don’t despair - search this forum and post questions.
Failure of individual devices
Redundancy
If you have a critical device - a water leak sensor, perhaps - consider having two with different protocols, one Zigbee and one wi-fi, for example. The chances of them both failing at the same time are very small.