/**
 * @license
 * Copyright 2022-2024 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import { DeviceTypeElement as DeviceType, RequirementElement as Requirement } from "../../elements/index.js";
const OnOffSensorDt = DeviceType({
  name: "OnOffSensor",
  id: 2128,
  category: "Sensor",
  classification: "simple",
  details: "An On/Off Sensor is a measurement and sensing device that, when bound to a lighting device such as a Dimmable Light, is capable of being used to switch the device on or off.",
  xref: { document: "device", section: "7.8" },
  children: [
    Requirement({
      name: "Descriptor",
      id: 29,
      element: "serverCluster",
      children: [Requirement({ name: "DeviceTypeList", default: [{ deviceType: 2128, revision: 3 }], element: "attribute" })]
    }),
    Requirement({
      name: "Identify",
      id: 3,
      conformance: "M",
      element: "serverCluster",
      xref: { document: "device", section: "7.8.4" }
    }),
    Requirement({
      name: "Identify",
      id: 3,
      conformance: "M",
      element: "clientCluster",
      xref: { document: "device", section: "7.8.4" }
    }),
    Requirement({
      name: "Groups",
      id: 4,
      conformance: "O",
      element: "clientCluster",
      xref: { document: "device", section: "7.8.4" }
    }),
    Requirement({
      name: "ScenesManagement",
      id: 98,
      conformance: "P, O",
      element: "clientCluster",
      xref: { document: "device", section: "7.8.4" }
    }),
    Requirement({
      name: "OnOff",
      id: 6,
      conformance: "M",
      element: "clientCluster",
      xref: { document: "device", section: "7.8.4" }
    }),
    Requirement({
      name: "LevelControl",
      id: 8,
      conformance: "O",
      element: "clientCluster",
      xref: { document: "device", section: "7.8.4" }
    }),
    Requirement({
      name: "ColorControl",
      id: 768,
      conformance: "O",
      element: "clientCluster",
      xref: { document: "device", section: "7.8.4" }
    })
  ]
});
MatterDefinition.children.push(OnOffSensorDt);
export {
  OnOffSensorDt
};
//# sourceMappingURL=OnOffSensorDT.js.map
