zigbee2mqtt
zigbee2mqtt copied to clipboard
Cannot set up ieee address of new CC2531 stick to old one when migrating
What happened?
I have replaced the CC2531 stick for the new one. Devices disappeared from Home Assistant. Then I found this instruction for migrating:
Open the frontend, go to "Settings" -> "About" -> "Coordinator IEEE Address" Open the data/database.db; on the first line you will find the coordinator ieee address: {"id":1,"type":"Coordinator","ieeeAddr":"0x00124b000e89686d","nwkAddr":0...
This approach does not work for me, because immediately after I start zigbee2mqtt service, the "old" ieee address in database.db is overwritten by ieee address of new stick.
How to solve that?
What did you expect to happen?
After start of zigbee2mqtt with new CC2531 stick, the database.db should contain ieee address of old stick, that I have copied there before start
How to reproduce it (minimal and precise)
- stop zigbee2mqtt
- edit database.db and put different ieee address in first line
- start zigbee2mqtt
- check database.db - ieee of new stick is there again
Zigbee2MQTT version
1.25.0
Adapter firmware version
0.14.20 herdsman
Adapter
CC2531
Debug log
At last row, you can see ieee of new stick. Th old one that I copied to database.db was different:
debug 2022-11-25 00:02:45: Loaded state from file /opt/zigbee2mqtt/data/state.json info 2022-11-25 00:02:45: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2022-11-25.00-02-44' filename: log.txt debug 2022-11-25 00:02:45: Removing old log directory '/opt/zigbee2mqtt/data/log/2022-11-24.19-42-31' info 2022-11-25 00:02:45: Starting Zigbee2MQTT version 1.25.0 (commit #6f1460e4) info 2022-11-25 00:02:45: Starting zigbee-herdsman (0.14.20) debug 2022-11-25 00:02:45: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordina> info 2022-11-25 00:02:46: zigbee-herdsman started (resumed) info 2022-11-25 00:02:46: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20180507,"transportrev":2},"type":"zStack12> debug 2022-11-25 00:02:46: Zigbee network parameters: {"channel":11,"extendedPanID":"0x00124b001cce3229","panID":6754}