Light Service Items¶
-
class
BackdropLightControl: public Item¶ Displays a Light control to switch single rooms and all Lights at once.
-
class
LightControl: public FocusScope¶ Displays an Item to control a Light.
If the Light is either dim-able, has a changeable color temperature or editable color, the control expands when tapping it.
Public Functions
-
string
getTemperature(string cold, string warm, real value)¶ Interpolates between a cold and warm color for a value which is in the range
0to1.- Return
The interpolated color hex code
- Parameters
cold: The color hex code of the cold colorwarm: The color hex code of the warm colorvalue: The value to interpolate to in the range0to1where 0 is cold and 1 is warm
-
string
-
class
LightList: public ListView¶ Displays a ListView with all available LightControl.