Open Icexist opened 4 years ago
I would suggest add an light.control_relative
function that can change the state of a light relatively, along with the id(light).color_temperature
lambda call and hue/saturation controls for RGB lights.
light.control_relative
will support exact same option of light.control
, but any color/brightness/colortemp/hue/saturation values are added to the existing values instead of overwriting them.
Relative control of color temp for white and also for color of the rgb light will be nice, it will be easy to implement remote control of these with + and - buttons.
Describe the problem you have/What new integration you would like
I would like to be able to set color temperature relative to the current color temperature of a light. Currently, you can set relative brightness using
light.dim_relative
but to do the same with color temperature, you need to use a lambda.Two possible paths:
id(light).color_temperature
as a lambda call. This would avoid the use of a global variable to track color temp.light.temp_relative
that works the same aslight.dim_relative
but for color temperature. The color temp would be changed relative to the definedcold
andwarm
temperatures.Please describe your use case for this integration and alternatives you've tried:
Current method:
Desired future method:
Additional context