class
Matter::Cluster::LevelControlCluster
- Matter::Cluster::LevelControlCluster
- Matter::Cluster::Base
- Reference
- Object
Overview
Level Control Cluster Implementation (0x0008)
Provides level control (dimming) functionality for lights, volume controls, blinds, and other devices with adjustable levels.
Matter Spec: Application 1.6
Defined in:
matter/cluster/level_control_cluster.crConstant Summary
-
ATTR_CURRENT_FREQUENCY =
4_u32 -
ATTR_CURRENT_LEVEL =
0_u32 -
Attributes (using ATTR_ prefix for consistency)
-
ATTR_DEFAULT_MOVE_RATE =
20_u32 -
ATTR_MAX_FREQUENCY =
6_u32 -
ATTR_MAX_LEVEL =
3_u32 -
ATTR_MIN_FREQUENCY =
5_u32 -
ATTR_MIN_LEVEL =
2_u32 -
ATTR_OFF_TRANSITION_TIME =
19_u32 -
ATTR_ON_LEVEL =
17_u32 -
ATTR_ON_OFF_TRANSITION_TIME =
16_u32 -
ATTR_ON_TRANSITION_TIME =
18_u32 -
ATTR_OPTIONS =
15_u32 -
ATTR_REMAINING_TIME =
1_u32 -
ATTR_START_UP_CURRENT_LEVEL =
16384_u32 -
CLUSTER_ID =
8_u32 -
CMD_MOVE =
1_u32 -
CMD_MOVE_TO_CLOSEST_FREQUENCY =
8_u32 -
CMD_MOVE_TO_LEVEL =
0_u32 -
Commands
-
CMD_MOVE_TO_LEVEL_WITH_ON_OFF =
4_u32 -
CMD_MOVE_WITH_ON_OFF =
5_u32 -
CMD_STEP =
2_u32 -
CMD_STEP_WITH_ON_OFF =
6_u32 -
CMD_STOP =
3_u32 -
CMD_STOP_WITH_ON_OFF =
7_u32
Constructors
Class Method Summary
-
.cluster_id
Level Control Cluster Implementation (0x0008)
Instance Method Summary
-
#attributes : Array(AttributeMetadata)
Get all attribute metadata
-
#commands : Array(CommandMetadata)
Get all command metadata
-
#current_level : UInt8
Attribute storage
-
#current_level=(current_level : UInt8)
Attribute storage
- #max_level : UInt8
- #max_level=(max_level : UInt8)
- #min_level : UInt8
- #min_level=(min_level : UInt8)
-
#name : String
Get cluster name
- #on_level : UInt8 | Nil
- #on_level=(on_level : UInt8 | Nil)
-
#on_level_changed(&block : UInt8, UInt8 -> Nil)
Set callback for level changes
- #options : UInt8
- #options=(options : UInt8)
-
#read_attribute(attribute_id : UInt32) : InteractionModel::Status | Bytes
Read an attribute value
- #remaining_time : UInt16
- #remaining_time=(remaining_time : UInt16)
-
#write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
Write an attribute value
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), session_id : UInt64 | Nil = nil) : InteractionModel::Status | CommandResponse
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
Class Method Detail
Level Control Cluster Implementation (0x0008)
Provides level control (dimming) functionality for lights, volume controls, blinds, and other devices with adjustable levels.
Matter Spec: Application 1.6
Instance Method Detail
Get all attribute metadata
Get all command metadata
Read an attribute value
Write an attribute value