Giter Site home page Giter Site logo

tuyaha's Introduction

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

  • Auto-detects devices on your account
  • Tested with lights and switches (but should control other devices on/off)
  • Cloud control only uses your user/password account with encrypted communications without requiring IP or device IDs or Keys to configure it
  • Allows controlling Dimmer/RGB Color for lights
  • Supports scene activation

Installation

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

To install:

  • Go in your Domoticz directory using a command line and open the plugins directory.
  • Run: git clone https://github.com/guino/tuyaha.git
  • Restart Domoticz.

Updating

To update:

  • Go in your Domoticz directory using a command line and open the plugins directory then the Domoticz-TUYA directory.
  • Run: git pull
  • Restart Domoticz.

Alternate Install/Update:

  • Simply create a directory under domoticz/plugins directory like 'TUYA' and download/copy the plugin.py file and tuyaha directory (with all its contents) into it.
  • Restart Domoticz.

Configuration

Enter your username and password for your app account along with your country code (1=US/Canada, 55=Brazil, etc). 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.1 Support for SmartLife and Jinvoo Apps
1.0.0 Initial upload version

Includes 'tuyaha' project:

Cloned from the abandoned package tuyapy v0.1.3. This package implements a Tuya API endpoint that was specially designed for Home Assistant.

This clone contains several critical fixes. Check commits.

How to check whether the API this library using can control your device?

  • Copy this script to your PC with Python installed or to https://repl.it/
  • Set/update config inside and run it
  • Check if your devices are listed
    • If they are - open an issue and provide the output
    • If they are not - don't open an issue. Ask Tuya support to support your device in their /homeassistant API
  • Remove the updated script, so your credentials won't leak

Light temperature support by Xenomes

There's a fork of this plugin with support for light temperature control (for devices which support it), you can check it out at: https://github.com/Xenomes/Domoticz-TUYA-Plugin

tuyaha's People

Contributors

paulannekov avatar faboor avatar guino avatar basnijholt avatar danielhiversen avatar niladam avatar rogerxaic avatar airens avatar ollo69 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.