Last active
February 18, 2024 11:51
-
-
Save EverythingSmartHome/990f2436608fd347cd20cf0009b5cef4 to your computer and use it in GitHub Desktop.
Zigbee Network Migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check new adapter is found | |
lsusb | |
#Check which port new adapter is on | |
ls -lah /dev/tty* | |
# Enter Home Assistant container | |
docker exec -it homeassistant /bin/bash | |
#Install open-coordinator-backup | |
pip install zigpy-znp 'git+https://github.com/puddly/bellows@puddly/open-coordinator-backup' | |
#Start backup process (replace with your device address) | |
bellows -d socket://YOUR_IP_OR_ADDRESS backup > /config/zigbee-backup.json | |
#Restore backup to new adatper (replace with your adapter) | |
python -m zigpy_znp.tools.network_restore /dev/ttyUSB0 -i /config/zigbee-backup.json | |
#Change to storage directory | |
cd /config/.storage | |
#Backup config file | |
cp core.config_entries core.config_entries.backup | |
#Edit config file | |
vi core.config_entries | |
#Find ZHA using the forward slash key and search for zha. Edit path and radio type as applicable. Press escape and type :x and hit enter to save. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please use ZHA's migration interface, there's no need to use the command line tools. If you still want to do it over the command line, use zigpy-cli: https://github.com/zigpy/zigpy-cli#network-backup