class

Matter::Cluster::RelativeHumidityMeasurementCluster

Inherits Matter::Cluster::Base < Reference < Object

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

Attributes

ATTR_MIN_MEASURED_VALUE = 1_u32
ATTR_TOLERANCE = 3_u32
CLUSTER_ID = 1029_u32
MAX_HUMIDITY = 10000_u16
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)
Source

Class 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

Source
from_percent(value : Float64) : UInt16

Convert from percent (Float) to 0.01% (UInt16)

Source
to_percent(value : UInt16) : Float64

Convert from 0.01% to percent (Float)

Source

Instance methods

attributes

Get all attribute metadata

Source
commands

Get all command metadata

Source
max_measured_value

Maximum measurable humidity (in 0.01%)

Source
max_measured_value=(max_measured_value : UInt16)

Maximum measurable humidity (in 0.01%)

Source
measured_value

Current measured humidity (in 0.01%), or nil if unknown

Source
measured_value=(measured_value : UInt16 | Nil)

Current measured humidity (in 0.01%), or nil if unknown

Source
min_measured_value

Minimum measurable humidity (in 0.01%)

Source
min_measured_value=(min_measured_value : UInt16)

Minimum measurable humidity (in 0.01%)

Source
name

Get cluster name

Source
on_humidity_changed
Source
read_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

Source
tolerance

Measurement tolerance (in 0.01%), optional

Source
tolerance=(tolerance : UInt16 | Nil)

Measurement tolerance (in 0.01%), optional

Source
update_humidity(value : UInt16 | Nil)

Update the measured humidity value

Source