class

Matter::Cluster::GeneralDiagnosticsCluster

Inherits Matter::Cluster::Base < Reference < Object

General Diagnostics Cluster (0x0033)

Provides general diagnostic information about the device. Required on endpoint 0 for Root Node device type.

Matter Specification: Core 1.4 § 11.11 - General Diagnostics Cluster

Constants

ATTR_ACTIVE_HARDWARE_FAULTS = 5_u32
ATTR_ACTIVE_NETWORK_FAULTS = 7_u32
ATTR_ACTIVE_RADIO_FAULTS = 6_u32
ATTR_ATTRIBUTE_LIST = 65531_u32
ATTR_BOOT_REASON = 4_u32
ATTR_CLUSTER_REVISION = 65533_u32

Global attributes

ATTR_FEATURE_MAP = 65532_u32
ATTR_NETWORK_INTERFACES = 0_u32

Attribute IDs

ATTR_REBOOT_COUNT = 1_u32
ATTR_TEST_EVENT_TRIGGERS_ENABLED = 8_u32
ATTR_TOTAL_OPERATIONAL_HOURS = 3_u32
ATTR_UP_TIME = 2_u32
CLUSTER_ID = 51_u32
CMD_TEST_EVENT_TRIGGER = 0_u32

Command IDs

Log = ::Log.for("matter.cluster.general_diagnostics")

Constructors

new(endpoint_id : DataType::EndpointNumber = DataType::EndpointNumber.new(0_u16), reboot_count : UInt16 = 0_u16, boot_reason : BootReason = BootReason::PowerOnReboot)
Source

Class methods

cluster_id

General Diagnostics Cluster (0x0033)

Provides general diagnostic information about the device. Required on endpoint 0 for Root Node device type.

Matter Specification: Core 1.4 § 11.11 - General Diagnostics Cluster

Source

Instance methods

active_hardware_faults
Source
active_hardware_faults=(active_hardware_faults : Array(HardwareFault))
Source
active_network_faults
Source
active_network_faults=(active_network_faults : Array(NetworkFault))
Source
active_radio_faults
Source
active_radio_faults=(active_radio_faults : Array(RadioFault))
Source
add_network_interface(interface : NetworkInterfaceInfo) : Nil

Add a network interface

Source
attributes

Get all attribute metadata

Source
boot_reason
Source
boot_reason=(boot_reason : BootReason)
Source
commands

Get all command metadata

Source
name

Get cluster name

Source
network_interfaces

Instance variables

Source
network_interfaces=(network_interfaces : Array(NetworkInterfaceInfo))

Instance variables

Source
read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : InteractionModel::Status | Bytes

Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster

Source
reboot_count
Source
reboot_count=(reboot_count : UInt16)
Source
test_event_triggers_enabled=(test_event_triggers_enabled : Bool)
Source
test_event_triggers_enabled?
Source
total_operational_hours
Source
total_operational_hours=(total_operational_hours : UInt32)
Source
up_time
Source
up_time=(up_time : UInt64)
Source
write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status

Write an attribute value

Source

Nested types