Matter::Cluster::BooleanStateCluster
Inherits Matter::Cluster::Base < Reference < Object
Boolean State Cluster (0x0045)
Exposes a single read-only boolean state value. Commonly used by contact sensors.
Constants
ATTR_STATE_VALUE = 0_u32
CLUSTER_ID = 69_u32
Constructors
new(endpoint_id : DataType::EndpointNumber, state_value : Bool = false)
SourceClass methods
cluster_id
Boolean State Cluster (0x0045)
Exposes a single read-only boolean state value. Commonly used by contact sensors.
Instance methods
on_state_changed
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
state_value?
Sourceupdate_state(value : Bool)
Source