Proposal for TC_CC_2.1 (#37911)
* Proposal for TC_CC_2.1. Verify attributes from cluster. This fixes issues with previous PR which had some conflicts with submodules. Attribute range rechecks.
* Updated ColorControl.CoupleColorTempToLevelMinMireds at endpoint 1 with the default value of 0x009A to allow test TC-CC-2.1
* Added non zero value and in the range for coupleColorTempToLevelMinMireds. Updated to use LIGHTING_APP_NO_UNIQUE_ID instead of ALL_CLUSTERS_APP
* Updated value for CoupleColorTempToLevelMinMireds to non zero value with range in lower limit with ColorTempPhysicalMinMireds at endpoint 1
* Removed types defined on class variables as string and moved to Enum.
* Revert "Removed types defined on class variables as string and moved to Enum."
Pull integrated changes from submodules.
This reverts commit e61e1441d9ddc6b72ed28f64acbde2b3195b5239.
* Removed types defined on class variables as string and moved to Enum
* Work in progress
* fix: Added method in cc-2.1 test to verify the number of Primary attributes. Added function cluster_has_attibute similar to has_cluster but usabled in the tests. Updated guard_attribute to implement cluster_has_attribute instead of _has_attribute to avoid repeat code.
* Updated step24 text. Switched numberofprimaries read and compare.
* Added skip if NumberofPrimaries is 0. Added validation to confirm the attributes from the cluster are consistent with the values from NumberofPrimaries
* Updated to ensure all PrimaryN<X,Y,Intensity> are present in the cluster for index defined at NumberOfPrimaries.
* Fix typos
* Lint fixes
* Corrections for Review.
* Fix typos
* Updated to use _has_attribute instead of self.cluster_has_attribute
* Removed cluster_has_attribute. Used has_attribute method instead
* Removed yaml test for TC_CC_2.1
* Udpated max_len=0xfeff for max_len=0xfeff for max_len=65279. Updated lower bit compare strings. Updated if to retrieve Primary attributes
* Updated variable name from numberofprimaries_value to number_of_primaries_value.
* Update text first bits for lowest bits. Updated comments first letter to Uppercase.
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index bc6b015..dc6871b 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -2944,7 +2944,7 @@
ram attribute colorCapabilities default = 0x1F;
ram attribute colorTempPhysicalMinMireds default = 0x009A;
ram attribute colorTempPhysicalMaxMireds default = 0x01C6;
- ram attribute coupleColorTempToLevelMinMireds;
+ ram attribute coupleColorTempToLevelMinMireds default = 0x009A;
persist attribute startUpColorTemperatureMireds default = 0x00FA;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;