Commit 5d75611
Convert
* Rename boolean state configuration cluster, prepare for code
driven cluster conversion.
* Restyle
* Initial changes - code compiles but has no functionality yet.
* Start with some implementation logic. Not usable yet, however a start.
Need to figure out API still. The interaction between alarms is odd.
* Significant update to implementat: all implemented EXCEPT startup...
* Startup values. Cluster should be more complete now...
* Restyle
* Update callback only attributes for boolean state configuration cluster.
* Restyle
* Fix return value for invalid state.
* Another logic bug fix.
* Start adding tests.
* More tests.
* More tests - we now test accepted commands too.
* Fix include path.
* Undo addition of extra file.
* OOps ... replace a max with a min.
* Fix another typo.
* Restyle.
* Remove redundant using namespace.
* Zap regen.
* Update based on LLM feedback.
* Minor edits.
* Fix cast error and add a comment.
* Update the global attribute validation and make use of it for attribute
list.
* Update ValidateGlobalAttributes and make use of them.
* Clean up comments for global attribute validation.
* Update src/app/clusters/boolean-state-configuration-server/boolean-state-configuration-cluster.cpp
Co-authored-by: Zaid Omer <[email protected]>
* Use a single attribute member in the constructor to define the real
enabled optional attributes.
* Restyle
* Update src/app/clusters/boolean-state-configuration-server/boolean-state-configuration-cluster.cpp
Co-authored-by: Boris Zbarsky <[email protected]>
* Remove some chip prefixes.
* For events, replace `Emit` with `Generate`
* Update src/app/clusters/boolean-state-configuration-server/boolean-state-configuration-cluster.cpp
Co-authored-by: Sergio Soares <[email protected]>
* Zap regen, update headers.
* Fix extra using argument.
* Add more tests for sensitivity level clamping and logic.
* zap regen (to restyle)
* Fix a bit of a test logic.
* Some comment updates.
* One more comment updated.
* Fix exclusions for SafeAttributePersistenceProvider.
* Update src/app/clusters/boolean-state-configuration-server/CodegenIntegration.h
Co-authored-by: Copilot <[email protected]>
* Update src/app/clusters/boolean-state-configuration-server/app_config_dependent_sources.cmake
Co-authored-by: Copilot <[email protected]>
* Add extra validation based on code review.
* Restyled by clang-format
* Add persistence for mEnabledAlarms.
* Tests update and it works.
* Remove useless variable.
* Replace With to Add for alarms supported, since these are cummulative.
Otherwise LLMs get confused.
* Use a return safely ignored macro.
* Decided to use 'temporary' because this does not feel right.
* Add support to writing to the sensor fault attribute (which was NOT done
in previous code...)
* Only report sensor fault if that attribute is desirable.
* Keep backwards compatibility naming.
* Add a default value to variables, so that tidy stops complaining.
* More defaults set.
* Updated based on code review:
- added getters
- added delegate call to notify of attributes changed.
* Fix includes.
* Restyled by clang-format
* Update src/app/clusters/boolean-state-configuration-server/boolean-state-configuration-cluster.h
Co-authored-by: Copilot <[email protected]>
* Add readme and update with some API docs.
* Remove duplicated text.
---------
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Zaid Omer <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Sergio Soares <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Restyled.io <[email protected]>Boolean State Configuration to code driven (project-chip#41849)1 parent 63c8f9f commit 5d75611
File tree
31 files changed
+1290
-778
lines changed- examples
- all-clusters-app
- all-clusters-common
- realtek/data_model
- chef/devices
- water-leak-detector-app/water-leak-detector-common
- scripts
- tools/zap/tests/outputs/all-clusters-app/app-templates
- src
- app
- clusters
- boolean-state-configuration-server
- tests
- testing
- common/templates
- zap-templates/zcl
- zzz_generated/app-common/app-common/zap-generated
- attributes
31 files changed
+1290
-778
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8610 | 8610 | | |
8611 | 8611 | | |
8612 | 8612 | | |
8613 | | - | |
8614 | | - | |
8615 | | - | |
| 8613 | + | |
| 8614 | + | |
| 8615 | + | |
8616 | 8616 | | |
8617 | | - | |
| 8617 | + | |
8618 | 8618 | | |
8619 | 8619 | | |
8620 | 8620 | | |
8621 | 8621 | | |
8622 | | - | |
| 8622 | + | |
8623 | 8623 | | |
8624 | 8624 | | |
8625 | 8625 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8791 | 8791 | | |
8792 | 8792 | | |
8793 | 8793 | | |
8794 | | - | |
8795 | | - | |
8796 | | - | |
| 8794 | + | |
| 8795 | + | |
| 8796 | + | |
8797 | 8797 | | |
8798 | | - | |
| 8798 | + | |
8799 | 8799 | | |
8800 | 8800 | | |
8801 | 8801 | | |
8802 | 8802 | | |
8803 | | - | |
| 8803 | + | |
8804 | 8804 | | |
8805 | 8805 | | |
8806 | 8806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1968 | 1968 | | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | | - | |
| 1971 | + | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | 1974 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1968 | 1968 | | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | | - | |
| 1971 | + | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | 1974 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
2069 | | - | |
| 2069 | + | |
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1959 | 1959 | | |
1960 | 1960 | | |
1961 | 1961 | | |
1962 | | - | |
| 1962 | + | |
1963 | 1963 | | |
1964 | 1964 | | |
1965 | 1965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
Lines changed: 0 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 40 | | |
92 | 41 | | |
93 | 42 | | |
| |||
1405 | 1354 | | |
1406 | 1355 | | |
1407 | 1356 | | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | 1357 | | |
1412 | 1358 | | |
1413 | 1359 | | |
| |||
0 commit comments