Skip to content

Commit e4b0365

Browse files
committed
Update "Find Tuya data points" guide
1 parent 1a98362 commit e4b0365

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

docs/advanced/support-new-devices/03_find_tuya_data_points.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tuya devices use a custom `manuSpecificTuya` cluster. Within the reported values
66
2. You will require basic knowledge of using Chrome and its Dev Tools
77
3. You will need to sign up for the Tuya IoT Platform and bind your accounts (more details below)
88
4. You will require a Tuya Zigbee Gateway
9-
5. You will need the Tuya app (Tuya Smart) installed on your mobile device
9+
5. You will need the Tuya app (with the orange icon) installed on your mobile device
1010

1111
## Instructions
1212
### 1. Standard part of the setup
@@ -19,53 +19,44 @@ Visit [Tuya IoT Platform](https://iot.tuya.com/) and sign up for a new account (
1919

2020
![01_sign_up](../../images/how_tos/tuya_dp/01_sign_up.png)
2121

22-
### 3. Select development plan
23-
Once your account has been confirmed, use your new credentials to login to the Tuya IoT Platform. You will be greeted with a first time tutorial showing you around the platform. Once completed, you will be prompted to set up a Cloud Development Plan. Click on `Free Trial` - Please note, that unless you are doing millions of calls to your new service (which we won't be), the plan will be completely free, and auto-renews annually.
22+
### 3. Login
23+
Use your new credentials to login to the Tuya IoT Platform. You will be greeted with a first time tutorial showing you around the platform. At the end of the tutorial select `Individual Developer`. If you miss this, click on the `person` icon in the right-top -> `Account` and set `Account Type` to `Individual Developer`.
2424

25-
![02_development_plan](../../images/how_tos/tuya_dp/02_development_plan.png)
26-
27-
### 4. Confirm service purchase
28-
Once you have selected the Free Trial plan, you will be taken to a confirm service purchase screen. Double check to make sure that the `TRIAL EDITION` option is selected, and the Total shows $0.00 then, click `Buy Now`.
29-
30-
![03_service_purchase](../../images/how_tos/tuya_dp/03_service_purchase.png)
31-
32-
### 5. Create a cloud project
33-
Once you purchased your API service, click on `Cloud` in the side menu, `Development` in the sub-menu and then click on `Create Cloud Project`.
25+
### 4. Create a cloud project
26+
Click on `Cloud` in the side menu, `Development` in the sub-menu and then click on `Create Cloud Project`.
3427

3528
![04_create_cloud_project](../../images/how_tos/tuya_dp/04_create_cloud_project.png)
3629

3730
In the newly opened dialog box, fill in the details as required, enduring that the Development Method is selected as Smart Home, and the Data Center corresponds to the region that your Tuya account is associated with.
3831

3932
![05_project_creation](../../images/how_tos/tuya_dp/05_project_creation.png)
4033

41-
Once confirmed, a new dialog box will open. Ensure that the relevent Smart Home API services are populated in the right hand list.
42-
43-
![06_configuration_wizard](../../images/how_tos/tuya_dp/06_configuration_wizard.png)
34+
Once confirmed, a new dialog box will open. Next to `Select API Services`, click `All`, click `Authorize`.
4435

45-
### 6. Link your Tuya account with your new Tuya project
46-
Once confirmed, you should be taken to your new Tuya project. Click on `Link Tuya App Account`, then `Add App Account`.
36+
### 5. Link your Tuya account with your new Tuya project
37+
Once confirmed, you should be taken to your new Tuya project. Click on, `Devices`, `Link Tuya App Account`, then `Add App Account`.
4738

4839
![07_link_tuya_account](../../images/how_tos/tuya_dp/07_link_tuya_account.png)
4940

50-
This should bring up a QR code. Go in to the Tuya app on your mobile device, click on `[+]` (as id you are adding a new device). At the top of the screen, you will see a scan barcode button `[-]`. Click the `[-]` button and give permissions to use the camera (if prompted). Scan the QR code with your mobile device, and your account should appear in the App Account List in the Tuya IoT Platform.
41+
This should bring up a QR code. Go in to the Tuya app on your mobile device, click on `[+]` (as id you are adding a new device). At the top of the screen, you will see a scan barcode button `[-]`. Click the `[-]` button and give permissions to use the camera (if prompted). Scan the QR code with your mobile device, and press `Confirm login`. On your computer a pop-up `Link Tuya App Account` will be shown. Set `Device Linking Method` to `Automatic Link`, `Device Permission` to `Read, write, and Manage` and click `Ok`. You will get a pop-up showing the amount of devices was added, close this.
5142

52-
### 7. Find your devices
53-
Click on the `All Devices` and find the device in-which you wish to find the Data Points. Click on `Debug Device`. If you do not find your device in the list, or the list is empty, plese check your project's region.
43+
### 6. Find your devices
44+
Click on the `All Devices` and find the device in-which you wish to find the Data Points. Click on `Debug Device`. If you do not find your device in the list, or the list is empty, please check your project's region.
5445

5546
![08_devices](../../images/how_tos/tuya_dp/08_devices.png)
5647

57-
### 8. Display device logs
48+
### 7. Display device logs
5849
Click on the `Device Logs` tab, and you will see a list of all events that the device has sent to the Tuya platform. Ignore the Event Details section as this appears to be garbage.
5950

6051
![09_device_logs](../../images/how_tos/tuya_dp/09_device_logs.png)
6152

62-
### 9. Find your Data Point!!
53+
### 8. Find your Data Point!!
6354
Select the Data Point for-which you wish to find the ID for in the drop-down list above the events table. Open up Dev Tools by pressing `ctrl` + `shift` + `i` on your keyboard, or going to the `3-dot menu` at the top-right of the Chrome window->`More Tools`->`Dev Tools`. When Dev Tools is open, click on the `Network` Tab, then click the `Search` button in the Tuya IoT Platform window.
6455

6556
![10_dev_tools](../../images/how_tos/tuya_dp/10_dev_tools.png)
6657

6758
You should see a number of calls appear in the `Name` section of Dev Tools. The call that we are interested in it `list`. Click this, and scroll down in the right-hand pane until you see the `Request Payload` section. Within there, is a json encoded object which contains all of the data sent from the search function. One of the keys is labelled `code`. This `code` i.e. 112 is the value for your Data Point ID!
6859

69-
### 10. Rinse, and repeat!
60+
### 9. Rinse, and repeat!
7061

7162
You should now iterate through each of the Data Points that are available in the drop-down list. Once finished, follow the other How-To guides to map these Data Point's into converters.

0 commit comments

Comments
 (0)