Zigbee2mqtt 1.5.1 problems

Hi there,

Since last friday i’m having serious problems with my MQTT installation.
I’m using a ZigBee Sniffer (CC2531).

Since friday my log is full of errors and i don’t understand why.

Zigbee2mqtt LOG

./run.sh: line 13: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
2019-07-21T14:51:23: PM2 log: Launching in no daemon mode
2019-07-21T14:51:23: PM2 log: App [npm:0] starting in -fork mode-
2019-07-21T14:51:23: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.5.1
> node index.js
  zigbee2mqtt:info 7/21/2019, 2:51:24 PM Logging to directory: '/share/zigbee2mqtt/log/2019-07-21.14-51-24'
  zigbee2mqtt:info 7/21/2019, 2:51:24 PM Starting zigbee2mqtt version 1.5.1 (commit #unknown)
  zigbee2mqtt:info 7/21/2019, 2:51:24 PM Starting zigbee-shepherd
/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/lib/components/controller.js:429
                    throw new TypeError('net.precfgkey should be an array with 16 uint8 integers.');
                    ^
TypeError: net.precfgkey should be an array with 16 uint8 integers.
    at /zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/lib/components/controller.js:429:27
    at Object._.forOwn (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/node_modules/busyman/index.js:242:27)
    at Object._.forEach (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/node_modules/busyman/index.js:415:18)
    at Controller.setNvParams (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/lib/components/controller.js:414:7)
    at new ZShepherd (/zigbee2mqtt-1.5.1/node_modules/zigbee-herdsman/dist/lib/shepherd.js:28:21)
    at Zigbee.start (/zigbee2mqtt-1.5.1/lib/zigbee.js:57:25)
    at startupLogVersion (/zigbee2mqtt-1.5.1/lib/controller.js:167:25)
    at utils.getZigbee2mqttVersion (/zigbee2mqtt-1.5.1/lib/controller.js:193:13)
    at git.getLastCommit (/zigbee2mqtt-1.5.1/lib/util/utils.js:102:9)
    at /zigbee2mqtt-1.5.1/node_modules/git-last-commit/source/index.js:44:5
npm
 
ERR! code ELIFECYCLE
npm ERR! errno 1
npm
 ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

You need to add the default network key to the config or create a new network key if you’re willing to re-pair your devices. Here is more detail on the subject:

1 Like

Found the answer just before you posted. Thanks for helping anyways !!
:slight_smile:

version 1.5.1.1 it’s out,
for your reference, and to avoid loosing time and headache…

I’m on Hassos,
just upgraded to 1.5.1.1 and now config says:

not a valid value for dictionary value @ data[‘options’]. Got {‘data_path’: ‘/share/zigbee2mqtt’, ‘devices’: ‘devices.yaml’, ‘groups’: ‘groups.yaml’, ‘homeassistant’: True, ‘permit_join’: False, ‘mqtt’: {‘base_topic’: ‘zigbee2mqtt’, ‘server’: ‘mqtt://homeassistant:1883’, ‘user’: ‘xxxx’, ‘password’: ‘xxxxx’}, ‘serial’: {‘port’: ‘/dev/ttyACM0’}, ‘advanced’: {‘pan_id’: 6754, ‘channel’: 11, ‘network_key’: [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13]}, ‘ban’: [], ‘whitelist’: [], ‘queue’: {}}
my config it’s:
{
“data_path”: “/share/zigbee2mqtt”,
“devices”: “devices.yaml”,
“groups”: “groups.yaml”,
“homeassistant”: true,
“permit_join”: false,
“mqtt”: {
“base_topic”: “zigbee2mqtt”,
“server”: “mqtt://homeassistant:1883”,
“user”: “xxxx”,
“password”: “xxxx”
},
“serial”: {
“port”: “/dev/ttyACM0”
},
“advanced”: {
“pan_id”: 6754,
“channel”: 11,
“network_key”: [
1,
3,
5,
7,
9,
11,
13,
15,
0,
2,
4,
6,
8,
10,
12,
13
]
},
“ban”: ,
“whitelist”: ,
“queue”: {}
}

solution:
i had to reset to the default settings of the config, fill in the mqtt login and password, change :
“disable_led”: “bool?”
to
“disable_led”: “false”
now the add-on starts without errors…