zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Crashes with CC2531 router paired

Open kimonm opened this issue 8 years ago • 31 comments

zigbee2mqtt is working fine, except if I pair a CC2531 flashed as a router (using CC2531-router.hex code). It pairs fine, however when I restart zigbee2mqtt, I get the following output and npm-debug.log. Thanks in advance for any help!

6/12/2018, 9:38:28 PM INFO Starting zigbee-shepherd
6/12/2018, 9:38:29 PM INFO zigbee-shepherd started
6/12/2018, 9:38:29 PM INFO Currently 6 devices are joined:
6/12/2018, 9:38:29 PM INFO xiaomi_sw1 (0x00158d0001f43047): WXKG01LM - Xiaomi MiJia wireless switch (EndDevice)
6/12/2018, 9:38:29 PM INFO office_lamp (0xb0ce18140310b553): E11-G13 - Sengled Sengled Element Classic bulb (EndDevice)
6/12/2018, 9:38:29 PM INFO xiaomi_cube (0x00158d00024a477d): MFKZQ01LM - Xiaomi Mi smart home cube (EndDevice)
6/12/2018, 9:38:29 PM INFO ge_plug1 (0x0022a300001af090): 45852 - GE GE wall switch 45852 (Router)
6/12/2018, 9:38:29 PM INFO xiaomi_sw2 (0x00158d0002133e41): WXKG11LM - Xiaomi Aqara wireless switch (EndDevice)
6/12/2018, 9:38:29 PM INFO cc2531_router1 (0x00124b0012013c50): CC2530.ROUTER - Texas Instruments [CC2530 router](http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/) (Router)
6/12/2018, 9:38:29 PM INFO Connecting to MQTT server at mqtt://localhost
/home/kimon/Services/zigbee2mqtt/lib/zigbee.js:78
                this.shepherd.find(device.ieeeAddr, 1).getDevice().update({
                                                      ^

TypeError: Cannot read property 'getDevice' of undefined
    at devices.forEach (/home/kimon/Services/zigbee2mqtt/lib/zigbee.js:78:55)
    at Array.forEach (<anonymous>)
    at Zigbee.handleReady (/home/kimon/Services/zigbee2mqtt/lib/zigbee.js:76:17)
    at emitNone (events.js:106:13)
    at ZShepherd.emit (events.js:208:7)
    at Immediate._onImmediate (/home/kimon/Services/zigbee2mqtt/node_modules/zigbee-shepherd/lib/shepherd.js:89:18)
    at runCallback (timers.js:794:20)
    at tryOnImmediate (timers.js:752:5)
    at processImmediate [as _immediateCallback] (timers.js:729:5)
	
npm ERR! Linux 4.15.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node index.js'.

npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/share/npm/bin/node-gyp-bin:/home/kimon/Services/zigbee2mqtt/node_modules/.bin:/home/kimon/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/kimon/Go/bin
10 verbose lifecycle [email protected]~start: CWD: /home/kimon/Services/zigbee2mqtt
11 silly lifecycle [email protected]~start: Args: [ '-c', 'node index.js' ]
12 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: `node index.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at EventEmitter.emit (events.js:214:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at ChildProcess.emit (events.js:214:7)
14 verbose stack     at maybeClose (internal/child_process.js:925:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/kimon/Services/zigbee2mqtt
17 error Linux 4.15.0-23-generic
18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
19 error node v8.10.0
20 error npm  v3.5.2
21 error code ELIFECYCLE
22 error [email protected] start: `node index.js`
22 error Exit status 1
23 error Failed at the [email protected] start script 'node index.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the zigbee2mqtt package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node index.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs zigbee2mqtt
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls zigbee2mqtt
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

kimonm avatar Jun 13 '18 04:06 kimonm

This is because the cc2531-router pretended to be "lumi" and we sent a message to it at the start (I told the firmware author about it). But this cc2531-router does not have 1 endpoint - so it drops.

kirovilya avatar Jun 13 '18 06:06 kirovilya

So, is it necessary to change a model ID and remove "lumi" from ID?

ptvoinfo avatar Jun 13 '18 07:06 ptvoinfo

@ptvoinfo Yes, I think so. And look at current endpoint on interview - (https://github.com/Koenkk/zigbee2mqtt/issues/52#issuecomment-392872524). By the way, we checked the work of the cc2531 as a router - it works!

kirovilya avatar Jun 13 '18 07:06 kirovilya

What is wrong in the interview process? The endpoint number can be any. The sample application from the ZStack SDK used this endpoint number. I didn't change it.

Also, the reported problem is not directly related with "lumi" prefix.

ptvoinfo avatar Jun 13 '18 07:06 ptvoinfo

@ptvoinfo yes, endpoint number does not related to the problem with "lumi" :) But since you will change the firmware, then fix it ... :) Maybe I'm wrong, but it seems to me in the interview the enum of the endpoint in the "current" and the total count of endpoints in "total" is indicated. And in your firmware endpoint number is "8" (I expected 1). Can, if you fix the firmware with 1, then you could leave "lumi" :))

kirovilya avatar Jun 13 '18 07:06 kirovilya

Aside from any firmware changes, zigbee2mqtt shouldn't crash on this. I will add an if device statement here: https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/zigbee.js#L79

Koenkk avatar Jun 13 '18 08:06 Koenkk

@Koenkk yes, correct. @kirovilya if I'll change the firmware (exclude the "lumi" prefix) then we need to change converters.

ptvoinfo avatar Jun 13 '18 08:06 ptvoinfo

@kirovilya I've checked all ZStack examples and they have only one endpoint with the number "8". So, I think it shouldn't be a problem.

The reported problem is related with something else.

ptvoinfo avatar Jun 13 '18 08:06 ptvoinfo

@ptvoinfo Hmm. Stop! Not need remove "lumi" from modelID ... Main problem for this issue was "manufId = 4447" in your router firmware (not "lumi.router")! from here logs https://github.com/Koenkk/zigbee2mqtt/issues/52#issuecomment-392872524 "manufId":4447 and "manufName":"LUMI" <- this LUMI I mean

kirovilya avatar Jun 13 '18 08:06 kirovilya

@kirovilya why? zigbee2mqtt distinguishes device by modelID. Why does manufId matter?

ptvoinfo avatar Jun 13 '18 08:06 ptvoinfo

@ptvoinfo manufId is used in the expression https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/zigbee.js#L78 and finds that it is xiaomi and send them message! :) but lumi.router has not endpoint 1

kirovilya avatar Jun 13 '18 09:06 kirovilya

@kirovilya, No problems here. .update() sends the "node description request" and the router answers to this message.

ptvoinfo avatar Jun 13 '18 09:06 ptvoinfo

@kimonm can you post a link to the firmware you used?

ciotlosm avatar Jun 13 '18 14:06 ciotlosm

I downloaded the firmware: cc2531_1.2.2a.44539_firmware.zip from the supported sniffers wiki page: https://github.com/Koenkk/zigbee2mqtt/wiki/Supported-sniffer-devices I flashed CC2531-router.hex

kimonm avatar Jun 13 '18 16:06 kimonm

This issue should be fixed now.

Koenkk avatar Jun 14 '18 16:06 Koenkk

Unfortunately, not for me. I just did a clean install of zigbee2mqtt & tried to pair the CC2531 (same router firmware). The output is:

6/14/2018, 10:26:35 AM INFO Starting zigbee-shepherd 6/14/2018, 10:26:35 AM INFO zigbee-shepherd started 6/14/2018, 10:26:35 AM INFO Currently 0 devices are joined: 6/14/2018, 10:26:35 AM WARN permit_join set to true in configuration.yaml. 6/14/2018, 10:26:35 AM WARN Allowing new devices to join. 6/14/2018, 10:26:35 AM WARN Set permit_join to false once you joined all devices. 6/14/2018, 10:26:35 AM INFO Zigbee: allowing new devices to join. 6/14/2018, 10:26:35 AM INFO Connecting to MQTT server at mqtt://localhost 6/14/2018, 10:26:35 AM INFO zigbee-shepherd ready 6/14/2018, 10:26:36 AM INFO Connected to MQTT server 6/14/2018, 10:26:36 AM INFO MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'online' spinlock: false [] /home/kimon/Services/test/node_modules/zcl-packet/lib/foundation.js:683 rudataType(this); ^

TypeError: ru[dataType] is not a function at Dissolve. (/home/kimon/Services/test/node_modules/zcl-packet/lib/foundation.js:683:21) at Dissolve._transform (/home/kimon/Services/test/node_modules/dissolve/index.js:80:16) at Dissolve.Transform._read (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:184:10) at Dissolve.Transform._write (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:172:12) at doWrite (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:279:12) at writeOrBuffer (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:266:5) at Dissolve.Writable.write (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:211:11) at Dissolve.Writable.end (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:426:10) at FoundPayload._getObj (/home/kimon/Services/test/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:242:12) at getObjCB (/home/kimon/Services/test/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:51:22)

kimonm avatar Jun 14 '18 17:06 kimonm

This is a different error then before, can you do a

rm -rf node_modules
npm install

Koenkk avatar Jun 14 '18 17:06 Koenkk

No change, still crashes. Below is stdout, npm-debug.log, and then full debug output.

[email protected] start /home/kimon/Services/test node index.js

6/14/2018, 11:48:44 AM INFO Starting zigbee-shepherd
6/14/2018, 11:48:44 AM INFO zigbee-shepherd started
6/14/2018, 11:48:44 AM INFO Currently 0 devices are joined:
6/14/2018, 11:48:44 AM WARN `permit_join` set to  `true` in configuration.yaml.
6/14/2018, 11:48:44 AM WARN Allowing new devices to join.
6/14/2018, 11:48:44 AM WARN Set `permit_join` to `false` once you joined all devices.
6/14/2018, 11:48:44 AM INFO Zigbee: allowing new devices to join.
6/14/2018, 11:48:44 AM INFO Connecting to MQTT server at mqtt://localhost
6/14/2018, 11:48:45 AM INFO zigbee-shepherd ready
6/14/2018, 11:48:45 AM INFO Connected to MQTT server
6/14/2018, 11:48:45 AM INFO MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'online'
spinlock: false []

npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/share/npm/bin/node-gyp-bin:/home/kimon/Services/test/node_modules/.bin:/home/kimon/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/kimon/Go/bin
10 verbose lifecycle [email protected]~start: CWD: /home/kimon/Services/test
11 silly lifecycle [email protected]~start: Args: [ '-c', 'node index.js' ]
12 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: `node index.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at EventEmitter.emit (events.js:214:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:126:13)
14 verbose stack     at ChildProcess.emit (events.js:214:7)
14 verbose stack     at maybeClose (internal/child_process.js:925:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/kimon/Services/test
17 error Linux 4.15.0-23-generic
18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
19 error node v8.10.0
20 error npm  v3.5.2
21 error code ELIFECYCLE
22 error [email protected] start: `node index.js`
22 error Exit status 1
23 error Failed at the [email protected] start script 'node index.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the zigbee2mqtt package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node index.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs zigbee2mqtt
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls zigbee2mqtt
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Debug output

Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init zigbee-shepherd booting...
Thu, 14 Jun 2018 18:48:44 GMT cc-znp The serialport /dev/ttyACM0 is opened.
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SYS:osalNvRead
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SYS:osalNvRead, { id: 3840, offset: 0, len: 1, value: [ 85 ] }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 8 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:permitJoinInd, { duration: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:permitJoinInd
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:mgmtPermitJoinRsp, { srcaddr: 0, status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:mgmtPermitJoinRsp
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:unbindRsp, { srcaddr: 61155, status: 136 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:unbindRsp
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:bindRsp, { srcaddr: 61155, status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:bindRsp
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:unbindRsp, { srcaddr: 61155, status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:unbindRsp
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SYS:osalNvRead, { status: 0, len: 1, value: <Buffer 55> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SYS:osalNvRead, status: 0
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:readConfiguration
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:readConfiguration, { configid: 131, len: 2, value: [ 98, 26 ] }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:readConfiguration, { status: 0, configid: 131, len: 2, value: <Buffer 62 1a> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:readConfiguration
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:readConfiguration, { configid: 132, len: 4, value: [ 0, 8, 0, 0 ] }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:readConfiguration, { status: 0, configid: 132, len: 4, value: <Buffer 00 08 00 00> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:readConfiguration
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:readConfiguration, { configid: 98, len: 16, value: [ 1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13 ] }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:readConfiguration, { status: 0, configid: 98, len: 16, value: <Buffer 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:readConfiguration
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:readConfiguration, { configid: 99, len: 1, value: [ 0 ] }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:readConfiguration, { status: 0, configid: 99, len: 1, value: <Buffer 00> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:readConfiguration, status: 0
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 0, value: <Buffer 09 09 00 ff fe 04 66 04> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init Now the ZNP is a coordinator.
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 0, value: <Buffer 09 09 00 ff fe 04 66 04> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 1 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 1, value: <Buffer 75 39 01 12 00 4b 12 00> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 2 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 2, value: <Buffer 00 00 01 12 00 4b 12 00> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 5 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 5, value: <Buffer 0b 00 01 12 00 4b 12 00> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 6 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 6, value: <Buffer 62 1a 01 12 00 4b 12 00> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> SAPI:getDeviceInfo, { param: 7 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 6 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- SAPI:getDeviceInfo, { param: 7, value: <Buffer dd dd dd dd dd dd dd dd> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request RSP <-- SAPI:getDeviceInfo
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:nodeDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:nodeDescReq, { dstaddr: 0, nwkaddrofinterest: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 9 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:nodeDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:nodeDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, logicaltype_cmplxdescavai_userdescavai: 0, apsflags_freqband: 64, maccapflags: 143, manufacturercode: 0, maxbuffersize: 80, maxintransfersize: 160, servermask: 1, maxouttransfersize: 160, descriptorcap: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:nodeDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:activeEpReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:activeEpReq, { dstaddr: 0, nwkaddrofinterest: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 9 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:activeEpReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:activeEpRsp, { srcaddr: 0, status: 0, nwkaddr: 0, activeepcount: 6, activeeplist: <Buffer 06 05 04 03 02 01> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:activeEpRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 0, nwkaddrofinterest: 0, endpoint: 1 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, len: 8, endpoint: 1, profileid: 260, deviceid: 5, deviceversion: 0, numinclusters: 0, inclusterlist: <Buffer >, numoutclusters: 0, outclusterlist: <Buffer > }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 0, nwkaddrofinterest: 0, endpoint: 2 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, len: 8, endpoint: 2, profileid: 257, deviceid: 5, deviceversion: 0, numinclusters: 0, inclusterlist: <Buffer >, numoutclusters: 0, outclusterlist: <Buffer > }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 0, nwkaddrofinterest: 0, endpoint: 3 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, len: 8, endpoint: 3, profileid: 261, deviceid: 5, deviceversion: 0, numinclusters: 0, inclusterlist: <Buffer >, numoutclusters: 0, outclusterlist: <Buffer > }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 0, nwkaddrofinterest: 0, endpoint: 4 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, len: 8, endpoint: 4, profileid: 263, deviceid: 5, deviceversion: 0, numinclusters: 0, inclusterlist: <Buffer >, numoutclusters: 0, outclusterlist: <Buffer > }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 0, nwkaddrofinterest: 0, endpoint: 5 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, len: 8, endpoint: 5, profileid: 264, deviceid: 5, deviceversion: 0, numinclusters: 0, inclusterlist: <Buffer >, numoutclusters: 0, outclusterlist: <Buffer > }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 0, nwkaddrofinterest: 0, endpoint: 6 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, len: 8, endpoint: 6, profileid: 265, deviceid: 5, deviceversion: 0, numinclusters: 0, inclusterlist: <Buffer >, numoutclusters: 0, outclusterlist: <Buffer > }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:nodeDescReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:nodeDescReq, { dstaddr: 0, nwkaddrofinterest: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 9 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:nodeDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:nodeDescRsp, { srcaddr: 0, status: 0, nwkaddr: 0, logicaltype_cmplxdescavai_userdescavai: 0, apsflags_freqband: 64, maccapflags: 143, manufacturercode: 0, maxbuffersize: 80, maxintransfersize: 160, servermask: 1, maxouttransfersize: 160, descriptorcap: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:nodeDescRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:activeEpReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:activeEpReq, { dstaddr: 0, nwkaddrofinterest: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 9 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:activeEpReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:activeEpRsp, { srcaddr: 0, status: 0, nwkaddr: 0, activeepcount: 6, activeeplist: <Buffer 06 05 04 03 02 01> }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:activeEpRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:request REQ --> ZDO:mgmtPermitJoinReq
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SREQ --> ZDO:mgmtPermitJoinReq, { addrmode: 2, dstaddr: 0, duration: 0, tcsignificance: 0 }
Thu, 14 Jun 2018 18:48:44 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:SRSP <-- ZDO:mgmtPermitJoinReq, { status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT cc-znp:AREQ <-- ZDO:mgmtPermitJoinRsp, { srcaddr: 0, status: 0 }
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:mgmtPermitJoinRsp
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init Loading devices from database done.
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init zigbee-shepherd is up and ready.
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init Network information:
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init  >> State:      Coordinator
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init  >> Channel:    11
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init  >> PanId:      0x1a62
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init  >> Nwk Addr:   0
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init  >> Ieee Addr:  0x00124b0012013975
Thu, 14 Jun 2018 18:48:44 GMT zigbee-shepherd:init  >> Ext. PanId: 0xdddddddddddddddd
Thu, 14 Jun 2018 18:48:45 GMT zigbee-shepherd:request REQ --> ZDO:mgmtPermitJoinReq
Thu, 14 Jun 2018 18:48:45 GMT cc-znp:SREQ --> ZDO:mgmtPermitJoinReq, { addrmode: 15, dstaddr: 65532, duration: 255, tcsignificance: 0 }
Thu, 14 Jun 2018 18:48:45 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:45 GMT cc-znp:SRSP <-- ZDO:mgmtPermitJoinReq, { status: 0 }
Thu, 14 Jun 2018 18:48:45 GMT cc-znp:AREQ <-- ZDO:permitJoinInd, { duration: 255 }
Thu, 14 Jun 2018 18:48:45 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:permitJoinInd
Thu, 14 Jun 2018 18:48:45 GMT cc-znp:AREQ <-- ZDO:mgmtPermitJoinRsp, { srcaddr: 0, status: 0 }
Thu, 14 Jun 2018 18:48:45 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:mgmtPermitJoinRsp
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- ZDO:tcDeviceInd, { nwkaddr: 61155, extaddr: '0x00124b0012013c50', parentaddr: 0 }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:tcDeviceInd
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- ZDO:endDeviceAnnceInd, { srcaddr: 61155, nwkaddr: 61155, ieeeaddr: '0x00124b0012013c50', capabilities: 142 }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:request REQ --> ZDO:nodeDescReq
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SREQ --> ZDO:nodeDescReq, { dstaddr: 61155, nwkaddrofinterest: 61155 }
Thu, 14 Jun 2018 18:48:55 GMT serialport write 9 bytes of data
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:endDeviceAnnceInd
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SRSP <-- ZDO:nodeDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- ZDO:nodeDescRsp, { srcaddr: 61155, status: 0, nwkaddr: 61155, logicaltype_cmplxdescavai_userdescavai: 1, apsflags_freqband: 64, maccapflags: 142, manufacturercode: 4447, maxbuffersize: 80, maxintransfersize: 160, servermask: 0, maxouttransfersize: 160, descriptorcap: 0 }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:nodeDescRsp
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:request REQ --> ZDO:activeEpReq
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SREQ --> ZDO:activeEpReq, { dstaddr: 61155, nwkaddrofinterest: 61155 }
Thu, 14 Jun 2018 18:48:55 GMT serialport write 9 bytes of data
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SRSP <-- ZDO:activeEpReq, { status: 0 }
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- ZDO:activeEpRsp, { srcaddr: 61155, status: 0, nwkaddr: 61155, activeepcount: 1, activeeplist: <Buffer 08> }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:activeEpRsp
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:request REQ --> ZDO:simpleDescReq
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SREQ --> ZDO:simpleDescReq, { dstaddr: 61155, nwkaddrofinterest: 61155, endpoint: 8 }
Thu, 14 Jun 2018 18:48:55 GMT serialport write 10 bytes of data
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SRSP <-- ZDO:simpleDescReq, { status: 0 }
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- ZDO:simpleDescRsp, { srcaddr: 61155, status: 0, nwkaddr: 61155, len: 16, endpoint: 8, profileid: 260, deviceid: 256, deviceversion: 0, numinclusters: 2, inclusterlist: <Buffer 00 00 06 00>, numoutclusters: 2, outclusterlist: <Buffer 00 00 06 00> }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:msgHdlr IND <-- ZDO:simpleDescRsp
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:request REQ --> AF:dataRequest, transId: 1
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SREQ --> AF:dataRequest, { dstaddr: 61155, destendpoint: 8, srcendpoint: 1, clusterid: 0, transid: 1, options: 48, radius: 30, len: 9, data: <Buffer 00 01 00 04 00 05 00 07 00> }
Thu, 14 Jun 2018 18:48:55 GMT serialport write 24 bytes of data
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:SRSP <-- AF:dataRequest, { status: 0 }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:request RSP <-- AF:dataRequest, status: 0
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- AF:dataConfirm, { status: 0, endpoint: 1, transid: 1 }
Thu, 14 Jun 2018 18:48:55 GMT zigbee-shepherd:msgHdlr IND <-- AF:dataConfirm, transId: 1
Thu, 14 Jun 2018 18:48:55 GMT cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 0, srcaddr: 61155, srcendpoint: 8, dstendpoint: 1, wasbroadcast: 0, linkquality: 60, securityuse: 0, timestamp: 13588644, transseqnumber: 0, len: 33, data: <Buffer 18 01 01 04 00 00 42 04 4c 55 4d 49 05 00 00 42 0b 6c 75 6d 69 2e 72 6f 75 74 65 72 07 00 00 20 01> }
/home/kimon/Services/test/node_modules/zcl-packet/lib/foundation.js:683
        ru[dataType](name)(this);
                    ^

TypeError: ru[dataType] is not a function
    at Dissolve.<anonymous> (/home/kimon/Services/test/node_modules/zcl-packet/lib/foundation.js:683:21)
    at Dissolve._transform (/home/kimon/Services/test/node_modules/dissolve/index.js:80:16)
    at Dissolve.Transform._read (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Dissolve.Transform._write (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:279:12)
    at writeOrBuffer (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:266:5)
    at Dissolve.Writable.write (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:211:11)
    at Dissolve.Writable.end (/home/kimon/Services/test/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:426:10)
    at FoundPayload._getObj (/home/kimon/Services/test/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:242:12)
    at getObjCB (/home/kimon/Services/test/node_modules/zigbee-shepherd/node_modules/zcl-packet/lib/foundation.js:51:22)

npm ERR! Linux 4.15.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the zigbee2mqtt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs zigbee2mqtt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls zigbee2mqtt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/kimon/Services/test/npm-debug.log

kimonm avatar Jun 14 '18 18:06 kimonm

Can you try clearing your database.db and removing all devices from configuration.yaml?

Koenkk avatar Jun 14 '18 19:06 Koenkk

For the new error, all output is from clean install with no devices in the configuration.yaml and no database file.

kimonm avatar Jun 14 '18 20:06 kimonm