Skip to content

Commit

Permalink
Change Lvl ctrl min level attribute default (#19312)
Browse files Browse the repository at this point in the history
* Set min_level to one for all lvl control cluster server with featuremap Lighting bit set

* regen

* Restyled by clang-format

* Fix chef app ci by running ./examples/chef/chef.py --generate_zzz locally

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Nov 29, 2023
1 parent a62ba14 commit 0b183f1
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4228,7 +4228,7 @@ endpoint 1 {
server cluster LevelControl {
persist attribute currentLevel default = 0xFE;
ram attribute remainingTime;
ram attribute minLevel;
ram attribute minLevel default = 0x01;
ram attribute maxLevel default = 0xFE;
ram attribute currentFrequency;
ram attribute minFrequency;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9701,7 +9701,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
2 changes: 1 addition & 1 deletion examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ endpoint 1 {
server cluster LevelControl {
persist attribute currentLevel;
ram attribute remainingTime;
ram attribute minLevel;
ram attribute minLevel default = 0x01;
ram attribute maxLevel default = 0xFE;
ram attribute currentFrequency;
ram attribute minFrequency;
Expand Down
2 changes: 1 addition & 1 deletion examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -4717,7 +4717,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
5 changes: 3 additions & 2 deletions examples/chef/devices/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -6208,7 +6208,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -7711,5 +7711,6 @@
"endpointVersion": 1,
"deviceIdentifier": 257
}
]
],
"log": []
}
2 changes: 1 addition & 1 deletion examples/chef/zzz_generated/lighting-app/INPUTMD5.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
65bbdbd4db827e5f72d20fb32eaae7c0
1e7c1687f9e61abc2eda4a689dfaabd4

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6399,7 +6399,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ endpoint 1 {
server cluster LevelControl {
persist attribute currentLevel default = 0x01;
ram attribute remainingTime;
ram attribute minLevel;
ram attribute minLevel default = 0x01;
ram attribute maxLevel default = 0xFE;
ram attribute currentFrequency;
ram attribute minFrequency;
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -6224,7 +6224,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
5 changes: 4 additions & 1 deletion src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ tests:
constraints:
type: uint16

# For lighting Device type current level minimal value is 1
- label: "Reads the MinLevel attribute"
command: "readAttribute"
attribute: "min level"
response:
value: 0
value: 1
constraints:
type: uint8
minValue: 0
maxValue: 1

- label: "Reads the MaxLevel attribute"
command: "readAttribute"
Expand Down
2 changes: 1 addition & 1 deletion src/controller/data_model/controller-clusters.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x01",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zzz_generated/bridge-app/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zzz_generated/lighting-app/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b183f1

Please sign in to comment.