I’m having trouble linking my Tuya and Smartlife accounts back to HR; I keep getting an error message saying the username is incorrect and the password is wrong. This happens with different accounts.
I’ve the same problem
I am in the same situation.my region is in EU. i change my password in tuya an now my homeremote refuse to accept my new password. so far was working because my acount was old and allredy token with homeremote. when i change password i think new API activated. i made a new acount to US region and is the same problem, token error user and pass not accepted.
hello,
I need a help, I have one project with tuya devices, working with smartlife app in my costumer, i try use the Home Remote platform for release for my customer one only app. I did this in the past ( 3 or 4 years a go), but now I have a problem with authentication.
I am experiencing an issue connecting Smart Life / Tuya accounts to Home Remote Designer version 4.5.0.0.
Environment
- Home Remote Designer: 4.5.0.0
- Windows PC
- Internet connection working normally
- Smart Life mobile app working normally
- Tuya cloud endpoints reachable
Issue
When attempting to add a new Smart Life / Tuya device provider, Home Remote returns:
1 Get accesstoken failed.
2 Username or password error!
Tests performed
Test 1 - Existing Smart Life account
- Existing customer Smart Life account
- Verified email and password
- Login works correctly in Smart Life mobile app
- Home Remote returns:
1 Get accesstoken failed.
2 Username or password error!
Test 2 - New Smart Life account
- Created a brand-new Smart Life account
- New email address
- Simple password
- No devices associated
- Home Remote returns exactly the same error
Test 3 - New Home Remote project
- Created a completely empty project
- Added a new Smart Life provider
- Same error
Test 4 - Different countries
Tested:
- United States
- Brazil
- Germany / Europe
Same result.
Test 5 - Network validation
Verified:
- Internet connection is working
- Smart Life mobile app works correctly
- Tuya endpoints are reachable from the PC
- Home Remote can contact Tuya servers
Additionally, after multiple attempts Home Remote returns
1 you cannot auth exceed once in 180 seconds
which indicates communication with Tuya servers is occurring.
Conclusion
The issue does not appear to be related to:
- Username
- Password
- Smart Life account
- Project configuration
- Local network
- Internet connectivity
It appears the Smart Life / Tuya authentication mechanism used by Home Remote Designer 4.5.0 may no longer be compatible with the current Tuya authentication service.
Could you please confirm if:
- Smart Life / Tuya integration is still supported in version 4.5.0?
- There is a known authentication issue with Tuya accounts?
- There is a workaround or updated plugin available?
Thank you.
i have the same issues. Try like you different ways to connect to server tuya.
if you change password to tuya acount or make a new one, you activate a new protocol connection that i think is no more compatibile with home remote.
in the end, i stop using tuya plugin and switch to nodered that receive mqtt commands from homeremote and send to tuya device with tuya flow.
Tuya Cloud Plugin for The Home Remote – Development Status
I’m currently working on a new Tuya Cloud plugin for The Home Remote, mainly because Tuya access has become a problem for a number of THR users.
The basic cloud connection is now working successfully. The plugin can authenticate directly with the current Tuya Cloud API using HMAC-SHA256, obtain an access token, and communicate with the current /v1.0/iot-03/ device API.
Current test status:
- SHA-256 / HMAC-SHA256 implementation: PASS
- Tuya Cloud authentication and access token: PASS
- Device information request: PASS
- Device functions/status discovery: currently being tested
- Device control: not yet tested with the new API
My current test device is a Trotec PAC 3501 S portable air conditioner . Tuya already identifies the device correctly through the new API. It was offline during the latest test, so the next step is to repeat the function/status discovery while the device is online.
Important for anyone interested in testing the plugin later:
The plugin uses the official Tuya Cloud API, so you will need a Tuya Developer/Cloud account and a Tuya Cloud project . The project provides the Access ID (Client ID) and Access Secret required by the plugin.
If you are interested in testing the plugin when the first version becomes available, you can already create your Tuya Developer account and Cloud project in preparation.
The final goal is not to create a plugin only for this particular Trotec unit. I would like to make it as generic as possible for Tuya devices in THR.
For the public version, Tuya credentials will not be hard-coded. Access ID, Access Secret and other required information should be configurable through the THR plugin settings. The plugin and documentation will also be completely in English.
So it is not ready for release yet , but the most difficult first part — establishing authenticated communication with the current Tuya Cloud API — is now working.
Kalle
Tuya Cloud Generic Plugin for The Home Remote
I have been working on a generic Tuya Cloud plugin for The Home Remote (THR).
The main goal is to avoid creating a separate THR plugin for every individual Tuya device. Instead, the plugin connects to the Tuya Cloud, automatically discovers the devices linked to your Tuya/Smart Life account, reads their Tuya Data Points (DPs), and creates the appropriate devices, attributes and capabilities in The Home Remote.
Current development version:
Tuya Cloud Generic 1.9 R20 R2
The plugin is still under development, but the basic Tuya Cloud connection, automatic device discovery, live status polling and several bidirectional controls are already working with real hardware.
1. Requirements
You need:
- The Home Remote
- A Tuya Smart or Smart Life account
- At least one compatible Tuya device
- A Tuya Developer account (free to create)
- A Tuya Cloud Project
- Tuya Access ID
- Tuya Access Secret
- The correct region for your Tuya account: EU or US
Your Tuya devices should already be installed and working in the Tuya Smart or Smart Life app before setting up the THR plugin.
Useful Tuya links:
Tuya Developer Platform:
Tuya Cloud Development:
https://developer.tuya.com/en/cloud-development
Tuya Cloud API Documentation:
Tuya Developer Documentation Center:
2. Create a Tuya Developer Account
Go to:
Create a Tuya Developer account. The account is free to create.
After logging in, go to the Cloud Development section and create a new Cloud Project.
Tuya Cloud Development:
https://developer.tuya.com/en/cloud-development
For the development method select:
Smart Home
Select the Data Center that corresponds to the region of your Tuya/Smart Life account.
It is important that your Cloud Project and your Tuya/Smart Life account use the correct region.
You can check the region of your account in the Tuya/Smart Life app under:
Me → Settings → Account and Security → Region
3. Get the Access ID and Access Secret
Open your Cloud Project in the Tuya Developer Platform.
In the project authorization information you will find:
Access ID
and
Access Secret
These two values are required by the THR plugin.
Keep your Access Secret private.
For additional information about Tuya Cloud development and APIs:
4. Link Your Tuya / Smart Life Account
Your Smart Life or Tuya account must now be linked to the Cloud Project.
In your Tuya Cloud Project, open the device/account linking section and select the option to link an app account.
Tuya will display a QR code.
Open the Tuya Smart or Smart Life app on your phone and scan this QR code.
After successful linking, the devices from your Tuya account should become available to the Cloud Project.
The THR plugin can then discover them automatically.
5. Install the Plugin in The Home Remote
Add the .plugin file to your THR project and add the plugin in The Home Remote Designer.
Open the plugin Settings.
Enter:
Access ID:
Your Tuya Cloud Access ID
Access Secret:
Your Tuya Cloud Access Secret
Region (EU or US):
Enter EU for European accounts or US for US accounts.
There is no need to manually enter individual Tuya Device IDs.
The plugin discovers the devices automatically.
6. IMPORTANT – Synchronize Devices
After adding the plugin and entering your Access ID, Access Secret and Region, run:
Synchronize Devices
in The Home Remote Designer.
This step is important.
The plugin discovers the Tuya devices and analyzes their available Data Points and capabilities during synchronization.
Run “Synchronize Devices” after the plugin has been configured so that all discovered attributes and capabilities become available in THR.
If you add a new Tuya device later, or a future plugin version adds support for additional attributes, run Synchronize Devices again.
If a device is visible but expected attributes are missing, Synchronize Devices should be one of the first things to check.
7. Automatic Device Discovery
When the plugin connects to Tuya, it searches for devices associated with the linked Tuya/Smart Life account.
For every discovered device it can retrieve information including:
- Device name
- Device ID
- Product information
- Things Data Model
- Available properties
- Read/write permissions
- Current values
- Raw Tuya Data Points
The plugin analyzes these Data Points and exposes the functions it recognizes.
This is important because Tuya devices do not all use exactly the same set of DPs.
For example, one device may use:
switch_led
while another device may use:
switch
or another device-specific power DP.
The generic plugin attempts to map these Tuya functions to useful THR capabilities and attributes automatically.
8. Native THR Capabilities
Where a reliable mapping is possible, the plugin uses native The Home Remote capabilities.
For example, my currently tested Trotec air conditioner exposes the following native THR capabilities:
- Switch
- TemperatureSetpoint
- Temperature
- Humidity
This means normal THR controls such as a SwitchTile can be used.
You do not have to create a button that sends a raw Tuya command such as:
Power = true
Instead, a normal THR Switch can simply use:
On
and
Off
The plugin performs the translation between THR and Tuya.
9. Supported Device Families
The current generic detection includes Data Points commonly found in a number of Tuya device families.
Climate / Air Conditioning
Examples of supported functions include:
- Power
- Current temperature
- Temperature setpoint
- Current humidity
- Target humidity
- Operating mode
- Fan speed
- Swing
- Sleep mode
- Timer
- Temperature scale
- Fault status
Fans / Air Purifiers
Detection includes:
- Fan switch
- Fan speed
- Fan mode
- Air quality / AQI
- Filter information
- Filter reset
- PM2.5
- VOC / TVOC
- CO2
Lights / Dimmers
Detection includes:
switch_led- Brightness
- Color temperature
- Color data
- Work mode
Smart Plugs / Switches / Energy Monitoring
Detection includes:
- Switch
- Current
- Voltage
- Power
- Energy
- Countdown
The plugin specifically distinguishes between a Boolean power switch and an actual electrical power measurement.
Sensors
Detection includes:
- Battery percentage
- Battery state
- Door/window contact
- Motion / PIR
- Illuminance / Lux
- Temperature
- Humidity
Covers / Blinds / Curtains
Detection includes:
- Open / Close / Stop control
- Target position
- Current position
- Movement state
Safety Sensors
Detection includes:
- Smoke
- Gas
- Water leak / flood
- Tamper
- General alarm state
Door Locks
Initial generic status detection includes:
- Lock state
- Motor state
- Door state
- Battery
- Unlock method
For security reasons, generic lock control has not been enabled without testing against actual lock hardware.
10. Tested Hardware
At the moment my primary physical Tuya test device is:
Trotec PAC 3501 S Air Conditioner
The plugin automatically discovers the device and its Tuya functions.
The device currently provides 14 raw Tuya properties, including functions for power, temperature, humidity, target humidity, operating mode, fan speed, sleep mode, swing, timer and fault status.
The following functions have been practically tested:
Automatic Device Discovery
PASS
The Trotec is discovered automatically.
No manual Device ID is required.
Live Status Polling
PASS
Changes are read back from the Tuya Cloud and updated in THR.
Native THR Switch Control
PASS
Using the native THR Switch capability:
On switches the air conditioner on.
Off switches the air conditioner off.
The actual device responds immediately and its state is reported back to THR.
Fan Speed Control
PASS
The Trotec uses the Tuya DP:
windspeed1
The available values are:
1 = High
2 = Medium
3 = Low
The plugin exposes this function through:
FanSpeedGeneric
Changing the value from THR has been practically tested and successfully changes the fan speed of the real air conditioner.
Temperature and Humidity
The device reports its temperature and humidity values to THR.
Target Humidity
The Tuya:
humidity_set
DP is automatically detected and exposed as:
TargetHumidity
Temperature Scale
The Tuya temperature-unit DP is automatically detected and exposed as:
TemperatureScale
11. Raw Tuya Data Points
The plugin intentionally keeps raw Tuya information available in addition to the semantic THR attributes.
This is useful for devices or functions that have not yet been mapped.
For example, raw properties can be exposed as DP_... attributes.
This makes it possible to inspect previously unknown Tuya devices and add support for new Data Points without creating an entirely separate plugin for each device.
12. Read / Write Safety
The plugin checks the Tuya Things Data Model before sending generic write commands.
A property must be reported as writable before the generic write path will send a command.
The plugin also validates supported values where Tuya provides the necessary metadata.
This is particularly useful for Enum properties such as fan speeds.
For example, the tested Trotec fan-speed DP reports the allowed values:
1, 2, 3
The plugin can therefore validate the value before sending the command to Tuya.
13. Tested vs. Implemented
There is an important distinction between implemented support and practically tested support.
The functions described above for the Trotec PAC 3501 S have been tested against real hardware.
Support for many other Tuya device families has been implemented based on Tuya Data Point definitions, but I currently do not own physical examples of all of these devices.
Therefore support for devices such as:
- Tuya lights
- Smart plugs with energy monitoring
- Motion sensors
- Contact sensors
- Curtains / blinds
- Smoke detectors
- Gas detectors
- Water leak sensors
- Door locks
- Air purifiers
should currently be considered:
Implemented – hardware testing still required
If somebody has one of these devices and would like to test it, the plugin logging should make it relatively easy to determine which Data Points the device provides and whether an additional mapping is required.
14. Troubleshooting
If no devices are discovered, check the following first:
- Is the Access ID correct?
- Is the Access Secret correct?
- Is the correct
EUorUSregion entered? - Is the Tuya/Smart Life account linked to the Cloud Project?
- Are the devices visible in the linked Tuya/Smart Life account?
- Does the Cloud Project have the necessary device permissions?
- Did you run Synchronize Devices in The Home Remote Designer after configuring the plugin?
If authentication works but no devices are found, check the selected Tuya Data Center and account region.
If the device appears in THR but some attributes are missing, run:
Synchronize Devices
again.
This is especially important after installing a newer version of the plugin that adds additional device capabilities or attributes.
Useful Tuya documentation:
15. Current Status
Current development version:
Tuya Cloud Generic 1.9 R20 R2
At this point the plugin has working:
- Tuya Cloud authentication
- Automatic device discovery
- Automatic Data Point discovery
- Things Data Model analysis
- Automatic THR device creation
- Automatic attribute detection
- Native THR capability mapping where appropriate
- Live status polling
- Generic read/write validation
- Bidirectional device control
With the available real test hardware, both native Switch On/Off control and Fan Speed control have been successfully tested from The Home Remote through the Tuya Cloud to the physical device.
The next major step is testing the existing generic mappings against more real Tuya hardware.
If anyone has Tuya lights, plugs, sensors, blinds, air purifiers or other Tuya devices and would like to test the plugin, additional real-world test results would be very useful.
Tuya_Cloud_Generic_1_9_R20_R2.plugin (127.9 KB)
I don’t have SmartLife/Tuya but, great to see this! Nice work!