From 3fa6891c65ea938f41edd595cbbb2bfebb3862e4 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Fri, 28 Jul 2023 09:10:50 -0700 Subject: [PATCH] Enable missing attribute and events of Switch cluster in lightning app (#28227) * Enable missing attribute and events of Switch cluster in lightinhg app * Address review comments * Remove all *Press events --- .../lighting-app/lighting-common/lighting-app.matter | 1 + examples/lighting-app/lighting-common/lighting-app.zap | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index ea56e7d7138aa4..5899f6e6658f79 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -2354,6 +2354,7 @@ endpoint 0 { } server cluster Switch { + emits event SwitchLatched; ram attribute numberOfPositions default = 2; ram attribute currentPosition; ram attribute featureMap default = 0; diff --git a/examples/lighting-app/lighting-common/lighting-app.zap b/examples/lighting-app/lighting-common/lighting-app.zap index 8ca915a66c1a70..59133c8e15269e 100644 --- a/examples/lighting-app/lighting-common/lighting-app.zap +++ b/examples/lighting-app/lighting-common/lighting-app.zap @@ -4009,6 +4009,15 @@ "maxInterval": 65534, "reportableChange": 0 } + ], + "events": [ + { + "name": "SwitchLatched", + "code": 0, + "mfgCode": null, + "side": "server", + "included": 1 + } ] }, {