/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/*** THIS FILE IS GENERATED, DO NOT EDIT ***/

import { MatterDefinition } from "../MatterDefinition.js";
import { DeviceTypeElement as DeviceType, RequirementElement as Requirement } from "../../elements/index.js";

export const RefrigeratorDt = DeviceType(
    { name: "Refrigerator", id: 0x70, classification: "simple" },
    Requirement(
        { name: "Descriptor", id: 0x1d, element: "serverCluster" },
        Requirement({ name: "DeviceTypeList", default: [ { deviceType: 112, revision: 2 } ], element: "attribute" })
    ),
    Requirement({ name: "Cooler", type: "TemperatureControlledCabinet.Cooler", conformance: "M", element: "condition" }),
    Requirement({ name: "Identify", id: 0x3, conformance: "O", element: "serverCluster" }),

    Requirement(
        {
            name: "RefrigeratorAndTemperatureControlledCabinetMode", id: 0x52, conformance: "O",
            element: "serverCluster"
        },
        Requirement({ name: "ONOFF", conformance: "X", element: "feature" }),
        Requirement({ name: "StartUpMode", conformance: "X", element: "attribute" })
    ),

    Requirement({ name: "RefrigeratorAlarm", id: 0x57, conformance: "O", element: "serverCluster" }),
    Requirement({ name: "TemperatureControlledCabinet", id: 0x71, conformance: "M", element: "deviceType" })
);

MatterDefinition.children.push(RefrigeratorDt);
