From cb9a389aa4f4ed266429717f18847a3330eb5af5 Mon Sep 17 00:00:00 2001 From: Moises Terrones Date: Thu, 6 Mar 2025 23:46:34 +0000 Subject: [PATCH 1/2] Generate occupancySensing cluster with Alchemy --- .../chip/occupancy-sensing-cluster.xml | 139 ++++++++---------- 1 file changed, 60 insertions(+), 79 deletions(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml index 414eb2c287e5e7..13816527fa503d 100644 --- a/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml @@ -1,6 +1,6 @@ - + + - @@ -38,10 +43,11 @@ limitations under the License. - - - - + + + + + @@ -50,69 +56,52 @@ limitations under the License. The server cluster provides an interface to occupancy sensing functionality based on one or more sensing modalities, including configuration and provision of notifications of occupancy status. 0x0406 OCCUPANCY_SENSING_CLUSTER - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - true true - - - - - - - - - - - - - - - - - - - + Occupancy + OccupancySensorType + OccupancySensorTypeBitmap + + HoldTime - + HoldTimeLimits - - - + + PIROccupiedToUnoccupiedDelay @@ -136,10 +125,9 @@ limitations under the License. - - - + + PIRUnoccupiedToOccupiedDelay @@ -185,10 +173,9 @@ limitations under the License. - - + PIRUnoccupiedToOccupiedThreshold @@ -234,10 +221,9 @@ limitations under the License. - - - + + UltrasonicOccupiedToUnoccupiedDelay @@ -248,10 +234,9 @@ limitations under the License. - - - + + UltrasonicUnoccupiedToOccupiedDelay @@ -269,10 +254,9 @@ limitations under the License. - - + UltrasonicUnoccupiedToOccupiedThreshold @@ -290,10 +274,9 @@ limitations under the License. - - - + + PhysicalContactOccupiedToUnoccupiedDelay @@ -304,10 +287,9 @@ limitations under the License. - - - + + PhysicalContactUnoccupiedToOccupiedDelay @@ -325,10 +307,9 @@ limitations under the License. - - + PhysicalContactUnoccupiedToOccupiedThreshold @@ -346,11 +327,11 @@ limitations under the License. - If this event is supported, it SHALL be generated when the Occupancy attribute changes. - + + From 53417f4656d54e9f6822cb88d0353ae7c31a8230 Mon Sep 17 00:00:00 2001 From: Moises Terrones Date: Mon, 10 Mar 2025 23:55:30 +0000 Subject: [PATCH 2/2] Generate XML using latest Alchemy version --- .../chip/occupancy-sensing-cluster.xml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml index 13816527fa503d..0f4d7c1d91064b 100644 --- a/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml @@ -85,23 +85,20 @@ Git: true true - Occupancy - OccupancySensorType - OccupancySensorTypeBitmap + + + - HoldTime - HoldTimeLimits - PIROccupiedToUnoccupiedDelay @@ -127,7 +124,6 @@ Git: - PIRUnoccupiedToOccupiedDelay @@ -175,7 +171,6 @@ Git: - PIRUnoccupiedToOccupiedThreshold @@ -223,7 +218,6 @@ Git: - UltrasonicOccupiedToUnoccupiedDelay @@ -236,7 +230,6 @@ Git: - UltrasonicUnoccupiedToOccupiedDelay @@ -256,7 +249,6 @@ Git: - UltrasonicUnoccupiedToOccupiedThreshold @@ -276,7 +268,6 @@ Git: - PhysicalContactOccupiedToUnoccupiedDelay @@ -289,7 +280,6 @@ Git: - PhysicalContactUnoccupiedToOccupiedDelay @@ -309,7 +299,6 @@ Git: - PhysicalContactUnoccupiedToOccupiedThreshold