Skip to content

Commit

Permalink
[Chef] Fix invalid featureMap and associated commands/attributes in c…
Browse files Browse the repository at this point in the history
…olortemperaturelight ZAP (project-chip#35443)

* Fix chef colortemperaturelight ZAP

* Not changing the default value of the CoupleColorTempToLevelMinMireds

* Fix ColorTemperatureMired range 0x9A~0x1C6
  • Loading branch information
erwinpan1 authored Sep 10, 2024
1 parent 7f78939 commit ecf66e6
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 451 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2272,15 +2272,15 @@ endpoint 1 {
}

server cluster OnOff {
ram attribute onOff default = 0;
persist attribute onOff default = 0;
ram attribute globalSceneControl default = 1;
ram attribute onTime default = 0;
ram attribute offWaitTime default = 0;
ram attribute startUpOnOff;
persist attribute startUpOnOff;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 5;

handle command Off;
Expand All @@ -2292,15 +2292,17 @@ endpoint 1 {
}

server cluster LevelControl {
ram attribute currentLevel default = 0x00;
persist attribute currentLevel default = 0x00;
ram attribute remainingTime default = 0x0000;
ram attribute options default = 0x00;
ram attribute minLevel default = 0x1;
ram attribute maxLevel default = 0xFE;
ram attribute options default = 0x01;
ram attribute onLevel;
ram attribute startUpCurrentLevel;
persist attribute startUpCurrentLevel;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute featureMap default = 0x3;
ram attribute clusterRevision default = 6;

handle command MoveToLevel;
Expand All @@ -2327,53 +2329,23 @@ endpoint 1 {

server cluster ColorControl {
ram attribute remainingTime default = 0x0000;
ram attribute colorTemperatureMireds default = 0x00FA;
ram attribute colorMode default = 0x02;
persist attribute colorTemperatureMireds default = 0x00FA;
persist attribute colorMode default = 0x02;
ram attribute options default = 0x00;
ram attribute numberOfPrimaries;
ram attribute primary1X;
ram attribute primary1Y;
ram attribute primary1Intensity;
ram attribute primary2X;
ram attribute primary2Y;
ram attribute primary2Intensity;
ram attribute primary3X;
ram attribute primary3Y;
ram attribute primary3Intensity;
ram attribute primary4X;
ram attribute primary4Y;
ram attribute primary4Intensity;
ram attribute primary5X;
ram attribute primary5Y;
ram attribute primary5Intensity;
ram attribute primary6X;
ram attribute primary6Y;
ram attribute primary6Intensity;
ram attribute enhancedCurrentHue default = 0x0000;
ram attribute enhancedColorMode default = 0x02;
ram attribute colorCapabilities default = 0x0000;
persist attribute enhancedColorMode default = 0x02;
ram attribute colorCapabilities default = 0x0010;
ram attribute colorTempPhysicalMinMireds default = 0x009A;
ram attribute colorTempPhysicalMaxMireds default = 0x01C6;
ram attribute coupleColorTempToLevelMinMireds;
ram attribute startUpColorTemperatureMireds default = 0x00FA;
persist attribute startUpColorTemperatureMireds default = 0x00FA;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0x0010;
ram attribute clusterRevision default = 7;

handle command MoveToHue;
handle command MoveHue;
handle command StepHue;
handle command MoveToSaturation;
handle command MoveSaturation;
handle command StepSaturation;
handle command MoveToHueAndSaturation;
handle command MoveToColor;
handle command MoveColor;
handle command StepColor;
handle command MoveToColorTemperature;
handle command EnhancedMoveToHue;
handle command EnhancedMoveHue;
handle command EnhancedStepHue;
handle command EnhancedMoveToHueAndSaturation;
Expand Down
Loading

0 comments on commit ecf66e6

Please sign in to comment.