Matter::Cluster::Base
Inherits Reference < Object
Base class for all cluster implementations
Constants
Global attribute IDs (mandatory on all clusters)
Constructors
Instance methods
Get attribute metadata by ID
Invoke a command
Callback for attribute change notifications (used by subscription system) Parameters: endpoint_id, cluster_id, attribute_id
Callback for attribute change notifications (used by subscription system) Parameters: endpoint_id, cluster_id, attribute_id
Returns a unique key for this cluster instance for persistence Format: "endpoint_<id>cluster<id>"
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster
Request context (populated by the protocol layer for the current operation). These are intentionally prefixed to avoid colliding with cluster-specific state.
Request context (populated by the protocol layer for the current operation). These are intentionally prefixed to avoid colliding with cluster-specific state.
Restore cluster state from JSON. Override in subclasses that need to restore state. The json parameter is the string returned by 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.
Scenes Management hooks
ScenesManagementCluster (0x0062) stores "extension field sets" that capture cluster-specific state for scene recall. Clusters can override these hooks to participate; default implementations are no-ops.
The Device base class wires ScenesManagementCluster callbacks by calling these methods on clusters present on the same endpoint.
Write an attribute value