NEWS

Zigbee adapter problem


  • Starter

    Recently Zigbee adapter became unstable. Sometimes it works (green light, all devices are alive), sometimes it has green light but not able to access devices, sometimes it has red light, see log below. Restarting controller did not help. Re-flashing cc2531 dongle did not help. All ioBroker components and Linux are freshly updated.

    Zigbee errors start with the following

    zigbee.0	2020-10-21 11:38:36.533	error	(32262) TypeError: Cannot read property 'getEntries' of null at Function.loadFromDatabaseIfNecessary (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/device.js:214:55) at Func
    zigbee.0	2020-10-21 11:38:36.533	error	(32262) unhandled promise rejection: Cannot read property 'getEntries' of null
    zigbee.0	2020-10-21 11:38:36.533	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
    

    Here is more detailed log

    2020-10-19 14:11:37.270 - info: host.AP-Tiny instance system.adapter.zigbee.0 started with pid 4081
    2020-10-19 14:11:37.747 - debug: zigbee.0 (4081) Redis Objects: Use Redis connection: 127.0.0.1:9001
    2020-10-19 14:11:37.766 - debug: zigbee.0 (4081) Objects client ready ... initialize now
    2020-10-19 14:11:37.768 - debug: zigbee.0 (4081) Objects create System PubSub Client
    2020-10-19 14:11:37.768 - debug: zigbee.0 (4081) Objects create User PubSub Client
    2020-10-19 14:11:37.769 - debug: zigbee.0 (4081) Objects client initialize lua scripts
    2020-10-19 14:11:37.774 - debug: zigbee.0 (4081) Objects connected to redis: 127.0.0.1:9001
    2020-10-19 14:11:37.777 - debug: zigbee.0 (4081) objectDB connected
    2020-10-19 14:11:37.778 - debug: zigbee.0 (4081) Redis States: Use Redis connection: 127.0.0.1:9000
    2020-10-19 14:11:37.781 - debug: zigbee.0 (4081) States create User PubSub Client
    2020-10-19 14:11:37.782 - debug: zigbee.0 (4081) States create System PubSub Client
    2020-10-19 14:11:37.786 - debug: zigbee.0 (4081) States connected to redis: 127.0.0.1:9000
    2020-10-19 14:11:37.786 - debug: zigbee.0 (4081) statesDB connected
    2020-10-19 14:11:38.359 - info: zigbee.0 (4081) starting. Version 1.3.0 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.19.0, js-controller: 3.1.6
    2020-10-19 14:11:38.377 - debug: zigbee.0 (4081) Using zigbee-herdsman with settings: {"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11],"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13]},"databasePath":"/opt/iobroker/iobroker-data/zigbee_0/shepherd.db","backupPath":"/opt/iobroker/iobroker-data/zigbee_0/nvbackup.json","serialPort":{"baudRate":115200,"rtscts":false,"path":"/dev/ttyACM0","adapter":"zstack"}}
    2020-10-19 14:11:38.399 - info: zigbee.0 (4081) Starting Zigbee...
    2020-10-19 14:11:38.400 - debug: zigbee.0 (4081) Starting zigbee-herdsman...
    2020-10-19 14:11:38.457 - debug: zigbee.0 (4081) Backup /opt/iobroker/iobroker-data/zigbee_0/backup_2020_10_19-14_11_38.tar.gz success
    2020-10-19 14:11:40.115 - debug: zigbee.0 (4081) system.adapter.admin.0: logging false
    2020-10-19 14:11:41.182 - debug: zigbee.0 (4081) system.adapter.admin.0: logging true
    2020-10-19 14:11:42.922 - debug: zigbee.0 (4081) User stateChange zigbee.0.000b57fffebcfc39.state {"val":false,"ack":false,"ts":1603131102918,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1603078200014}
    2020-10-19 14:11:42.924 - debug: zigbee.0 (4081) User stateChange zigbee.0.90fd9ffffe2bad6b.state {"val":false,"ack":false,"ts":1603131102918,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1603129197774}
    2020-10-19 14:11:42.926 - debug: zigbee.0 (4081) User stateChange zigbee.0.d0cf5efffe7d475c.state {"val":false,"ack":false,"ts":1603131102919,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1603078200014}
    2020-10-19 14:11:42.929 - debug: zigbee.0 (4081) User stateChange zigbee.0.d0cf5efffedaa37c.state {"val":false,"ack":false,"ts":1603131102919,"q":0,"from":"system.adapter.javascript.0","user":"system.user.admin","lc":1603078200014}
    2020-10-19 14:11:42.931 - debug: zigbee.0 (4081) Change state 'state' at device 0x000b57fffebcfc39 type 'LED1622G12'
    2020-10-19 14:11:42.931 - debug: zigbee.0 (4081) Change state 'state' at device 0x90fd9ffffe2bad6b type 'LED1622G12'
    2020-10-19 14:11:42.932 - debug: zigbee.0 (4081) State changes. dev: 0x000b57fffebcfc39 model: LED1622G12 states: [{"stateDesc":{"id":"state","name":"Switch state","role":"switch","write":true,"read":true,"type":"boolean","inOptions":true},"value":false,"index":0,"timeout":0}] opt: {"state":false}
    2020-10-19 14:11:42.933 - debug: zigbee.0 (4081) State changes. dev: 0x90fd9ffffe2bad6b model: LED1622G12 states: [{"stateDesc":{"id":"state","name":"Switch state","role":"switch","write":true,"read":true,"type":"boolean","inOptions":true},"value":false,"index":0,"timeout":0}] opt: {"state":false}
    2020-10-19 14:11:42.933 - debug: zigbee.0 (4081) entity: undefined
    2020-10-19 14:11:42.934 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
    2020-10-19 14:11:42.934 - error: zigbee.0 (4081) unhandled promise rejection: Cannot read property 'getEntries' of null
    2020-10-19 14:11:42.934 - error: zigbee.0 (4081) TypeError: Cannot read property 'getEntries' of null
    at Function.loadFromDatabaseIfNecessary (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/device.js:214:55)
    at Function.byIeeeAddr (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/device.js:222:16)
    at Controller.getDeviceByIeeeAddr (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:264:31)
    at ZigbeeController.resolveEntity (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:233:52)
    at Zigbee.publishFromState (/opt/iobroker/node_modules/iobroker.zigbee/main.js:313:48)
    at StatesController.emit (events.js:314:20)
    at StatesController.publishFromState (/opt/iobroker/node_modules/iobroker.zigbee/lib/statescontroller.js:142:14)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    2020-10-19 14:11:42.935 - info: zigbee.0 (4081) cleaned everything up...
    2020-10-19 14:11:42.935 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
    2020-10-19 14:11:42.935 - error: zigbee.0 (4081) unhandled promise rejection: Cannot read property 'mapped' of undefined
    2020-10-19 14:11:42.936 - error: zigbee.0 (4081) TypeError: Cannot read property 'mapped' of undefined
    at Zigbee.publishFromState (/opt/iobroker/node_modules/iobroker.zigbee/main.js:315:36)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    2020-10-19 14:11:42.936 - info: zigbee.0 (4081) Zigbee: disabling joining new devices.
    2020-10-19 14:11:42.937 - error: zigbee.0 (4081) Failed to stop zigbee (TypeError: Cannot read property 'getEntries' of null
    at Function.loadFromDatabaseIfNecessary (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/group.js:76:55)
    at Function.all (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/group.js:88:15)
    at Controller.databaseSave (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:219:45)
    at Controller. (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:200:18)
    at Generator.next ()
    at /opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:27:71
    at new Promise ()
    at __awaiter (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:23:12)
    at Controller.stop (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:199:16)
    at ZigbeeController.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:308:33))
    2020-10-19 14:11:42.939 - debug: zigbee.0 (4081) Change state 'state' at device 0xd0cf5efffe7d475c type 'LED1622G12'
    2020-10-19 14:11:42.939 - debug: zigbee.0 (4081) Change state 'state' at device 0xd0cf5efffedaa37c type 'LED1622G12'
    2020-10-19 14:11:42.940 - debug: zigbee.0 (4081) State changes. dev: 0xd0cf5efffe7d475c model: LED1622G12 states: [{"stateDesc":{"id":"state","name":"Switch state","role":"switch","write":true,"read":true,"type":"boolean","inOptions":true},"value":false,"index":0,"timeout":0}] opt: {"state":false}
    2020-10-19 14:11:42.940 - debug: zigbee.0 (4081) State changes. dev: 0xd0cf5efffedaa37c model: LED1622G12 states: [{"stateDesc":{"id":"state","name":"Switch state","role":"switch","write":true,"read":true,"type":"boolean","inOptions":true},"value":false,"index":0,"timeout":0}] opt: {"state":false}
    2020-10-19 14:11:42.941 - debug: zigbee.0 (4081) entity: undefined
    2020-10-19 14:11:42.941 - debug: zigbee.0 (4081) entity: undefined
    2020-10-19 14:11:42.941 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
    2020-10-19 14:11:42.942 - error: zigbee.0 (4081) unhandled promise rejection: Cannot read property 'mapped' of undefined
    2020-10-19 14:11:42.942 - error: zigbee.0 (4081) TypeError: Cannot read property 'mapped' of undefined
    at Zigbee.publishFromState (/opt/iobroker/node_modules/iobroker.zigbee/main.js:315:36)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    2020-10-19 14:11:42.942 - error: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
    2020-10-19 14:11:42.942 - error: zigbee.0 (4081) unhandled promise rejection: Cannot read property 'mapped' of undefined
    2020-10-19 14:11:42.942 - error: zigbee.0 (4081) TypeError: Cannot read property 'mapped' of undefined
    at Zigbee.publishFromState (/opt/iobroker/node_modules/iobroker.zigbee/main.js:315:36)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    2020-10-19 14:11:42.944 - info: zigbee.0 (4081) terminating
    2020-10-19 14:11:42.945 - info: zigbee.0 (4081) Terminated (NO_ERROR): Without reason
    2020-10-19 14:11:48.898 - info: host.AP-Tiny instance system.adapter.zigbee.0 terminated with code 0 (NO_ERROR)
    2020-10-19 14:11:48.899 - info: host.AP-Tiny Restart adapter system.adapter.zigbee.0 because enabled
    
    

Log in to reply
 

Suggested Topics

1.6k
Online

32.0k
Users

38.7k
Topics

525.2k
Posts