Add support of RGB lights (#120)
* Make set_dps available. * Adding RGB support, brightness fix, color_temp range. * Update README for light options * Formatting * Formatting * Need to force to white to ensure color picker is updated. * Detect color mode RGB/HSV based on color length. * Extract rgb encoded color check in method. * Make check method private. * Fix exception when color is not available (maybe when powered off) * Reformat.
This commit is contained in:
11
README.md
11
README.md
@@ -63,7 +63,16 @@ localtuya:
|
||||
|
||||
- platform: light
|
||||
friendly_name: Device Light
|
||||
id: 4
|
||||
id: 4 # Usually 1 or 20
|
||||
color_mode: 21 # Optional, usually 2 or 21, default: "none"
|
||||
brightness: 22 # Optional, usually 3 or 22, default: "none"
|
||||
color_temp: 23 # Optional, usually 4 or 23, default: "none"
|
||||
color: 24 # Optional, usually 5 (RGB_HSV) or 24(HSV), default: "none"
|
||||
brightness_lower: 29 # Optional, usually 0 or 29, default: 29
|
||||
brightness_upper: 1000 # Optional, usually 255 or 1000, default: 1000
|
||||
color_temp_min_kelvin: 2700 # Optional, default: 2700
|
||||
color_temp_max_kelvin: 6500 # Optional, default: 6500
|
||||
|
||||
|
||||
- platform: sensor
|
||||
friendly_name: Plug Voltage
|
||||
|
Reference in New Issue
Block a user