Skip to content

Commit

Permalink
Enable missing attribute and events of Switch cluster in lightinhg app
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Jul 24, 2023
1 parent d328c30 commit 961bfdf
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,7 @@ server cluster Switch = 59 {

readonly attribute int8u numberOfPositions = 0;
readonly attribute int8u currentPosition = 1;
readonly attribute int8u multiPressMax = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down Expand Up @@ -2354,8 +2355,16 @@ endpoint 0 {
}

server cluster Switch {
emits event SwitchLatched;
emits event InitialPress;
emits event LongPress;
emits event ShortRelease;
emits event LongRelease;
emits event MultiPressOngoing;
emits event MultiPressComplete;
ram attribute numberOfPositions default = 2;
ram attribute currentPosition;
ram attribute multiPressMax default = 2;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
}
Expand Down
67 changes: 67 additions & 0 deletions examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3977,6 +3977,22 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "MultiPressMax",
"code": 2,
"mfgCode": null,
"side": "server",
"type": "int8u",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "FeatureMap",
"code": 65532,
Expand Down Expand Up @@ -4009,6 +4025,57 @@
"maxInterval": 65534,
"reportableChange": 0
}
],
"events": [
{
"name": "SwitchLatched",
"code": 0,
"mfgCode": null,
"side": "server",
"included": 1
},
{
"name": "InitialPress",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1
},
{
"name": "LongPress",
"code": 2,
"mfgCode": null,
"side": "server",
"included": 1
},
{
"name": "ShortRelease",
"code": 3,
"mfgCode": null,
"side": "server",
"included": 1
},
{
"name": "LongRelease",
"code": 4,
"mfgCode": null,
"side": "server",
"included": 1
},
{
"name": "MultiPressOngoing",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1
},
{
"name": "MultiPressComplete",
"code": 6,
"mfgCode": null,
"side": "server",
"included": 1
}
]
},
{
Expand Down

0 comments on commit 961bfdf

Please sign in to comment.