class

Matter::Cluster::UserLabelCluster

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

User Label Cluster (0x0041)

Provides writable labels for an endpoint.

Constants

ATTR_LABEL_LIST = 0_u32
CLUSTER_ID = 65_u32

Constructors

new(endpoint_id : DataType::EndpointNumber, label_list : Array(LabelStruct) = [] of LabelStruct)
Source

Class methods

cluster_id

User Label Cluster (0x0041)

Provides writable labels for an endpoint.

Source

Instance methods

attributes

Get all attribute metadata

Source
label_list
Source
label_list=(label_list : Array(LabelStruct))
Source
name

Get cluster name

Source
read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | Bytes

Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster

Source
restore_state(json : String) : Nil

Restore cluster state from JSON. Override in subclasses that need to restore state. The json parameter is the string returned by save_state.

Source
save_state

Save cluster state to JSON for persistence. Override in subclasses that need to persist state (e.g., scenes, groups). Returns nil if no state needs to be persisted.

Source
write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status

Write an attribute value

Source