1
1
<?xml version =" 1.0" ?>
2
2
<!--
3
- Copyright (c) 2023 Project CHIP Authors
3
+ Copyright (c) 2023-2025 Project CHIP Authors
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
6
6
You may obtain a copy of the License at
@@ -11,7 +11,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
See the License for the specific language governing permissions and
12
12
limitations under the License.
13
13
-->
14
- <configurator >
14
+ <!--
15
+ XML generated by Alchemy; DO NOT EDIT.
16
+ Source: src/app_clusters/EnergyPreference.adoc
17
+ Parameters: in-progress
18
+ Git:
19
+ -->
20
+ <configurator xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" ../../zcl.xsd" >
15
21
<domain name =" Energy Management" />
16
22
<cluster apiMaturity =" provisional" >
17
23
<name >Energy Preference</name >
@@ -23,23 +29,20 @@ limitations under the License.
23
29
<description >This cluster provides an interface to specify preferences for how devices should consume energy.</description >
24
30
<!-- Attributes-->
25
31
<globalAttribute side =" either" code =" 0xFFFD" value =" 1" />
26
-
27
32
<features >
28
33
<feature bit =" 0" code =" BALA" name =" EnergyBalance" summary =" Device can balance energy consumption vs. another priority" >
29
- <optionalConform choice =" a" more =" true" />
34
+ <optionalConform choice =" a" more =" true" min = " 1 " />
30
35
</feature >
31
36
<feature bit =" 1" code =" LPMS" name =" LowPowerModeSensitivity" summary =" Device can adjust the conditions for entering a low power mode" >
32
- <optionalConform choice =" a" more =" true" />
37
+ <optionalConform choice =" a" more =" true" min = " 1 " />
33
38
</feature >
34
39
</features >
35
-
36
40
<!-- Conformance feature BALA - for now optional-->
37
- <attribute code =" 0x0000" side =" server" name =" EnergyBalances" type =" array" entryType =" BalanceStruct" define =" ENERGY_PREFERENCE_ENERGY_BALANCES" min = " 2 " max =" 10" optional = " true " >
41
+ <attribute code =" 0x0000" side =" server" name =" EnergyBalances" type =" array" entryType =" BalanceStruct" define =" ENERGY_PREFERENCE_ENERGY_BALANCES" optional = " true " length =" 10" minLength = " 2 " >
38
42
<mandatoryConform >
39
43
<feature name =" BALA" />
40
44
</mandatoryConform >
41
45
</attribute >
42
-
43
46
<!-- Conformance feature BALA - for now optional-->
44
47
<attribute code =" 0x0001" side =" server" name =" CurrentEnergyBalance" type =" int8u" define =" ENERGY_PREFERENCE_CURRENT_ENERGY_BALANCE" writable =" true" optional =" true" >
45
48
<access op =" read" privilege =" view" />
@@ -48,31 +51,26 @@ limitations under the License.
48
51
<feature name =" BALA" />
49
52
</mandatoryConform >
50
53
</attribute >
51
-
52
54
<!-- Conformance feature BALA - for now optional-->
53
- <attribute code =" 0x0002" side =" server" name =" EnergyPriorities" type =" array" entryType =" EnergyPriorityEnum" define =" ENERGY_PREFERENCE_ENERGY_PRIORITIES" max = " 2" optional = " true " >
55
+ <attribute code =" 0x0002" side =" server" name =" EnergyPriorities" type =" array" entryType =" EnergyPriorityEnum" define =" ENERGY_PREFERENCE_ENERGY_PRIORITIES" optional = " true " length = " 2" minLength = " 2 " >
54
56
<mandatoryConform >
55
57
<feature name =" BALA" />
56
58
</mandatoryConform >
57
59
</attribute >
58
-
59
60
<!-- Conformance feature LPMS - for now optional-->
60
- <attribute code =" 0x0003" side =" server" name =" LowPowerModeSensitivities" type =" array" entryType =" BalanceStruct" define =" ENERGY_PREFERENCE_LOW_POWER_MODE_SENSITIVITIES" min = " 2 " max =" 10" optional = " true " >
61
+ <attribute code =" 0x0003" side =" server" name =" LowPowerModeSensitivities" type =" array" entryType =" BalanceStruct" define =" ENERGY_PREFERENCE_LOW_POWER_MODE_SENSITIVITIES" optional = " true " length =" 10" minLength = " 2 " >
61
62
<mandatoryConform >
62
63
<feature name =" LPMS" />
63
64
</mandatoryConform >
64
65
</attribute >
65
-
66
66
<!-- Conformance feature LPMS - for now optional-->
67
- <attribute code =" 0x0004" side =" server" type =" int8u" define =" ENERGY_PREFERENCE_CURRENT_LOW_POWER_MODE_SENSITIVITY" writable =" true" optional =" true" >
67
+ <attribute code =" 0x0004" side =" server" name = " CurrentLowPowerModeSensitivity " type =" int8u" define =" ENERGY_PREFERENCE_CURRENT_LOW_POWER_MODE_SENSITIVITY" writable =" true" optional =" true" >
68
68
<access op =" read" privilege =" view" />
69
69
<access op =" write" privilege =" operate" />
70
- <description >CurrentLowPowerModeSensitivity</description >
71
70
<mandatoryConform >
72
71
<feature name =" LPMS" />
73
72
</mandatoryConform >
74
73
</attribute >
75
-
76
74
</cluster >
77
75
78
76
<enum name =" EnergyPriorityEnum" type =" enum8" >
@@ -85,8 +83,7 @@ limitations under the License.
85
83
86
84
<struct name =" BalanceStruct" >
87
85
<cluster code =" 0x009B" />
88
- <item name =" Step" type =" percent" />
89
- <item name =" Label" type =" char_string" optional =" true" length =" 64" />
86
+ <item fieldId = " 0 " name =" Step" type =" percent" />
87
+ <item fieldId = " 1 " name =" Label" type =" char_string" optional =" true" length =" 64" />
90
88
</struct >
91
-
92
89
</configurator >
0 commit comments