Request the ZHA integration run backup every night of your Zigbee network + Zigbee Coordinator.
Needed to achieve a full backup as though ZHA configuration is stored in a zigbee.db database file, all Zigbee node, network and keys info are stored on the physical Zigbee Coordinator adapter/dongle/stick.
Backups can also be used to allow users to easily migrate from ‘old’ to ‘new’ Zigbee adapter hardware.
Preferably such a Zigbee Coordinator and Zigbee network backup feature should be enabled by default as that way even if your Zigbee Coordinator adapter/dongle/stick or ZHA installation gets lost, broken and corrupted for whatever reason you will always be able to restore and recover it all to a replacement Zigbee Coordinator. If backup and restore is done properly then users won’t need to repair any devices.
Having backup features in ZHA’s UI would also make migration/upgrade between coordinators easier.
Note that some zigpy radio libraries like zigpy-znp and bellows (which the ZHA integration depends) already feature integrated CLI tools for performing manual backup and restore of the specific Zigbee stacks/radios that they support and write/read files in the Open ZigBee Coordinator Backup Format.
The video by Everything Smart Home linked above goes over the basic steps for doing a manual backup to file of a Silicon Labs based Zigbee Coordinator adapter with bellows CLI commands and then restoring that manually to a Texas Instruments based Zigbee Coordinator adapter with zigpy-znp CLI commands covered in his gist:
-
https://gist.github.com/EverythingSmartHome/990f2436608fd347cd20cf0009b5cef4
-
https://github.com/zigpy/zigpy/wiki/Coordinator-Backup-and-Migration
-
https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#backup-and-restore
Note! Zigbee2MQTT (Z2M) have already implemented an automatic backup feature which is enabled by default on all installation and runs every night wheather or not the end-user is aware of it or not. See:
- https://www.zigbee2mqtt.io/guide/faq/#how-do-i-migrate-from-a-cc2530-cc2531-to-a-more-powerful-coordinator-e-g-zzh
- https://www.zigbee2mqtt.io/guide/faq/#how-do-i-move-my-zigbee2mqtt-instance-to-a-different-environment
- https://www.zigbee2mqtt.io/guide/faq/#what-does-and-does-not-require-repairing-of-all-devices
PS: Personally I think this is a must-have feature for added user-friendliness when Amber support ZHA: