Skip to content

Commit

Permalink
Add Formaldehyde measurement
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson committed Jul 16, 2024
1 parent 0c9d7e0 commit e49f49d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public static void main(final String[] args) {
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");
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="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>
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.zsmartsystems.zigbee.zcl.clusters.ZclElectricalMeasurementCluster;
import com.zsmartsystems.zigbee.zcl.clusters.ZclFanControlCluster;
import com.zsmartsystems.zigbee.zcl.clusters.ZclFlowMeasurementCluster;
import com.zsmartsystems.zigbee.zcl.clusters.ZclFormaldehydeMeasurementCluster;
import com.zsmartsystems.zigbee.zcl.clusters.ZclGreenPowerCluster;
import com.zsmartsystems.zigbee.zcl.clusters.ZclGroupsCluster;
import com.zsmartsystems.zigbee.zcl.clusters.ZclIasAceCluster;
Expand Down Expand Up @@ -74,7 +75,7 @@
*
* @author Chris Jackson
*/
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-07-16T20:26:44Z")
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2024-07-16T22:58:38Z")
public enum ZclClusterType {
BASIC(0x0000, ZclBasicCluster.class, "Basic"),
POWER_CONFIGURATION(0x0001, ZclPowerConfigurationCluster.class, "Power Configuration"),
Expand Down Expand Up @@ -116,6 +117,7 @@ public enum ZclClusterType {
CARBON_MONOXIDE_MEASUREMENT(0x040C, ZclCarbonMonoxideMeasurementCluster.class, "Carbon Monoxide Measurement"),
CARBON_DIOXIDE_MEASUREMENT(0x040D, ZclCarbonDioxideMeasurementCluster.class, "Carbon Dioxide Measurement"),
PM2_5_MEASUREMENT(0x042A, ZclPm25MeasurementCluster.class, "PM2.5 Measurement"),
FORMALDEHYDE_MEASUREMENT(0x042B, ZclFormaldehydeMeasurementCluster.class, "Formaldehyde Measurement"),
IAS_ZONE(0x0500, ZclIasZoneCluster.class, "IAS Zone"),
IAS_ACE(0x0501, ZclIasAceCluster.class, "IAS ACE"),
IAS_WD(0x0502, ZclIasWdCluster.class, "IAS WD"),
Expand Down

0 comments on commit e49f49d

Please sign in to comment.