/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import {
  ClusterElement as Cluster,
  AttributeElement as Attribute,
  FieldElement as Field,
  DatatypeElement as Datatype
} from "../../elements/index.js";
const MeterIdentification = Cluster(
  { name: "MeterIdentification", id: 2822, classification: "application" },
  Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  Attribute(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    Field({ name: "PWRTHLD", conformance: "O", constraint: "0", title: "PowerThreshold" })
  ),
  Attribute({ name: "MeterType", id: 0, type: "MeterTypeEnum", access: "R V", conformance: "M", quality: "X" }),
  Attribute({
    name: "PointOfDelivery",
    id: 1,
    type: "string",
    access: "R V",
    conformance: "M",
    constraint: "max 64",
    quality: "X"
  }),
  Attribute({
    name: "MeterSerialNumber",
    id: 2,
    type: "string",
    access: "R V",
    conformance: "M",
    constraint: "max 64",
    quality: "X"
  }),
  Attribute({
    name: "ProtocolVersion",
    id: 3,
    type: "string",
    access: "R V",
    conformance: "O",
    constraint: "max 64",
    quality: "X"
  }),
  Attribute({
    name: "PowerThreshold",
    id: 4,
    type: "PowerThresholdStruct",
    access: "R V",
    conformance: "PWRTHLD",
    quality: "X"
  }),
  Datatype(
    { name: "MeterTypeEnum", type: "enum8" },
    Field({ name: "Utility", id: 0, conformance: "M" }),
    Field({ name: "Private", id: 1, conformance: "M" }),
    Field({ name: "Generic", id: 2, conformance: "M" })
  )
);
MatterDefinition.children.push(MeterIdentification);
export {
  MeterIdentification
};
//# sourceMappingURL=meter-identification.element.js.map
