Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

This plugin is no longer supported. For better device support, see https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin

Domoticz-TUYA-Plugin

TUYA Plugin for Domoticz home automation

Controls TUYA devices your network (mainly on/off switches and Lights). Tuya devices come in many brands and may come with different apps such as Smart Life or Jinvoo Smart, so select the matching App when configuring the plugin.

Key Features

Installation

Python version 3.4 or higher required & Domoticz version 3.9446 or greater.

To install:

Updating

To update:

Configuration

Enter your username and password for your app account along with your country code (1=US/Canada, 55=Brazil, etc), keep the setting 'Data Timeout' disabled. The initial setup of your devices should be done with the app and this plugin will detect/use the same settings and automatically find/add the devices into Domoticz.

Usage

In the web UI, navigate to the Hardware page. In the hardware dropdown there will be an entry called "TUYA" -- configure and add the hardware there. Devices detected are created in the 'Devices' tab, to use them you need to click the green arrow icon and 'Add' them to Domoticz.

Change log

Version Information
1.0.16 Update for blinds/cover
1.0.15 Update for blinds/cover
1.0.14 Change blinds/cover control for Domoticz 2022.2
1.0.13 Disabled turn devices offline at startup
1.0.12 Fix for cover or blinds status
1.0.11 Added stop for cover or blinds
1.0.10 Added turn off for off-line devices
1.0.9 Changed scene switch type to push button
1.0.8 Added fix for 0 device detection
1.0.7 Added fix for error Tuyaapi time-out
1.0.6 Added detection for White and RGB(WW) lights
1.0.5 Fixed update time api to Domoticz from 10 min to 1 min
1.0.4 Add light device if no match found in the json
1.0.3 Update for tuyaha 0.0.8
1.0.2 Update light support added temperature control
1.0.1 Support for SmartLife and Jinvoo Apps
1.0.0 Initial upload version

Note

I can only support devices or with similar functions that I have myself. Thank you for your understanding.

Original project:

Fork from https://github.com/guino/tuyaha to make a standalone project.