Helper: Get primary device type
Matter::Cluster::DescriptorCluster
Inherits Matter::Cluster::Base < Reference < Object
Descriptor Cluster (0x001D)
Provides device composition information including device types, server/client clusters, and endpoint hierarchy.
Required on all endpoints.
Matter Spec: Core 9.5
Constants
Attributes
Global attributes (required on all clusters)
Constructors
Class methods
Descriptor Cluster (0x001D)
Provides device composition information including device types, server/client clusters, and endpoint hierarchy.
Required on all endpoints.
Matter Spec: Core 9.5
Instance methods
Add a client cluster by class
@param cluster_class The cluster class (e.g., OnOffCluster) @return self for chaining
Example: descriptor.add_client(OnOffCluster) .add_client(LevelControlCluster)
Add a child endpoint to the parts list
@param endpoint_id The endpoint ID @return self for chaining
Example: descriptor.add_part(1_u16) .add_part(2_u16)
Add a server cluster by class
@param cluster_class The cluster class (e.g., OnOffCluster) @return self for chaining
Example: descriptor.add_server(OnOffCluster) .add_server(LevelControlCluster)
Helper: Check if a cluster is in the client list
Helper: Check if a cluster is in the client list (by class)
Helper: Check if a cluster is in the server list
Helper: Check if a cluster is in the server list (by class)
Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster
Write an attribute value