Analyzes a ClusterBehavior implementation to ensure it conforms to the Matter specification.

As this API is accessible via vanilla JavaScript, validation includes tests for errors that TypeScript otherwise prevents.

Records elements supported and a list of errors if validation fails.

Constructors

Properties

Methods

Constructors

Properties

attributes: Set<string> = ...

Supported attributes.

commands: Set<string> = ...

Supported commands.

errors?: {
    element: string;
    fatal: boolean;
    message: string;
}[]

A list of implementation errors, if any.

events: Set<string> = ...

Supported events.

Methods