Zigbee2MQTT gurus out there, I need some help.
I have a working Z2M network of around 100 devices, of which, a third are mains powered ie routers. My coordinator is a USB SONOFF ZBDongle-P and I have 2 SONOFF ZBDongle-Es flashed as routers. Last week, I tried to migrate the network over to a PoE SMLight SLZB-06 by following this video by Digiblur, to hopefully future-proof it. Note the tag line on the video says “Easy Zigbee2MQTT Migration” . Why do they always say that when it’s often not “easy” at all.
Suffice to say, despite following all the instructions to the letter, and a long discussion on Digiblur’s Discord chat, it didn’t work and Z2M would not start. So I left it for a few days and went back to a video I’d seen on adding up to 5 more instances of Z2M. This one:
Again, after following the instructions to the letter, I could not get a second Z2M instance to start, even with specifying the PoE coordinator in the 2nd instance’s configuration. Additionally, when I specified a new base_topic: zigbee2mqtt1
in the configuration of my exisiting network, as described in the video, Z2M generated new entity_ids:
for all of my Z2M Groups so,again, not “easy”.
The error messages I’m getting are the same as those I was getting when I tried to migrate the network to the PoE coordinator:
[19:52:54] INFO: Preparing to start...
[19:52:54] INFO: Socat not enabled
[19:52:55] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-22 19:54:04] error: z2m: Error while starting zigbee-herdsman
[2024-07-22 19:54:04] error: z2m: Failed to start zigbee
[2024-07-22 19:54:04] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-22 19:54:04] error: z2m: Exiting...
[2024-07-22 19:54:05] error: z2m: Error: network commissioning timed out - most likely network with the same panId or extendedPanId already exists nearby
at ZnpAdapterManager.beginCommissioning (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:341:23)
at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:86:17)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
at Zigbee.start (/app/lib/zigbee.ts:63:27)
at Controller.start (/app/lib/controller.ts:139:27)
at start (/app/index.js:154:5)
and it just gets stuck in an endless loop trying to start.
From my interpretation of the errors, the most likely cause is this one:
z2m: Error: network commissioning timed out - most likely network with the same panId or extendedPanId already exists nearby
So after a bit of reading here:
I read about changing the pan_id:
and ext_pan_id:
using pan_id: GENERATE
. However it says in the Z2M settings that a change of pan_id:
will require all devices to be re-paired, so I wasn’t going to do that to my existing (and still working) Z2M instance running off the SONOFF ZBDongle-P coordinator. Instead, I tried to change the pan_id:
of the 2nd instance of Z2M by entering pan_id: GENERATE
in the serial configuration of the 2nd instance. Like this:
That didn’t work either and nor did entering the same lines in the mqtt
section of the configuration. If I check the indentation of the corresponding section of my zigbee2mqtt > configuration.yaml
file, the indentation of advanced:
here wouldn’t be right as it should be in the same indentation as serial:
I’m almost at the stage where I’m thinking about trying to change the pan_id:
of my existing network and just living with the prospect of having to re-pair all my devices, which I’m prepared to do. Unless someone can throw a different light on why neither of the above options is working for my network. The only other thing I can think it might be is the mains powered routers I have, specifically the 2 x SONOFF ZBDongle-Es I have. So I’m also going to power down ALL my mains-powered devices and try again with the 2nd instance.
Any comments welcomed, even if it’s just to say “crack on then”
Part of the reason for this post is that despite searching, I can’t find any thread in the Community that deals with this specific issue. So I just wanted a place where others who are trying to achieve this and getting as frustrated as I am can come to possibly find a solution to their own problems.
Thanks, and sorry for the long post.