dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

Can I change the PAN ID and network key? #850

Closed ebaauw closed 5 years ago

ebaauw commented 5 years ago

I'm starting to think that maybe my 91-node network has become too complex (#849 , #806). I'm considering to split it, i.e. connect half of my devices to a different deCONZ instance.

Instead of having to pair half of my devices again, would the following approach be possible?

From what I understand from the ZigBee documentation, it should be possible to change the PAN ID (on PAN ID conflicts) and the network key (when the message counter has been depleted), but I'm wondering if deCONZ supports this, and if the devices would be updated with the new values.

manup commented 5 years ago

That's very tricky (impossible) to do.

I strongly recommend against running two setups based on the same backup in signal range.

Some details:

In short I don't think splitting the network without reset and rejoin is possible. You may copy the zll.db to the other setup to simplify rejoining and configuration, but make sure to delete/edit zbconfig table.

At least for the lights changing networks it is pretty simple:

ebaauw commented 5 years ago

The joined devices keep and use the extended panid in NVRAM.

Thanks, I hadn't thought of that one.