question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get tuya-cli wizard to work

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
codethewebcommented, Mar 9, 2021
1reaction
JeremyKennedycommented, Mar 9, 2021

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.

  • 11 - broken
  • 12 - broken
  • 13 - broken
  • 14 - broken
  • 15 - working

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tuya local - Configuration - Home Assistant Community
Your account will now be linked. 4. On the command line, run `tuya-cli wizard`. It will prompt you for required information, and will...
Read more >
tinytuya - PyPI
Setup Wizard - Getting Local Keys. TinyTuya has a built-in setup Wizard that uses the Tuya IoT Cloud Platform to generate a JSON...
Read more >
Get your Tuya Device Local Key - YouTube
... use Home Assistant Tuya Local. Also a little bit of information on how to work out what your ... ... Your browser...
Read more >
HOW TO - Setup Local Tuya in Home Assistant - YouTube
SEE MY PINNED POST ABOUT TUYA DEVELOPER CHANGES I have also created a ... Tuya https://youtu.be/t2S2KLtDj7I Not sure what values to use for ......
Read more >
How to use a Tuya Wireless Wifi Sensor with TuyAPI MQTT ...
No problem to connect it with Tuya App and get id/key from tuya cli wizard and get temp/hum from Tuya App or from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found