Open code-surfer opened 2 years ago
I couldn't get it to work until I added the IoT Core service. After adding the trial version it worked fine
There seems to be a solution for Step 3: https://github.com/codetheweb/tuyapi/issues/537#issuecomment-968155559
Nevertheless the tuya cli wizard
exits with
There was an issue fetching that device. Make sure your account is linked and the ID is correct.
It asks for "API Key" I guess this is "Access ID/Client ID" and the "API Secret" is "Access Secret/Client Secret".
I also entered my virtual ID (same on App and on "Devices") but the error appears :(
edit:
with debug I found the glitch: I missed the IoT Core authorization.
Somehow I can’t add more services to my existing project in tuya.com…. Now the cli fails
I'm configuring now and don't see any 'IoT Data Analytics' API. Crossing my fingers it works without this.
I'm working on this too. What I am running into is that I can link the app account successfully, but the devices I have registered in that app account aren't there. It always shows devices as 0.
EDIT: I had to use Western America DataCenter instead of Eastern. Who would have thought?
I also had this trouble. Please see below updated instruction set:
This method is fast and easy. If you're having trouble manually linking your device with the below method, we recommend you try this. All devices that you want to use must be registered in either the Tuya Smart app or the Smart Life app.
tuya-cli wizard
. It will prompt you for your Access ID and Access Secret (available from the Cloud -> Development -> Overview section) and your Device ID. It will then list out all your device names, IDs, and keys for use with TuyAPI. Copy and save this information to a safe place for later reference.This method requires you to create a developer account on iot.tuya.com. It doesn't matter if the device(s) are currently registered in the Tuya Smart app or Smart Life app or not.
com.
). Take note of the Channel ID you entered. This is equivalent to the schema
value needed in step 7. Ignore any app key and app secret values you see in this section as they are not used.tuya-cli link --api-key <your api key> --api-secret <your api secret> --schema <your schema/Channel ID> --ssid <your WiFi name> --password <your WiFi password> --region us
. For the region parameter, choose the two-letter country code from us
, eu
, and cn
that is geographically closest to you.What I am running into is that I can link the app account successfully, but the devices I have registered in that app account aren't there. It always shows devices as 0.
I was having this same trouble until I found this guide advising of the country mappings between the Tuya App vs the data centre, and how the project on iot.tuya.com needs to be in the same data centre as the app - else you end up with 0 devices. As soon as I changed my project data centre, my devices in the Tuya app instantly showed up!
I've re-written the guide to be clearer about this (see above comment)
@Shaun-R feel free to PR your changes. :)
@codetheweb Wouldn’t have a clue how to, happy to give it a go, but you’re welcome to copy-paste if you like.
Hello, does the Free service subscription for the services does not exist anymore? I can only use the Free-trial version o services, that lasts one month.
Hello, does the Free service subscription for the services does not exist anymore? I can only use the Free-trial version o services, that lasts one month.
Same. Do you have any updated information?
^
I'm trying to follow the guide in the section "Linking a Tuya device with Smart Link".
The 2. step "go to Cloud -> Projects" is already not working as described. I'm guessing that I have to use the "Development" tab and click on "Create Cloud Project". I get access id and secret there.
For the 3. step, I get as far as "Go to authorize", but in the "Select API" dropdown there is no "Smart Home Devices Management". It seems this step is not needed.
Following the "Listing Tuya devices from the Tuya Smart or Smart Life apps" section:
Running the code samples from the "Basic Usage" section of the README works, it turns the panel off/on.