Sonoff Dongle P with Zigbee2mqtt can’t be swapped / replaced #20724
Replies: 8 comments 5 replies
-
I am interested in this scenario too, but have a couple of questions....
|
Beta Was this translation helpful? Give feedback.
-
Here is my write-up on getting a "Replacement" Sonoff Dongle -P working as a replacement for an "Operational" Sonoff Dongle -P.
Note the line:
|
Beta Was this translation helpful? Give feedback.
-
Here is another reference also on this topic.... |
Beta Was this translation helpful? Give feedback.
-
For reference, this was also cross-posted and discussed in Home Assistant's community forum here -> https://community.home-assistant.io/t/sonoff-dongle-p-with-zigbee2mqtt-cant-be-replaced/669878/14
FYI, you can alternatively restore See -> #16478 That method is manual + unofficial but the benefit is can restore ít to any adapter type so not limited to restoring from or to the same type. Note! Both https://github.com/zigpy/open-coordinator-backup zigpy-cli can be used as a stand-alone tool for "Open ZigBee Coordinator Backup Format" to backup/restore Zigbee network from NVRAM: https://github.com/zigpy/zigpy-cli https://github.com/zigpy/zigpy-cli/blob/dev/README.md#network-commands Again, more on how to use PS: There is also an unofficial Zigpy-CLI add-on for Home Assistant that if plug in the adapter in same computer and stop apps accessing it. https://github.com/tube0013/tubeszb_addons/tree/main/tzb-zigpy-cli-tools https://github.com/tube0013/tubeszb_addons/blob/main/tzb-zigpy-cli-tools/DOCS.md |
Beta Was this translation helpful? Give feedback.
-
@tommyjlong , Thanks again for your really detailled Documentation, highly appreciate your Time! However, this is just Step One on my Mission:
Unfortunatly, it didn't work when using the Replacement-RPi. Z2Ms Log start with:
Which looks alright, as the "Restoring" already took place on the Live System, which is the Source for the Backup used on the Fallback-System. However, no Routers are operatable: Data request failed with error: 'No network route' This is the second Part i just don't get - it is a full restored Backup of the System where it was working prior to it. I really have no Idea what the... is going on and how i could track down the Problem. I have no Explanation how a fully restored Backup System with a working Replacement-Stick just fails. Any Ideas? @tommyjlong You don't have by accident a spare System as well, do you? 😝 |
Beta Was this translation helpful? Give feedback.
-
Let me see if I have this correct....
Honestly, I don't know, but here is a long thread on the subject. My best guess is that the other devices/routers in the network are seeing changes during all of this and the routes haven't had time to reorganized. I can especially see this if the RPi is in a different location. I've read where people suggest turning off the Coordinator for at least 20 minutes, and perhaps as long as 24 hours as a fix. Another thing, is that an HA Backup/Restore of the Z2M AddOn is not the same as the Z2M backup/restore of the coordinator. From my testing, the HA Backup of the Z2M AddOn does not backup the database nor coordinator_backup.json file, so a HA restore of the AddOn will leave the RPi with empty Z2M data. |
Beta Was this translation helpful? Give feedback.
-
Yes surely, see above
Yes, absolutely correct!
While i can't be 100% sure, i rather doubt it, as it was working almost instantly in first place - and i did the same thing regulary for more than a year with a conbee2 stick on deconz, and never encountered such problems.
Well, on a sidenote, on the Restored RPi there are all Devices listed in Z2M, even those just added before making the backup on the Live system. I never thought this will become such a Rabbithole 😆 |
Beta Was this translation helpful? Give feedback.
-
Now i tested many possible Combinations, and my Observings are: Only the last restored* Stick can make a Connection. Once the other Stick got restored*, the first one doesn't connect to the Network, on any of the RPis. *restored = Flashed Firmware including setting the IEEE Adress. The latter might not be necessary. So - There is clearly something more, aside the IEEE Adress, and the (restored) Z2M Configuration. |
Beta Was this translation helpful? Give feedback.
-
I found out i can’t just swap my Sticks (both Sonoff Zigbee Dongle Plus P) and control my Network.
After stopping Z2M, i'm waiting a couple of Minutes, plugging in the new Stick, but none of my Devices is controllable with it.
I think the relevant Part in the Z2M Logs is:
(Data request failed with error: ‘No network route’ (205)))
As soon as i plug the old one in, everything is (almost instantly) back to normal.
My Goal is to have a Second spare Zigbee Dongle, ready to take over with a second spare RPi with HAOS, in Case of a Failure.
On my old Conbee II/Deconz System, i just had to make sure they are not running at the same Time, and sometimes had to wait a couple of Minutes til all Devices were controllable again with the new Stick.
What could i be looking after, did i miss an important Step?
Beta Was this translation helpful? Give feedback.
All reactions