/**
 * @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,
  FieldElement as Field
} from "../../elements/index.js";
const TemperatureControlledCabinetDt = DeviceType({
  name: "TemperatureControlledCabinet",
  id: 113,
  category: "Appliances",
  classification: "simple",
  details: "A Temperature Controlled Cabinet only exists composed as part of another device type. It represents a single cabinet that is capable of having its temperature controlled. Such a cabinet may be chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar device. Equally, such a cabinet may be warming or heating food, for example as part of an oven, range, or similar device.",
  xref: { document: "device", section: "13.4" },
  children: [
    Requirement({
      name: "Descriptor",
      id: 29,
      element: "serverCluster",
      children: [Requirement({ name: "DeviceTypeList", default: [{ deviceType: 113, revision: 2 }], element: "attribute" })]
    }),
    Requirement({
      name: "TemperatureControl",
      id: 86,
      conformance: "M",
      element: "serverCluster",
      xref: { document: "device", section: "13.4.4" }
    }),
    Requirement({
      name: "TemperatureMeasurement",
      id: 1026,
      conformance: "O",
      element: "serverCluster",
      xref: { document: "device", section: "13.4.4" }
    }),
    Requirement({
      name: "RefrigeratorAndTemperatureControlledCabinetMode",
      id: 82,
      conformance: "[Cooler]",
      element: "serverCluster",
      xref: { document: "device", section: "13.4.4" },
      children: [
        Requirement({ name: "StartUpMode", conformance: "X", element: "attribute" }),
        Requirement({ name: "ONOFF", conformance: "X", element: "feature" })
      ]
    }),
    Requirement({
      name: "OvenMode",
      id: 73,
      conformance: "[Heater]",
      element: "serverCluster",
      xref: { document: "device", section: "13.4.4" },
      children: [
        Requirement({ name: "StartUpMode", conformance: "X", element: "attribute" }),
        Requirement({ name: "ONOFF", conformance: "X", element: "feature" })
      ]
    }),
    Requirement({
      name: "OvenCavityOperationalState",
      id: 72,
      conformance: "[Heater]",
      element: "serverCluster",
      xref: { document: "device", section: "13.4.4" },
      children: [
        Requirement({ name: "Pause", conformance: "X", element: "command" }),
        Requirement({ name: "Resume", conformance: "X", element: "command" })
      ]
    }),
    Field({
      name: "conditions",
      type: "enum8",
      children: [
        Field({
          name: "Cooler",
          description: "The device has cooling functionality.",
          xref: { document: "device", section: "13.4.3" }
        }),
        Field({
          name: "Heater",
          description: "The device has heating functionality.",
          xref: { document: "device", section: "13.4.3" }
        })
      ]
    })
  ]
});
MatterDefinition.children.push(TemperatureControlledCabinetDt);
export {
  TemperatureControlledCabinetDt
};
//# sourceMappingURL=TemperatureControlledCabinetDT.js.map
