This is the default server implementation of ScenesManagementBehavior.

Hierarchy (view full)

Constructors

Properties

[reference]: Datasource<StateType>
agent: Agent
cluster: never

The implemented cluster.

context: ActionContext
endpoint: Endpoint<Empty>
events: EventEmitter & Omit<ClusterEvents<Of<{
    attributes: {};
    commands: {};
    events: {};
    id: 0;
    name: "Unknown";
    revision: 0;
}>, typeof ClusterBehavior>, never> & {
    fabricSceneInfo$Changing: ClusterEvents.AttributeObservable<FabricScopedAttribute<TypeFromFields<{
        currentGroup: FieldType<GroupId>;
        currentScene: FieldType<number>;
        fabricIndex: FieldType<FabricIndex>;
        remainingCapacity: FieldType<number>;
        sceneCount: FieldType<number>;
        sceneValid: FieldType<boolean>;
    }>[], any>>;
    sceneTableSize$Changing: ClusterEvents.AttributeObservable<FixedAttribute<number, any>>;
} & {
    lastConfiguredBy$Changing: undefined | ClusterEvents.AttributeObservable<OptionalAttribute<null | NodeId, any>>;
} & {
    fabricSceneInfo$Changed: ClusterEvents.AttributeObservable<FabricScopedAttribute<TypeFromFields<{
        currentGroup: FieldType<GroupId>;
        currentScene: FieldType<number>;
        fabricIndex: FieldType<FabricIndex>;
        remainingCapacity: FieldType<number>;
        sceneCount: FieldType<number>;
        sceneValid: FieldType<boolean>;
    }>[], any>>;
    sceneTableSize$Changed: ClusterEvents.AttributeObservable<FixedAttribute<number, any>>;
} & {
    lastConfiguredBy$Changed: undefined | ClusterEvents.AttributeObservable<OptionalAttribute<null | NodeId, any>>;
} & {} & {}

Access the behavior's events.

features: TypeFromBitSchema<{}> & TypeFromBitSchema<{
    sceneNames: BitFlag;
}>

Supported features as a flag object.

session: SecureSession
state: Omit<ClusterState.Type<Of<{
    attributes: {};
    commands: {};
    events: {};
    id: 0;
    name: "Unknown";
    revision: 0;
}>, typeof ClusterBehavior>, never> & {
    fabricSceneInfo: TypeFromFields<{
        currentGroup: FieldType<GroupId>;
        currentScene: FieldType<number>;
        fabricIndex: FieldType<FabricIndex>;
        remainingCapacity: FieldType<number>;
        sceneCount: FieldType<number>;
        sceneValid: FieldType<boolean>;
    }>[];
} & {
    lastConfiguredBy?: null | NodeId;
} & {
    sceneTableSize: number;
} & {}

Access the behavior's state.

Type declaration

  • ReadonlyfabricSceneInfo: TypeFromFields<{
        currentGroup: FieldType<GroupId>;
        currentScene: FieldType<number>;
        fabricIndex: FieldType<FabricIndex>;
        remainingCapacity: FieldType<number>;
        sceneCount: FieldType<number>;
        sceneValid: FieldType<boolean>;
    }>[]

    Indicates a list of fabric scoped information about scenes on this endpoint.

    The number of list entries for this attribute shall NOT exceed the number of supported fabrics by the device.

    MatterSpecification.v13.Cluster § 1.4.8.3

Type declaration

  • Optional ReadonlylastConfiguredBy?: null | NodeId

    Indicates the Node ID of the node that last configured the Scene Table.

    The null value indicates that the server has not been configured, or that the identifier of the node that last configured the Scenes Management cluster is not known.

    The Node ID is scoped to the accessing fabric.

    MatterSpecification.v13.Cluster § 1.4.8.1

Type declaration

  • ReadonlysceneTableSize: number

    Indicates the number of entries in the Scene Table on this endpoint. This is the total across all fabrics; note that a single fabric cannot use all those entries (see Handling of fabric- scoping). The minimum size of this table, (i.e., the minimum number of scenes to support across all fabrics per endpoint) shall be 16, unless a device type in which this cluster is used, defines a larger value in the device type definition.

    MatterSpecification.v13.Cluster § 1.4.8.2

Base cluster state include all attribute values but may be extended by subclasses.

defaults: ClusterState.Type<ScenesManagement.Cluster, Type<Of<{
    attributes: {};
    commands: {};
    events: {};
    id: 0;
    name: "Unknown";
    revision: 0;
}>, typeof ClusterBehavior, ScenesManagementInterface>>
dependencies?: Iterable<Type, any, any>
early: boolean
Events: ClusterEvents.Type<ScenesManagement.Cluster, Type<Of<{
    attributes: {};
    commands: {};
    events: {};
    id: 0;
    name: "Unknown";
    revision: 0;
}>, typeof ClusterBehavior, ScenesManagementInterface>>
ExtensionInterface: {}
id

The behavior ID for ClusterBehaviors is the name of the cluster.

Internal: (new () => {})
name: string
schema?: Schema
State: (new () => ClusterState.Type<ScenesManagement.Cluster, Type<Of<{
    attributes: {};
    commands: {};
    events: {};
    id: 0;
    name: "Unknown";
    revision: 0;
}>, typeof ClusterBehavior, ScenesManagementInterface>>)
supervisor: RootSupervisor
supports: ((other: Type) => boolean)

Type declaration

    • (other): boolean
    • Does this behavior support functionality of a specific implementation?

      Parameters

      Returns boolean

Methods

  • Create a generic callback function that has the same properties as a Reactor.

    Like a reactor, the callback's "this" will be bound to an active Behavior instance. Because of this: The reactor MUST be a real JS function - arrow functions will not work!

    Type Parameters

    • A extends any[]
    • R

    Parameters

    Returns ((...args: A) => undefined | R)

      • (...args): undefined | R
      • Parameters

        • Rest...args: A

        Returns undefined | R