Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PM2.5, CO, CO2 and Formaldehyde measurement clusters #1432

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public static void main(final String[] args) {
zclParser.addFile("src/main/resources/0407_LeafWetness.xml");
zclParser.addFile("src/main/resources/0408_SoilMoisture.xml");

zclParser.addFile("src/main/resources/040C_CarbonMonoxide.xml");
zclParser.addFile("src/main/resources/040D_CarbonDioxide.xml");

zclParser.addFile("src/main/resources/042A_PM25Measurement.xml");
zclParser.addFile("src/main/resources/042B_FormaldehydeMeasurement.xml");

zclParser.addFile("src/main/resources/0500_IasZone.xml");
zclParser.addFile("src/main/resources/0501_IasAce.xml");
zclParser.addFile("src/main/resources/0502_IasWd.xml");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="zigbee-description.xsd" code="0x040C">
<name>Carbon Monoxide Measurement</name>
<description>The cluster provides an interface for measurement of Carbon Monoxide</description>
<attribute code="0x0000" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" default="0x0000">
<name>Measured Value</name>
<description>MeasuredValue represents the concentration as a fraction of 1 (one).</description>
<description>A value of NaN indicates that the concentration measurement is unknown or outside the valid range.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the valid range for MeasuredValue.</description>
<description>MeasuredValue is updated continuously as new measurements are made.</description>
</attribute>
<attribute code="0x0001" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="false" minimum="0x8001" maximum="0x7FFE">
<name>Min Measured Value</name>
<description>The MinMeasuredValue attribute indicates the minimum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
</attribute>
<attribute code="0x0002" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" minimum="0x8002" maximum="0x7FFF">
<name>Max Measured Value</name>
<description>The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
<description>MaxMeasuredValue shall be greater than MinMeasuredValue.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the range of the sensor.</description>
</attribute>
<attribute code="0x0003" type="FLOAT_32_BIT" side="server" optional="true" writable="false"
reportable="false" minimum="0x0000" maximum="0x0800">
<name>Tolerance</name>
<description>The Tolerance attribute indicates the magnitude of the possible error that is associated with MeasuredValue . The true value is located in the range (MeasuredValue &#8211; Tolerance) to (MeasuredValue + Tolerance).</description>
</attribute>
</cluster>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="zigbee-description.xsd" code="0x040D">
<name>Carbon Dioxide Measurement</name>
<description>The cluster provides an interface for measurement of Carbon Dioxide</description>
<attribute code="0x0000" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" default="0x0000">
<name>Measured Value</name>
<description>MeasuredValue represents the concentration as a fraction of 1 (one).</description>
<description>A value of NaN indicates that the concentration measurement is unknown or outside the valid range.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the valid range for MeasuredValue.</description>
<description>MeasuredValue is updated continuously as new measurements are made.</description>
</attribute>
<attribute code="0x0001" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="false" minimum="0x8001" maximum="0x7FFE">
<name>Min Measured Value</name>
<description>The MinMeasuredValue attribute indicates the minimum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
</attribute>
<attribute code="0x0002" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" minimum="0x8002" maximum="0x7FFF">
<name>Max Measured Value</name>
<description>The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
<description>MaxMeasuredValue shall be greater than MinMeasuredValue.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the range of the sensor.</description>
</attribute>
<attribute code="0x0003" type="FLOAT_32_BIT" side="server" optional="true" writable="false"
reportable="false" minimum="0x0000" maximum="0x0800">
<name>Tolerance</name>
<description>The Tolerance attribute indicates the magnitude of the possible error that is associated with MeasuredValue . The true value is located in the range (MeasuredValue &#8211; Tolerance) to (MeasuredValue + Tolerance).</description>
</attribute>
</cluster>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="zigbee-description.xsd" code="0x042A">
<name>PM2.5 Measurement</name>
<description>The cluster provides an interface for measurement of Particulate Matter 2.5 microns or less</description>
<attribute code="0x0000" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" default="0x0000">
<name>Measured Value</name>
<description>MeasuredValue represents the concentration as a fraction of 1 (one).</description>
<description>A value of NaN indicates that the concentration measurement is unknown or outside the valid range.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the valid range for MeasuredValue.</description>
<description>MeasuredValue is updated continuously as new measurements are made.</description>
</attribute>
<attribute code="0x0001" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="false" minimum="0x8001" maximum="0x7FFE">
<name>Min Measured Value</name>
<description>The MinMeasuredValue attribute indicates the minimum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
</attribute>
<attribute code="0x0002" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" minimum="0x8002" maximum="0x7FFF">
<name>Max Measured Value</name>
<description>The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
<description>MaxMeasuredValue shall be greater than MinMeasuredValue.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the range of the sensor.</description>
</attribute>
<attribute code="0x0003" type="FLOAT_32_BIT" side="server" optional="true" writable="false"
reportable="false" minimum="0x0000" maximum="0x0800">
<name>Tolerance</name>
<description>The Tolerance attribute indicates the magnitude of the possible error that is associated with MeasuredValue . The true value is located in the range (MeasuredValue &#8211; Tolerance) to (MeasuredValue + Tolerance).</description>
</attribute>
</cluster>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="zigbee-description.xsd" code="0x042B">
<name>Formaldehyde Measurement</name>
<description>The cluster provides an interface for measurement of Formaldehyde</description>
<attribute code="0x0000" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" default="0x0000">
<name>Measured Value</name>
<description>MeasuredValue represents the concentration as a fraction of 1 (one).</description>
<description>A value of NaN indicates that the concentration measurement is unknown or outside the valid range.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the valid range for MeasuredValue.</description>
<description>MeasuredValue is updated continuously as new measurements are made.</description>
</attribute>
<attribute code="0x0001" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="false" minimum="0x8001" maximum="0x7FFE">
<name>Min Measured Value</name>
<description>The MinMeasuredValue attribute indicates the minimum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
</attribute>
<attribute code="0x0002" type="FLOAT_32_BIT" side="server" optional="false" writable="false"
reportable="true" minimum="0x8002" maximum="0x7FFF">
<name>Max Measured Value</name>
<description>The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue that can be measured. A value of NaN means this attribute is not defined.</description>
<description>MaxMeasuredValue shall be greater than MinMeasuredValue.</description>
<description>MinMeasuredValue and MaxMeasuredValue define the range of the sensor.</description>
</attribute>
<attribute code="0x0003" type="FLOAT_32_BIT" side="server" optional="true" writable="false"
reportable="false" minimum="0x0000" maximum="0x0800">
<name>Tolerance</name>
<description>The Tolerance attribute indicates the magnitude of the possible error that is associated with MeasuredValue . The true value is located in the range (MeasuredValue &#8211; Tolerance) to (MeasuredValue + Tolerance).</description>
</attribute>
</cluster>
Loading
Loading