Relative Humidity Measurement Cluster (0x0405)
Provides an interface to water content measurement functionality.
The measurement is reportable and may be configured for reporting.
Humidity values are expressed in hundredths of percent (0.01%).
For example, 5500 represents 55.00% relative humidity.
Specification: Matter 1.4 § 2.6
Constants
ATTR_MAX_MEASURED_VALUE = 2_u32
ATTR_MEASURED_VALUE = 0_u32
ATTR_MIN_MEASURED_VALUE = 1_u32
MIN_HUMIDITY = 0_u16
Humidity limits (in 0.01%)
Constructors
new(endpoint_id : DataType::EndpointNumber, measured_value : UInt16 | Nil = nil, min_measured_value : UInt16 = MIN_HUMIDITY, max_measured_value : UInt16 = MAX_HUMIDITY, tolerance : UInt16 | Nil = nil)
SourceClass methods
cluster_id
Relative Humidity Measurement Cluster (0x0405)
Provides an interface to water content measurement functionality.
The measurement is reportable and may be configured for reporting.
Humidity values are expressed in hundredths of percent (0.01%).
For example, 5500 represents 55.00% relative humidity.
Specification: Matter 1.4 § 2.6
Sourcefrom_percent(value : Float64) : UInt16
Convert from percent (Float) to 0.01% (UInt16)
Sourceto_percent(value : UInt16) : Float64
Convert from 0.01% to percent (Float)
SourceInstance methods
max_measured_value
Maximum measurable humidity (in 0.01%)
Sourcemax_measured_value=(max_measured_value : UInt16)
Maximum measurable humidity (in 0.01%)
Sourcemeasured_value
Current measured humidity (in 0.01%), or nil if unknown
Sourcemeasured_value=(measured_value : UInt16 | Nil)
Current measured humidity (in 0.01%), or nil if unknown
Sourcemin_measured_value
Minimum measurable humidity (in 0.01%)
Sourcemin_measured_value=(min_measured_value : UInt16)
Minimum measurable humidity (in 0.01%)
Sourceread_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : Bytes | InteractionModel::Status
Read an attribute value
The fabric_index parameter is optional and used for fabric-scoped attributes
like CurrentFabricIndex in OperationalCredentialsCluster
Sourcetolerance
Measurement tolerance (in 0.01%), optional
Sourcetolerance=(tolerance : UInt16 | Nil)
Measurement tolerance (in 0.01%), optional
Sourceupdate_humidity(value : UInt16 | Nil)
Update the measured humidity value
Source