Skip to content

Commit 2226325

Browse files
yufengwangcapull[bot]
authored andcommitted
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
1 parent a5efd31 commit 2226325

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/lighting-app/lighting-common/lighting-app.matter

+1
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,7 @@ endpoint 0 {
23542354
}
23552355

23562356
server cluster Switch {
2357+
emits event SwitchLatched;
23572358
ram attribute numberOfPositions default = 2;
23582359
ram attribute currentPosition;
23592360
ram attribute featureMap default = 0;

examples/lighting-app/lighting-common/lighting-app.zap

+9
Original file line numberDiff line numberDiff line change
@@ -4009,6 +4009,15 @@
40094009
"maxInterval": 65534,
40104010
"reportableChange": 0
40114011
}
4012+
],
4013+
"events": [
4014+
{
4015+
"name": "SwitchLatched",
4016+
"code": 0,
4017+
"mfgCode": null,
4018+
"side": "server",
4019+
"included": 1
4020+
}
40124021
]
40134022
},
40144023
{

0 commit comments

Comments
 (0)