/**
 * @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 MountedOnOffControlDt = DeviceType(
    { name: "MountedOnOffControl", id: 0x10f, type: "OnOffPlugInUnit", classification: "simple" },
    Requirement(
        { name: "Descriptor", id: 0x1d, element: "serverCluster" },
        Requirement({ name: "DeviceTypeList", default: [ { deviceType: 271, revision: 2 } ], element: "attribute" })
    ),
    Requirement(
        { name: "Identify", id: 0x3, conformance: "M", element: "serverCluster" },
        Requirement({ name: "TriggerEffect", conformance: "M", element: "command" })
    ),
    Requirement({ name: "Groups", id: 0x4, conformance: "M", element: "serverCluster" }),
    Requirement(
        { name: "OnOff", id: 0x6, conformance: "M", element: "serverCluster" },
        Requirement({ name: "LIGHTING", conformance: "M", element: "feature" })
    ),

    Requirement(
        { name: "LevelControl", id: 0x8, conformance: "O", element: "serverCluster" },
        Requirement({ name: "ONOFF", conformance: "M", element: "feature" }),
        Requirement({ name: "LIGHTING", conformance: "M", element: "feature" }),
        Requirement({ name: "CurrentLevel", constraint: "1 to 254", element: "attribute" }),
        Requirement({ name: "MinLevel", constraint: "1", element: "attribute" }),
        Requirement({ name: "MaxLevel", constraint: "254", element: "attribute" })
    ),

    Requirement(
        { name: "ScenesManagement", id: 0x62, conformance: "M", element: "serverCluster" },
        Requirement({ name: "CopyScene", conformance: "M", element: "command" })
    ),
    Requirement({ name: "OccupancySensing", id: 0x406, conformance: "O", element: "clientCluster" })
);

MatterDefinition.children.push(MountedOnOffControlDt);
