{"action":"created","issue":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/198","repository_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt","labels_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/198/comments","events_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/198/events","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/198","id":341457123,"node_id":"MDU6SXNzdWUzNDE0NTcxMjM=","number":198,"title":"Crash while pairing Xiaomi MiJia wireless switch (WXKG01LM)","user":{"login":"hahrens","id":16990102,"node_id":"MDQ6VXNlcjE2OTkwMTAy","avatar_url":"https://avatars1.githubusercontent.com/u/16990102?v=4","gravatar_id":"","url":"https://api.github.com/users/hahrens","html_url":"https://github.com/hahrens","followers_url":"https://api.github.com/users/hahrens/followers","following_url":"https://api.github.com/users/hahrens/following{/other_user}","gists_url":"https://api.github.com/users/hahrens/gists{/gist_id}","starred_url":"https://api.github.com/users/hahrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahrens/subscriptions","organizations_url":"https://api.github.com/users/hahrens/orgs","repos_url":"https://api.github.com/users/hahrens/repos","events_url":"https://api.github.com/users/hahrens/events{/privacy}","received_events_url":"https://api.github.com/users/hahrens/received_events","type":"User","site_admin":false},"labels":[{"id":894537364,"node_id":"MDU6TGFiZWw4OTQ1MzczNjQ=","url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-16T10:02:52Z","updated_at":"2018-07-22T00:47:17Z","closed_at":null,"author_association":"NONE","body":"I'm unable to pair my first Device with zigbee2mqtt, a MiJia Switch (WXKG01LM). Once i've start the bridge in my console and allow pairing, i've started the button-pairing by pressing the config button on the switch until the led is blinking (~4sec) and continue it by pressing the button every second according to the [wiki documentation](https://github.com/Koenkk/zigbee2mqtt/wiki/Pairing-devices#xiaomi).\r\n\r\nThis is a repeatable error, i get it every time i try to pair the button.\r\n\r\n```\r\n~/zigbee2mqtt> sudo node index.js                                                                                                         master!\r\n2018-7-16 11:49:02 DEBUG Using zigbee-shepherd with settings: '{\"net\":{\"panId\":6754,\"channelList\":[11]},\"dbPath\":\"/home/pi/zigbee2mqtt/data/database.db\",\"sp\":{\"baudrate\":115200,\"rtscts\":true}}'\r\n2018-7-16 11:49:02 INFO Starting zigbee2mqtt version 0.1.0 (commit #ae41b7b)\r\n2018-7-16 11:49:02 INFO Starting zigbee-shepherd\r\n2018-7-16 11:49:03 INFO zigbee-shepherd started\r\n2018-7-16 11:49:03 INFO Currently 0 devices are joined:\r\n2018-7-16 11:49:03 WARN `permit_join` set to  `true` in configuration.yaml.\r\n2018-7-16 11:49:03 WARN Allowing new devices to join.\r\n2018-7-16 11:49:03 WARN Set `permit_join` to `false` once you joined all devices.\r\n2018-7-16 11:49:03 INFO Zigbee: allowing new devices to join.\r\n2018-7-16 11:49:03 INFO Connecting to MQTT server at mqtt://localhost\r\n2018-7-16 11:49:03 INFO zigbee-shepherd ready\r\n2018-7-16 11:49:03 INFO Connected to MQTT server\r\n2018-7-16 11:49:03 INFO MQTT publish, topic: 'zigbee2mqtt/bridge/state', payload: 'online'\r\nspinlock: false []\r\n/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:297\r\n        dataTypeStr = zclId.dataType(dataType).key;\r\n                                              ^\r\n\r\nTypeError: Cannot read property 'key' of undefined\r\n    at ensureDataTypeString (/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:297:47)\r\n    at getDataType (/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:307:16)\r\n    at Dissolve.<anonymous> (/home/pi/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:689:28)\r\n    at Dissolve._transform (/home/pi/zigbee2mqtt/node_modules/dissolve/index.js:80:16)\r\n    at Dissolve.Transform._read (/home/pi/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n    at Dissolve.Transform._write (/home/pi/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n    at doWrite (/home/pi/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:279:12)\r\n    at writeOrBuffer (/home/pi/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:266:5)\r\n    at Dissolve.Writable.write (/home/pi/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:211:11)\r\n    at Dissolve.Writable.end (/home/pi/zigbee2mqtt/node_modules/dissolve/node_modules/readable-stream/lib/_stream_writable.js:426:10)\r\n```\r\n\r\nI've found the issue #107 with the same error message and already tried the commit referenced in [this comment](https://github.com/Koenkk/zigbee2mqtt/issues/107#issuecomment-395981296) - doesn't fix it for me.\r\n\r\nHere is my configuration.yml:\r\n```\r\n# Home Assistant integration (MQTT discovery)\r\nhomeassistant: false\r\n\r\n# allow new devices to join\r\npermit_join: true\r\n\r\n# MQTT settings\r\nmqtt:\r\n  # MQTT base topic for zigbee2mqtt MQTT messages\r\n  base_topic: zigbee2mqtt\r\n  # MQTT server URL\r\n  server: 'mqtt://localhost'\r\n  # MQTT server authentication, uncomment if required:\r\n  # user: my_user\r\n  # password: my_password\r\n\r\n# Serial settings\r\nserial:\r\n  # Location of CC2531 USB sniffer\r\n  port: /dev/ttyACM0\r\n\r\nadvanced:\r\n  log_level: debug\r\n```"},"comment":{"url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/comments/406832973","html_url":"https://github.com/Koenkk/zigbee2mqtt/issues/198#issuecomment-406832973","issue_url":"https://api.github.com/repos/Koenkk/zigbee2mqtt/issues/198","id":406832973,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjgzMjk3Mw==","user":{"login":"hahrens","id":16990102,"node_id":"MDQ6VXNlcjE2OTkwMTAy","avatar_url":"https://avatars1.githubusercontent.com/u/16990102?v=4","gravatar_id":"","url":"https://api.github.com/users/hahrens","html_url":"https://github.com/hahrens","followers_url":"https://api.github.com/users/hahrens/followers","following_url":"https://api.github.com/users/hahrens/following{/other_user}","gists_url":"https://api.github.com/users/hahrens/gists{/gist_id}","starred_url":"https://api.github.com/users/hahrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahrens/subscriptions","organizations_url":"https://api.github.com/users/hahrens/orgs","repos_url":"https://api.github.com/users/hahrens/repos","events_url":"https://api.github.com/users/hahrens/events{/privacy}","received_events_url":"https://api.github.com/users/hahrens/received_events","type":"User","site_admin":false},"created_at":"2018-07-22T00:47:17Z","updated_at":"2018-07-22T00:47:17Z","author_association":"NONE","body":"Pairing successful with https://github.com/Koenkk/zcl-packet/commit/3ea8912f9d228b59fad554064d15ed9be7897a7f"}}
{"actor":{"display_login":"hahrens"}}