tinytuya: Error from Tuya server: permission deny

Hi, after inputing client id, secret etc i got error Error from Tuya server: permission deny Is there any way to see what exactly go wrong? All services is added to device on the iot cloud web site.

I subscribed to trial version

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 18 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Hi @skorphil I understand your frustration. If you are still interested in troubleshooting this, I have some ideas.

Do i have to create assets(with user and devices) in different regions?

No, key is that you want to use the region where your tuya devices are registered. Which region do they show up in on the Tuya Developer (iot.tuya.com) portal? Here is what my account shows:

image

The TinyTuya wizard basically does a sequence of curl actions against the Tuya API to get the local key for all of your devices. You can simulate this in the Tuya iot portal:

Here is what we do to get the full list:

  1. Get the user id (uid) by using the sample device ID in your collection:

image

Notice the region that is selected. This will match the us, eu, cn, in that the wizard asks and will show up in the curl statement as the hostname (e.g. for the us, curl --request GET "https://openapi.tuyaus.com/v1.0/devices…)

  1. Using the user id (uid), ask for a full list of all devices:

image