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

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

import { Resource } from "#models/Resource.js";

Resource.add({
    tag: "cluster", name: "OvenMode", pics: "OTCCM", xref: "cluster§8.11",
    details: "This cluster is derived from the Mode Base cluster and defines additional mode tags and namespaced " +
        "enumerated values for oven devices.",

    children: [
        {
            tag: "attribute", name: "FeatureMap", xref: "cluster§8.11.4",
            children: [{ tag: "field", name: "DEPONOFF", details: "Dependency with the OnOff cluster" }]
        },
        {
            tag: "attribute", name: "SupportedModes", xref: "cluster§8.11.6.1",
            details: "At least one entry in the SupportedModes attribute shall include the Bake mode tag in the ModeTags " +
                "field list."
        },
        { tag: "attribute", name: "CurrentMode", xref: "cluster§8.11.6" },
        { tag: "attribute", name: "StartUpMode", xref: "cluster§8.11.6" },
        { tag: "attribute", name: "OnMode", xref: "cluster§8.11.6" },
        {
            tag: "datatype", name: "ModeOptionStruct", xref: "cluster§8.11.5.1",
            details: "The table below lists the changes relative to the Mode Base cluster for the fields of the " +
                "ModeOptionStruct type. A blank field indicates no change."
        },

        {
            tag: "datatype", name: "ModeTag",

            children: [
                { tag: "field", name: "Auto", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Quick", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Quiet", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "LowNoise", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "LowEnergy", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Vacation", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Min", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Max", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Night", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "Day", xref: "cluster§8.11.7.1" },
                {
                    tag: "field", name: "Bake", xref: "cluster§8.11.7.1.1",
                    details: "This mode sets the device into baking mode for baking food items."
                },
                {
                    tag: "field", name: "Convection", xref: "cluster§8.11.7.1.2",
                    details: "This mode sets the device into convection mode which creates an airflow within the device during the " +
                        "cooking duration."
                },
                {
                    tag: "field", name: "Grill", xref: "cluster§8.11.7.1.3",
                    details: "This mode sets the device into grill mode for grilling food items. This is the same as Broil for " +
                        "many regions."
                },
                {
                    tag: "field", name: "Roast", xref: "cluster§8.11.7.1.4",
                    details: "This mode sets the device into roast mode for roasting food items."
                },

                {
                    tag: "field", name: "Clean", xref: "cluster§8.11.7.1.5",

                    details: "This mode sets the device into cleaning mode to clean the internal components of the appliance." +
                        "\n" +
                        "> [!NOTE]" +
                        "\n" +
                        "> NOTE: Depending on regulatory or other requirements, the following restrictions could apply to the " +
                        "use of this mode: - It may NOT be possible to start this mode from a client. It may need to be " +
                        "started at the device due to the temperatures used during this mode. - The setting of the oven " +
                        "temperature or other features may be limited or not available while this mode is running. - Oven " +
                        "temperature measurement may NOT be available while this mode is running."
                },

                { tag: "field", name: "ConvectionBake", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "ConvectionRoast", xref: "cluster§8.11.7.1" },
                {
                    tag: "field", name: "Warming", xref: "cluster§8.11.7.1.8",
                    details: "This mode sets the device into a warming mode which begins warming the cavity."
                },
                {
                    tag: "field", name: "Proofing", xref: "cluster§8.11.7.1.9",
                    details: "This mode sets the device into proofing mode which creates an environment ready for proofing."
                },
                { tag: "field", name: "Steam", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "AirFry", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "AirSousVide", xref: "cluster§8.11.7.1" },
                { tag: "field", name: "FrozenFood", xref: "cluster§8.11.7.1" }
            ]
        }
    ]
});
