blob: 3dcb35a1aa71e27de37574249fa9b88a3d260fbb [file] [log] [blame]
# 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: "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: ( !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: "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: "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: "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: "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: "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: "Read the global attribute: AttributeList"
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains:
[
8,
15,
16385,
16394,
65528,
65529,
65530,
65531,
65532,
65533,
]
- label: "Read the optional attribute(CurrentHue) in AttributeList"
PICS: CC.S.A0000
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0]
- label: "Read the optional attribute(CurrentSaturation) in AttributeList"
PICS: CC.S.A0001
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [1]
- label: "Read the optional attribute(RemainingTime) in AttributeList"
PICS: CC.S.A0002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [2]
- label: "Read the optional attribute(CurrentX) in AttributeList"
PICS: CC.S.A0003
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [3]
- label: "Read the optional attribute(CurrentY) in AttributeList"
PICS: CC.S.A0004
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [4]
- label: "Read the optional attribute(DriftCompensation) in AttributeList"
PICS: CC.S.A0005
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [5]
- label: "Read the optional attribute(CompensationText) in AttributeList"
PICS: CC.S.A0006
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [6]
- label:
"Read the optional attribute(ColorTemperatureMireds) in AttributeList"
PICS: CC.S.A0007
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [7]
- label: "Read the optional attribute(NumberOfPrimaries) in AttributeList"
PICS: CC.S.A0010
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16]
- label: "Read the optional attribute(Primary1X) in AttributeList"
PICS: CC.S.A0011
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [17]
- label: "Read the optional attribute(Primary1Y) in AttributeList"
PICS: CC.S.A0012
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [18]
- label: "Read the optional attribute(Primary1Intensity) in AttributeList"
PICS: CC.S.A0013
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [19]
- label: "Read the optional attribute(Primary2X) in AttributeList"
PICS: CC.S.A0015
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [21]
- label: "Read the optional attribute(Primary2Y) in AttributeList"
PICS: CC.S.A0016
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [22]
- label: "Read the optional attribute(Primary2Intensity) in AttributeList"
PICS: CC.S.A0017
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [23]
- label: "Read the optional attribute(Primary3X) in AttributeList"
PICS: CC.S.A0019
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [25]
- label: "Read the optional attribute(Primary3Y) in AttributeList"
PICS: CC.S.A001a
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [26]
- label: "Read the optional attribute(Primary3Intensity) in AttributeList"
PICS: CC.S.A001b
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [27]
- label: "Read the optional attribute(Primary4X) in AttributeList"
PICS: CC.S.A0020
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [32]
- label: "Read the optional attribute(Primary4Y) in AttributeList"
PICS: CC.S.A0021
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [33]
- label: "Read the optional attribute(Primary4Intensity) in AttributeList"
PICS: CC.S.A0022
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [34]
- label: "Read the optional attribute(Primary5X) in AttributeList"
PICS: CC.S.A0024
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [36]
- label: "Read the optional attribute(Primary5Y) in AttributeList"
PICS: CC.S.A0025
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [37]
- label: "Read the optional attribute(Primary5Intensity) in AttributeList"
PICS: CC.S.A0026
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [38]
- label: "Read the optional attribute(Primary6X) in AttributeList"
PICS: CC.S.A0028
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [40]
- label: "Read the optional attribute(Primary6Y) in AttributeList"
PICS: CC.S.A0029
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [41]
- label: "Read the optional attribute(Primary6Intensity) in AttributeList"
PICS: CC.S.A002a
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [42]
- label: "Read the optional attribute(WhitePointX) in AttributeList"
PICS: CC.S.A0030
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [48]
- label: "Read the optional attribute(WhitePointY) in AttributeList"
PICS: CC.S.A0031
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [49]
- label: "Read the optional attribute(ColorPointRX) in AttributeList"
PICS: CC.S.A0032
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [50]
- label: "Read the optional attribute(ColorPointRY) in AttributeList"
PICS: CC.S.A0033
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [51]
- label:
"Read the optional attribute(ColorPointRIntensity) in AttributeList"
PICS: CC.S.A0034
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [52]
- label: "Read the optional attribute(ColorPointGX) in AttributeList"
PICS: CC.S.A0036
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [54]
- label: "Read the optional attribute(ColorPointGY) in AttributeList"
PICS: CC.S.A0037
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [55]
- label:
"Read the optional attribute(ColorPointGIntensity) in AttributeList"
PICS: CC.S.A0038
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [56]
- label: "Read the optional attribute(ColorPointBX) in AttributeList"
PICS: CC.S.A003a
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [58]
- label: "Read the optional attribute(ColorPointBY) in AttributeList"
PICS: CC.S.A003b
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [59]
- label:
"Read the optional attribute(ColorPointBIntensity) in AttributeList"
PICS: CC.S.A003c
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [60]
- label: "Read the optional attribute(EnhancedCurrentHue) in AttributeList"
PICS: CC.S.A4000
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16384]
- label: "Read the optional attribute(ColorLoopActive) in AttributeList"
PICS: CC.S.A4002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16386]
- label: "Read the optional attribute(ColorLoopDirection) in AttributeList"
PICS: CC.S.A4003
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16387]
- label: "Read the optional attribute(ColorLoopTime) in AttributeList"
PICS: CC.S.A4004
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16388]
- label:
"Read the optional attribute(ColorLoopStartEnhancedHue) in
AttributeList"
PICS: CC.S.A4005
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16389]
- label:
"Read the optional attribute(ColorLoopStoredEnhancedHue) in
AttributeList"
PICS: CC.S.A4006
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16390]
- label:
"Read the optional attribute(ColorTempPhysicalMinMireds) in
AttributeList"
PICS: CC.S.A400b
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16395]
- label:
"Read the optional attribute(ColorTempPhysicalMaxMireds) in
AttributeList"
PICS: CC.S.A400c
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16396]
- label:
"Read the optional attribute(CoupleColorTempToLevelMinMireds) in
AttributeList"
PICS: CC.S.A400d
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16397]
- label:
"Read the optional attribute(StartUpColorTemperatureMireds) in
AttributeList"
PICS: CC.S.A4010
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [16400]
- label: "Read the global attribute: EventList"
command: "readAttribute"
attribute: "EventList"
response:
value: []
constraints:
type: list
- label: "Read the optional command(MoveToHue) in AcceptedCommandList"
PICS: CC.S.C00.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]
- label: "Read the optional command(MoveHue) in AcceptedCommandList"
PICS: CC.S.C01.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [1]
- label: "Read the optional command(StepHue) in AcceptedCommandList"
PICS: CC.S.C02.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [2]
- label:
"Read the optional command(MoveToSaturation) in AcceptedCommandList"
PICS: CC.S.C03.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [3]
- label: "Read the optional command(MoveSaturation) in AcceptedCommandList"
PICS: CC.S.C04.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [4]
- label: "Read the optional command(StepSaturation) in AcceptedCommandList"
PICS: CC.S.C05.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [5]
- label:
"Read the optional command(MoveToHueAndSaturation) in
AcceptedCommandList"
PICS: CC.S.C06.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [6]
- label: "Read the optional command(MoveToColor) in AcceptedCommandList"
PICS: CC.S.C07.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [7]
- label: "Read the optional command(MoveColor) in AcceptedCommandList"
PICS: CC.S.C08.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [8]
- label: "Read the optional command(StepColor) in AcceptedCommandList"
PICS: CC.S.C09.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [9]
- label:
"Read the optional command(MoveToColorTemperature) in
AcceptedCommandList"
PICS: CC.S.C0a.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [10]
- label:
"Read the optional command(EnhancedMoveToHue) in AcceptedCommandList"
PICS: CC.S.C40.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [64]
- label: "Read the optional command(EnhancedMoveHue) in AcceptedCommandList"
PICS: CC.S.C41.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [65]
- label: "Read the optional command(EnhancedStepHue) in AcceptedCommandList"
PICS: CC.S.C42.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [66]
- label:
"Read the optional command(EnhancedMoveToHueAndSaturation) in
AcceptedCommandList"
PICS: CC.S.C43.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [67]
- label: "Read the optional command(ColorLoopSet) in AcceptedCommandList"
PICS: CC.S.C44.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [68]
- label: "Read the optional command(StopMoveStep) in AcceptedCommandList"
PICS: CC.S.C47.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [71]
- label:
"Read the optional command(MoveColorTemperature) in
AcceptedCommandList"
PICS: CC.S.C4b.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [75]
- label:
"Read the optional command(StepColorTemperature) in
AcceptedCommandList"
PICS: CC.S.C4c.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [76]
- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list