Overview #
This guide is intended to help users migrate from other Zigbee adapters to Dongle-M in ZHA or Z2M.
ZHA: Zigbee Coordinator Migration #
Official ZHA Tutorial: https://www.home-assistant.io/integrations/zha/#migrating-to-a-new-zigbee-coordinator-adapter-inside-zha
Result:
No need to reconfigure devices
Migration Steps:
- Go to the ZHA configuration page and click the Migrate Radio button.
- Select Migrate to new radio.
- Confirm the migration information and click Submit.
- Unplug the old Dongle and connect Dongle-M to the host USB port or the local network.
- 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:
- Choose to restore from automatic backup.
- 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 #
Official Zigbee2MQTT Tutorial: https://www.zigbee2mqtt.io/guide/faq/#how-do-i-migrate-from-one-adapter-to-another
Migrating from an Ember Coordinator to Dongle-M #
Result: No need to reconfigure devices
Steps:
- Stop the Zigbee2MQTT add-on.
- Use the File Editor add-on to access
/homeassistant/zigbee2mqtt/configuration.yaml. - Change the
portto the Dongle-M path, e.g.,tcp://Dongle-M.local:6638, then save (Ctrl + S). - Restart Zigbee2MQTT.

Migrating from a Z-Stack Coordinator to Dongle-M (Unofficial Recommendation) #
Result:
Tested to require no device reconfiguration
Steps:
- Stop the Zigbee2MQTT add-on.
- Use the File Editor add-on to access
/homeassistant/zigbee2mqtt/. - Back up
configuration.yaml,coordinator_backup.json, anddatabase.dbto your local computer (in case restoration is needed). - Modify
/homeassistant/zigbee2mqtt/configuration.yamland 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).

- Delete
/homeassistant/zigbee2mqtt/coordinator_backup.json. - Start the Zigbee2MQTT add-on. Zigbee2MQTT will recreate the Zigbee network based on the YAML file. The
pan_idandextended_pan_idwill match the original network, while the device list will be empty. - Once the Zigbee network starts successfully and the Zigbee2MQTT console is accessible, stop the add-on. Revisit
/homeassistant/zigbee2mqtt/, delete the newly generateddatabase.db, and rename the originaldatabase.db.backuptodatabase.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.