"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var smoke_co_alarm_cluster_element_exports = {};
__export(smoke_co_alarm_cluster_element_exports, {
  SmokeCoAlarm: () => SmokeCoAlarm
});
module.exports = __toCommonJS(smoke_co_alarm_cluster_element_exports);
var import_MatterDefinition = require("../MatterDefinition.js");
var import_elements = require("../../elements/index.js");
/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
const SmokeCoAlarm = (0, import_elements.ClusterElement)(
  { name: "SmokeCoAlarm", id: 92, classification: "application" },
  (0, import_elements.AttributeElement)({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  (0, import_elements.AttributeElement)(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    (0, import_elements.FieldElement)({ name: "SMOKE", conformance: "O.a+", constraint: "0", title: "SmokeAlarm" }),
    (0, import_elements.FieldElement)({ name: "CO", conformance: "O.a+", constraint: "1", title: "CoAlarm" })
  ),
  (0, import_elements.AttributeElement)(
    { name: "ExpressedState", id: 0, type: "ExpressedStateEnum", access: "R V", conformance: "M", quality: "N" }
  ),
  (0, import_elements.AttributeElement)({ name: "SmokeState", id: 1, type: "AlarmStateEnum", access: "R V", conformance: "SMOKE", quality: "N" }),
  (0, import_elements.AttributeElement)({ name: "CoState", id: 2, type: "AlarmStateEnum", access: "R V", conformance: "CO", quality: "N" }),
  (0, import_elements.AttributeElement)({ name: "BatteryAlert", id: 3, type: "AlarmStateEnum", access: "R V", conformance: "M", quality: "N" }),
  (0, import_elements.AttributeElement)({ name: "DeviceMuted", id: 4, type: "MuteStateEnum", access: "R V", conformance: "O", quality: "N" }),
  (0, import_elements.AttributeElement)({ name: "TestInProgress", id: 5, type: "bool", access: "R V", conformance: "M" }),
  (0, import_elements.AttributeElement)({ name: "HardwareFaultAlert", id: 6, type: "bool", access: "R V", conformance: "M", quality: "N" }),
  (0, import_elements.AttributeElement)(
    { name: "EndOfServiceAlert", id: 7, type: "EndOfServiceEnum", access: "R V", conformance: "M", quality: "N" }
  ),
  (0, import_elements.AttributeElement)({ name: "InterconnectSmokeAlarm", id: 8, type: "AlarmStateEnum", access: "R V", conformance: "O" }),
  (0, import_elements.AttributeElement)({ name: "InterconnectCoAlarm", id: 9, type: "AlarmStateEnum", access: "R V", conformance: "O" }),
  (0, import_elements.AttributeElement)(
    { name: "ContaminationState", id: 10, type: "ContaminationStateEnum", access: "R V", conformance: "[SMOKE]" }
  ),
  (0, import_elements.AttributeElement)({ name: "SmokeSensitivityLevel", id: 11, type: "SensitivityEnum", access: "RW VM", conformance: "[SMOKE]" }),
  (0, import_elements.AttributeElement)({ name: "ExpiryDate", id: 12, type: "epoch-s", access: "R V", conformance: "O", quality: "F" }),
  (0, import_elements.EventElement)(
    { name: "SmokeAlarm", id: 0, access: "V", conformance: "SMOKE", priority: "critical" },
    (0, import_elements.FieldElement)({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  (0, import_elements.EventElement)(
    { name: "CoAlarm", id: 1, access: "V", conformance: "CO", priority: "critical" },
    (0, import_elements.FieldElement)({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  (0, import_elements.EventElement)(
    { name: "LowBattery", id: 2, access: "V", conformance: "M", priority: "info" },
    (0, import_elements.FieldElement)({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  (0, import_elements.EventElement)({ name: "HardwareFault", id: 3, access: "V", conformance: "M", priority: "info" }),
  (0, import_elements.EventElement)({ name: "EndOfService", id: 4, access: "V", conformance: "M", priority: "info" }),
  (0, import_elements.EventElement)({ name: "SelfTestComplete", id: 5, access: "V", conformance: "M", priority: "info" }),
  (0, import_elements.EventElement)({ name: "AlarmMuted", id: 6, access: "V", conformance: "O", priority: "info" }),
  (0, import_elements.EventElement)({ name: "MuteEnded", id: 7, access: "V", conformance: "O", priority: "info" }),
  (0, import_elements.EventElement)(
    { name: "InterconnectSmokeAlarm", id: 8, access: "V", conformance: "[SMOKE]", priority: "critical" },
    (0, import_elements.FieldElement)({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  (0, import_elements.EventElement)(
    { name: "InterconnectCoAlarm", id: 9, access: "V", conformance: "[CO]", priority: "critical" },
    (0, import_elements.FieldElement)({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  (0, import_elements.EventElement)({ name: "AllClear", id: 10, access: "V", conformance: "M", priority: "info" }),
  (0, import_elements.CommandElement)({ name: "SelfTestRequest", id: 0, access: "O", conformance: "O", direction: "request", response: "status" }),
  (0, import_elements.DatatypeElement)(
    { name: "AlarmStateEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Normal", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Warning", id: 1, conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "Critical", id: 2, conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "SensitivityEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "High", id: 0, conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "Standard", id: 1, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Low", id: 2, conformance: "O" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "ExpressedStateEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Normal", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "SmokeAlarm", id: 1, conformance: "SMOKE" }),
    (0, import_elements.FieldElement)({ name: "CoAlarm", id: 2, conformance: "CO" }),
    (0, import_elements.FieldElement)({ name: "BatteryAlert", id: 3, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Testing", id: 4, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "HardwareFault", id: 5, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "EndOfService", id: 6, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InterconnectSmoke", id: 7, conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "InterconnectCo", id: 8, conformance: "O" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "MuteStateEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "NotMuted", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Muted", id: 1, conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "EndOfServiceEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Normal", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Expired", id: 1, conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "ContaminationStateEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Normal", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Low", id: 1, conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "Warning", id: 2, conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "Critical", id: 3, conformance: "M" })
  )
);
import_MatterDefinition.MatterDefinition.children.push(SmokeCoAlarm);
//# sourceMappingURL=smoke-co-alarm-cluster.element.js.map
