Zigbee2MQTT 1.26.0 adds a neat feature for those conscious of the fact that things can and do sometimes go wrong. You can now create, and download, a complete backup of your Zigbee2MQTT configuration. This can be done using by publishing
zigbee2mqtt/bridge/request/backup using MQTT, or via the frontend.
Within the downloaded backup, you will find four files:
- You will find your configuration in the file
configuration.yaml. This includes things such as the MQTT broker configuration, all the devices you have paired and their friendly names, and groups.
- The configuration file is nothing without the coordinator. Every Zigbee device you have added to Zigbee2MQTT, is paired with a single coordinator. For that reason, there is also a backup of the coordinator in the file
- Your database is backup up in the file database.db. The database contains all your individual devices, their, ID, address, and more.
- Finally, the state.json file is the list interesting of the bunch. It includes the current state of the Zigbee devices controlled by Zigbee2MQTT. These states continually change, and the file will most likely be out-of-date by the time you download it.