Skip to content

Commit 39ccad9

Browse files
authored
Generate BooleanState with Alchemy (#37857)
* Generate BooleanState with Alchemy * Rearrange ACTIONS_CLUSTER in zap_cluster_list
1 parent 3d77651 commit 39ccad9

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<!--
3-
Copyright (c) 2021 Project CHIP Authors
3+
Copyright (c) 2021-2025 Project CHIP Authors
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -14,9 +14,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<configurator>
17+
<!--
18+
XML generated by Alchemy; DO NOT EDIT.
19+
Source: src/app_clusters/BooleanState.adoc
20+
Parameters: in-progress
21+
Git:
22+
-->
23+
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
1824
<domain name="CHIP"/>
19-
2025
<cluster>
2126
<name>Boolean State</name>
2227
<domain>General</domain>
@@ -26,14 +31,12 @@ limitations under the License.
2631
<client tick="false" init="false">true</client>
2732
<server tick="false" init="false">true</server>
2833
<globalAttribute side="either" code="0xFFFD" value="1"/>
29-
<attribute side="server" code="0x0000" name="StateValue" define="STATE_VALUE" type="boolean" reportable="true">
30-
<mandatoryConform/>
31-
</attribute>
32-
33-
<event code="0x0000" name="StateChange" priority="info" side="server">
34-
<description>This event SHALL be generated when the StateValue attribute changes.</description>
34+
<attribute side="server" code="0x0000" name="StateValue" define="STATE_VALUE" type="boolean">StateValue</attribute>
35+
<event code="0x0000" name="StateChange" priority="info" side="server" optional="true">
36+
<description>If this event is supported, it SHALL be generated when the StateValue attribute changes.</description>
3537
<field id="0" name="StateValue" type="boolean"/>
3638
<optionalConform/>
3739
</event>
40+
3841
</cluster>
3942
</configurator>

src/app/zap_cluster_list.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"ServerDirectories": {
146146
"ACCESS_CONTROL_CLUSTER": ["access-control-server"],
147147
"ACCOUNT_LOGIN_CLUSTER": ["account-login-server"],
148-
"ACTIONS_CLUSTER": [],
148+
"ACTIONS_CLUSTER": ["actions-server"],
149149
"ACTIVATED_CARBON_FILTER_MONITORING_CLUSTER": [
150150
"resource-monitoring-server"
151151
],
@@ -330,7 +330,6 @@
330330
"WINDOW_COVERING_CLUSTER": ["window-covering-server"],
331331
"WATER_HEATER_MANAGEMENT_CLUSTER": ["water-heater-management-server"],
332332
"WATER_HEATER_MODE_CLUSTER": ["mode-base-server"],
333-
"ZONE_MANAGEMENT_CLUSTER": [],
334-
"ACTIONS_CLUSTER": ["actions-server"]
333+
"ZONE_MANAGEMENT_CLUSTER": []
335334
}
336335
}

0 commit comments

Comments
 (0)