Lighting
介绍
控制一盏灯的最简单的方式是打开或关闭它,使用the Generic OnOff state;
较之高级一点的是,控制灯的亮度,使用the Light Lightness Actual state;
如果是可控制其色温(Colour Temperature)的灯,使用the Light CTL state;
比如 Incandescent light (白炽灯)色温为2700K到3000K,fluorescent light(荧光灯)的色温为5000K
如果是可变颜色的灯,可以使用三种状态分别去控制它的三维(Hue 色相,Saturation 饱和度,Lightness 亮度,即HSL):the Light HSL Hue state、the Light HSL Saturation、the Light Lightness Actual state。
关于色温的介绍:https://baike.baidu.com/item/色温
关于色相、饱和度、亮度的介绍:https://www.zhihu.com/question/23173178/answer/47440894
The HSL model [4] is considered to be the default model for controlling color light in a mesh network.
The HSL color space can be converted to other color spaces. For example, the following code may be used when converting HSL to RGB
In a mesh network, the color light control model for professional applications is the xyL model。xyL的含义详见蓝牙mesh spec。