class
Matter::Cluster::OnOffCluster
- Matter::Cluster::OnOffCluster
- Matter::Cluster::Base
- Reference
- Object
Overview
On/Off Cluster Implementation (0x0006) Provides binary on/off control
Defined in:
matter/cluster/on_off_cluster.crConstant Summary
-
CLUSTER_ID =
6_u32 -
CLUSTER_REVISION =
65533_u32 -
Global attributes
-
CMD_OFF =
0_u32 -
Command IDs
-
CMD_OFF_EFFECT =
64_u32 -
CMD_ON =
1_u32 -
CMD_ON_RECALL =
65_u32 -
CMD_ON_TIMED =
66_u32 -
CMD_TOGGLE =
2_u32 -
FEATURE_MAP =
65532_u32 -
ON_OFF =
0_u32 -
Attribute IDs
Constructors
Instance Method Summary
-
#attributes : Array(AttributeMetadata)
Get all attribute metadata
-
#commands : Array(CommandMetadata)
Get all command metadata
-
#name : String
Get cluster name
- #on_off : Bool
- #on_off=(on_off : Bool)
Instance methods inherited from class Matter::Cluster::Base
attributes : Array(AttributeMetadata)
attributes,
cluster_id : DataType::ClusterId
cluster_id,
cluster_id=(cluster_id : DataType::ClusterId)
cluster_id=,
commands : Array(CommandMetadata)
commands,
data_version : UInt32
data_version,
data_version=(data_version : UInt32)
data_version=,
endpoint_id : DataType::EndpointNumber
endpoint_id,
endpoint_id=(endpoint_id : DataType::EndpointNumber)
endpoint_id=,
events : Array(EventMetadata)
events,
get_attribute_metadata(attribute_id : UInt32) : AttributeMetadata | Nil
get_attribute_metadata,
get_command_metadata(command_id : UInt32) : CommandMetadata | Nil
get_command_metadata,
invoke_command(command_id : UInt32, fields : Bytes = Bytes.new(0)) : InteractionModel::Status | Bytes
invoke_command,
name : String
name,
read_attribute(attribute_id : UInt32) : InteractionModel::Status | Bytes
read_attribute,
write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
write_attribute
Constructor methods inherited from class Matter::Cluster::Base
new(endpoint_id : DataType::EndpointNumber, cluster_id : DataType::ClusterId)
new
Constructor Detail
Instance Method Detail
def attributes : Array(AttributeMetadata)
#
Description copied from class Matter::Cluster::Base
Get all attribute metadata
def commands : Array(CommandMetadata)
#
Description copied from class Matter::Cluster::Base
Get all command metadata