Zigbee2MQTT Adds Easy Backup and Restore Options in Latest Release

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.

Zigbee2MQTT version 1.26.0 introduces a valuable feature for users who want to safeguard their Zigbee network setup. You can now create and download a complete backup of your Zigbee2MQTT configuration. This backup can be done by publishing the zigbee2mqtt/bridge/request/backup command via MQTT or through the Zigbee2MQTT frontend interface.

Contents

Why Back Up Your Zigbee2MQTT Configuration?

Backing up your Zigbee2MQTT configuration ensures that you can quickly restore your setup in case of a system failure, device migration, or other unexpected issues. By keeping a backup, you save time and effort in re-pairing devices and reconfiguring your network from scratch.

Screenshot of the Zigbee2MQTT frontend interface. The navigation menu includes options: Zigbee2MQTT, Devices, Dashboard, Map, and Settings. The Settings section is selected, and within it, the Tools tab is active. Three buttons are visible: “Download state” (in blue), “Restart Zigbee2MQTT” (in red), and “Download data folder backup” (in blue).

Steps to Back Up Zigbee2MQTT Configuration

Method 1: Using MQTT Command

  1. Open your MQTT client: Connect to your MQTT broker using your preferred client.
  2. Publish the backup request: Send a message to the topic zigbee2mqtt/bridge/request/backup.
  3. Download the backup: The backup files will be available for download. Follow your MQTT client's instructions to retrieve these files.

Method 2: Using the Zigbee2MQTT Frontend

  1. Access the Zigbee2MQTT frontend: Open the Zigbee2MQTT interface in your web browser.
  2. Navigate to the backup section: Find the backup option in the settings menu.
  3. Initiate the backup process: Click on the backup button and wait for the process to complete.
  4. Download the backup files: Once the backup is ready, download the files to your local storage.

Contents of the Backup

When you download your Zigbee2MQTT backup, it will include the following four essential files:

configuration.yaml

coordinator_backup.json

database.db

state.json

Restoring Your Zigbee2MQTT Configuration

In case you need to restore your Zigbee2MQTT configuration, simply upload these files back into your Zigbee2MQTT setup. This will reinstate your previous configurations, paired devices, and their states, ensuring minimal downtime and disruption.

Conclusion

Regularly backing up your Zigbee2MQTT configuration is a smart practice to maintain the integrity and continuity of your Zigbee network. With the new backup feature in Zigbee2MQTT 1.26.0, the process is straightforward and efficient, giving you peace of mind knowing your configuration is safely stored and easily restorable.

For more detailed instructions, troubleshooting tips, and advanced configurations, refer to the Zigbee2MQTT documentation.

A portrait photo oif Liam Alexander Colman, the author, creator, and owner of Home Assistant Guide wearing a suit.

About Liam Alexander Colman

is an experienced Home Assistant user who has been utilizing the platform for a variety of projects over an extended period. His journey began with a Raspberry Pi, which quickly grew to three Raspberry Pis and eventually a full-fledged server. Liam's current operating system of choice is Unraid, with Home Assistant comfortably running in a Docker container.
With a deep understanding of the intricacies of Home Assistant, Liam has an impressive setup, consisting of various Zigbee devices, and seamless integrations with existing products such as his Android TV box. For those interested in learning more about Liam's experience with Home Assistant, he shares his insights on how he first started using the platform and his subsequent journey.

Comments

    • now that is the mystery,
      my thoughts are as i want to back up from home asstant and have a separate container ,
      is to use vs code go into thr YAML and copy from there ,
      but as yet hrs of googling not found a straight answer loads of click bait and rabbit holes

      Reply
  1. I wonder how I can restore the Zigbee2mqtt backup. I want to migrate from CC2531 to CC2652P dongle, without re-pairing all devices.

    Reply

Leave a comment

Share to...