Support for color types on Tuya light (#2686)

This commit is contained in:
irtimaled 2023-02-19 19:43:06 -08:00 committed by GitHub
parent c2cb95ccc2
commit 9c2d56d80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,10 +52,17 @@ Configuration variables:
change the brightness and would have to toggle the light using the physical buttons.
- **color_temperature_datapoint** (*Optional*, int): The datapoint id number of the color
temperature value.
- **rgb_datapoint** (*Optional*, int): The datapoint id number of the RGB (red/green/blue) value.
If this is set then ESPHome will set the color using a 6 digit hex RGB value.
- **hsv_datapoint** (*Optional*, int): The datapoint id number of the HSV (hue/saturation/value) value.
If this is set then ESPHome will set the color using a 12 digit hex HSV value.
- **color_datapoint** (*Optional*, int): The datapoint id number of the color value.
If this is set, along with **color_type**, then ESPHome will set the color value formatted
based on the **color_type**.
- **color_type** (*Optional*, enum): The color type to use when setting the **color_datapoint**.
If this is set, along with **color_datapoint**, then ESPHome will use this value to format
the color sent to **color_datapoint**.
- ``rgb``: Use a 6 digit hex RGB value
- ``hsv``: Use a 12 digit hex HSV value
- ``rgbhsv``: Use a 14 digit hex RGBHSV value
- **min_value** (*Optional*, int): The lowest dimmer value allowed. My dimmer had a
minimum of 25 and wouldn't even accept anything lower, but this option is available if necessary.
Defaults to 0.