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)
SourceClass methods
Instance methods
label_list
Sourcelabel_list=(label_list : Array(LabelStruct))
Sourceread_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
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.
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.
write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
Write an attribute value