/** * @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 { ValveConfigurationAndControlServer as BaseValveConfigurationAndControlServer } from "../behaviors/valve-configuration-and-control/ValveConfigurationAndControlServer.js"; import { FlowMeasurementServer as BaseFlowMeasurementServer } from "../behaviors/flow-measurement/FlowMeasurementServer.js"; import { FlowMeasurementClient as BaseFlowMeasurementClient } from "../behaviors/flow-measurement/FlowMeasurementClient.js"; import { MutableEndpoint } from "../endpoint/type/MutableEndpoint.js"; import { SupportedBehaviors } from "../endpoint/properties/SupportedBehaviors.js"; import { Identity } from "@matter/general"; /** * This defines conformance to the Water Valve device type. * * @see {@link MatterSpecification.v16.Device} ยง 5.6 */ export interface WaterValveDevice extends Identity {} export namespace WaterValveRequirements { /** * 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 ValveConfigurationAndControl cluster is required by the Matter specification. * * We provide this alias to the default implementation {@link ValveConfigurationAndControlServer} for convenience. */ export const ValveConfigurationAndControlServer = BaseValveConfigurationAndControlServer; /** * The FlowMeasurement cluster is optional per the Matter specification. * * We provide this alias to the default implementation {@link FlowMeasurementServer} for convenience. */ export const FlowMeasurementServer = BaseFlowMeasurementServer; /** * The FlowMeasurement cluster is optional per the Matter specification. * * We provide this alias to the default implementation {@link FlowMeasurementClient} for convenience. */ export const FlowMeasurementClient = BaseFlowMeasurementClient; /** * An implementation for each server cluster supported by the endpoint per the Matter specification. */ export const server = { mandatory: { Identify: IdentifyServer, ValveConfigurationAndControl: ValveConfigurationAndControlServer }, optional: { FlowMeasurement: FlowMeasurementServer } }; /** * A definition for each client cluster supported by the endpoint per the Matter specification. */ export const client = { optional: { FlowMeasurement: FlowMeasurementClient }, mandatory: {} }; } export const WaterValveDeviceDefinition = MutableEndpoint({ name: "WaterValve", deviceType: 0x42, deviceRevision: 1, requirements: WaterValveRequirements, behaviors: SupportedBehaviors( WaterValveRequirements.server.mandatory.Identify, WaterValveRequirements.server.mandatory.ValveConfigurationAndControl ) }); Object.freeze(WaterValveDeviceDefinition); export const WaterValveDevice: WaterValveDevice = WaterValveDeviceDefinition;