/**
 * @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 SolarPowerDt = DeviceType(
    { name: "SolarPower", id: 0x17, classification: "simple" },
    Requirement(
        { name: "Descriptor", id: 0x1d, element: "serverCluster" },
        Requirement({ name: "DeviceTypeList", default: [ { deviceType: 23, revision: 1 } ], element: "attribute" })
    ),
    Requirement({ name: "Identify", id: 0x3, conformance: "O", element: "serverCluster" }),

    Requirement(
        { name: "PowerSource", id: 0x11, conformance: "M", element: "deviceType" },
        Requirement(
            { name: "PowerSource", id: 0x2f, element: "serverCluster" },
            Requirement({ name: "WIRED", conformance: "M", element: "feature" })
        ),
        Requirement(
            { name: "Descriptor", id: 0x1d, element: "serverCluster" },
            Requirement({ name: "TAGLIST", conformance: "M", element: "feature" })
        )
    ),

    Requirement(
        { name: "TemperatureSensor", id: 0x302, conformance: "O", element: "deviceType" },
        Requirement(
            { name: "Descriptor", id: 0x1d, element: "serverCluster" },
            Requirement({ name: "TAGLIST", conformance: "M", element: "feature" })
        )
    ),

    Requirement(
        { name: "DeviceEnergyManagement", id: 0x50d, conformance: "desc", element: "deviceType" },
        Requirement(
            { name: "DeviceEnergyManagement", id: 0x98, element: "serverCluster" },
            Requirement({ name: "POWERADJUSTMENT", conformance: "M", element: "feature" })
        )
    ),

    Requirement(
        { name: "ElectricalSensor", id: 0x510, conformance: "M", element: "deviceType" },
        Requirement({ name: "UserLabel", id: 0x41, conformance: "desc", element: "serverCluster" }),
        Requirement(
            { name: "ElectricalPowerMeasurement", id: 0x90, conformance: "M", element: "serverCluster" },
            Requirement({ name: "Voltage", conformance: "M", element: "attribute" }),
            Requirement({ name: "ActiveCurrent", conformance: "M", element: "attribute" })
        ),
        Requirement(
            { name: "ElectricalEnergyMeasurement", id: 0x91, conformance: "M", element: "serverCluster" },
            Requirement({ name: "EXPORTEDENERGY", conformance: "M", element: "feature" })
        )
    )
);

MatterDefinition.children.push(SolarPowerDt);
