One-time Tuya IoT account setup. After this, Power Trace will find your device automatically via Scan Devices.
Open the Tuya IoT Platform website and create an account:
- Click Sign Up
- Register via email or Google
- Sign in to your account
After logging in, navigate to:
Click Create Cloud Project and fill in the fields:
Select a Data Center region (important!):
| Data Center | Region Code |
|---|---|
| China Data Center | cn |
| Central Europe Data Center | eu |
| Western Europe Data Center | eu-w |
| India Data Center | in |
| Western America Data Center | us |
| Eastern America Data Center | us-e |
| Singapore Data Center | sg |
Click Open Project and navigate to the Overview tab. You will find two values:
- Access ID — the API Key for Power Trace
- Access Secret — the secret key for authorization
Enter both into Power Trace Settings → Tuya Cloud section.
In your project navigate to:
- Click Add App Account
- Select Tuya App Account Authorization
- A QR code will appear
On your phone open Tuya Smart or Smart Life:
Navigate to:
Find your device and open it. You will see:
- Device ID — the unique device identifier
- Device Name — the device name
Make sure the API is running and open Power Trace Settings:
- Expand the Tuya Cloud section
- Enter Access ID and Access Secret from step 3
- Click Scan Devices
When the device list appears — select your device and click Use This Device.
Getting the Local Key via API Explorer
After completing steps 1–5, open API Explorer in your project:
- In the search field type Query Device Details and select it from the list
- Enter the Device ID from step 5 into the
device_idfield - Click Submit Request
In the server response find the local_key field:
Copy the value of local_key and enter it into the Local Key field in Power Trace Settings.
Getting the IP Address via Router
If Scan Devices could not find the device IP automatically, look it up in your router’s admin panel.
Step 1. Open the router web interface in a browser:
Step 2. Find the connected devices list. Depending on your router it may be called: Connected Devices, Client List, DHCP Clients, LAN Clients, Device List, Attached Devices, Network Map, Online Devices.
Step 3. Locate your Tuya device by name, MAC address, manufacturer (Tuya, ESP, Realtek, BK7231), or last connection time.
Step 4. Note the local IP address, e.g. 192.168.0.114, and enter it into the IP Address field in Power Trace Settings.