Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Error - Cannot get the Node Descriptor #41

Closed
palitu opened this issue May 12, 2018 · 4 comments
Closed

Unhandled Error - Cannot get the Node Descriptor #41

palitu opened this issue May 12, 2018 · 4 comments
Labels
problem Something isn't working
Milestone

Comments

@palitu
Copy link

palitu commented May 12, 2018

I am trying to pair a Xiaomi round switch with a newly create bridge, and have this error when i try to pair it. it's code majigga is WXKG01LM

Unfortunately it crashes the bridge :(

when setting pairing mode i get spinlock: false []

where as others have given me spinlock: true [ { func: [Function: func], ieeeAddr: '0x00158d00012568ae' } ] or spinlock: true []

/home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:155
                throw e;
                ^

Error: Unhandled "error" event. (Cannot get the Node Descriptor of the Device: 0x00158d0001256963 (Error: Timed out after 10000 ms))
    at ZShepherd.emit (events.js:186:19)
    at /home/leigh/apps/zigbee2mqtt/node_modules/zigbee-shepherd/lib/components/controller.js:609:28
    at _rejected (/home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:864:24)
    at /home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:890:30
    at Promise.when (/home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:1142:31)
    at Promise.promise.promiseDispatch (/home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:808:41)
    at /home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:624:44
    at runSingle (/home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:137:13)
    at flush (/home/leigh/apps/zigbee2mqtt/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@0.1.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zigbee2mqtt@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/leigh/.npm/_logs/2018-05-12T03_44_42_166Z-debug.log

@Koenkk
Copy link
Owner

Koenkk commented May 12, 2018

This is a bug in zigbee-shepherd. For these MiJia devices to pair you need to keep pressing the reset button as mentioned here: https://github.com/Koenkk/zigbee2mqtt/wiki/Running-the-bridge#xiaomi

@Koenkk Koenkk added the problem Something isn't working label May 12, 2018
@palitu
Copy link
Author

palitu commented May 14, 2018

Yeah, took a heap of tries to get my motion sensor paired, but got there in the end.

@ciotlosm
Copy link
Contributor

Anyone with enough knowledge to patch zigbee-shepherd? I mean, to open a very specific merge request for this specific error

@Koenkk Koenkk added this to the 0.1 milestone Jun 6, 2018
@ciotlosm
Copy link
Contributor

ciotlosm commented Jun 6, 2018

This is no longer an issue. The bug that crashed the process is fixed. The error still appears on timeout but that is different thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants