1 CurrentHue Attribute
它的當前色調更新速度跟改變的速度一致
Hue = CurrentHue x 360 / 254
CurrentSaturation and ColorMode應該一同實施
2 CurrentSaturation Attribute
它的當更新速度跟改變的速度一致
3 RemainingTime Attribute
當前行爲的剩餘時間,單位是10分之一S
4 Current X,Y Attribute
顏色控制通過X,Y去控制(CIE 1931 顏色標準),
但zigbee推薦用Hue色調和saturation飽和度去控制顏色(基於HSV顏色模型)
5 DriftCompensation Attribute(可選)
漂移補償屬性,像RGB燈在不同溫度下,是有漂移的
6 ColorTemperatureMireds Attribute
色溫屬性值,單位是開爾文,範圍是1~65279。
公式=100 0000/色溫微倒度
例如燈要設成2700k,那這個值就是一百萬除以色溫微倒度=2700,所以設成2700k,這個值是370
2700K 370
4600 217
6000 167
6500 154
色溫Mired=0,表示未定義的值
色溫Mired=0xffff,表示無效的值
7 ColorMode Attribute
如果實現了CurrentHue或CurrentSaturation屬性,那麼也應該實現這個屬性,否則它是可選的
8 EnhancedColorMode Attribute
當前顏色循環的激活狀態。1表示enable,0表示disable
10 ColorCapabilities Attribute
10 ColorTempPhysicalMinMireds Attribute
燈支持的最低色溫,一般是2700K
11 ColorTempPhysicalMax Mireds Attribute
燈支持的最高色溫,一般是6500K
2 Defined Primaries Information attribute set
用的是CIE xyY顏色空間,一共有三組值。
x = Primary1X / 65536 (Primary1X in the range 0 to 65279 inclusive)
除了這一個屬性去描述xyY顏色空間外,還有一個額外的基元信息屬性去描述
Additional Defined Primaries Information attribute set。像RGBW燈,一般是4組。