Skip to content

Commit

Permalink
Changing device type to ColorTemperature Light
Browse files Browse the repository at this point in the history
The code is written to expect color changing, rather than removing the device type it makes more sense to change it into Color Temperature Light which suports  the Color cluster
  • Loading branch information
ratgr committed Feb 11, 2025
1 parent 5fe45c0 commit d5eebef
Show file tree
Hide file tree
Showing 2 changed files with 321 additions and 15 deletions.
22 changes: 20 additions & 2 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,7 @@ endpoint 0 {
callback attribute operationalDatasetComponents;
callback attribute activeNetworkFaultsList;
ram attribute featureMap default = 0x000F;
ram attribute clusterRevision default = 2;
ram attribute clusterRevision default = 3;

handle command ResetCounts;
}
Expand Down Expand Up @@ -2744,12 +2744,15 @@ endpoint 0 {
}
}
endpoint 1 {
device type ma_dimmablelight = 257, version 3;
device type ma_colortemperaturelight = 268, version 4;


server cluster Identify {
ram attribute identifyTime default = 0x0000;
ram attribute identifyType default = 0x0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 5;

Expand All @@ -2759,6 +2762,9 @@ endpoint 1 {

server cluster Groups {
ram attribute nameSupport;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 4;

Expand All @@ -2780,6 +2786,9 @@ endpoint 1 {
ram attribute onTime default = 0x0000;
ram attribute offWaitTime default = 0x0000;
persist attribute startUpOnOff default = 0xFF;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 6;

Expand All @@ -2803,6 +2812,9 @@ endpoint 1 {
ram attribute offTransitionTime;
ram attribute defaultMoveRate default = 50;
persist attribute startUpCurrentLevel default = 255;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 3;
ram attribute clusterRevision default = 6;

Expand All @@ -2821,6 +2833,9 @@ endpoint 1 {
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
callback attribute featureMap;
callback attribute clusterRevision;
}
Expand All @@ -2847,6 +2862,9 @@ endpoint 1 {
ram attribute colorTempPhysicalMaxMireds default = 0x01C6;
ram attribute coupleColorTempToLevelMinMireds;
persist attribute startUpColorTemperatureMireds default = 0x00FA;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0x1F;
ram attribute clusterRevision default = 7;

Expand Down
Loading

0 comments on commit d5eebef

Please sign in to comment.