Skip to content

Commit e4e7683

Browse files
authored
Generate IlluminanceMeasurement cluster using Alchemy (#37935)
* Generate IlluminanceMeasurement cluster using Alchemy * Regenerate files with new Alchemy version
1 parent 830bf53 commit e4e7683

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

src/app/zap-templates/zcl/data-model/chip/illuminance-measurement-cluster.xml

+13-14
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/IlluminanceMeasurement.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>Illuminance Measurement</name>
2227
<domain>Measurement &amp; Sensing</domain>
@@ -26,19 +31,13 @@ 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="3"/>
29-
<attribute side="server" code="0x0000" name="MeasuredValue" define="ILLUM_MEASURED_VALUE" type="int16u" min="0x0000" max="0xFFFF" reportable="true" isNullable="true" default="0x0000">
30-
<mandatoryConform/>
31-
</attribute>
32-
<attribute side="server" code="0x0001" name="MinMeasuredValue" define="ILLUM_MIN_MEASURED_VALUE" type="int16u" min="0x0001" max="0xFFFD" isNullable="true">
33-
<mandatoryConform/>
34-
</attribute>
35-
<attribute side="server" code="0x0002" name="MaxMeasuredValue" define="ILLUM_MAX_MEASURED_VALUE" type="int16u" min="0x0002" max="0xFFFE" isNullable="true">
36-
<mandatoryConform/>
37-
</attribute>
38-
<attribute side="server" code="0x0003" name="Tolerance" define="ILLUM_TOLERANCE" type="int16u" min="0x0000" max="0x0800" optional="true">
34+
<attribute side="server" code="0x0000" name="MeasuredValue" define="ILLUM_MEASURED_VALUE" type="int16u" min="0x0000" max="0" isNullable="true" default="0x0000"/>
35+
<attribute side="server" code="0x0001" name="MinMeasuredValue" define="ILLUM_MIN_MEASURED_VALUE" type="int16u" min="0x0001" max="0xFFFD" isNullable="true"/>
36+
<attribute side="server" code="0x0002" name="MaxMeasuredValue" define="ILLUM_MAX_MEASURED_VALUE" type="int16u" min="0x0002" isNullable="true"/>
37+
<attribute side="server" code="0x0003" name="Tolerance" define="ILLUM_TOLERANCE" type="int16u" max="0x0800" optional="true">
3938
<optionalConform/>
4039
</attribute>
41-
<attribute side="server" code="0x0004" name="LightSensorType" define="ILLUM_LIGHT_SENSOR_TYPE" type="LightSensorTypeEnum" min="0x00" max="0xFF" isNullable="true" default="0xFF" optional="true">
40+
<attribute side="server" code="0x0004" name="LightSensorType" define="ILLUM_LIGHT_SENSOR_TYPE" type="LightSensorTypeEnum" min="0x00" max="0x01" isNullable="true" optional="true">
4241
<optionalConform/>
4342
</attribute>
4443
</cluster>

0 commit comments

Comments
 (0)