Can't get tuya-cli wizard to work
See original GitHub issueHello,
I’m trying for two hours now to get the required data of my devices with the tuya-cli wizard…
What I did is: I registered at iot.tuya.com and created a project… There, I’ve got the “Access ID/Client ID” and the “Access Secret/Client Secret”… Also, I connected my two devices with the Tuya Smart App. I can see both of them going to my project -> Device List and choosing “Europe” as region…
Then, on my Raspberry pi, I’m using “sudo tuya-cli wizard” to start the wizard… For the API Key, I’m entering the “Access ID/Client ID” and for the API secret I’m entering the “Access Secret/Client Secret”… Then for "provide a ‘virtual ID’, I’m pasting on the Device ID’s, that are listed at the device list in the first column…
Is everything I’m doing correct or I’m doing something wrong? Because after entering the ‘virtual ID’, I just get:
There was an issue fetching that device. Make sure your account is linked and the ID is correct.
What’s the problem there, do you have any idea?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:20 (5 by maintainers)
Top GitHub Comments
Still investigating.
https://github.com/es-shims/Promise.any/issues/10
Wow, I can’t believe that worked.
According to my package manager,
v12.21.0
is the latest, and I still have the issue. Since I don’t want to mess with my system’s Node version, I ran a Docker container using Node 15:sudo docker run -it --rm node:15 npx -p @tuyapi/cli tuya-cli wizard
and surprisingly, this worked. Then, I tested using the same method, except using Node 12 in Docker. This gives me the same issue. So, it is definitely related to the Node version (and not something else with my system).I did some testing using different Node versions in Docker.
I will note that earlier today I had success using the method here, but I prefer the wizard, so I’m glad we have this workaround using Docker.