From 11379242d91f00c2a010b3e2c838fca111b8cb82 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Sat, 28 Jan 2023 15:21:00 +0100 Subject: [PATCH] [Barrier Control Cluster] Move related cluster/bitmaps/enums from silabs/types.xml and silabs/ha.xml to chip/barrier-control-cluster.xml (#24675) --- .github/workflows/tests.yaml | 1 + .../draft/barrier-control-cluster.xml | 78 +++++++++++++++++++ .../zcl/data-model/silabs/ha.xml | 30 ------- .../zcl/data-model/silabs/types-silabs.xml | 20 ----- .../zcl/zcl-with-test-extensions.json | 2 + src/app/zap-templates/zcl/zcl.json | 8 +- 6 files changed, 88 insertions(+), 51 deletions(-) create mode 100644 src/app/zap-templates/zcl/data-model/draft/barrier-control-cluster.xml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ee159f0e1ca11b..cebb51d5d4115d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -173,6 +173,7 @@ jobs: src/app/zap-templates/zcl/data-model/chip/wifi-network-diagnostics-cluster.xml \ src/app/zap-templates/zcl/data-model/chip/window-covering.xml \ src/app/zap-templates/zcl/data-model/chip/matter-devices.xml \ + src/app/zap-templates/zcl/data-model/draft/barrier-control-cluster.xml \ src/app/zap-templates/zcl/data-model/silabs/general.xml \ src/app/zap-templates/zcl/data-model/silabs/ha-devices.xml \ src/app/zap-templates/zcl/data-model/silabs/ha.xml \ diff --git a/src/app/zap-templates/zcl/data-model/draft/barrier-control-cluster.xml b/src/app/zap-templates/zcl/data-model/draft/barrier-control-cluster.xml new file mode 100644 index 00000000000000..08eda3b79ded15 --- /dev/null +++ b/src/app/zap-templates/zcl/data-model/draft/barrier-control-cluster.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Barrier Control + Closures + 0x0103 + BARRIER_CONTROL_CLUSTER + This cluster provides control of a barrier (garage door). + + true + true + + barrier moving state + barrier safety status + barrier capabilities + barrier open events + barrier close events + barrier command open events + barrier command close events + barrier open period + barrier close period + barrier position + + + + Command to instruct a barrier to go to a percent open state. + + + + + + + Command that instructs the barrier to stop moving. + + + + + diff --git a/src/app/zap-templates/zcl/data-model/silabs/ha.xml b/src/app/zap-templates/zcl/data-model/silabs/ha.xml index 5ce0fc850f7e47..f078db7c9cfe96 100644 --- a/src/app/zap-templates/zcl/data-model/silabs/ha.xml +++ b/src/app/zap-templates/zcl/data-model/silabs/ha.xml @@ -450,36 +450,6 @@ limitations under the License. - - Barrier Control - Closures - This cluster provides control of a barrier (garage door). - 0x0103 - BARRIER_CONTROL_CLUSTER - true - true - barrier moving state - barrier safety status - barrier capabilities - barrier open events - barrier close events - barrier command open events - barrier command close events - barrier open period - barrier close period - barrier position - - - Command to instruct a barrier to go to a percent open state. - - - - - - Command that instructs the barrier to stop moving. - - - Electrical Measurement Home Automation diff --git a/src/app/zap-templates/zcl/data-model/silabs/types-silabs.xml b/src/app/zap-templates/zcl/data-model/silabs/types-silabs.xml index 72438f4fe3f442..2e4bd0a1a8e92c 100644 --- a/src/app/zap-templates/zcl/data-model/silabs/types-silabs.xml +++ b/src/app/zap-templates/zcl/data-model/silabs/types-silabs.xml @@ -584,24 +584,4 @@ limitations under the License. - - - - - - - - - - - - - - - - - - - - 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 d762076f768186..d1b8fdab62f1de 100644 --- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json +++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json @@ -5,6 +5,7 @@ "xmlRoot": [ ".", "./data-model/chip/", + "./data-model/draft/", "./data-model/silabs/", "./data-model/test" ], @@ -19,6 +20,7 @@ "application-basic-cluster.xml", "application-launcher-cluster.xml", "audio-output-cluster.xml", + "barrier-control-cluster.xml", "basic-information-cluster.xml", "binding-cluster.xml", "boolean-state-cluster.xml", diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json index 70cee4d22de626..cb57b27930e0e5 100644 --- a/src/app/zap-templates/zcl/zcl.json +++ b/src/app/zap-templates/zcl/zcl.json @@ -2,7 +2,12 @@ "description": "Matter SDK ZCL data", "category": "matter", "version": 1, - "xmlRoot": [".", "./data-model/chip/", "./data-model/silabs/"], + "xmlRoot": [ + ".", + "./data-model/chip/", + "./data-model/draft/", + "./data-model/silabs/" + ], "_comment": "Ensure access-control-definitions.xml is first in xmlFile array", "xmlFile": [ "access-control-definitions.xml", @@ -14,6 +19,7 @@ "application-basic-cluster.xml", "application-launcher-cluster.xml", "audio-output-cluster.xml", + "barrier-control-cluster.xml", "basic-information-cluster.xml", "binding-cluster.xml", "boolean-state-cluster.xml",