| # 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: 42.1.1. [TC-TSTAT-1.1] Global attributes with server as DUT |
| |
| PICS: |
| - TSTAT.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Thermostat" |
| endpoint: 1 |
| |
| tests: |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: "Read the global attribute: ClusterRevision" |
| command: "readAttribute" |
| attribute: "ClusterRevision" |
| response: |
| value: 5 |
| constraints: |
| type: int16u |
| |
| - label: "Read the global attribute: FeatureMap" |
| PICS: |
| "!TSTAT.S.F00 && !TSTAT.S.F01 && !TSTAT.S.F02 && !TSTAT.S.F03 && |
| !TSTAT.S.F04 && !TSTAT.S.F05" |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| value: 0 |
| constraints: |
| type: bitmap32 |
| |
| - label: "Given TSTAT.S.F00(HEAT ensure featuremap has the correct bit set" |
| PICS: TSTAT.S.F00 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x1] |
| |
| - label: "Given TSTAT.S.F01(COOL) ensure featuremap has the correct bit set" |
| PICS: TSTAT.S.F01 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x2] |
| |
| - label: "Given TSTAT.S.F02(OCC) ensure featuremap has the correct bit set" |
| PICS: TSTAT.S.F02 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x4] |
| |
| - label: "Given TSTAT.S.F03(SCH) ensure featuremap has the correct bit set" |
| PICS: TSTAT.S.F03 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x8] |
| |
| - label: "Given TSTAT.S.F04(SB) ensure featuremap has the correct bit set" |
| PICS: TSTAT.S.F04 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x10] |
| |
| - label: "Given TSTAT.S.F05(AUTO) ensure featuremap has the correct bit set" |
| PICS: TSTAT.S.F05 |
| command: "readAttribute" |
| attribute: "FeatureMap" |
| response: |
| constraints: |
| type: bitmap32 |
| hasMasksSet: [0x20] |
| |
| - label: "Read the global attribute: AttributeList" |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [0, 27, 28, 65528, 65529, 65530, 65531, 65532, 65533] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F00(HEAT)) attribute in |
| AttributeList" |
| PICS: TSTAT.S.F00 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [18] |
| - label: |
| "Read the Feature dependent(TSTAT.S.F01(COOL)) attribute in |
| AttributeList" |
| PICS: TSTAT.S.F01 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [17] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F02(OCC)) attribute in |
| AttributeList" |
| PICS: TSTAT.S.F02 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [2] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F00(HEAT) & TSTAT.S.F02(OCC)) |
| attribute in AttributeList" |
| PICS: TSTAT.S.F00 && TSTAT.S.F02 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [20] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F01(COOL) & TSTAT.S.F02(OCC)) |
| attribute in AttributeList" |
| PICS: TSTAT.S.F01 && TSTAT.S.F02 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [19] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F05(AUTO)) attribute in |
| AttributeList" |
| PICS: TSTAT.S.F05 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [17, 18, 25] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F03(SCH)) attribute in |
| AttributeList" |
| PICS: TSTAT.S.F03 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [32, 33, 34] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F04(SB)) attribute in |
| AttributeList" |
| PICS: TSTAT.S.F04 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [52, 53, 54] |
| |
| - label: |
| "Read the Feature dependent(TSTAT.S.F04(SB) & TSTAT.S.F02(OCC)) |
| attribute in AttributeList" |
| PICS: TSTAT.S.F04 && TSTAT.S.F02 |
| command: "readAttribute" |
| attribute: "AttributeList" |
| response: |
| constraints: |
| type: list |
| contains: [55, 56, 57] |
| |
| - label: "Read the global attribute: AcceptedCommandList" |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [0] |
| |
| - label: |
| "Read Feature dependent(TSTAT.S.F03(SCH)) commands in |
| AcceptedCommandList" |
| PICS: TSTAT.S.F03 |
| command: "readAttribute" |
| attribute: "AcceptedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [0, 1, 2, 3] |
| |
| - label: "Read the global attribute: GeneratedCommandList" |
| PICS: " !TSTAT.S.C04.Rsp && !TSTAT.S.C02.Rsp " |
| command: "readAttribute" |
| attribute: "GeneratedCommandList" |
| response: |
| value: [] |
| constraints: |
| type: list |
| |
| - label: |
| "Read Feature dependent(TSTAT.S.F03(SCH)) commands in |
| GeneratedCommandList" |
| PICS: TSTAT.S.F03 |
| command: "readAttribute" |
| attribute: "GeneratedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [0] |
| |
| - label: |
| "Read optional command (GetRelayStatusLogResponse) in |
| GeneratedCommandList" |
| PICS: TSTAT.S.C04.Rsp |
| command: "readAttribute" |
| attribute: "GeneratedCommandList" |
| response: |
| constraints: |
| type: list |
| contains: [1] |
| |
| #Manufacturer specific event IDs check not possible |
| - label: |
| "Read EventList attribute from the DUT.For this cluster the list is |
| usually empty but it can contain manufacturer specific event IDs." |
| verification: | |
| ./chip-tool thermostat read event-list 1 1 |
| On TH(chip-tool), Verify that the DUT response provides a list of supported events. For this cluster the list is usually empty but it can contain manufacturer specific event IDs. |
| [1676466998.893033][29061:29063] CHIP:DMG: } |
| [1676466998.893114][29061:29063] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0201 Attribute 0x0000_FFFA DataVersion: 2603128677 |
| [1676466998.893155][29061:29063] CHIP:TOO: EventList: 0 entries |
| [1676466998.893209][29061:29063] CHIP:EM: <<< [E:35662i S:59401 M:190799889 (Ack:191492950)] (S) Msg TX to 1:0000000000000001 [3F11] --- Type 0000:10 (SecureChannel:StandaloneAck) |
| [1676466998.893221][29061:29063] CHIP:IN: (S) Sending msg 190799889 on secure session with LSID: 59401 |
| cluster: "LogCommands" |
| command: "UserPrompt" |
| PICS: PICS_USER_PROMPT |
| arguments: |
| values: |
| - name: "message" |
| value: "Please enter 'y' for success" |
| - name: "expectedValue" |
| value: "y" |