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:
@@ -444,7 +444,7 @@ class TuyaProtocol(asyncio.Protocol):
|
||||
"""
|
||||
return await self.exchange(SET, {str(dp_index): value})
|
||||
|
||||
async def set_dps(self, value, dps):
|
||||
async def set_dps(self, dps):
|
||||
"""Set values for a set of datapoints."""
|
||||
return await self.exchange(SET, dps)
|
||||
|
||||
|
Reference in New Issue
Block a user