Skip to content

Commit

Permalink
Add PM2.5, CO, CO2 and Formaldehyde measurement clusters (#1432)
Browse files Browse the repository at this point in the history
* Add PM2.5, CO and CO2 measurement clusters

Signed-off-by: Chris Jackson <chris@cd-jackson.com>

* Add Formaldehyde measurement

Signed-off-by: Chris Jackson <chris@cd-jackson.com>

---------

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
  • Loading branch information
cdjackson authored Jul 18, 2024
1 parent 60e8255 commit 0afec00
Show file tree
Hide file tree
Showing 10 changed files with 1,691 additions and 1 deletion.
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

0 comments on commit 0afec00

Please sign in to comment.