From 1054af20ebb10d67281e89dd847763d748602883 Mon Sep 17 00:00:00 2001 From: irtimaled Date: Sun, 26 Sep 2021 01:34:08 -0700 Subject: [PATCH] Add support for rgb support on tuya lights (#1488) --- components/light/tuya.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/light/tuya.rst b/components/light/tuya.rst index 80c9ed81d..f392b6e50 100644 --- a/components/light/tuya.rst +++ b/components/light/tuya.rst @@ -81,6 +81,8 @@ 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 value. If this is set + then ESPHome will set the color using a 6 digit hex RGB value. - **min_value** (*Optional*, int, default 0): 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. - **max_value** (*Optional*, int, default 255): The highest dimmer value allowed. Most dimmers have a @@ -95,7 +97,7 @@ Configuration variables: - **warm_white_color_temperature** (*Optional*, float): The color temperature (in `mireds `__ or Kelvin) of the warm white channel. - All other options from :ref:`Light `. -- At least one of *dimmer_datapoint* or *switch_datapoint* must be provided. +- At least one of *dimmer_datapoint*, *switch_datapoint*, or *rgb_datapoint* must be provided. .. note::