Dear all,
I want to change the network key now.
What does it mean to repair the devices afterwards?
What network key is allowed? only numbers? is there a restriction?
Many thanks
Because the network key changes, the devices cannot communicate with the coordinator, therefore you have to repair all devices.
Only an array of 16 numbers is allowed. I would recommend to just copy https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_secure_network.html and change some of the numbers.
Thank you for your reply.
How can I repair them?
Do I have to pair them again, or repair them? Sorry for the confusion...
Yes that term gets quite confusing here. You will need to re-pair (pair again) not repair (as in some fixing).
advanced:
network_key: [7, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 11, 12, 13],
Should the above have the comma on the end?
If I put that in my config it fails to load if I remove the comma it loads OK. I have yet to add any devices as I have just started setting it up.
There shouldnt be a comma (otherwise its not valid yaml)
@koenk I also switched changed my network key.
I also had to delete that comma at the end to be able to set it up. Otherwise I got an error in the zigbee logs. This error pointet to this comma
So instead of
advanced: network_key: [7, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 11, 12, 13],
this:
advanced: network_key: [7, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 11, 12, 13],
Of course with other numbers. Also after saving without comma and rebooting the addon, my yaml now looks like this (not my real code).

Could you also add the restriction to that network_key to the docs?
Like
@h4nc this is already being worked on: #963 #969
Ok great, but what about the comma thing? And is it normal that it changes the format (see picture in last posting).
Nevermind, found the answer myself. It's normal like this.
@h4nc fixed in #963. I assume this can be closed now.
Most helpful comment
Yes that term gets quite confusing here. You will need to re-pair (pair again) not repair (as in some fixing).