Skip to content

Commit

Permalink
Remove light switch from lighting-app (#15118)
Browse files Browse the repository at this point in the history
Endpoint 2 in lighting-app.zap is missing the descriptor cluster which
is mandatory.

Since the "light switch" sample is now available, presumably we don't
need a switch endpoint on the "light" samples, so remove it rather than
add the missing cluster.
  • Loading branch information
mspang authored Feb 17, 2022
1 parent 8efc370 commit 8be86c5
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 803 deletions.
58 changes: 0 additions & 58 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1146,53 +1146,6 @@ server cluster OccupancySensing = 1030 {
readonly global attribute int16u clusterRevision = 65533;
}

client cluster OnOff = 6 {
enum OnOffDelayedAllOffEffectVariant : enum8 {
kFadeToOffIn0p8Seconds = 0;
kNoFade = 1;
k50PercentDimDownIn0p8SecondsThenFadeToOffIn12Seconds = 2;
}

enum OnOffDyingLightEffectVariant : enum8 {
k20PercenterDimUpIn0p5SecondsThenFadeToOffIn1Second = 0;
}

enum OnOffEffectIdentifier : enum8 {
kDelayedAllOff = 0;
kDyingLight = 1;
}

bitmap OnOffControl : BITMAP8 {
kAcceptOnlyWhenOn = 0x1;
}

readonly attribute boolean onOff = 0;
readonly attribute boolean globalSceneControl = 16384;
attribute int16u onTime = 16385;
attribute int16u offWaitTime = 16386;
attribute enum8 startUpOnOff = 16387;
readonly global attribute bitmap32 featureMap = 65532;
readonly global attribute int16u clusterRevision = 65533;

request struct OffWithEffectRequest {
OnOffEffectIdentifier effectId = 0;
OnOffDelayedAllOffEffectVariant effectVariant = 1;
}

request struct OnWithTimedOffRequest {
OnOffControl onOffControl = 0;
int16u onTime = 1;
int16u offWaitTime = 2;
}

command Off(): DefaultSuccess = 0;
command OffWithEffect(OffWithEffectRequest): DefaultSuccess = 64;
command On(): DefaultSuccess = 1;
command OnWithRecallGlobalScene(): DefaultSuccess = 65;
command OnWithTimedOff(OnWithTimedOffRequest): DefaultSuccess = 66;
command Toggle(): DefaultSuccess = 2;
}

server cluster OnOff = 6 {
enum OnOffDelayedAllOffEffectVariant : enum8 {
kFadeToOffIn0p8Seconds = 0;
Expand Down Expand Up @@ -1240,12 +1193,6 @@ server cluster OnOff = 6 {
command Toggle(): DefaultSuccess = 2;
}

server cluster OnOffSwitchConfiguration = 7 {
readonly attribute enum8 switchType = 0;
attribute enum8 switchActions = 16;
readonly global attribute int16u clusterRevision = 65533;
}

server cluster OperationalCredentials = 62 {
enum OperationalCertStatus : ENUM8 {
kSuccess = 0;
Expand Down Expand Up @@ -1695,8 +1642,3 @@ endpoint 1 {
server cluster OnOff;
}

endpoint 2 {
binding cluster OnOff;
server cluster OnOffSwitchConfiguration;
}

Loading

0 comments on commit 8be86c5

Please sign in to comment.