Matter::Cluster::OnOffCluster
Inherits Matter::Cluster::Base < Reference < Object
On/Off Cluster Implementation (0x0006) Provides binary on/off control with optional lighting and timing features
Features:
- Lighting (LT): Enables level control interaction and global scene management
- DeadFrontBehavior (DF): Device exhibits "dead front" when off
- OffOnly: Device can only be turned off (On/Toggle not supported)
Matter Spec: Application Clusters 1.5
Constants
Attribute IDs
Global attributes
Command IDs
Constructors
Class methods
On/Off Cluster Implementation (0x0006) Provides binary on/off control with optional lighting and timing features
Features:
- Lighting (LT): Enables level control interaction and global scene management
- DeadFrontBehavior (DF): Device exhibits "dead front" when off
- OffOnly: Device can only be turned off (On/Toggle not supported)
Matter Spec: Application Clusters 1.5
Instance methods
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster
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.
Write an attribute value