{"action":"closed","issue":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/427","repository_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt","labels_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/427/comments","events_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/427/events","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/427","id":365215981,"node_id":"MDU6SXNzdWUzNjUyMTU5ODE=","number":427,"title":"zigbee2mqtt crashes when sending wrong sensibility to vibration sensor ","user":{"login":"lolorc","id":10393822,"node_id":"MDQ6VXNlcjEwMzkzODIy","avatar_url":"https://avatars0.githubusercontent.com/u/10393822?v=4","gravatar_id":"","url":"https://api.github.com/users/lolorc","html_url":"https://github.com/lolorc","followers_url":"https://api.github.com/users/lolorc/followers","following_url":"https://api.github.com/users/lolorc/following{/other_user}","gists_url":"https://api.github.com/users/lolorc/gists{/gist_id}","starred_url":"https://api.github.com/users/lolorc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolorc/subscriptions","organizations_url":"https://api.github.com/users/lolorc/orgs","repos_url":"https://api.github.com/users/lolorc/repos","events_url":"https://api.github.com/users/lolorc/events{/privacy}","received_events_url":"https://api.github.com/users/lolorc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-30T11:07:23Z","updated_at":"2018-10-05T19:20:52Z","closed_at":"2018-10-05T19:20:52Z","author_association":"NONE","body":"Hi,\r\n\r\nI'm playing with my vibration sensors (DJT11LM_vibration)\r\nI just tried to set its sensibility (looks like it's not working but I'll fill another issue)\r\nand I tried with to set it with an incorrect value, zigbee2mqtt does crash in that case.\r\nhere are the logs.\r\n\r\nzigbee2mqtt from dev branch, commit bf68f4575f591c5ef6ecb500acf6ec056c1eee97\r\n\r\n```\r\nSep 30 13:00:22   zigbee2mqtt:debug 2018-9-30 13:00:22 Recieved mqtt message on topic 'zigbee2mqtt/vibration_01/set' with data '{\"sensitivity\": \"highBLA\"}'                                                        │\r\nSep 30 13:00:22   zigbee2mqtt:info 2018-9-30 13:00:22 Zigbee publish to '0x00158d0002a51e32', genBasic - write                                                                                                     │\r\nSep 30 13:00:22         - {\"attrId\":65293,\"dataType\":32} - {\"manufSpec\":1,\"disDefaultRsp\":1,\"manufCode\":4447} - null                                                                                               │\r\nSep 30 13:00:22 /home/pi/zigbee2mqtt/node_modules/zigbee-shepherd/lib/components/af.js:269                                                                                                                         │\r\nSep 30 13:00:22             throw e;                                                                                                                                                                               │\r\nSep 30 13:00:22             ^                                                                                                                                                                                      │\r\nSep 30 13:00:22                                                                                                                                                                                                    │\r\nSep 30 13:00:22 Error: Payload of commnad: write must have attrData property.                                                                                                                                      │\r\nSep 30 13:00:22     at /home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:176:27                                                                                                                       │\r\nSep 30 13:00:22     at Array.forEach (<anonymous>)                                                                                                                                                                 │\r\nSep 30 13:00:22     at FoundPayload._getBuf (/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:171:25)                                                                                                │\r\nSep 30 13:00:22     at /home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:112:22                                                                                                                       │\r\nSep 30 13:00:22     at Array.forEach (<anonymous>)                                                                                                                                                                 │\r\nSep 30 13:00:22     at FoundPayload.frame (/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:111:21)                                                                                                  │\r\nSep 30 13:00:22     at Object.zcl.frame (/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/zcl.js:66:78)                                                                                                            │\r\nSep 30 13:00:22     at Object.af.zclFoundation (/home/pi/zigbee2mqtt/node_modules/zigbee-shepherd/lib/components/af.js:263:25)                                                                                     │\r\nSep 30 13:00:22     at ZShepherd._foundation (/home/pi/zigbee2mqtt/node_modules/zigbee-shepherd/lib/shepherd.js:648:20)                                                                                            │\r\nSep 30 13:00:22     at Endpoint.ep.foundation (/home/pi/zigbee2mqtt/node_modules/zigbee-shepherd/lib/shepherd.js:536:25)                                                                                           │\r\nSep 30 13:00:22 npm ERR! code ELIFECYCLE                                                                                                                                                                           │\r\nSep 30 13:00:22 npm ERR! errno 1                                                                                                                                                                                   │\r\nSep 30 13:00:22 npm ERR! zigbee2mqtt@0.1.6 start: `node index.js`                                                                                                                                                  │\r\nSep 30 13:00:22 npm ERR! Exit status 1                                                                                                                                                                             │\r\nSep 30 13:00:22 npm ERR!                                                                                                                                                                                           │\r\nSep 30 13:00:22 npm ERR! Failed at the zigbee2mqtt@0.1.6 start script.                                                                                                                                             │\r\nSep 30 13:00:22 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.                                                                                                 │\r\nSep 30 13:00:22                                                                                                                                                                                                    │\r\nSep 30 13:00:22 npm ERR! A complete log of this run can be found in:                                                                                                                                               │\r\nSep 30 13:00:22 npm ERR!     /home/pi/.npm/_logs/2018-09-30T11_00_22_373Z-debug.log\r\n```\r\n\r\n```\r\n0 info it worked if it ends with ok                                                                                                                                                                                │\r\n1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]                                                                                                                                                         │\r\n2 info using npm@6.4.1                                                                                                                                                                                             │\r\n3 info using node@v8.12.0                                                                                                                                                                                          │\r\n4 verbose run-script [ 'prestart', 'start', 'poststart' ]                                                                                                                                                          │\r\n5 info lifecycle zigbee2mqtt@0.1.6~prestart: zigbee2mqtt@0.1.6                                                                                                                                                     │\r\n6 info lifecycle zigbee2mqtt@0.1.6~start: zigbee2mqtt@0.1.6                                                                                                                                                        │\r\n7 verbose lifecycle zigbee2mqtt@0.1.6~start: unsafe-perm in lifecycle true                                                                                                                                         │\r\n8 verbose lifecycle zigbee2mqtt@0.1.6~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/zigbee2mqtt/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin│\r\n9 verbose lifecycle zigbee2mqtt@0.1.6~start: CWD: /home/pi/zigbee2mqtt                                                                                                                                             │\r\n10 silly lifecycle zigbee2mqtt@0.1.6~start: Args: [ '-c', 'node index.js' ]                                                                                                                                        │\r\n11 silly lifecycle zigbee2mqtt@0.1.6~start: Returned: code: 1  signal: null                                                                                                                                        │\r\n12 info lifecycle zigbee2mqtt@0.1.6~start: Failed to exec start script                                                                                                                                             │\r\n13 verbose stack Error: zigbee2mqtt@0.1.6 start: `node index.js`                                                                                                                                                   │\r\n13 verbose stack Exit status 1                                                                                                                                                                                     │\r\n13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)                                                                                            │\r\n13 verbose stack     at emitTwo (events.js:126:13)                                                                                                                                                                 │\r\n13 verbose stack     at EventEmitter.emit (events.js:214:7)                                                                                                                                                        │\r\n13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)                                                                                         │\r\n13 verbose stack     at emitTwo (events.js:126:13)                                                                                                                                                                 │\r\n13 verbose stack     at ChildProcess.emit (events.js:214:7)                                                                                                                                                        │\r\n13 verbose stack     at maybeClose (internal/child_process.js:915:16)                                                                                                                                              │\r\n13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)                                                                                                                      │\r\n14 verbose pkgid zigbee2mqtt@0.1.6                                                                                                                                                                                 │\r\n15 verbose cwd /home/pi/zigbee2mqtt                                                                                                                                                                                │\r\n16 verbose Linux 4.14.72-v7+                                                                                                                                                                                       │\r\n17 verbose argv \"/usr/bin/node\" \"/usr/bin/npm\" \"start\"                                                                                                                                                             │\r\n18 verbose node v8.12.0                                                                                                                                                                                            │\r\n19 verbose npm  v6.4.1                                                                                                                                                                                             │\r\n20 error code ELIFECYCLE                                                                                                                                                                                           │\r\n21 error errno 1                                                                                                                                                                                                   │\r\n22 error zigbee2mqtt@0.1.6 start: `node index.js`                                                                                                                                                                  │\r\n22 error Exit status 1                                                                                                                                                                                             │\r\n23 error Failed at the zigbee2mqtt@0.1.6 start script.                                                                                                                                                             │\r\n23 error This is probably not a problem with npm. There is likely additional logging output above.                                                                                                                 │\r\n24 verbose exit [ 1, true ]                                                                            \r\n```"}}
{"actor":{"display_login":"Koenkk"}}