-
Notifications
You must be signed in to change notification settings - Fork 8
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
Could not QueryNodeDescription and QueryNodeEndpoints #14
Comments
Hello! Thanks for taking a look at this project - fair warning it's still not stable. I've had to take a short break from this - but I'll be back soon. But for now... A couple of things:
If you want to attach your test code, I'm happy to look over it. |
Code was taken from example in README.
If you don't have much time to deeply look at my problem it would be great if you show me from what place I can go to detect problem |
Assuming the zstack is sending the ZdoNodeDescReq to the adapter (which given you've initialised, seen a join message, etc), I suspect your problem is actually the end devices. Sent at: Line 20 in 5e01b57
I have a pretty large array of the Xiaomi stuff (buttons, temp sensors, motion sensors), and they can all be a bit touchy about joining to networks. They quite aggressively sleep, so as soon as they've joined they sleep. The "work around"/only way to make them queryable, is to do the pairing process, and as soon as they join, tap the reset button so the LED on the front of them flashes. This wakes them up, which allows the node that's routing for them to send the query packets. See this page, basic pairing instructions, step 4: I swear that zigbee2mqtt used to have this in more detail on their pages, but it seems to have disappeared, so I don't know if there is some work around. An example of shimmeringbee/zda - which uses shimmeringbee/zstack and shimmeringbee/zcl - but abstracts away zigbee... but it doesn't actually support temp/humidity yet. https://imgur.com/a/kqycs0N <- Note the one long press to start pairing, and then continued clicking after the blue light has come on (couldn't actually see it because of the camera so guessed). |
Thx for help, I managed to enumerate endpoints. For now I have |
Ahh, moved to zda... you're enumerating every device every sixty seconds, so you would need keep pressing the reset button. zda will automatically start an enumeration of a device when a new one joins, and enumerate the capabilities... a EnumerateDeviceSuccess would then be sent. The idea of zda and da is to hide zigbee from a piece of controller software - hence standardised capabilities... as the da layer you wont be able to send custom ZCL messages, that's hidden. da/zda is still in a state of flux, I need to drop the Device struct and move it to interfaces for behaviour. The API will be changing. This is my own test driver for zda: https://gist.github.com/pwood/cd95044873a1f35ca0a76d9f185a6758 - looks somewhat similar. The Xaiomi sensors just send ZCL messages to the controller (they dont even advertise the clusters on their endpoints) - which at the moment zda will be ignoring because I haven't got to supporting temp/humidity/pressure. The only capability I've completed is basic On/Off which I was using to prove all parts of the stack. You've basically reached the end of what I've implemented so far. As I say - I've been taking a break from zigbee, mostly due to DIY work on the house that the wife needed doing ;) - but I'm going to come back to it soon. Probably this weekend. |
One more time thx for your help. Now I'll know what to do next, first I'll try to add support for the devices I have |
Good luck @MrEhbr, any follow up please feel free to raise a query in the |
Hello when I try to run example QueryNodeDescription and QueryNodeEndpoints always failed by timeout. I try to increase it but it doesn't help. Is example is working or I do something wrong?
The text was updated successfully, but these errors were encountered: