"use strict";
var import_Resource = require("#models/Resource.js");
/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import_Resource.Resource.add(
  {
    tag: "cluster",
    name: "IlluminanceMeasurement",
    pics: "ILL",
    xref: "cluster\xA72.2",
    details: "The Illuminance Measurement cluster provides an interface to illuminance measurement functionality, including configuration and provision of notifications of illuminance measurements.",
    children: [
      {
        tag: "attribute",
        name: "MeasuredValue",
        xref: "cluster\xA72.2.5.1",
        details: "Indicates the illuminance in Lux (symbol lx) as follows:\n  \u2022 MeasuredValue = 10,000 x log10(illuminance) + 1,\nwhere 1 lx <= illuminance <= 3.576 Mlx, corresponding to a MeasuredValue in the range 1 to 0xFFFE. The MeasuredValue attribute can take the following values:\n  \u2022 0 indicates a value of illuminance that is too low to be measured,\n  \u2022 MinMeasuredValue <= MeasuredValue <= MaxMeasuredValue under normal circumstances,\n  \u2022 null indicates that the illuminance measurement is invalid.\nThe MeasuredValue attribute is updated continuously as new measurements are made."
      },
      {
        tag: "attribute",
        name: "MinMeasuredValue",
        xref: "cluster\xA72.2.5.2",
        details: "Indicates the minimum value of MeasuredValue that can be measured. A value of null indicates that this attribute is not defined. See Measured Value for more details."
      },
      {
        tag: "attribute",
        name: "MaxMeasuredValue",
        xref: "cluster\xA72.2.5.3",
        details: "Indicates the maximum value of MeasuredValue that can be measured. A value of null indicates that this attribute is not defined. See Measured Value for more details."
      },
      { tag: "attribute", name: "Tolerance", xref: "cluster\xA72.2.5.4", details: "See Measured Value." },
      {
        tag: "attribute",
        name: "LightSensorType",
        xref: "cluster\xA72.2.5.5",
        details: "Indicates the electronic type of the light sensor. This attribute shall be set to one of the non-reserved values listed in LightSensorTypeEnum or null in case the sensor type is unknown."
      },
      {
        tag: "datatype",
        name: "LightSensorTypeEnum",
        xref: "cluster\xA72.2.4.1",
        children: [
          { tag: "field", name: "Photodiode", description: "Indicates photodiode sensor type" },
          { tag: "field", name: "Cmos", description: "Indicates CMOS sensor type" }
        ]
      }
    ]
  }
);
//# sourceMappingURL=illuminance-measurement.resource.js.map
