diff --git a/index.d.ts b/index.d.ts index 90cb7e8..986d77a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -327,6 +327,7 @@ declare module "zigbee-clusters" { onTransitionTime: { id: 0x12, type: ZCLDataType }, offTransitionTime: { id: 0x13, type: ZCLDataType }, defaultMoveRate: { id: 0x14, type: ZCLDataType }, + startUpCurrentLevel: { id: 0x4000, type: ZCLDataType }, }; type LevelControlClusterCommands = { moveToLevel: { id: 0x00, direction: "DIRECTION_SERVER_TO_CLIENT", args: { @@ -1837,6 +1838,7 @@ declare module "zigbee-clusters" { colorCapabilities: { id: 0x400a, type: ZCLDataType> }, colorTempPhysicalMinMireds: { id: 0x400b, type: ZCLDataType }, colorTempPhysicalMaxMireds: { id: 0x400c, type: ZCLDataType }, + startUpColorTemperatureMireds: { id: 0x4010, type: ZCLDataType }, }; type ColorControlClusterCommands = { moveToHue: { id: 0x00, direction: "DIRECTION_SERVER_TO_CLIENT", args: { diff --git a/lib/clusters/colorControl.js b/lib/clusters/colorControl.js index b438204..33041d5 100644 --- a/lib/clusters/colorControl.js +++ b/lib/clusters/colorControl.js @@ -62,6 +62,10 @@ const ATTRIBUTES = { // Mandatory if colorCapabilities = colorTemperature // Read-only colorTempPhysicalMaxMireds: { id: 16396, type: ZCLDataTypes.uint16 }, + + // Startup color temperature, reflected in colorTemperatureMireds on power up + // (0xffff = restore previous value) + startUpColorTemperatureMireds: { id: 16400, type: ZCLDataTypes.uint16 }, }; const COMMANDS = { diff --git a/lib/clusters/levelControl.js b/lib/clusters/levelControl.js index 3459c09..04c2081 100644 --- a/lib/clusters/levelControl.js +++ b/lib/clusters/levelControl.js @@ -11,6 +11,7 @@ const ATTRIBUTES = { onTransitionTime: { id: 18, type: ZCLDataTypes.uint16 }, offTransitionTime: { id: 19, type: ZCLDataTypes.uint16 }, defaultMoveRate: { id: 20, type: ZCLDataTypes.uint16 }, + startUpCurrentLevel: { id: 16384, type: ZCLDataTypes.uint8 }, }; const COMMANDS = {