Sorry to add to all the other requests but I’ve been on this all day and totally lost and would appreciate some ideas from those who know.
I’ve read as much as I can, added the required lines to the config file and adapter: zstack etc
From the log it looks like the serial port opens but the configuration is wrong.
I have these settings in the config file (doesn’t mean much to me):
So this is probably the issue but I don’t know how to fix it. I have now tried both numbers in the config file and rebooted the host but no joy. In fact, I removed the pan_id line completely but it still gives the same number in the log, don’t know where it gets it from.
No, I have a large system and don’t want to have to re-pair everything. But maybe that’s where this number is coming from, a json file. I’ll take a look.
Please change in your z2mqtt configuration.yaml the values for (extended) PAN-id - network key and channel etc to the values which are displayed behind adapter. Apparently the values in the config file are different from your adapter.
Syntax:
advanced:
# Optional: ZigBee pan ID (default: shown below)
# Setting pan_id: GENERATE will make Zigbee2MQTT generate a new panID on next startup
pan_id: 0x1a63
# Optional: Zigbee extended pan ID, GENERATE will make Zigbee2MQTT generate a new extended panID on next startup (default: shown below)
ext_pan_id: [0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD]
# Optional: Zigbee channel, changing might require re-pairing of some devices (see docs below). (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid problems)
# (default: 11)
channel: 11
# Optional: network encryption key
# GENERATE will make Zigbee2MQTT generate a new network key on next startup
# Note: changing requires repairing of all devices (default: shown below)
network_key: [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13]
All values with 0x in front are Hex. please use an online hex to dec and vise versa calculator to get the right values.
Many thanks but I am still confused, am I trying to enter these values into the config file?
PAN ID: 6754 (maybe that should be 0xD33A ??)
Extended PAN ID: 00124b0024c1492d
Network Key: 01030507090b0d0f00020406080a0c0d
Channel: 11
OR THESE VALUES
PAN ID: 54074
Extended PAN ID: 00124b0024c1492d (this is already the same in both cases)
Network Key: db8e5d07ec34edd6df43f1b2aeb5fb3f
Channel: 25
Are these just two ways of writing the same?
network_key:
- 219
- 142
- 93
- 7
- 236
- 52
- 237
- 214
- 223
- 67
- 241
- 178
- 174
- 181
- 251
- 63
AND
Network Key: [0xDB, 0x8E, 0x5D, 0x07, 0xEC, 0x34, 0xED, 0xD6, 0xDF, 0x43, 0xF1, 0xB2, 0xAE, 0xB5, 0xFB, 0x3F]
I’m sorry I don’t really understand all this stuff but once I know what I am supposed to put in the config file, I’ll be OK