Zigbee Coordinator Migration

Overview #



This guide is intended to help users migrate from other Zigbee adapters to Dongle-M in ZHA or Z2M.


ZHA: Zigbee Coordinator Migration #

Result:

No need to reconfigure devices

Migration Steps:

  1. Go to the ZHA configuration page and click the Migrate Radio button.
  2. Select Migrate to new radio.
  3. Confirm the migration information and click Submit.
  4. Unplug the old Dongle and connect Dongle-M to the host USB port or the local network.
  5. Confirm the connection method for Dongle-M:
    • USB connection: Select the serial device directly and connect.
    • TCP connection: Choose Enter Manually, then manually select the device type EZSP, and set the serial path to: tcp://Dongle-M.local.

Manual setup:

  1. Choose to restore from automatic backup.
  2. Migration successful.

Migration Steps:

1.Go to the ZHA configuration page and click the Migrate radio button.

2.Select Migrate to new radio.


3.Confirm the migration information and click Submit.


4.Unplug the old Dongle and connect Dongle-M to the host USB port or the local network.

5.Confirm the connection method for Dongle-M:

  • USB connection: Select the serial device directly and connect.
  • TCP connection: Choose Enter Manually, then manually select the device type EZSP, and set the serial path to: tcp://Dongle-M.local.


Manual setup:


6.Choose to restore from automatic backup.


7.Migration successful.


Z2M: Zigbee Coordinator Migration #

Migrating from an Ember Coordinator to Dongle-M #

Result: No need to reconfigure devices

Steps:

  1. Stop the Zigbee2MQTT add-on.
  2. Use the File Editor add-on to access /homeassistant/zigbee2mqtt/configuration.yaml.
  3. Change the port to the Dongle-M path, e.g., tcp://Dongle-M.local:6638, then save (Ctrl + S).
  4. Restart Zigbee2MQTT.


Migrating from a Z-Stack Coordinator to Dongle-M (Unofficial Recommendation) #

Result:

Tested to require no device reconfiguration


Steps:

  1. Stop the Zigbee2MQTT add-on.
  2. Use the File Editor add-on to access /homeassistant/zigbee2mqtt/.
  3. Back up configuration.yaml, coordinator_backup.json, and database.db to your local computer (in case restoration is needed).
  4. Modify /homeassistant/zigbee2mqtt/configuration.yaml and enter Dongle-M’s serial path, e.g., tcp://Dongle-M.local:6638. Make sure to change the driver to ezsp, then save (Ctrl + S).

  1. Delete /homeassistant/zigbee2mqtt/coordinator_backup.json.
  2. Start the Zigbee2MQTT add-on. Zigbee2MQTT will recreate the Zigbee network based on the YAML file. The pan_id and extended_pan_id will match the original network, while the device list will be empty.
  3. Once the Zigbee network starts successfully and the Zigbee2MQTT console is accessible, stop the add-on. Revisit /homeassistant/zigbee2mqtt/, delete the newly generated database.db, and rename the original database.db.backup to database.db.


Also, modify configuration.yaml to set adapter to ember, then save (Ctrl + S).


Restart Zigbee2MQTT. The original device list will now be restored from database.db.

What are your feelings

Updated on September 12, 2025