Tuya Home Assistant integration is developed for controlling Powered by Tuya (PBT) devices using Tuya Open API, officially maintained by the Tuya Developer Team.
The following Tuya Device types are currently supported by this integration:
- Light: Supports Tuya Wi-Fi light devices.
- Switch: Supports Tuya Wi-Fi switch devices, like switch, socket and power strip
- Cover: Supports Tuya cover devices like smart curtain motor.
- Climate: Supports Tuya climate devices like air conditioner and heater.
- Fan: Support Tuya fan devices.
Please check the Develop Tuya-Compatible Home Assistant Drivers and Home Assistant Entity tutorials to develop more drivers for the Tuya Home Assistant Integration and support more Tuya devices.
Please refer to the Home Assistant Official Installation documentation to install Home Assistant Core.
You can also get help from Set up Home Assistant Development Environment on Raspberry Pi in Tuya Developer Demo Center.
There are two methods to install the integration:
- Home Assistant Custom Components Installation
- Install by HACS
Download this tuya-home-assistant repo, unzip it, and copy the custom_components/tuya/ folder to the HomeAssistant configuration directory, e.g. ~/.homeassistant
1. HACS Install
3. HACS -> Integrations -> ... -> Custom repositories
4. Input the tuya-home-assistant GitHub URL: https://github.com/tuya/tuya-home-assistant and select Integration as the Category type, then click ADD.
5. Click INSTALL
Configuration -> Server Controls -> RESTART
Configuration -> Integrations -> ADD INTEGRATION -> Tuya Integration
Please get the Tuya credential info by following the Configure Cloud Development Project part in Tuya IoT Platform Configuration Guide.
Go to the home assistant installation folder ~/hass
and use the following command to activate it and run the hass service:
➜ hass source bin/activate
(hass) ➜ hass hass
For more information, please refer to the Home Assistant Core tutorial for the startup process and run hass.
Please download and use the Tuya Smart or Tuya Smart Life apps to pair Tuya devices to the Home Assistant for controlling. You can check the following links to download the apps.
- Tuya Smart App: iOS App | Android App
- Tuya Smart Life App: iOS App | Android App
Please refer to the Contributing.md for contributing guide.
You can give feedback on issues you encounter via GitHub Issue.
For more information, please refer to the LICENSE file