Skip to content

Commit

Permalink
Remove light switch from lighting-app (project-chip#15212)
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 15, 2022
1 parent 0a658b3 commit da7c5ce
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 625 deletions.
36 changes: 0 additions & 36 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -933,31 +933,6 @@ server cluster OccupancySensing = 1030 {
attribute(readonly) 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;
}

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

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

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

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

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

Loading

0 comments on commit da7c5ce

Please sign in to comment.