class

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)
Source

Class methods

cluster_id

Boolean State Cluster (0x0045)

Exposes a single read-only boolean state value. Commonly used by contact sensors.

Source

Instance methods

attributes

Get all attribute metadata

Source
commands

Get all command metadata

Source
name

Get cluster name

Source
on_state_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
state_value?
Source
update_state(value : Bool)
Source