Easiest way to migrate from CC1352P-2 to zzh?

Short version:
What is the easiest way to migrate from CC1352P-2 to zzh? This is a different type of chip, so I most likely have to change the pan_id and repair everything?

Full story:
As my Zigbee network is getting larger, I recently decided to upgrade my adapter. I was running zigbee2mqtt as Hassio add-on, using a CC2531 (with antenna soldered) with around 50 devices (17 routers). I replaced this adapter by the CC1352P-2.

As this requires changing the pan_id, and therefore repairing all devices, I decided to just remove the old add-on and re-install it after changing the dongle. Although I completely removed the add-on and all configuration/storage files, I still had to change the pan_id, is this normal?

I started re-pairing all devices, but some devices re-paired automatically (most likely because they couldn’t reach the ‘old’ coordinator). However, in the next days, some of these devices were getting unstable, and I had to manually re-pair an re-configure them. Again: is this normal? And would it be better to delete them and/or manually re-pair them to prevent this?

The CC1352P-2 is more powerfull but a bit big (and better suited for debugging), so I just ordered the zzh stick and will use this one instead. As this is a different chipset (CC2652R) I most likely will have to change the pan_id again and re-pair all devices. What is the best approach to do this?

  • Start with a clean install, or just change the pan_id and restart zzh?
  • If changing the pan_id is required, would it be possible to re-use my initial pan_id (which is no longer used by any device now)
  • Unpair/remove devices (routers) from network or not? I will manually reset them when possible
  • When re-pairing: remove devices that auto-joined?

Many thanks for your suggestions! Or if there is any way to migrate without re-pairing, I would be happy to hear!

I’m sorry, I don’t have the answer for you. I would like to convert my network from CC2531 to zzh. I read on the website that I should change the pan id. But I’d like to know: change it to what?

I don’t remember setting the pan_id when I started with zigbee and my cc2531. So what would be the correct pan_id if I decide to switch to the zzh?

Also; would this require to re-add all my devices in home assistant as well?

If you migrate from a CC2531, you most likely will have to change the pan_id or zigbee2mqtt won’t start. Just increase the old value by 1, for example if your current pan_id is 6754, change it to 6755 in configuration.yaml. If you haven’t configured the pan_id yet, zigbee2mqtt uses the default value (=0x1a62 in hex or 6754 in decimal).

Unfortunately, this requires repairing of all devices, as explained on https://www.zigbee2mqtt.io/information/FAQ.html#requires-repairing

For anyone wondering: I was able to replace the CC1352P-2 by the zzh stick without any issues, no need to repair or change the pan_id (most likely because they use a similar chipset, in contrast to the chipset used on the CC2531).

1 Like

Ok, so I know what to change the pan ID to. Now I am wondering why it is required to change the pan (why wouldn’t zigbee2mqtt start) while this isn’t required for the upgrade you did: from CC1352P-2 to zzh. What does it do? Or is that too hard to explain?

I am not an expert, but this is how I understand it:

The pan_id is used by the coordinator (your CC2531 stick) to create a Personal Area Network, using the configured channel and network key. In this context, the pan_id is just an ID to identify your mesh network. All devices (routers and endpoints) in the network share and know this pan_id, and it is defined during the initial startup phase of the coordinator (when in automatic mode, the coordinator selects an unused pan_id).

When I upgraded from my CC2531 to the CC1352P-2, zigbee2mqtt wouldn’t start because the coordinator detected that the pan_id was already in use. Even when configuring a clean zigbee2mqtt instance, I kept getting this error. Although the coordinator was gone, the old devices still knew this pan_id and therefore the coordinator could not use it. Note that this is most likely something related to the ZigBee standard, and not zigbee2mqtt specific. I guess that if you remove all devices first (but for endnodes this is a bit tricky wen they are battery powered) you could really re-use the old PAN ID if needed (but the easier solution would be to just change it… this has no effect on performance or whatsoever).

When upgrading from CC1352P-2 to zzh however I did not have to change the pan_id, I just replaced the dev board by the zzh dongle, restarted zigbee2mqtt and everything seemed ok. The zzh dongle however uses the CC2652R which is quite similar to CC1352P-2 (but the latter one also supports sub-Ghz, and now that I think of it, it is very likely that the same chip is used for zigbee as on the CC2652R), so this is most likely the explanation why it works.

Note that when you replace your CC2531by a different CC2531 stick, you also don’t have to change anything. Just restart zigbee2mqtt and everything works. Changing the adapter by a different type of adapter (like the 2652/1352/zzh) however requires this, I guess this is because the drivers are different and the old zigbee network cannot be re-used - but this is really a pure guess.

TL;DR: if you replace the CC2531 by zzh (or a different Ti 1352/2651 board), you will have to change the pan_id, unless you manage to remove all devices from the network first (including the coordinator) and start with a fresh/clean install.

Ok I understand. Thank you for the explanation.

Since you have the experience, would you recon it’s a good idea to replace the CC2531 with the zzh? Currently I have only one CC2531, and it can hardly reach my attic. From what I read so far, the zzh should perform much better. Did you experience this as well? Of course you didn’t go from CC2531 to zzh directly, but I guess if both changes give better result, CC2531 --> zzh should also yield better results.

A different dongle could significantly improve the range, and both zzh/1352/2651 are good candidates for that. However, if you could place an additional router in between your CC2531 and the device with poor connection, you could also extend the reach and solve your problem. In my case, I have several (IKEA) smart plugs and some basic lightbulbs in storage rooms distributed in my house to be used as routers, but off course you could also use additional CC2531 sticks.

So in my case, range was not the issue, I had good coverage with the CC2531 and around 17 routers. However, as my network was rapidly increasing in size, it was becoming slow (the CC2531 is good for smaller networks, but once you go over 40 devices the chip is just not powerful enough to handle all the zigbee traffic).

So, if range is your only concern and your network is fairly small, you can stick with the CC2531 for now. If your network is however increasing in size, and you need a faster adapter that can cope with the increased amount of traffic, upgrade the adapter. Oh, a nice bonus: because the zzh/1352/2651 adapters are much more powerful and have a better range, (re-)pairing is much easier and faster compared to using a CC2531!