![]() Double check the values.ĭevice(s) failed to be registered! Error: Timed out waiting for devices to connect. This means that one of the parameters you're passing in ( api-key, api-secret, schema) is incorrect. If you experience problems, first make sure any smart phone/tablet app that you use with your devices is completely closed and not attempting to communicate with any of the devices. Your devices should link in under a minute and the parameters required to control them will be printed out to the console.For the region parameter, choose the two-letter country code from us, eu, and cn that is geographically closest to you. ![]() On the command line, run tuya-cli link -api-key -api-secret -schema -ssid -password -region us.Usually this consists of turning it on and off several times or holding down a button. This process is specific to each type of device, find instructions in the Tuya Smart app. Check the app you just created and click "Ok". Click the "Link devices by Apps" tab, and click "Add Apps". Go to Cloud -> Development and click the project you created earlier.Ignore any app key and app secret values you see in this section as they are not used. This is equivalent to the schema value needed in step 7. Click "Create" and enter whatever you want for the package names and Channel ID (for the Android package name, you must enter a string beginning with com.). Go to App -> App SDK -> Development in the nav drawer.If not, click "Add Authorization" and select them. Check if the 3 services are listed under Cloud -> Projects -> "MyProject" -> API. Click "basic edition" and "buy now" (basic edition is free). Click subscribe again on every service (also check your PopUp blocker). "Select API" > click subscribe on "IoT Core", "Authorization", and "Smart Home Scene Linkage" in the dropdown. Go to Cloud -> Development -> "MyProject" -> Service API -> "Go to authorize".The "Access ID/Client ID" and "Access Secret/Client Secret" are the API Key and API Secret values need in step 7. After you've created a new project, click into it. Select your country of use in the for the location access option, and feel free to skip the services option in the next window. Make sure you select "Smart Home" for both the "Industry" field and the development method. Once in the Projects tab, click "Create". You will not have to add any form of payment, and the purchase is of no charge. If you haven't already, you will need to "purchase" the Trial Plan before you can proceed with this step. Go to Cloud -> Development in the left nav drawer.This seems to skip a required verify step. Select United States as your country when signing up. Create a new account on and make sure you are logged in.It doesn't matter if the device(s) are currently registered in the Tuya Smart app or Smart Life app or not. This method requires you to create a developer account on. Copy and save this information to a safe place for later reference. It will prompt you for required information, and will then list out all your device names, IDs, and keys for use with TuyAPI. On the command line, run tuya-cli wizard.Click "Add App Account" and scan the QR code from your smart phone/tablet app by going to the 'Me' tab in the app, and tapping a QR code / Scan button in the upper right.Click the "Link Tuya App account" tab, and select the right data center in the upper right dropdown (eg Western America). Follow steps 1 through 3 from the "Linking a Tuya device with Smart Link" method below. ![]() All devices that you want to use must be registered in either the Tuya Smart app or the Smart Life app. If you're having trouble manually linking your device with the below method, we recommend you try this. See this NPM article for some help.) Listing Tuya devices from the Tuya Smart or Smart Life apps (Tip: using sudo to install global packages is not considered best practice. If it returns an error, you may need to prefix the command with sudo. If your device only works with one specific app, it almost certainly won't work with TuyAPI.Īll methods below require you to install the CLI tool before proceeding. Note: both methods below require that your device works with the official Tuya Smart app. If something looks wrong, please open a new issue. YMMV: Tuya likes to change their website frequently and the below instructions may be slightly out of date.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |