Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yangqian/hass-colortuya
local handling for Tuya RGB tunable white light bulbs via home assistant
https://github.com/yangqian/hass-colortuya
home-assistant home-automation rgb-led smart-home smart-light tuya
Last synced: 16 days ago
JSON representation
local handling for Tuya RGB tunable white light bulbs via home assistant
- Host: GitHub
- URL: https://github.com/yangqian/hass-colortuya
- Owner: yangqian
- License: gpl-3.0
- Created: 2021-01-14T05:16:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-14T05:46:10.000Z (about 4 years ago)
- Last Synced: 2024-11-17T15:31:38.309Z (3 months ago)
- Topics: home-assistant, home-automation, rgb-led, smart-home, smart-light, tuya
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/grochon/tuyaconvert)## Tested devices
* [Feit color bulbs from Costco for 5$ each](https://www.costco.com/feit-electric-wi-fi-smart-bulbs%2c-4-pack.product.100417461.html)## Steps
* follow [tuyapi](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md#linking-a-tuya-device-with-smart-link) 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](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md)[pytuya](https://github.com/clach04/python-tuya/wiki)
[localtuya-homeassistant](https://github.com/mileperhour/localtuya-homeassistant)
[Color rgb light reference](https://community.openhab.org/t/step-by-step-guide-for-adding-tuya-bulbs-wi-fi-smart-led-smart-life-app-to-oh2-using-tuya-mqtt-js-by-agentk/59371/220)