Tuya
The Tuya 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.
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.
Configuration
To add the Tuya hub to your Home Assistant instance, use this My button:
Tuya can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.
Manual configuration steps
If it wasn’t discovered automatically, don’t worry! You can set up a manual integration entry:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select Tuya.
-
Follow the instructions on screen to complete the setup.
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.