A cloud project is a collection of resources such as devices, API permissions, and data assets. Resources between different cloud projects are isolated from one another. Through the Tuya IoT Development Platform, users can create custom-developed or whole-house smart cloud projects and manage, edit, and delete project information.
2. In the left navigation bar, select Cloud Development > Cloud Development.
3. On the Cloud Management page, click Create Cloud Project.
4. In the pop-up Create Cloud Project window, configure the Project Name, Project Description, Service Industry, Development Method, and Data Center information, then click Create.
The differences between the two development methods are:
Custom Development: You can build any industry scenario IoT SaaS project based on assets and user systems. Multiple applications can also be created under industry projects, sharing assets and user resources.
Whole House Smart: You can link your smart home app (Tuya OEM App or an app developed based on the Tuya IoT App SDK) and the IoT WeChat Mini Program. Access device and user data in the app through the open OpenAPI.
5. After completing the project creation, you will enter the batch authorization of cloud service APIs.
Depending on the development method, some cloud service APIs are selected by default for your project. Tuya will automatically activate and authorize the default API products for this project. You can add or reduce them during the quick configuration process or choose other cloud service APIs.
Querying Project Information
1. Log in to the Tuya IoT Development Platform.
2. In the left navigation bar, select Cloud Development > Cloud Development.
3. In My Cloud Projects, select the target project and click Enter Project in the action column.
4. In the Overview tab, view project information. The following project information can be queried:
5. Basic Information: Includes Project Name, Project Description, Service Industry, Affiliated Data Center, and Creation Time.
Authorization Key: Includes Access ID/Client ID, Access Secret/Client Secret, and Project Code identity verification information.
Cloud Authorized IP Whitelist: After enabling the whitelist, you can configure an IP list that can legally access various Tuya data centers. Requests from source IPs not on this list will be rejected.
Note: The authorization key (Access ID and Access Secret) is the identity authorization credential for the API caller. Please keep it safe.
Note: Tuya's IoT cloud service API is a value-added service that incurs service charges, which are collected by the official Tuya. For specific fees, please refer to the official Tuya website.
Linking a Tuya App Account
You can associate devices under the Smart Life App account with projects in cloud development.
Note: A single app account can be linked to up to two projects. If you need to link a third project, you need to first unlink the already linked app account.
Prerequisites
1. The project creation is complete. For the project creation process, refer to Creating a Tuya Cloud Project.
2. App account registration is complete.
3. Devices have been linked in the app.
Operation Steps.
1. Log in to the Tuya IoT Development Platform.
2. In Cloud Development > My Cloud Projects, click on the project you want to link.
3. In the top navigation bar, click Devices.
4. On the Devices page, click Add App Account in the upper right corner of the Link Tuya App Account tab.
5. On the Scan Code Authorization page, scan the QR code using the Smart Life App.
6. Tap Confirm Login on the app.
7. In the pop-up window, set the device association scheme and device permissions, and then click Confirm.
6. Tap Confirm Login on the app.
7. In the pop-up window, set the device association scheme and device permissions, and then click Confirm.
Debugging Devices
Choose the device you want to debug.
1. Select all devices under Devices.
2. Select the device name you want to operate and click Debug Device.
Sending Device Commands
The left side of the Device Debugging page is the Standard Command SetControl Device interface, and the right side is the Device Command Set and Device Status Set.
1. Modify the device function point status on the Visual Interface.
Note: Click Update Device Status to get the latest device status.
2. Click Send Command.
Note: You can use JSON to edit commands based on the standard command set
3. Upon successful dispatch, a Command Sent Successfully prompt will appear
Function Code Command Analysis
Regarding Code: Phase_a, Phase_b, and Phase_c need to be parsed using the Base 64 tool. For specific operation steps, please refer to the Tongou tuya smart device API command set.