GithubHelp home page GithubHelp logo

yangqian / hass-colortuya Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 25 KB

local handling for Tuya RGB tunable white light bulbs via home assistant

License: GNU General Public License v3.0

Python 100.00%
home-automation home-assistant smart-home smart-light rgb-led tuya

hass-colortuya's Introduction

colortuya

local handling for Tuya RGB tunable white light bulbs via home assistant

What is it for

Custome component of home assistant to locally control Color RGB light using Tuya firmware v3.3. Tuya firmware less than v3.3 are recommended to flash using tuyaconvert

Tested devices

Steps

  • follow tuyapi to obtain local_key and device_id.
  • example configuration.yaml
light:
  - platform: mytuya
    host: 192.168.1.88
    local_key: 010a4054efd304343
    device_id: fcefa33211c89a54c8dbil
    name: ceiling
    protocol_version: 3.3

Note

The following parameters might vary depending on your brand.

    DPS_INDEX_ON         = '1'
    DPS_INDEX_MODE       = '2'
    DPS_INDEX_BRIGHTNESS = '3'
    DPS_INDEX_COLOURTEMP = '4'
    DPS_INDEX_COLOUR     = '5'

Todo

  • Implement async. The device responds to each command instantly, you cannot place the next command until half a second later.
  • Implement custom scene. There are four different scenes. E.g., one corresponds to looping between up to about 6 colors. This could be mapped to a feature in home assistant.
  • Implement a service that sends a command to the bulb for easier debug.
  • Add Circadian support. Please see github for my current code.

See also

tuyaapi

pytuya

localtuya-homeassistant

Color rgb light reference

hass-colortuya's People

Contributors

yangqian avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

neoatmatrix

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.