Changing Zigbee channel resets network key (network key from configuration.yaml reset)
What happened?
Hello,
I just updated to 2.6.1 (skipped 2.6.0 due to frontend bug that made it impossible to change Zigbee settings via the frontend on Home Assistant). After attempting to change the Zigbee channel, I found that the network_key in is reset in configuration.yaml. This causes Z2M to be unable to start.
Upon further investigation, it looks like the network_key value is not imported into the settings page, thus to change any setting without breaking the network I would have to manually enter the network key. It is unclear to me if this is an issue with the frontend or Z2M itself.
What did you expect to happen?
My network_key should be imported to the settings page from configuration.yaml and respected when I change other Zigbee settings.
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
2.6.1
Adapter firmware version
20210708
Adapter
SONOFF Zigbee Dongle
Setup
Zigbee2MQTT add-on in Home Assistant running in Proxmox VM
Device database.db entry
No response
Debug log
No response
Same after enable "last seen" in webui , lost network key in configuration.yaml
[2025-09-02 06:51:17] error: zh:adapter:zstack:manager: - Network Key: configured=01030507090b0d0f00020406080a0c0d, adapter:active=067439ddeaf4b6139f27e098712f9bdf adapter:preconfigured=067439ddeaf4b6139f27e098712f9bdf, adapter:alternate=067439ddeaf4b6139f27e098712f9bdf
When changing the logging level from info to debug, the same thing happens.
Does this also occur with the windfront frontend?
Does this also occur with the windfront frontend?
Not sure, I'm only using the default frontend. Could anyone else chime in if they are using the windfront?
Yes. Annoying bug. Can't use the settings page so using the yaml to configure things... :/
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This happened to me as well. I took the opportunity to reconfigure my network. But just want to confirm that changing the channel did reset my network also. Am on Z2M 2.6.3