blob: ccdb8256d4aefdb69a2fa27cb639b576b47cbbf6 [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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
name: 22.6.3. [TC-LVL-8.1] Verification of commands (DUT as Client)
PICS:
- LVL.C
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"TH prompts the operator to make the DUT send one or more supported
commands from the Level Control cluster"
verification: |
./chip-tool levelcontrol move-to-level 125 10 0 0 1 1
Verify in TH all-clusters-app
[1657915209.151256][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915209.151306][3245:3245] CHIP:DMG: {
[1657915209.151348][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915209.151397][3245:3245] CHIP:DMG: timedRequest = false,
[1657915209.151441][3245:3245] CHIP:DMG: InvokeRequests =
[1657915209.151498][3245:3245] CHIP:DMG: [
[1657915209.151543][3245:3245] CHIP:DMG: CommandDataIB =
[1657915209.151594][3245:3245] CHIP:DMG: {
[1657915209.151642][3245:3245] CHIP:DMG: CommandPathIB =
[1657915209.151699][3245:3245] CHIP:DMG: {
[1657915209.151752][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915209.151814][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915209.151874][3245:3245] CHIP:DMG: CommandId = 0x0,
[1657915209.151929][3245:3245] CHIP:DMG: },
[1657915209.151993][3245:3245] CHIP:DMG:
[1657915209.152041][3245:3245] CHIP:DMG: CommandFields =
[1657915209.152128][3245:3245] CHIP:DMG: {
[1657915209.152190][3245:3245] CHIP:DMG: 0x0 = 125,
[1657915209.152251][3245:3245] CHIP:DMG: 0x1 = 10,
[1657915209.152311][3245:3245] CHIP:DMG: 0x2 = 0,
[1657915209.152370][3245:3245] CHIP:DMG: 0x3 = 0,
[1657915209.152424][3245:3245] CHIP:DMG: },
[1657915209.152474][3245:3245] CHIP:DMG: },
[1657915209.152530][3245:3245] CHIP:DMG:
[1657915209.152574][3245:3245] CHIP:DMG: ],
[1657915209.152630][3245:3245] CHIP:DMG:
[1657915209.152674][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915209.152717][3245:3245] CHIP:DMG: },
./chip-tool levelcontrol move 1 5 0 0 1 1
Verify in TH all-clusters-app
[1657915236.437571][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915236.437601][3245:3245] CHIP:DMG: {
[1657915236.437624][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915236.437658][3245:3245] CHIP:DMG: timedRequest = false,
[1657915236.437684][3245:3245] CHIP:DMG: InvokeRequests =
[1657915236.437719][3245:3245] CHIP:DMG: [
[1657915236.437747][3245:3245] CHIP:DMG: CommandDataIB =
[1657915236.437779][3245:3245] CHIP:DMG: {
[1657915236.437809][3245:3245] CHIP:DMG: CommandPathIB =
[1657915236.437842][3245:3245] CHIP:DMG: {
[1657915236.437876][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915236.437909][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915236.437942][3245:3245] CHIP:DMG: CommandId = 0x1,
[1657915236.437972][3245:3245] CHIP:DMG: },
[1657915236.438005][3245:3245] CHIP:DMG:
[1657915236.438035][3245:3245] CHIP:DMG: CommandFields =
[1657915236.438066][3245:3245] CHIP:DMG: {
[1657915236.438099][3245:3245] CHIP:DMG: 0x0 = 1,
[1657915236.438133][3245:3245] CHIP:DMG: 0x1 = 5,
[1657915236.438167][3245:3245] CHIP:DMG: 0x2 = 0,
[1657915236.438199][3245:3245] CHIP:DMG: 0x3 = 0,
[1657915236.438232][3245:3245] CHIP:DMG: },
[1657915236.438261][3245:3245] CHIP:DMG: },
[1657915236.438295][3245:3245] CHIP:DMG:
[1657915236.438321][3245:3245] CHIP:DMG: ],
[1657915236.438352][3245:3245] CHIP:DMG:
[1657915236.438376][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915236.438402][3245:3245] CHIP:DMG: },
./chip-tool levelcontrol step 1 10 0 0 1 1
Verify in TH all-clusters-app
[1657915270.774746][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915270.774833][3245:3245] CHIP:DMG: {
[1657915270.774859][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915270.774916][3245:3245] CHIP:DMG: timedRequest = false,
[1657915270.774947][3245:3245] CHIP:DMG: InvokeRequests =
[1657915270.774979][3245:3245] CHIP:DMG: [
[1657915270.775003][3245:3245] CHIP:DMG: CommandDataIB =
[1657915270.775035][3245:3245] CHIP:DMG: {
[1657915270.775064][3245:3245] CHIP:DMG: CommandPathIB =
[1657915270.775097][3245:3245] CHIP:DMG: {
[1657915270.775130][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915270.775164][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915270.775228][3245:3245] CHIP:DMG: CommandId = 0x2,
[1657915270.775266][3245:3245] CHIP:DMG: },
[1657915270.775300][3245:3245] CHIP:DMG:
[1657915270.775329][3245:3245] CHIP:DMG: CommandFields =
[1657915270.775360][3245:3245] CHIP:DMG: {
[1657915270.775394][3245:3245] CHIP:DMG: 0x0 = 1,
[1657915270.775427][3245:3245] CHIP:DMG: 0x1 = 10,
[1657915270.775461][3245:3245] CHIP:DMG: 0x2 = 20,
[1657915270.775494][3245:3245] CHIP:DMG: 0x3 = 0,
[1657915270.775527][3245:3245] CHIP:DMG: 0x4 = 0,
[1657915270.775587][3245:3245] CHIP:DMG: },
[1657915270.775619][3245:3245] CHIP:DMG: },
[1657915270.775653][3245:3245] CHIP:DMG:
[1657915270.775676][3245:3245] CHIP:DMG: ],
[1657915270.775708][3245:3245] CHIP:DMG:
[1657915270.775732][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915270.775755][3245:3245] CHIP:DMG: },
./chip-tool levelcontrol stop 0 0 1 1
Verify in TH all-clusters-app
[1657915273.417099][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915273.417157][3245:3245] CHIP:DMG: {
[1657915273.417205][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915273.417260][3245:3245] CHIP:DMG: timedRequest = false,
[1657915273.417311][3245:3245] CHIP:DMG: InvokeRequests =
[1657915273.417376][3245:3245] CHIP:DMG: [
[1657915273.417428][3245:3245] CHIP:DMG: CommandDataIB =
[1657915273.417484][3245:3245] CHIP:DMG: {
[1657915273.417545][3245:3245] CHIP:DMG: CommandPathIB =
[1657915273.417605][3245:3245] CHIP:DMG: {
[1657915273.417669][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915273.417739][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915273.417806][3245:3245] CHIP:DMG: CommandId = 0x3,
[1657915273.417871][3245:3245] CHIP:DMG: },
[1657915273.417934][3245:3245] CHIP:DMG:
[1657915273.417988][3245:3245] CHIP:DMG: CommandFields =
[1657915273.418051][3245:3245] CHIP:DMG: {
[1657915273.418117][3245:3245] CHIP:DMG: 0x0 = 0,
[1657915273.418185][3245:3245] CHIP:DMG: 0x1 = 0,
[1657915273.418246][3245:3245] CHIP:DMG: },
[1657915273.418298][3245:3245] CHIP:DMG: },
[1657915273.418327][3245:3245] CHIP:DMG:
[1657915273.418350][3245:3245] CHIP:DMG: ],
[1657915273.418380][3245:3245] CHIP:DMG:
[1657915273.418458][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915273.418483][3245:3245] CHIP:DMG: },
./chip-tool levelcontrol move-to-level-with-on-off 1 0 1 1
Verify in TH all-clusters-app
[1657915305.113831][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915305.113860][3245:3245] CHIP:DMG: {
[1657915305.113885][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915305.113913][3245:3245] CHIP:DMG: timedRequest = false,
[1657915305.113935][3245:3245] CHIP:DMG: InvokeRequests =
[1657915305.113963][3245:3245] CHIP:DMG: [
[1657915305.113985][3245:3245] CHIP:DMG: CommandDataIB =
[1657915305.114013][3245:3245] CHIP:DMG: {
[1657915305.114038][3245:3245] CHIP:DMG: CommandPathIB =
[1657915305.114072][3245:3245] CHIP:DMG: {
[1657915305.114105][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915305.114141][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915305.114177][3245:3245] CHIP:DMG: CommandId = 0x4,
[1657915305.114209][3245:3245] CHIP:DMG: },
[1657915305.114241][3245:3245] CHIP:DMG:
[1657915305.114268][3245:3245] CHIP:DMG: CommandFields =
[1657915305.114298][3245:3245] CHIP:DMG: {
[1657915305.114331][3245:3245] CHIP:DMG: 0x0 = 1,
[1657915305.114367][3245:3245] CHIP:DMG: 0x1 = 0,
[1657915305.114400][3245:3245] CHIP:DMG: },
[1657915305.114429][3245:3245] CHIP:DMG: },
[1657915305.114461][3245:3245] CHIP:DMG:
[1657915305.114484][3245:3245] CHIP:DMG: ],
[1657915305.114514][3245:3245] CHIP:DMG:
[1657915305.114538][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915305.114561][3245:3245] CHIP:DMG: },
[1657915305.114630][3245:3245] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0008 e=1 p=o
[1657915305.114670][3245:3245] CHIP:DMG: AccessControl: allowed
[1657915305.114699][3245:3245] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0008 Command=0x0000_0004
[1657915305.114732][3245:3245] CHIP:ZCL: 0xaaaabbef41a0MOVE_TO_LEVEL_WITH_ON_OFF 1 0
[1657915305.114768][3245:3245] CHIP:ZCL: Setting on/off to 0xaaaabbef4140 due to level change
[1657915305.114790][3245:3245] CHIP:ZCL: On/Off set value: 1 0
[1657915305.114811][3245:3245] CHIP:ZCL: On/off already set to new value
./chip-tool levelcontrol move-with-on-off 1 5 1 1
Verify in TH all-clusters-app
[1657915329.088787][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915329.088824][3245:3245] CHIP:DMG: {
[1657915329.088854][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915329.088890][3245:3245] CHIP:DMG: timedRequest = false,
[1657915329.088918][3245:3245] CHIP:DMG: InvokeRequests =
[1657915329.088975][3245:3245] CHIP:DMG: [
[1657915329.089009][3245:3245] CHIP:DMG: CommandDataIB =
[1657915329.089047][3245:3245] CHIP:DMG: {
[1657915329.089083][3245:3245] CHIP:DMG: CommandPathIB =
[1657915329.089127][3245:3245] CHIP:DMG: {
[1657915329.089172][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915329.089223][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915329.089272][3245:3245] CHIP:DMG: CommandId = 0x5,
[1657915329.089310][3245:3245] CHIP:DMG: },
[1657915329.089346][3245:3245] CHIP:DMG:
[1657915329.089380][3245:3245] CHIP:DMG: CommandFields =
[1657915329.089422][3245:3245] CHIP:DMG: {
[1657915329.089471][3245:3245] CHIP:DMG: 0x0 = 1,
[1657915329.089521][3245:3245] CHIP:DMG: 0x1 = 5,
[1657915329.089570][3245:3245] CHIP:DMG: },
[1657915329.089610][3245:3245] CHIP:DMG: },
[1657915329.089653][3245:3245] CHIP:DMG:
[1657915329.089694][3245:3245] CHIP:DMG: ],
[1657915329.089736][3245:3245] CHIP:DMG:
[1657915329.089769][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915329.089800][3245:3245] CHIP:DMG: },
[1657915329.089888][3245:3245] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0008 e=1 p=o
[1657915329.089937][3245:3245] CHIP:DMG: AccessControl: allowed
[1657915329.089975][3245:3245] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0008 Command=0x0000_0005
[1657915329.090018][3245:3245] CHIP:ZCL: 0xaaaabbef41a0MOVE_WITH_ON_OFF 1 5
[1657915329.090063][3245:3245] CHIP:ZCL: Setting on/off to 0xaaaabbef4140 due to level change
[1657915329.090104][3245:3245] CHIP:ZCL: On/Off set value: 1 0
[1657915329.090135][3245:3245] CHIP:ZCL: On/off already set to new value
./chip-tool levelcontrol step-with-on-off 1 15 123 1 1
Verify in TH all-clusters-app
[1657915396.576207][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915396.576236][3245:3245] CHIP:DMG: {
[1657915396.576255][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915396.576278][3245:3245] CHIP:DMG: timedRequest = false,
[1657915396.576298][3245:3245] CHIP:DMG: InvokeRequests =
[1657915396.576327][3245:3245] CHIP:DMG: [
[1657915396.576347][3245:3245] CHIP:DMG: CommandDataIB =
[1657915396.576371][3245:3245] CHIP:DMG: {
[1657915396.576392][3245:3245] CHIP:DMG: CommandPathIB =
[1657915396.576420][3245:3245] CHIP:DMG: {
[1657915396.576451][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915396.576488][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915396.576522][3245:3245] CHIP:DMG: CommandId = 0x6,
[1657915396.576554][3245:3245] CHIP:DMG: },
[1657915396.576587][3245:3245] CHIP:DMG:
[1657915396.576617][3245:3245] CHIP:DMG: CommandFields =
[1657915396.576647][3245:3245] CHIP:DMG: {
[1657915396.576678][3245:3245] CHIP:DMG: 0x0 = 1,
[1657915396.576704][3245:3245] CHIP:DMG: 0x1 = 15,
[1657915396.576741][3245:3245] CHIP:DMG: 0x2 = 123,
[1657915396.576774][3245:3245] CHIP:DMG: },
[1657915396.576804][3245:3245] CHIP:DMG: },
[1657915396.576835][3245:3245] CHIP:DMG:
[1657915396.576858][3245:3245] CHIP:DMG: ],
[1657915396.576889][3245:3245] CHIP:DMG:
[1657915396.576913][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915396.576935][3245:3245] CHIP:DMG: },
[1657915396.577006][3245:3245] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0008 e=1 p=o
[1657915396.577046][3245:3245] CHIP:DMG: AccessControl: allowed
[1657915396.577071][3245:3245] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0008 Command=0x0000_0006
[1657915396.577106][3245:3245] CHIP:ZCL: 0xaaaabbef41a0STEP_WITH_ON_OFF 1 f 7b
[1657915396.577142][3245:3245] CHIP:ZCL: Setting on/off to 0xaaaabbef4140 due to level change
[1657915396.577164][3245:3245] CHIP:ZCL: On/Off set value: 1 0
[1657915396.577186][3245:3245] CHIP:ZCL: On/off already set to new value
./chip-tool levelcontrol stop-with-on-off 1 1
Verify in TH all-clusters-app
[1657915357.332886][3245:3245] CHIP:DMG: InvokeRequestMessage =
[1657915357.332935][3245:3245] CHIP:DMG: {
[1657915357.332977][3245:3245] CHIP:DMG: suppressResponse = false,
[1657915357.333037][3245:3245] CHIP:DMG: timedRequest = false,
[1657915357.333083][3245:3245] CHIP:DMG: InvokeRequests =
[1657915357.333137][3245:3245] CHIP:DMG: [
[1657915357.333181][3245:3245] CHIP:DMG: CommandDataIB =
[1657915357.333230][3245:3245] CHIP:DMG: {
[1657915357.333277][3245:3245] CHIP:DMG: CommandPathIB =
[1657915357.333332][3245:3245] CHIP:DMG: {
[1657915357.333391][3245:3245] CHIP:DMG: EndpointId = 0x1,
[1657915357.333452][3245:3245] CHIP:DMG: ClusterId = 0x8,
[1657915357.333512][3245:3245] CHIP:DMG: CommandId = 0x7,
[1657915357.333569][3245:3245] CHIP:DMG: },
[1657915357.333635][3245:3245] CHIP:DMG:
[1657915357.333686][3245:3245] CHIP:DMG: CommandFields =
[1657915357.333742][3245:3245] CHIP:DMG: {
[1657915357.333784][3245:3245] CHIP:DMG: },
[1657915357.333812][3245:3245] CHIP:DMG: },
[1657915357.333840][3245:3245] CHIP:DMG:
[1657915357.333863][3245:3245] CHIP:DMG: ],
[1657915357.333947][3245:3245] CHIP:DMG:
[1657915357.333972][3245:3245] CHIP:DMG: InteractionModelRevision = 1
[1657915357.333995][3245:3245] CHIP:DMG: },
[1657915357.334059][3245:3245] CHIP:DMG: AccessControl: checking f=1 a=c s=0x000000000001B669 t= c=0x0000_0008 e=1 p=o
[1657915357.334094][3245:3245] CHIP:DMG: AccessControl: allowed
[1657915357.334121][3245:3245] CHIP:DMG: Received command for Endpoint=1 Cluster=0x0000_0008 Command=0x0000_0007
[1657915357.334150][3245:3245] CHIP:ZCL: 0xaaaabbef41a0STOP_WITH_ON_OFF
disabled: true