This document explains how to migrate your Zigbee network from an old adapter to a new one.
ZHA Adapter Migration #
Migrate your Zigbee network to a new adapter without re-pairing any devices. ZHA supports cross-chip migration (e.g., TI → Silicon Labs) with the same steps.
Reference: ZHA Official Migration Guide
Prerequisites #
- Both old and new adapters are compatible with ZHA. The radio type must be ezsp/znp/deCONZ.
- Your current Zigbee network is up and running
- Both old and new adapters are ready
Steps #
1. Start the Migration
Home Assistant → Settings → Zigbee → Migrate adapter → Migrate.
| Important: During migration, all Zigbee devices will be temporarily uncontrollable. This is normal—devices will automatically rejoin the network once the new adapter is online. |

2. Plug in the New Adapter
Insert the new adapter into a USB 2.0 port on your host.
| We recommend using a USB extension cable and keeping the adapter away from USB 3.0 devices to reduce interference. |
Refresh the hardware list in HA: Settings → System → Hardware → System hardware → Refresh. Confirm that the new device appears.
3. Migrate to a new adapter
Under Migrate or change adapter settings, select Migrate to a new adapter.

4. Select the New Adapter
Select the new Zigbee adapter from the list of serial ports and select Submit.
(Old adapter use ZBDongle‑P as an example.New adapter use Dongle‑PMG24 as an example.)

5. Choose Migration Method
Select Migrate automatically (recommended). If prompted with Permanently replace the radio IEEE address, check the option and submit.
| This is a critical step for a successful migration. The new coordinator inherits the old coordinator's IEEE address, allowing all paired devices to switch over seamlessly. The overwrite process may take a few minutes. |

6. Wait for Completion
Once migration completes, ZHA will display a success message. The old adapter is automatically reset, and all Zigbee devices will begin rejoining the network. Some devices may take up to 1 hour to fully recover. If a device remains offline for an extended period, try power-cycling it.
7. Remove the Old Adapter
After a successful migration, unplug the old adapter.
After Migration #
The old adapter cannot be used as a Router for now. ZHA migration copies the old adapter's IEEE address to the new one, causing an address conflict that prevents both from joining the same Zigbee network. We are working on a new feature in SONOFF Dongle Flasher to resolve this—it will allow you to modify the IEEE address when flashing Router firmware. Until then, keep the old adapter safely stored and wait for the feature release.
FAQs #
What if the migration fails?
Unplug the new adapter, plug the old one back in, and restart Home Assistant. ZHA will automatically recognize the old adapter and restore the previous state.
What if some devices remain offline?
- Wait 15–30 minutes. Some Zigbee end devices (typically battery-powered) may take up to 1 hour to wake up and rejoin the network.
- Power-cycle the device: unplug the power or remove the battery, wait a few seconds, then restore power.
- If it still does not recover, remove the device from ZHA and re-pair it.
Have other questions?
→ Visit the eWeLink Forum for more help.
Zigbee2MQTT adapter Migration #
Migrate your Zigbee network from an old adapter to a new one. The steps differ depending on whether the old and new adapters use the same chip platform.
Reference: Z2M Official Migration Guide
Before You Begin #
In the Z2M Web UI, check the chip platform and IEEE address of your current adapter: Settings → About → Coordinator.
Copy the IEEE address (e.g., 0x94a081fffec19ea7) and note the adapter type.

| Value | Chip Platform | Models |
| ZStack3x0 | Texas Instruments | ZBDongle‑P, Dongle‑PP10 |
| EmberZNet | Silicon Labs | ZBDongle‑E, Dongle‑LMG21, Dongle‑PMG24, Dongle‑M |
If the old and new adapters use the same chip platform, follow Option A. If they use different chip platforms, follow Option B.
| SONOFF Dongle series offers same-platform upgrade paths, so you can upgrade without crossing chip platforms: • Silicon Labs: ZBDongle-E → Dongle-LMG21 / Dongle-PMG24 / Dongle-M • Texas Instruments: ZBDongle-P → Dongle-PP10 When you upgrade within the same chip platform, all already-paired Zigbee end devices stay connected — no re-pairing needed. |
Option A: Same-Platform Migration (zstack → zstack or ember → ember) #
1. Copy the IEEE Address from the Old adapter to the New adapter
Some Zigbee end devices check the adapter's IEEE address when rejoining the network. To ensure all devices recover properly, copy the IEEE address from the old adapter to the new one.
Use XZG Multi Tool to complete the IEEE address copy:
- Connect the new adapter to your computer via USB.
- Open XZG Multi‑Tool and select the corresponding chip type (TI or Silicon Labs).
- Select the correct baud rate (match the baud rate of your flashed firmware).
- Click Choose Serial and select the serial port of the new adapter.

- Click Read to confirm the current IEEE address.
- Fill the IEEE address copied from the old adapter in the New IEEE field.
- Click Write to write the new address (select Force ).

2. Swap the adapter
In most cases, after swapping to a same-platform new adapter, HAOS automatically assigns /dev/ttyUSB0 as the serial port path—the same as the old one. Simply unplug the old adapter and plug in the new one to restore connectivity.
| How to check the serial port configuration? Go to Z2M Web UI → Settings → Serial to confirm the serial port path. |
If you previously used a fixed path in the /dev/serial/by-id/... format, or if the baud rate differs between the old and new adapters, you need to update the serial configuration. You can do this without stopping Z2M:
- Z2M App Configuration Page: In the serial configuration section, enter the new adapter's serial port path and baud rate. Z2M will prompt you to restart for the changes to take effect.

To find the new adapter path: HA → Settings → System → Hardware → All Hardware → Refresh, locate the new device, and view its full path.
3. Verify
Go to Z2M Web UI → Settings → About → Coordinator and confirm that the IEEE address matches the old adapter's address.
| This step ensures the IEEE address was copied successfully. If some devices still fail to come back online, you can rule out an IEEE address mismatch and try power-cycling the device. |
Option B: Cross-Platform Migration (zstack → ember or ember → zstack) #
All devices need to be re-paired. When the old and new adapters use different chip platforms, tests confirm that copying the IEEE address cannot preserve the devices. You must clear the old network data and create a new network on the new adapter.
Note: SONOFF Dongle series offers same-platform upgrade paths, so there is no need to cross chip platforms. Upgrading within the same platform is recommended. Cross-platform migration requires clearing old network data, and all devices must be re-paired.
| If you really want to try preserving devices across chip platforms (unsupported, may fail), follow the steps in Option A—first copy the IEEE address, then update the serial.port and serial.adapter settings before starting Z2M. If you encounter the error [BACKUP] Current backup file is not for EmberZNet stack during startup, the backup file format is incompatible, and you must proceed with Option B below. |
1. Stop Z2M
HA → Settings → Apps → Zigbee2MQTT → Stop.
2. Clear the Data Directory
Z2M stores network information and device records in the /config/zigbee2mqtt/ directory, including the adapter backup file coordinator_backup.json and the device database database.db. These data cannot be reused when crossing chip platforms and must be removed.
Open the Advanced SSH & Web Terminal App and run the following command to completely clear the data directory:
cd /config/zigbee2mqtt && rm -rf * # Enter the directory and remove all filesZshAfter running rm -rf *, zsh will prompt you to confirm the deletion. Enter y to confirm.
| Warning: This operation is irreversible. Once deleted, the old adapter's network information is gone. Even if you switch back to the old adapter, you cannot restore the original device list—you can only create a new network. If you want the option to restore via the old adapter, back up the /config/zigbee2mqtt/ directory before running this command. |

After clearing, Z2M returns to its initial state. Restart it to complete the first-time setup.
3. Plug in the New adapter
Unplug the old adapter and plug in the new one.
4. Start Z2M and Complete Initial Setup
Start the Z2M App and click Open Web UI. Z2M will open the Onboarding page. On this page:
- Select the new adapter from the Devices Found dropdown menu.
- Confirm the Adapter Type is correct: choose ember for Silicon Labs devices, or zstack for TI devices.
- Confirm the Baudrate matches your firmware.
- Confirm that Hardware Flow Control (RTS/CTS) is disabled.

Click Submit. Z2M will automatically generate the configuration file and restart.
5. Re-pair Devices
- Disconnect power to all mains-powered devices (bulbs, plugs, etc.).
- In the Z2M Web UI, click Permit join (All).
- Restore power to the devices one by one and put them into pairing mode.