/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /*** THIS FILE IS GENERATED, DO NOT EDIT ***/ import { IdentifyServer as BaseIdentifyServer } from "../behaviors/identify/IdentifyServer.js"; import { ClosureControlServer as BaseClosureControlServer } from "../behaviors/closure-control/ClosureControlServer.js"; import { MutableEndpoint } from "../endpoint/type/MutableEndpoint.js"; import { SupportedBehaviors } from "../endpoint/properties/SupportedBehaviors.js"; import { Identity } from "@matter/general"; /** * A Closure is an element that seals an opening (such as a window, door, cabinet, wall, facade, ceiling, or roof). It * may contain one or more instances of a Closure Panel device type on separate child endpoints of the Closure parent. * Each Closure Panel is a sub-component of a Closure, capable of some change in state, primarily through a movement. * * All the common characteristics of a Closure are gathered within Closure Control Cluster. Moving parts or other * physical aspects of the device are exposed using Closure Dimension Cluster. * * ClosureDevice requires ClosureControl cluster but ClosureControl is not added by default because you must select the * features your device supports. You can add manually using ClosureDevice.with(). * * @see {@link MatterSpecification.v16.Device} ยง 8.5 */ export interface ClosureDevice extends Identity {} export namespace ClosureRequirements { /** * The Identify cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link IdentifyServer} for convenience. */ export const IdentifyServer = BaseIdentifyServer; /** * The ClosureControl cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link ClosureControlServer} for convenience. */ export const ClosureControlServer = BaseClosureControlServer; /** * An implementation for each server cluster supported by the endpoint per the Matter specification. */ export const server = { mandatory: { Identify: IdentifyServer, ClosureControl: ClosureControlServer } }; } export const ClosureDeviceDefinition = MutableEndpoint({ name: "Closure", deviceType: 0x230, deviceRevision: 1, requirements: ClosureRequirements, behaviors: SupportedBehaviors(ClosureRequirements.server.mandatory.Identify) }); Object.freeze(ClosureDeviceDefinition); export const ClosureDevice: ClosureDevice = ClosureDeviceDefinition;