/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /*** THIS FILE IS GENERATED, DO NOT EDIT ***/ import { BindingServer as BaseBindingServer } from "../behaviors/binding/BindingServer.js"; import { ClosureControlClient as BaseClosureControlClient } from "../behaviors/closure-control/ClosureControlClient.js"; import { IdentifyClient as BaseIdentifyClient } from "../behaviors/identify/IdentifyClient.js"; import { ClosureDimensionClient as BaseClosureDimensionClient } from "../behaviors/closure-dimension/ClosureDimensionClient.js"; import { MutableEndpoint } from "../endpoint/type/MutableEndpoint.js"; import { SupportedBehaviors } from "../endpoint/properties/SupportedBehaviors.js"; import { Identity } from "@matter/general"; /** * A Closure Controller is capable of controlling a Closure. * * ### Introduction * * Two levels of control are available: * * - Basic Level (Closure Control Cluster): * * - Used for simple controller with buttons like wall switches. * * - Also all the general status and information remain at this level. * * - Advanced Level (Closure Dimension Cluster): * * - Provides advanced information, controls and settings. * * - Used for advanced controller. * * @see {@link MatterSpecification.v161.Device} ยง 8.7 */ export interface ClosureControllerDevice extends Identity {} export namespace ClosureControllerRequirements { /** * The Binding cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link BindingServer} for convenience. */ export const BindingServer = BaseBindingServer; /** * The ClosureControl cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link ClosureControlClient} for convenience. */ export const ClosureControlClient = BaseClosureControlClient; /** * The Identify cluster is optional per the Matter specification. * * We provide this alias to the default implementation {@link IdentifyClient} for convenience. */ export const IdentifyClient = BaseIdentifyClient; /** * The ClosureDimension cluster is optional per the Matter specification. * * We provide this alias to the default implementation {@link ClosureDimensionClient} for convenience. */ export const ClosureDimensionClient = BaseClosureDimensionClient; /** * An implementation for each server cluster supported by the endpoint per the Matter specification. */ export const server = { mandatory: { Binding: BindingServer } }; /** * A definition for each client cluster supported by the endpoint per the Matter specification. */ export const client = { mandatory: { ClosureControl: ClosureControlClient }, optional: { Identify: IdentifyClient, ClosureDimension: ClosureDimensionClient } }; } export const ClosureControllerDeviceDefinition = MutableEndpoint({ name: "ClosureController", deviceType: 0x23e, deviceRevision: 2, requirements: ClosureControllerRequirements, behaviors: SupportedBehaviors(ClosureControllerRequirements.server.mandatory.Binding) }); Object.freeze(ClosureControllerDeviceDefinition); export const ClosureControllerDevice: ClosureControllerDevice = ClosureControllerDeviceDefinition;