-
-
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
Why the guide is so complicated (and uncomplete)? #675
Comments
I've tried also using the ID of the profile but it' not working. Why tuya-cli finds device and NR module not? |
Thank you for your post. I asked myself if you are aware of the environment we do this? This is all about inofficially reverse engineered protocols and APIs from a manufacturer that does not support this at all. You find things problematic or no longer correct? Then support the project by providing a PR that improves this and adds what you would have missed. This is open source so it all lives from collaboration. The process in the Tuya developer ports ( which by the way is not developed or owned by the developers here, and we also do not check daily if anything got changed). So if there is a change or something is not working for you then tell us and ideally do a PR. So it is again about collaboration. For the reason why it's not working I can only guess that it is about the usual "UDP not routed correctly" (what you mean with "PC with NR?"), so make sure that UDP messages can flow between the device and the PC and there are no network segments or anything that prevents this. Additionally close the Smart Life app because only ONE connection is possible to the device, so an open Smart Life App will hinders this. is it complex ... yes and that means you need to work yourself into or use ready projects that use the library and did that for you. |
Thank you for your kind reply, I'm ready to collaborate to know things better and improve our results. My device, which is a S1-B (WT) trailing/leading Tuya edge triac, no battery and direct to AC power, here are the results of my experimenting:
Anyway I believe your guide needs to be developed/update and become more user friendly, unfortunately Tuya is a standard with too many things to do and remember to get it workingm the guide has to be in my opinion more exaustive |
Sniffing packets, Smart Life sends broadcast on UDP port 7000, dimmer replies later with broadcast udp on port 6667 (but this is probably just an announce, not a reply).
|
Hi, this procedure is really a painful thing, horrible, I've put my efforts to solve myself the issues, if you may describe better the process, it can avoid us loose time and write these support messages, please help us more!
American account did, Smart Home" added for both the "Industry" field and the development method (here the site didn't show as you described, but ok), API Key and API Secret found and copied, all authorizations were added already automatically, data center needed to be added manually on "overview" edit (I got a while to found that) and the data center should be selected respect the app.. even if there I've chosem USA it registered in central europe /you need to describe this better), QR code added and device too,
Now
tuya-cli wizard
is not on the site (I've searched anywhere, why didn't you mention it?) , it's a software needed to install by npm, there i't needed to paste:Access ID/Client ID:
Access Secret/Client Secret:
and the ID written in the device added.
this app found that with correct name, but its secret seams not working on NR module:
"connectDevice(): An error had occurred with tuya API on connect method : {}"
The IP address is the LAN one? This address is hard to get, but I've found it and it doesn't work. Same if I put the ID of object:
"find() timed out. Is the device powered on and the ID or IP correct?"
"findDevice(): Cannot find the device, re-trying..."
Why? I'm usng PC with NR connected on the same LAN, with my phone and Smart Life I can manage the dimmer.
Smartlife is able to find and connect without any cloud, can NR module just do that as well? Without all this pain.. :(
Thank you for help
The text was updated successfully, but these errors were encountered: