From 1009080b6be7d8a1de2ff65858a8cd9c34f59a3c Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Sat, 28 Jan 2023 21:11:58 +0100 Subject: [PATCH] [cluster] Move Groups cluster to a dedicated file (#24716) --- .github/workflows/tests.yaml | 1 + scripts/rules.matterlint | 1 + .../yamltest_with_chip_repl_tester.py | 2 +- src/app/zap-templates/zcl/data-model/all.xml | 1 + .../zcl/data-model/chip/groups-cluster.xml | 115 ++++++++++++++++++ .../zcl/data-model/silabs/general.xml | 82 ------------- .../zcl/zcl-with-test-extensions.json | 1 + src/app/zap-templates/zcl/zcl.json | 1 + 8 files changed, 121 insertions(+), 83 deletions(-) create mode 100644 src/app/zap-templates/zcl/data-model/chip/groups-cluster.xml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8d0365846e86ab..f93450b811b651 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -136,6 +136,7 @@ jobs: src/app/zap-templates/zcl/data-model/chip/general-commissioning-cluster.xml \ src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml \ src/app/zap-templates/zcl/data-model/chip/global-attributes.xml \ + src/app/zap-templates/zcl/data-model/chip/groups-cluster.xml \ src/app/zap-templates/zcl/data-model/chip/group-key-mgmt-cluster.xml \ src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml \ src/app/zap-templates/zcl/data-model/chip/illuminance-measurement-cluster.xml \ diff --git a/scripts/rules.matterlint b/scripts/rules.matterlint index 958695dcb1310b..e6f8b537c6a689 100644 --- a/scripts/rules.matterlint +++ b/scripts/rules.matterlint @@ -27,6 +27,7 @@ load "../src/app/zap-templates/zcl/data-model/chip/flow-measurement-cluster.xml" load "../src/app/zap-templates/zcl/data-model/chip/general-commissioning-cluster.xml"; load "../src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml"; load "../src/app/zap-templates/zcl/data-model/chip/global-attributes.xml"; +load "../src/app/zap-templates/zcl/data-model/chip/groups-cluster.xml"; load "../src/app/zap-templates/zcl/data-model/chip/group-key-mgmt-cluster.xml"; load "../src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml"; load "../src/app/zap-templates/zcl/data-model/chip/illuminance-measurement-cluster.xml"; diff --git a/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py b/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py index e7e8085f238b67..2d375fa73d52ba 100644 --- a/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py +++ b/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py @@ -99,7 +99,7 @@ def _StackShutDown(): # Some still-silabs clusters _CLUSTER_XML_DIRECTORY_PATH + '/silabs/ha.xml', # For fan control - _CLUSTER_XML_DIRECTORY_PATH + '/silabs/general.xml', # For groups cluster + _CLUSTER_XML_DIRECTORY_PATH + '/silabs/general.xml', # For LevelControl cluster ]) # Parsing YAML test and setting up chip-repl yamltests runner. diff --git a/src/app/zap-templates/zcl/data-model/all.xml b/src/app/zap-templates/zcl/data-model/all.xml index 1f83150c6818e7..594a9b8ba60392 100644 --- a/src/app/zap-templates/zcl/data-model/all.xml +++ b/src/app/zap-templates/zcl/data-model/all.xml @@ -26,6 +26,7 @@ + diff --git a/src/app/zap-templates/zcl/data-model/chip/groups-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/groups-cluster.xml new file mode 100644 index 00000000000000..0478c0f9fa49ac --- /dev/null +++ b/src/app/zap-templates/zcl/data-model/chip/groups-cluster.xml @@ -0,0 +1,115 @@ + + + + + + + Groups + General + Attributes and commands for group configuration and manipulation. + 0x0004 + GROUPS_CLUSTER + + true + true + + + + NameSupport + + + + + Command description for AddGroup + + + + + + + + + Command description for ViewGroup + + + + + + + Command description for GetGroupMembership + + + + + + + Command description for RemoveGroup + + + + + + + + Command description for RemoveAllGroups + + + + + + + Command description for AddGroupIfIdentifying + + + + + + + + + Command description for AddGroupResponse + + + + + + + + Command description for ViewGroupResponse + + + + + + + + + Command description for GetGroupMembershipResponse + + + + + + + + Command description for RemoveGroupResponse + + + + + + diff --git a/src/app/zap-templates/zcl/data-model/silabs/general.xml b/src/app/zap-templates/zcl/data-model/silabs/general.xml index 95b2ba82a9c18a..def0ab75410a85 100644 --- a/src/app/zap-templates/zcl/data-model/silabs/general.xml +++ b/src/app/zap-templates/zcl/data-model/silabs/general.xml @@ -26,88 +26,6 @@ limitations under the License. - - Groups - General - Attributes and commands for group configuration and manipulation. - 0x0004 - GROUPS_CLUSTER - true - true - - NameSupport - - - - Command description for AddGroup - - - - - - - - Command description for ViewGroup - - - - - - Command description for GetGroupMembership - - - - - - Command description for RemoveGroup - - - - - - - Command description for RemoveAllGroups - - - - - - Command description for AddGroupIfIdentifying - - - - - - - - Command description for AddGroupResponse - - - - - - - Command description for ViewGroupResponse - - - - - - - - Command description for GetGroupMembershipResponse - - - - - - - Command description for RemoveGroupResponse - - - - - On/off Switch Configuration General diff --git a/src/app/zap-templates/zcl/zcl-with-test-extensions.json b/src/app/zap-templates/zcl/zcl-with-test-extensions.json index d1b8fdab62f1de..22488c9412ac7c 100644 --- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json +++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json @@ -41,6 +41,7 @@ "general-commissioning-cluster.xml", "general-diagnostics-cluster.xml", "global-attributes.xml", + "groups-cluster.xml", "group-key-mgmt-cluster.xml", "identify-cluster.xml", "illuminance-measurement-cluster.xml", diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json index cb57b27930e0e5..7ec85cc0b3174b 100644 --- a/src/app/zap-templates/zcl/zcl.json +++ b/src/app/zap-templates/zcl/zcl.json @@ -40,6 +40,7 @@ "general-commissioning-cluster.xml", "general-diagnostics-cluster.xml", "global-attributes.xml", + "groups-cluster.xml", "group-key-mgmt-cluster.xml", "identify-cluster.xml", "illuminance-measurement-cluster.xml",