Replies: 29 comments 49 replies
-
Backup is not supported for the EZSP adapter, to migrate to the Dongle-P you have to re-pair all devices (start from scratch) |
Beta Was this translation helpful? Give feedback.
-
And do I have to repair everything if I want to migrate from SkyConnect-adapter to ConBee2? I am afraid so |
Beta Was this translation helpful? Give feedback.
-
Other question: |
Beta Was this translation helpful? Give feedback.
-
Note! Neither deconz (ConBee/RaspBee) or ZiGate backup/restore is supported yet in zigbee-herdsman for Zigbee2MQTT as far as I know(?). I believe that Zigbee2MQTT's zigbee-herdsman framework currently only support backup and restore for zstack adapter/driver (e.i. TI ZNP)? And ezsp adapter in zigbee-herdsman framework for Zigbee2MQTT is suppose to supports backup now but not yet restore to ezsp adapter? Not tested myself to migrate to other radio types using Zigbee2MQTT however as a workaround I think it should be possible to do a same-manufacturer migration using a stand-alone third-party software such as zigpy-cli to the backup and restore, (i.e. backup and restore using zigpy's command line tool)? https://github.com/zigpy/zigpy-cli Again while not tested it myself for Zigbee2MQTT I believe that it should even be possible to do a cross-manufacturer migration with this zigpy-cli tool(?), and if you can choose to override/overwrite the EUI64 (e.i. the Extended Unique Identifier which is the unique MAC address for the Zigbee Coordinator) then might be that you do not even need to re-pair all of your devices? Note! You will first need to stop/disable Zigbee2MQTT or any other application that is connected to the adapter! Anyway, I think that you should be able to install zigpy-cli as a stand-alone tool with pip like this:
You will then need to correct zigpy radio type for backup and restore. https://github.com/zigpy/zigpy-cli/blob/dev/README.md#network-backup https://github.com/zigpy/zigpy-cli/blob/dev/README.md#network-restore In addition, might need to append/set baud-rate (which is not same for all adapters) that is only briefly mentioned in the zigpy-cli readme: https://github.com/zigpy/zigpy-cli/blob/dev/README.md#network-commands Note! baudrate set to 57600 or 115200 is used in most application firmware however some newer ones might use 230400 and older ones might use slower, (but when talking to the bootloader for flashing firmware then a baud rate speed of 9600 is more commonly used instead). Here s first an example of a command to do a backup to file from an ezsp adapter (e.i. backup from Silicon Labs EmberZNet/EZSP adapter):
Again, might need to append a specific baud-rate if it does not connect even though you already stopped other applications. Example:
Followed by an example of a command to after that then do a restore from that file to a znp adapter (e.i. restore to TI Z-Stack adapter):
Alternatively, here is example of a command to instead do a restore from that file to another ezsp adapter (e.g. SkyConnect to ZBDongle-E):
Note! zigpy do not refer the the radio types the same way as Z2M. Also note zigpy-cli does not yet support zigate or xbee backup/restore :
PS: zigpy-cli have relatively recently consolidated cross-manufacturer backup and restore for zigpy, as before that you had to use the individual tools inside each separate zigpy radio libraries for different radio types to backup and restore (though once you had the backup file it even then allowed you to do a cross-manufacturer restore as long as you used the correct zigpy radio library for the restore, which was not the same as you used when you did the backup if you wanted to do a cross-manufacturer migration). https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#backup-and-restore |
Beta Was this translation helpful? Give feedback.
-
I am using the SkyConnect adapter in Zigbee2MQTT and have tried to backup everything via zigpy-cli.
|
Beta Was this translation helpful? Give feedback.
-
btw, note that you have to change serial config in Zigbee2MQTT's https://www.zigbee2mqtt.io/guide/configuration/ https://www.zigbee2mqtt.io/advanced/remote-adapter/connect_to_a_remote_adapter.html Specifying no adapter in Zigbee2MQTT's
Example for making Zigbee2MQTT to otherwise force the use of zstack adapter (Texas Instruments Z-Stack ZNP based dongle):
Example for making Zigbee2MQTT to force the use of ezsp adapter (Silicon Labs EmberZNet based dongle) example:
Example for Zigbee2MQTT in combination with the Home Assistant SkyConnect adapter/dongle/stick:
Example for Zigbee2MQTT in combination with older USB ezsp adapter that uses lower baud rate and software flow control:
Example for making Zigbee2MQTT to force the use of deconz adapter with old ConBee II or RaspBee II (deCONZ based dongle) example:
Example for making Zigbee2MQTT to force the use of deconz adapter with new ConBee III / ConBee 3 (deCONZ based dongle) example:
Example for making Zigbee2MQTT to force the use of zigate adapter (ZiGate based dongle) example:
Note! In addition, might sometimes have to add a specific baud rate to force that as well (which can be different depending on firmware). Example of ezsp with forced baudrate speed of 115200 (but might also want to test 9600, 57600, and 115200 as most common rates):
PS: If you are using Home Assistant Operating System then you can find the port path information under Settings>System>Hardware. If have a Home Assistant SkyConnect adapter then click there on the menu button, select All Hardware and search for "SkyConnect": |
Beta Was this translation helpful? Give feedback.
-
Off-topic but FYI; Home Assistant can do migration from Zigbee2MQTT to ZHA + migration from old adapter in ZHA to new adapter in ZHA: https://skyconnect.home-assistant.io/migrate-zigbee-zha/ (Guide on how to migrate from a Zigbee2MQTT network to ZHA using ZHA). https://skyconnect.home-assistant.io/migrate-zigbee-backup/ (Guide on how to migrate a backup from Zigbee2MQTT to ZHA using ZHA). https://skyconnect.home-assistant.io/migrate-conbee/ (Guide on how to migrate from a deCONZ/Phoscon network to ZHA using ZHA). https://skyconnect.home-assistant.io/migrate-zigbee-zha-only/ (Guide on how to migrate old adapter to new adapter if already using ZHA). Note! Those guides were specifically written for Home Assistant SkyConnect (ezsp) adapter and are for migration to Home Assistant's ZHA. Also take note that before backup for migration you will always need to upgrade the firmware on your old ConBee/RaspBee adapter before doing a backup! That is however not needed if backing up an old Silicon Labs or Texas Instruments based Zigbee Coordinator. Might be usable for other purposes but those guides are not meant to be used for migrating from ZHA to Zigbee2MQTT, nor migrating between different adapters if continuing to use Zigbee2MQTT (e.g. not for migrating old to new Zigbee adapter if using Zigbee2MQTT). PS: Again, Home Assistant's own ZHA integration depends for backup and restore command from zigpy/zigpy-cli to migrate Zigbee network, however both that ZHA integration and Zigbee2MQTT use the same "Open ZigBee Coordinator Backup Format" standard for its backup files. |
Beta Was this translation helpful? Give feedback.
-
FYI, in related news ChrisHae posted he will look into "Open ZigBee Coordinator Backup Format" export and import in deCONZ/Phoscon API: dresden-elektronik/deconz-rest-plugin-v2#12 PS: Also see related request -> Koenkk/zigbee-herdsman#665 |
Beta Was this translation helpful? Give feedback.
-
Any news on this? I should receive a ZBDongle-P soon, but converting from my ZBDongle-E will take me a week of splitting the house to get to all devices... Would be awesome if Z2MQTT could just do a backup/restore. |
Beta Was this translation helpful? Give feedback.
-
zigbee-herdman does do backups for ezsp adapter, so you should be able to restore that to znp adapter -> #16478 (reply in thread) Limitation with ezsp is that it can not restore to ezsp adapter, as so fart only znp adapter supports restore -> Koenkk/zigbee-herdsman#319
As for ConBee/RaspBee the zigbee-herdman library that Zigbee2MQTT depends on is still missing backup -> Koenkk/zigbee-herdsman#665 Until then can only do a partial migration from deconz using zigpy-cli as described in my comment above linked here -> #16478 (comment) Note! There is currently no migration path to migrate all settings and devices for deconz (ConBee/RaspBee). This procedure with zigpy-cli only helps migrate the Zigbee network (i.e. the paring with devices). This means you at least will not have to re-pair all your devices again with the znp adapter. However, none of the higher-level settings will be migrated, so elements such as device names will be lost and will need to be manually entered again. There is currently no migration path to migrate all the settings. At least most powered devices like lightbulbs should be automatically re-connect over time (you can speed this up by rebooting the device) but your battery-powered devices may need to be re-joined to the network for the migration to complete. |
Beta Was this translation helpful? Give feedback.
-
Yes I believe so, though probably also need to change adapter (radio type) from
Tip: I think that if you just remove that completely from the configuration then Zigbee2MQTT should also default back to Anyway, since ezsp adapter supports backup but not restore, but zstack adapter supports both, it should work, (though not tested it). https://www.zigbee2mqtt.io/guide/faq/ https://www.zigbee2mqtt.io/guide/faq/#how-do-i-migrate-from-one-adapter-to-another (most mains-powered devices should reconnect relatively quickly, at least if they are Zigbee Router devices, however, battery-powered devices will take longer as they usually require a state change before reconnecting, but some devices like old Aqara/Xiaomi will almost always need to be manually re-paired/re-joined due to them having buggy firmware). https://www.zigbee2mqtt.io/guide/faq/#requires-repairing https://www.zigbee2mqtt.io/guide/faq/#doesn-t-require-repairing PS: Again, it is it is another way that is not possible since ezsp adapter is still missing restore from backup, but you can follow development on that too here -> Koenkk/zigbee-herdsman#319 |
Beta Was this translation helpful? Give feedback.
-
Okay, first attempt was not successful... Maybe I am a little clueless. I get this error: Then I deleted coordinator_backup and configuration.yaml - Now everything is generated new and database is clean, save for coordinator. I've gone back to the ezsp and backed up - So up and running again. |
Beta Was this translation helpful? Give feedback.
-
I really appreciate all the help - I know I'm coming across a bit frustrated, I'm usually savvy enough to make most work, but this defeats me...
Any suggestions to what could cause this error? I can't google this... EDIT: Okay, I think I did it... Among 1000 things tried, adding '--baudrate 115200' to the ezsp adapter call only, seemed to do all the difference. Backup file created and looks right. Pressing on tomorrow... |
Beta Was this translation helpful? Give feedback.
-
Okay, I managed to do it - Thanks to the help gotten in here. Very grateful for that! Remember to do a full backup before thinking about doing anything. On the windows machine: On the HA machine: |
Beta Was this translation helpful? Give feedback.
-
Thanks, all of you. I just migrated from SkyConnect (EZSP) -> Sonoff Dongle-P (Stack/znp). I have 70 devices. Everything seems to have worked, perhaps a few small issues here or there, but otherwise good to go. |
Beta Was this translation helpful? Give feedback.
-
I have also switched over from Sonoff E to P with success. |
Beta Was this translation helpful? Give feedback.
-
FYI, should now be easy to migrate (backup and restore) adapter via TubesZB Zigpy-CLI Tools add-on if using Z2M with Home Assistant: https://github.com/tube0013/tubeszb_addons/blob/main/tzb-zigpy-cli-tools/DOCS.md Note! If plan on migrating to a Texas Instruments or Silicon Labs adapter then best upgrade firmware on new adapter before migrating. PS: Tip is to use respective CC2652 Flasher or Silabs Flasher from TubesZB add-ons or ZigStar add-ons for upgrading adapter firmware: |
Beta Was this translation helpful? Give feedback.
-
Hi, Install Python - I went with an older version (9.3), to avoid pesky issue with building wheels for aiohttp. Is it possible this way ??? |
Beta Was this translation helpful? Give feedback.
-
Thanks, ist ist nessecary that the two coordinators have the Same FW ?
Hedda ***@***.***> schrieb am Fr., 19. Jan. 2024, 14:21:
… I want to migrate from Sonoff donle P to SLZB-06 and I want to do it the
following way because I don't want to open the SLZB-06 and I don't want the
need to repair all devices
Yes you can use zigpy-cli, however as mentioned a few times above, when
both adapters are based on CC2652 (or CC1352) Texas Instruments adapters
like those two are then you should not need to use zigpy-cli, Zigbee2MQTT
does have built-in backup and restore support for CC2652/CC1352 Texas
Instruments adapters, but you do need to change the IEEE address if you do
not want to repair devices (which zigpy-cli also does as part of its
restore process):
https://www.zigbee2mqtt.io/guide/faq/#how-do-i-migrate-from-one-adapter-to-another
Also see:
#20724 <#20724>
PS: Regardless, note that it is generally recommended to upgrade Zigbee
Coordinator firmware on new adapter before restoring backup:
https://www.zigbee2mqtt.io/guide/adapters/#flashing-cc1352-cc2652-cc2538-based-adapters
https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin
—
Reply to this email directly, view it on GitHub
<#16478 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APJM4IWKXSSN76AWIHQVIC3YPJXMPAVCNFSM6AAAAAAUO46MFCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCOBRGQYTG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks again Hedda, My Sonoff dongle P is connected via USB so I will do backup: zigpy radio --baudrate 115200 znp COM3 backup mybackup.json (COM3 is the COM of my Sonoff dongle P) but my SLZB-06 is connected via ethernet so I will restore : zigpy radio znp socket://ip:6638 restore mybackup.json (the ip is the ip of my SLZB-06) Is it OK so ? Best regards, |
Beta Was this translation helpful? Give feedback.
-
Thanks again, Hedda, **I've got it working without zigpy cli. You need to install Python and and download the firmware CC1352P2_CC2652P_other_coordinator_20230507.hex from here https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin and download flasher script https://github.com/JelmerT/cc2538-bsl The firmware command will look like this python3 cc2538-bsl.py -evw --ieee-address xx:xx:xx:xx:xx:xx:xx:xx -p socket://ip:6638 ./CC1352P2_CC2652P_other_coordinator_20230507.hex replace xx:xx:xx:xx:xx:xx:xx:xx with the your IEEE and replace IP with IP of your SLZB-06 Also read the instructions on the Z2M website https://www.zigbee2mqtt.io/guide/adapters/flashing/copy_ieeaddr.html** |
Beta Was this translation helpful? Give feedback.
-
This thread is a jewel of good intels. Thanks @Hedda for your input. Saved me lot of headaches |
Beta Was this translation helpful? Give feedback.
-
so, I could migrate successfully from ezsp to zstack following also @Tul47 guidelines by generating a new database and editing it, and most important, shutdown all the routers for the first startup to generate a fresh db. |
Beta Was this translation helpful? Give feedback.
-
I have done a successful migration from Sonoff E to P, thanks everyone! Apart from some hickups, all devices work fine. However, what doesn't work anymore is pairing new devices. |
Beta Was this translation helpful? Give feedback.
-
looks like -E to -E is not possible right? IEEE address is not overwritten when restore the backup. So the only way to go -E to -E (also with zigpy) is a full re-pairing of devices? |
Beta Was this translation helpful? Give feedback.
-
FYI, if you have an EFR32MG21 or newer Silcon Labs adapter then it can now be made to work more stable if migrate to new "ember" driver: New "ember" driver for Zigbee2MQTT's zigbee-herdsman targets EmberZNet v7.4 firmware or later (that in turn uses EZSP v13 and above): However if you still want to migrate to zstack then be aware that if you have an EFR32MG21 or newer adapter an option is to first migrate from the old "ezsp" driver configuration in Zigbee2MQTT to the new "ember" driver configuration then Zigbee2MQTT has native support for Zigbee network backup/restore for it, so be aware that if so then it should at least on paper be possible to migrate to zstack, (though as I am not longer using Zigbee2MQTT I have not tried the new "ember" driver and I have thus not either tested migrating from it to zstack). Check out:
Note! I believe you first need to have EmberZNet v7.3 (EmberZNet 7.3.x.x) firmware while still using your old "ezsp" driver before can migrate to "ember" driver, and then after the migration from "ezsp" to "ember" I believe you might need upgrade to at least EmberZNet v7.4 (EmberZNet 7.4.x.x) firmware before try migrating to zstack. (Again, I am not longer using Zigbee2MQTT so have not tried migration to "ember" myself, nor from it to zstack). In theory once you upgrade the firmware to EmberZNet v7.3 (EmberZNet 7.3.x.x) Zigbee2MQTT should be able to make Zigbee network backup from the Zigbee Coordinator while still using the "ezsp" driver, and after it has created a backup you can stop Zigbee2MQTT and change the configuration to the new "ember" driver so you can start it with that instead, lastly Zigbee2MQTT with the new "ember" driver be able to create a new Zigbee network backup which then (in theory) can be restored to zstack (I think?). PS: By the way; new "ember" driveror (Silabs) adapters is officially only supported with EmberZNet v7.4 and later firmware. |
Beta Was this translation helpful? Give feedback.
-
FYI, you can now alternatively also use the new ember-zli utils tool by @Nerivec to backup and restore EmberZNet (EZSP) based adapters: Ember ZLI depends on zigbee-herdsman's 'ember' driver (also by Nerivec) and its backups uses the "open coordinator backup" format: Optionally it can also be used to backup and restore NVM3 tokens. Be sure to read the ember-zli wiki regardless:
|
Beta Was this translation helpful? Give feedback.
-
I'm currently working on a high availability setup to run Z2M on, and this discussion is somewhat related to. So... Is this the right place to discuss it? Should I open a feature request / an issue to discuss about it ? |
Beta Was this translation helpful? Give feedback.
-
I'm currently using Zigbee2MQTT 1.30.0 with SONOFF ZBDongle-E (EZSP v9; Coordinator revision, 7.1.1.0).
How can I migrate to ZBDongle-P controller?
cc2538-bsl.py
as per faqadapter=auto
)But after restart I still see in herdsman log that he is trying to use ezsp protocol.
Should I edit
coordinator_backup.json
?Maybe is there something more I should do?
Beta Was this translation helpful? Give feedback.
All reactions