mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-26 22:21:38 +01:00
Support for color types on Tuya light (#2686)
This commit is contained in:
parent
c2cb95ccc2
commit
9c2d56d80c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user