-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
devid not found on v3.4 Gateway #614
Comments
Please run with "DEBUG=Tuyapi* node ..." and provide a full log |
Sure thing @Apollon77 Here are the logs. It's interesting to see that the
The log is obfuscations are:
|
Cna you show your code please? |
BTW: In fcat the version tag from the UDP message wins against whatever you initially set in the constructor because UDP is "devicee self declaration". Do you have the localkey ? |
I am using the boilerplate Asynchronous Basic Usage example code and, yes, I'm using the local device key ( |
I guess the error goes away if you use issueGetOnConnect = false in the constructor options. By default 8as per docs) it tries to issue a get after connect biut if this is a gateway then mpst likel ythere are no data to get on the gateway. |
Yes, if I specify I have no problem but the |
What you mean with "getting child data"? I do not see anything in the debug log above and the error is the respinse to the GET call |
I was referring to being able to get the data from the child devices using a |
The topic is the following: the "default get" can only use the main device id and sets that as gwid and as devId as it is in defaulz. If you do a manual get you are free to set gwId and devId differently to get the real data - but the "automatic get on connect" can not handle that because it do not have the information. So simply use that flag and do a manual get after connect ith the correct parameters |
Yes, I get (pardon the pun!) this. The topic of this issue is simply the confusing index.js:171
|
@mjpoo Sorry for reponse to this very old issue ... so means the library does the right theng when this part gets commented in? |
Thanks for adding support for devices running version 3.4
I can connect to my Silvercrest gateway but the data that is returned is
devid not found
.The options I'm supplying are:
The text was updated successfully, but these errors were encountered: