class
Matter::Cluster::TimeFormatLocalizationCluster
Overview
Time Format Localization Cluster (0x002C)
Provides attributes for determining and configuring time and date formatting information that a node uses when conveying values to a user. This cluster supports both hour format (12hr/24hr) and calendar format preferences.
Features:
- CalendarFormat (CALFMT): Calendar format support
Specification: Matter 1.4 § 11.4
Defined in:
matter/cluster/time_format_localization_cluster.crConstant Summary
-
ATTR_ACTIVE_CALENDAR_TYPE =
1_u32 -
ATTR_HOUR_FORMAT =
0_u32 -
Attributes
-
ATTR_SUPPORTED_CALENDAR_TYPES =
2_u32 -
CLUSTER_ID =
44_u32
Constructors
Class Method Summary
-
.cluster_id
Time Format Localization Cluster (0x002C)
Instance Method Summary
-
#active_calendar_type : CalendarType | Nil
Active calendar type (writable, optional - requires CalendarFormat feature)
-
#active_calendar_type=(active_calendar_type : CalendarType | Nil)
Active calendar type (writable, optional - requires CalendarFormat feature)
-
#attributes : Array(AttributeMetadata)
Get all attribute metadata
-
#calendar_format_enabled? : Bool
Check if CalendarFormat feature is enabled
-
#commands : Array(CommandMetadata)
Get all command metadata
-
#feature_map : Feature
Feature map
-
#feature_map=(feature_map : Feature)
Feature map
-
#hour_format : HourFormat
Hour format preference (writable)
-
#hour_format=(hour_format : HourFormat)
Hour format preference (writable)
-
#name : String
Get cluster name
- #on_calendar_changed(&block : CalendarType | Nil, CalendarType -> Nil)
- #on_hour_format_changed(&block : HourFormat, HourFormat -> Nil)
-
#read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : Bytes | InteractionModel::Status
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster
-
#supported_calendar_types : Array(CalendarType) | Nil
Supported calendar types (fixed, optional - requires CalendarFormat feature)
-
#supported_calendar_types=(supported_calendar_types : Array(CalendarType) | Nil)
Supported calendar types (fixed, optional - requires CalendarFormat feature)
-
#write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status
Write an attribute value
Instance methods inherited from class Matter::Cluster::Base
apply_scene_extension_field_set(field_set : ScenesManagementCluster::ExtensionFieldSet) : Bool
apply_scene_extension_field_set,
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, is_case_session : Bool = false, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | CommandResponse
invoke_command,
name : String
name,
on_attribute_changed : Proc(UInt16, UInt32, UInt32, Nil) | Nil
on_attribute_changed,
on_attribute_changed=(on_attribute_changed : Proc(UInt16, UInt32, UInt32, Nil) | Nil)
on_attribute_changed=,
persistence_key : String
persistence_key,
read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | Bytes
read_attribute,
request_fabric_index : UInt8 | Nil
request_fabric_index,
request_fabric_index=(request_fabric_index : UInt8 | Nil)
request_fabric_index=,
request_is_case_session=(request_is_case_session : Bool)
request_is_case_session=,
request_is_case_session? : Bool
request_is_case_session?,
request_peer_node_id : UInt64 | Nil
request_peer_node_id,
request_peer_node_id=(request_peer_node_id : UInt64 | Nil)
request_peer_node_id=,
request_session_id : UInt64 | Nil
request_session_id,
request_session_id=(request_session_id : UInt64 | Nil)
request_session_id=,
restore_state(json : String) : Nil
restore_state,
save_state : String | Nil
save_state,
store_scene_extension_field_set : ScenesManagementCluster::ExtensionFieldSet | Nil
store_scene_extension_field_set,
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
Time Format Localization Cluster (0x002C)
Provides attributes for determining and configuring time and date formatting information that a node uses when conveying values to a user. This cluster supports both hour format (12hr/24hr) and calendar format preferences.
Features:
- CalendarFormat (CALFMT): Calendar format support
Specification: Matter 1.4 § 11.4
Instance Method Detail
Active calendar type (writable, optional - requires CalendarFormat feature)
Active calendar type (writable, optional - requires CalendarFormat feature)
Get all attribute metadata
Get all command metadata
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster
Supported calendar types (fixed, optional - requires CalendarFormat feature)
Supported calendar types (fixed, optional - requires CalendarFormat feature)
Write an attribute value