@@ -431,6 +431,21 @@ tests:
431
431
- name : " SceneID"
432
432
value : 0x01
433
433
434
+ - label :
435
+ " Step 4e: TH sends a RecallScene command to DUT with the GroupID field
436
+ set to GI (Where GI is a group currently absent from the group table)
437
+ and the SceneID field set to 0x01."
438
+ PICS : S.S.C05.Rsp
439
+ command : " RecallScene"
440
+ arguments :
441
+ values :
442
+ - name : " GroupID"
443
+ value : GI
444
+ - name : " SceneID"
445
+ value : 0x01
446
+ response :
447
+ error : INVALID_COMMAND
448
+
434
449
- label :
435
450
" Step 5a: TH sends a ViewScene command to DUT with the GroupID field
436
451
set to G1 and the SceneID field set to 0x01."
@@ -773,6 +788,150 @@ tests:
773
788
- name : " SceneID"
774
789
value : 0x01
775
790
791
+ - label :
792
+ " Step 8f: TH sends a AddScene command to DUT with the GroupID field
793
+ set to G1, the SceneID field set to 0x01, the TransitionTime field set
794
+ to 1000 (1s) and extension field sets holding an invalid
795
+ ExtensionField (Invalid attribute ID for given cluster). This should
796
+ fail and return a status of 0x85 (INVALID_COMMAND)."
797
+ PICS : S.S.C00.Rsp && PICS_SDK_CI_ONLY
798
+ command : " AddScene"
799
+ arguments :
800
+ values :
801
+ - name : " GroupID"
802
+ value : G1
803
+ - name : " SceneID"
804
+ value : 0x01
805
+ - name : " TransitionTime"
806
+ value : 1000
807
+ - name : " SceneName"
808
+ value : " Scene1"
809
+ - name : " ExtensionFieldSets"
810
+ value :
811
+ [
812
+ {
813
+ ClusterID : 0x0006,
814
+ AttributeValueList :
815
+ [{ AttributeID : 0xFFFF, AttributeValue: 0x01 }],
816
+ },
817
+ ]
818
+ response :
819
+ values :
820
+ - name : " Status"
821
+ value : 0x85
822
+ - name : " GroupID"
823
+ value : G1
824
+ - name : " SceneID"
825
+ value : 0x01
826
+
827
+ - label :
828
+ " Step 8f: TH sends a AddScene command to DUT with the GroupID field
829
+ set to G1, the SceneID field set to 0x01, the TransitionTime field set
830
+ to 1000 (1s) and extension field sets holding an invalid
831
+ ExtensionField (Invalid attribute ID for given cluster). This should
832
+ fail and return a status of 0x85 (INVALID_COMMAND)."
833
+ verification : |
834
+ ./chip-tool scenesmanagement add-scene 0x0001 0x01 1000 "scene name" '[{"clusterID": "0x006", "attributeValueList":[{"attributeID": "0xFFFF", "attributeValue": "0x01"}]}]' 1 1
835
+
836
+ Verify DUT sends a AddSceneResponse command to TH with the Status field set to 0x85 (INVALID_COMMAND), the GroupID field set to G1 and the SceneID field set to 0x01 on the TH(Chip-tool)
837
+ Log and below is the sample log provided for the raspi platform:
838
+
839
+ [1706763610.675038][4232:4234] CHIP:DMG: },
840
+ [1706763610.675108][4232:4234] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0000
841
+ [1706763610.675134][4232:4234] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0000
842
+ [1706763610.675187][4232:4234] CHIP:TOO: AddSceneResponse: {
843
+ [1706763610.675215][4232:4234] CHIP:TOO: status: 133
844
+ [1706763610.675229][4232:4234] CHIP:TOO: groupID: 1
845
+ [1706763610.675244][4232:4234] CHIP:TOO: sceneID: 1
846
+ [1706763610.675258][4232:4234] CHIP:TOO: }
847
+ cluster : " LogCommands"
848
+ command : " UserPrompt"
849
+ PICS : PICS_SKIP_SAMPLE_APP
850
+ arguments :
851
+ values :
852
+ - name : " message"
853
+ value :
854
+ " Please execute the add scene command with an invalid
855
+ extensionfieldsets due to an Attribute not existing on a
856
+ cluster on DUT and enter 'y' if the command returned a
857
+ status of 0x85 (INVALID_COMMAND)"
858
+ - name : " expectedValue"
859
+ value : " y"
860
+
861
+ - label :
862
+ " Step 8g: TH sends a AddScene command to DUT with the GroupID field
863
+ set to G1, the SceneID field set to 0x01, the TransitionTime field set
864
+ to 1000 (1s) and extension field sets holding an invalid
865
+ ExtensionField (Unscenable attribute ID for given cluster). This
866
+ should fail and return a status of 0x85 (INVALID_COMMAND)."
867
+ # # TODO: Enable once scenability check is possible, see issue: https://github.com/project-chip/connectedhomeip/issues/24177
868
+ PICS : S.S.C00.Rsp && PICS_SDK_CI_ONLY
869
+ command : " AddScene"
870
+ arguments :
871
+ values :
872
+ - name : " GroupID"
873
+ value : G1
874
+ - name : " SceneID"
875
+ value : 0x01
876
+ - name : " TransitionTime"
877
+ value : 1000
878
+ - name : " SceneName"
879
+ value : " Scene1"
880
+ - name : " ExtensionFieldSets"
881
+ value :
882
+ [
883
+ {
884
+ ClusterID : 0x0006,
885
+ AttributeValueList :
886
+ [{ AttributeID : 0x4001, AttributeValue: 0x01 }],
887
+ },
888
+ ]
889
+ response :
890
+ values :
891
+ - name : " Status"
892
+ value : 0x85
893
+ - name : " GroupID"
894
+ value : G1
895
+ - name : " SceneID"
896
+ value : 0x01
897
+ disabled : true
898
+
899
+ - label :
900
+ " Step 8g: TH sends a AddScene command to DUT with the GroupID field
901
+ set to G1, the SceneID field set to 0x01, the TransitionTime field set
902
+ to 1000 (1s) and extension field sets holding an invalid
903
+ ExtensionField (Unscenable attribute ID for given cluster). This
904
+ should fail and return a status of 0x85 (INVALID_COMMAND)."
905
+ # # TODO: Enable once scenability check is possible, see issue: https://github.com/project-chip/connectedhomeip/issues/24177
906
+ verification : |
907
+ ./chip-tool scenesmanagement add-scene 0x0001 0x01 1000 "scene name" '[{"clusterID": "0x006", "attributeValueList":[{"attributeID": "0x4001", "attributeValue": "0x01"}]}]' 1 1
908
+
909
+ Verify DUT sends a AddSceneResponse command to TH with the Status field set to 0x85 (INVALID_COMMAND), the GroupID field set to G1 and the SceneID field set to 0x01 on the TH(Chip-tool)
910
+ Log and below is the sample log provided for the raspi platform:
911
+
912
+ [1706763610.675038][4232:4234] CHIP:DMG: },
913
+ [1706763610.675108][4232:4234] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0000
914
+ [1706763610.675134][4232:4234] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0000
915
+ [1706763610.675187][4232:4234] CHIP:TOO: AddSceneResponse: {
916
+ [1706763610.675215][4232:4234] CHIP:TOO: status: 133
917
+ [1706763610.675229][4232:4234] CHIP:TOO: groupID: 1
918
+ [1706763610.675244][4232:4234] CHIP:TOO: sceneID: 1
919
+ [1706763610.675258][4232:4234] CHIP:TOO: }
920
+ cluster : " LogCommands"
921
+ command : " UserPrompt"
922
+ PICS : PICS_SKIP_SAMPLE_APP
923
+ arguments :
924
+ values :
925
+ - name : " message"
926
+ value :
927
+ " Please execute the add scene command with an invalid
928
+ extensionfieldsets due to a non sceneable attribute not in
929
+ an extensionfieldset on DUT and enter 'y' if the command
930
+ returned a status of 0x85 (INVALID_COMMAND)"
931
+ - name : " expectedValue"
932
+ value : " y"
933
+ disabled : true
934
+
776
935
- label :
777
936
" Step 9a: TH sends a RemoveScene command to DUT with the GroupID field
778
937
set to G1 and the SceneID field set to 0x01."
0 commit comments