| # Copyright (c) 2021 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| name: 25.1.1. [TC-CC-1.1] Global attributes with server as DUT |
| |
| PICS: |
| - CC.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Color Control" |
| endpoint: 1 |
| |
| tests: |
| - label: "Step 1: Commission DUT to TH" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: |
| "Step 2: TH reads from the DUT the (0xFFFD) ClusterRevision attribute" |
| command: "readAttribute" |
| attribute: "ClusterRevision" |
| response: |
| value: 6 |
| constraints: |
| type: int16u |
| |
| - label: "Step 3a: TH reads from the DUT the (0xFFFC) FeatureMap attribute" |
| PICS: ( !CC.S.F00 && !CC.S.F01 && !CC.S.F02 && !CC.S.F03 && !CC.S.F04 ) |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| value: 0 |
| constraints: |
| type: bitmap32 |
| |
| - label: |
| "Step 3b: Given CC.S.F00(HS) ensure featuremap has the correct bit set" |
| PICS: CC.S.F00 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x1] |
| |
| - label: |
| "Step 3c: Given CC.S.F01(EHue) ensure featuremap has the correct bit |
| set" |
| PICS: CC.S.F01 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x2] |
| |
| - label: |
| "Step 3d: Given CC.S.F02(CL) ensure featuremap has the correct bit set" |
| PICS: CC.S.F02 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x4] |
| |
| - label: |
| "Step 3e: Given CC.S.F03(XY) ensure featuremap has the correct bit set" |
| PICS: CC.S.F03 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x8] |
| |
| - label: |
| "Step 3f: Given CC.S.F04(CT) ensure featuremap has the correct bit set" |
| PICS: CC.S.F04 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x10] |
| |
| - label: |
| "Step 4a: TH reads from the DUT the (0xFFFB) AttributeList attribute" |
| PICS: PICS_EVENT_LIST_ENABLED |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: |
| [ |
| 8, |
| 15, |
| 16, |
| 16385, |
| 16394, |
| 65528, |
| 65529, |
| 65530, |
| 65531, |
| 65532, |
| 65533, |
| ] |
| |
| - label: |
| "Step 4a: TH reads from the DUT the (0xFFFB) AttributeList attribute" |
| PICS: "!PICS_EVENT_LIST_ENABLED" |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: |
| [8, 15, 16, 16385, 16394, 65528, 65529, 65531, 65532, 65533] |
| |
| - label: |
| "Step 4b: TH reads feature dependent attribute (CurrentHue) in |
| AttributeList" |
| PICS: CC.S.F00 && CC.S.A0000 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [0] |
| |
| - label: |
| "Step 4c: TH reads feature dependent attribute (CurrentSaturation) in |
| AttributeList" |
| PICS: CC.S.F00 && CC.S.A0001 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [1] |
| |
| - label: |
| "Step 4d: TH reads the optional attribute(RemainingTime) in |
| AttributeList" |
| PICS: CC.S.A0002 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [2] |
| |
| - label: |
| "Step 4e: TH reads feature dependent attribute (CurrentX) in |
| AttributeList" |
| PICS: CC.S.F03 && CC.S.A0003 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [3] |
| |
| - label: |
| "Step 4f: TH reads feature dependent attribute (CurrentY) in |
| AttributeList" |
| PICS: CC.S.F03 && CC.S.A0004 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [4] |
| |
| - label: |
| "Step 4g: TH reads the optional attribute(DriftCompensation) in |
| AttributeList" |
| PICS: CC.S.A0005 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [5] |
| |
| - label: |
| "Step 4h: TH reads the optional attribute(CompensationText) in |
| AttributeList" |
| PICS: CC.S.A0006 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [6] |
| |
| - label: |
| "Step 4i: TH reads feature dependent attribute |
| (ColorTemperatureMireds) in AttributeList" |
| PICS: CC.S.F04 && CC.S.A0007 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [7] |
| |
| - label: "Step 4j: TH reads the Primary1X attribute in AttributeList" |
| PICS: CC.S.A0011 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [17] |
| |
| - label: "Step 4k: TH reads the Primary1Y attribute in AttributeList" |
| PICS: CC.S.A0012 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [18] |
| |
| - label: |
| "Step 4l: TH reads the Primary1Intensity attribute in AttributeList" |
| PICS: CC.S.A0013 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [19] |
| |
| - label: "Step 4m: TH reads the Primary2X attribute in AttributeList" |
| PICS: CC.S.A0015 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [21] |
| |
| - label: "Step 4n: TH reads the Primary2Y attribute in AttributeList" |
| PICS: CC.S.A0016 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [22] |
| |
| - label: |
| "Step 4o: TH reads the Primary2Intensity attribute in AttributeList" |
| PICS: CC.S.A0017 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [23] |
| |
| - label: "Step 4p: TH reads the Primary3X attribute in AttributeList" |
| PICS: CC.S.A0019 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [25] |
| |
| - label: "Step 4q: TH reads the Primary3Y attribute in AttributeList" |
| PICS: CC.S.A001a |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [26] |
| |
| - label: |
| "Step 4r: TH reads the Primary3Intensity attribute in AttributeList" |
| PICS: CC.S.A001b |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [27] |
| |
| - label: "Step 4s: TH reads the Primary4X attribute in AttributeList" |
| PICS: CC.S.A0020 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [32] |
| |
| - label: "Step 4t: TH reads the Primary4Y attribute in AttributeList" |
| PICS: CC.S.A0021 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [33] |
| |
| - label: |
| "Step 4u: TH reads the Primary4Intensity attribute in AttributeList" |
| PICS: CC.S.A0022 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [34] |
| |
| - label: "Step 4v: TH reads the Primary5X attribute in AttributeList" |
| PICS: CC.S.A0024 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [36] |
| |
| - label: "Step 4w: TH reads the Primary5Y attribute in AttributeList" |
| PICS: CC.S.A0025 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [37] |
| |
| - label: |
| "Step 4x: TH reads the Primary5Intensity attribute in AttributeList" |
| PICS: CC.S.A0026 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [38] |
| |
| - label: "Step 4y: TH reads the Primary6X attribute in AttributeList" |
| PICS: CC.S.A0028 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [40] |
| |
| - label: "Step 4z: TH reads the Primary6Y attribute in AttributeList" |
| PICS: CC.S.A0029 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [41] |
| |
| - label: |
| "Step 4a1: TH reads the Primary6Intensity attribute in AttributeList" |
| PICS: CC.S.A002a |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [42] |
| |
| - label: |
| "Step 4a2: TH reads the optional attribute(WhitePointX) in |
| AttributeList" |
| PICS: CC.S.A0030 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [48] |
| |
| - label: |
| "Step 4a3: TH reads the optional attribute(WhitePointY) in |
| AttributeList" |
| PICS: CC.S.A0031 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [49] |
| |
| - label: |
| "Step 4a4: TH reads the optional attribute(ColorPointRX) in |
| AttributeList" |
| PICS: CC.S.A0032 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [50] |
| |
| - label: |
| "Step 4a5: TH reads the optional attribute(ColorPointRY) in |
| AttributeList" |
| PICS: CC.S.A0033 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [51] |
| |
| - label: |
| "Step 4a6: TH reads the optional attribute(ColorPointRIntensity) in |
| AttributeList" |
| PICS: CC.S.A0034 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [52] |
| |
| - label: |
| "Step 4a7: TH reads the optional attribute(ColorPointGX) in |
| AttributeList" |
| PICS: CC.S.A0036 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [54] |
| |
| - label: |
| "Step 4a8: TH reads the optional attribute(ColorPointGY) in |
| AttributeList" |
| PICS: CC.S.A0037 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [55] |
| |
| - label: |
| "Step 4a9: TH reads the optional attribute(ColorPointGIntensity) in |
| AttributeList" |
| PICS: CC.S.A0038 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [56] |
| |
| - label: |
| "Step 4a10: TH reads the optional attribute(ColorPointBX) in |
| AttributeList" |
| PICS: CC.S.A003a |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [58] |
| |
| - label: |
| "Step 4a11: TH reads the optional attribute(ColorPointBY) in |
| AttributeList" |
| PICS: CC.S.A003b |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [59] |
| |
| - label: |
| "Step 4a12: TH reads the optional attribute(ColorPointBIntensity) in |
| AttributeList" |
| PICS: CC.S.A003c |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [60] |
| |
| - label: |
| "Step 4a13: TH reads feature dependent attribute (EnhancedCurrentHue) |
| in AttributeList" |
| PICS: CC.S.F01 && CC.S.A4000 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16384] |
| |
| - label: |
| "Step 4a14: TH reads feature dependent attribute (ColorLoopActive) in |
| AttributeList" |
| PICS: CC.S.F02 && CC.S.A4002 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16386] |
| |
| - label: |
| "Step 4a15: TH reads feature dependent attribute (ColorLoopDirection) |
| in AttributeList" |
| PICS: CC.S.F02 && CC.S.A4003 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16387] |
| |
| - label: |
| "Step 4a16: TH reads feature dependent attribute (ColorLoopTime) in |
| AttributeList" |
| PICS: CC.S.F02 && CC.S.A4004 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16388] |
| |
| - label: |
| "Step 4a17: TH reads feature dependent attribute |
| (ColorLoopStartEnhancedHue) in AttributeList" |
| PICS: CC.S.F02 && CC.S.A4005 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16389] |
| |
| - label: |
| "Step 4a18: TH reads feature dependent attribute |
| (ColorLoopStoredEnhancedHue) in AttributeList" |
| PICS: CC.S.F02 && CC.S.A4006 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16390] |
| |
| - label: |
| "Step 4a19: TH reads feature dependent attribute |
| (ColorTempPhysicalMinMireds) in AttributeList" |
| PICS: CC.S.F04 && CC.S.A400b |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16395] |
| |
| - label: |
| "Step 4a20: TH reads feature dependent attribute |
| (ColorTempPhysicalMaxMireds) in AttributeList" |
| PICS: CC.S.F04 && CC.S.A400c |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16396] |
| |
| - label: |
| "Step 4a21:TH reads feature dependent attribute |
| (CoupleColorTempToLevelMinMireds) in AttributeList" |
| PICS: CC.S.F04 && CC.S.A400d |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16397] |
| |
| - label: |
| "Step 4a22: TH reads feature dependent attribute |
| (StartUpColorTemperatureMireds) in AttributeList" |
| PICS: CC.S.F04 && CC.S.A4010 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [16400] |
| |
| - label: "Step 5: TH reads from the DUT the (0xFFFA) EventList attribute" |
| PICS: PICS_EVENT_LIST_ENABLED |
| command: "readAttribute" |
| attribute: "EventList" |
| response: |
| value: [] |
| constraints: |
| type: list |
| |
| - label: |
| "Step 6a: TH reads feature dependent command(MoveToHue) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C00.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [0] |
| |
| - label: |
| "Step 6b: TH reads feature dependent command(MoveHue) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C01.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [1] |
| |
| - label: |
| "Step 6c: TH reads feature dependent command(StepHue) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C02.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [2] |
| |
| - label: |
| "Step 6d: TH reads feature dependent command(MoveToSaturation) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C03.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [3] |
| |
| - label: |
| "Step 6e: TH reads feature dependent command(MoveSaturation) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C04.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [4] |
| |
| - label: |
| "Step 6f: TH reads feature dependent command(StepSaturation) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C05.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [5] |
| |
| - label: |
| "Step 6g: TH reads feature dependent command(MoveToHueAndSaturation) |
| in AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.C06.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [6] |
| |
| - label: |
| "Step 6h: TH reads feature dependent command(MoveToColor) in |
| AcceptedCommandList" |
| PICS: CC.S.F03 && CC.S.C07.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [7] |
| |
| - label: |
| "Step 6i: TH reads feature dependent command(MoveColor) in |
| AcceptedCommandList" |
| PICS: CC.S.F03 && CC.S.C08.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [8] |
| |
| - label: |
| "Step 6j: TH reads feature dependent command(StepColor) in |
| AcceptedCommandList" |
| PICS: CC.S.F03 && CC.S.C09.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [9] |
| |
| - label: |
| "Step 6k: TH reads feature dependent command(MoveToColorTemperature) |
| in AcceptedCommandList" |
| PICS: CC.S.F04 && CC.S.C0a.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [10] |
| |
| - label: |
| "Step 6l: TH reads feature dependent command(EnhancedMoveToHue) in |
| AcceptedCommandList" |
| PICS: CC.S.F01 && CC.S.C40.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [64] |
| |
| - label: |
| "Step 6m: TH reads feature dependent command(EnhancedMoveHue) in |
| AcceptedCommandList" |
| PICS: CC.S.F01 && CC.S.C41.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [65] |
| |
| - label: |
| "Step 6n: TH reads feature dependent command(EnhancedStepHue) in |
| AcceptedCommandList" |
| PICS: CC.S.F01 && CC.S.C42.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [66] |
| |
| - label: |
| "Step 6o:TH reads feature dependent |
| command(EnhancedMoveToHueAndSaturation) in AcceptedCommandList" |
| PICS: CC.S.F01 && CC.S.C43.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [67] |
| |
| - label: |
| "Step 6p: TH reads feature dependent command(ColorLoopSet) in |
| AcceptedCommandList" |
| PICS: CC.S.F02 && CC.S.C44.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [68] |
| |
| - label: |
| "Step 6q: TH reads feature dependent command(StopMoveStep) in |
| AcceptedCommandList" |
| PICS: CC.S.F00 && CC.S.F03 && CC.S.F04 && CC.S.C47.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [71] |
| |
| - label: |
| "Step 6r: TH reads feature dependent command(StopMoveStep) in |
| AcceptedCommandList" |
| PICS: CC.S.F04 && CC.S.C4b.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [75] |
| |
| - label: |
| "Step 6s: TH reads feature dependent command(StepColorTemperature) in |
| AcceptedCommandList" |
| PICS: CC.S.F04 && CC.S.C4c.Rsp |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [76] |
| |
| - label: |
| "Step 7: TH reads from the DUT the (0xFFF8) GeneratedCommandList |
| attribute" |
| command: "readAttribute" |
| attribute: "GeneratedCommandList" |
| response: |
| value: [] |
| constraints: |
| type: list |