3.4 KiB
title, description, ha_category, ha_iot_class, ha_release, ha_config_flow, ha_domain, ha_codeowners, ha_platforms, ha_dhcp, ha_integration_type
| title | description | ha_category | ha_iot_class | ha_release | ha_config_flow | ha_domain | ha_codeowners | ha_platforms | ha_dhcp | ha_integration_type | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Tuya | Instructions on how to set up the Tuya hub within Home Assistant. |
|
Cloud Push | 0.74 | true | tuya |
|
|
true | hub |
The Tuya {% term integration %} integrates all Powered by Tuya devices you have added to the Tuya Smart and Tuya Smart Life apps.
All Home Assistant platforms are supported by the Tuya integration, except the lock and remote platform.
Prerequisites
You need to have the Tuya Smart or Smart Life app installed, with an account created and at least one device added to that account.
During the setup process, you will need:
- A second screen (such as a phone, tablet, or another computer) to display the QR code that appears during configuration
- The Smart Life or Tuya Smart app installed on your mobile device to scan the QR code
Obtaining User Code for sign-in
To sign-in, you will need to get your User Code from the Smart Life / Tuya Smart app. You can find it by opening the app and:
- On the tab bar, select Me.
- Select the ⚙️ (gear) icon in the top-right corner.
- Tap Account and Security.
- At the bottom, User Code will be shown; you need to when setting up this integration.
{% include integrations/config_flow.md %}
Scanning the QR code
To scan the QR code in the Smart Life app:
- Open the Smart Life app
- Tap the + button or Add Device
- Select Scan or look for the QR code scanner option
- Scan the QR code displayed on your Home Assistant screen
After adding new devices to your Tuya account through the Smart Life or Tuya Smart app, you need to reload the Tuya integration in Home Assistant for the new devices to appear:
- Go to {% my integrations title="Settings > Devices & Services" %}
- Find the Tuya integration
- Click the three dots menu
- Select Reload
Scenes
Tuya supports scenes in their app. These allow triggering some of the more complex modes of various devices such as light changing effects. Scenes created in the Tuya app will automatically appear in the Scenes list in Home Assistant the next time the integration updates.
Troubleshooting
Unsupported device or missing device functionality
This integration relies on the official Python SDK provided by Tuya, which does not expose all functionality available in SmartLife.
The data points provided by the SDK are visible in the Home Assistant device diagnostics JSON file, under the status, status_range and function keys:
- Go to {% my integrations title="Settings > Devices & Services" %}
- Find the Tuya integration
- Select the device
- Under the device information, click the three dots menu
- Select Download diagnostics
- Open the diagnostic file, and check manually the
status,status_rangeandfunctionkeys
If status, status_range and function are all empty, then only scenes declared inside Tuya (if any) will be available inside Home Assistant.