Skip to content

Commit

Permalink
Move OnOff cluster to match the spec (#29946)
Browse files Browse the repository at this point in the history
* Match onoff naming to spec

* Zap regen

* Minor change to re-kick CI

* Undo the rename of Behaviour

* Bump OnOff revision to 6 (add off only feature)

---------

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Nov 29, 2023
1 parent 45f9a3f commit 4237395
Show file tree
Hide file tree
Showing 42 changed files with 72 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ client cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -334,7 +335,7 @@ client cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down Expand Up @@ -383,6 +384,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -403,7 +405,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -289,7 +290,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
1 change: 1 addition & 0 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
1 change: 1 addition & 0 deletions examples/chef/devices/rootnode_onofflight_samplemei.matter
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ client cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -156,7 +157,7 @@ client cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down Expand Up @@ -205,6 +206,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
1 change: 1 addition & 0 deletions examples/chef/devices/rootnode_pump_5f904818cc.matter
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
1 change: 1 addition & 0 deletions examples/chef/devices/rootnode_pump_a811bb33a0.matter
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
1 change: 1 addition & 0 deletions examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ client cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -392,7 +393,7 @@ client cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
3 changes: 2 additions & 1 deletion examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -313,7 +314,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
3 changes: 2 additions & 1 deletion examples/lighting-app/nxp/zap/lighting-on-off.matter
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
3 changes: 2 additions & 1 deletion examples/lighting-app/qpg/zap/light.matter
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -334,7 +335,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -313,7 +314,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
1 change: 1 addition & 0 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ server cluster OnOff = 6 {
bitmap Feature : bitmap32 {
kLighting = 0x1;
kDeadFrontBehavior = 0x2;
kOffOnly = 0x4;
}

bitmap OnOffControlBitmap : bitmap8 {
Expand All @@ -162,7 +163,7 @@ server cluster OnOff = 6 {

request struct OffWithEffectRequest {
EffectIdentifierEnum effectIdentifier = 0;
int8u effectVariant = 1;
enum8 effectVariant = 1;
}

request struct OnWithTimedOffRequest {
Expand Down
Loading

0 comments on commit 4237395

Please sign in to comment.