/**
 * @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,
  EventElement as Event,
  CommandElement as Command,
  DatatypeElement as Datatype
} from "../../elements/index.js";
const SmokeCoAlarm = Cluster(
  { name: "SmokeCoAlarm", id: 92, classification: "application" },
  Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  Attribute(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    Field({ name: "SMOKE", conformance: "O.a+", constraint: "0", title: "SmokeAlarm" }),
    Field({ name: "CO", conformance: "O.a+", constraint: "1", title: "CoAlarm" })
  ),
  Attribute(
    { name: "ExpressedState", id: 0, type: "ExpressedStateEnum", access: "R V", conformance: "M", quality: "N" }
  ),
  Attribute({ name: "SmokeState", id: 1, type: "AlarmStateEnum", access: "R V", conformance: "SMOKE", quality: "N" }),
  Attribute({ name: "CoState", id: 2, type: "AlarmStateEnum", access: "R V", conformance: "CO", quality: "N" }),
  Attribute({ name: "BatteryAlert", id: 3, type: "AlarmStateEnum", access: "R V", conformance: "M", quality: "N" }),
  Attribute({ name: "DeviceMuted", id: 4, type: "MuteStateEnum", access: "R V", conformance: "O", quality: "N" }),
  Attribute({ name: "TestInProgress", id: 5, type: "bool", access: "R V", conformance: "M" }),
  Attribute({ name: "HardwareFaultAlert", id: 6, type: "bool", access: "R V", conformance: "M", quality: "N" }),
  Attribute(
    { name: "EndOfServiceAlert", id: 7, type: "EndOfServiceEnum", access: "R V", conformance: "M", quality: "N" }
  ),
  Attribute({ name: "InterconnectSmokeAlarm", id: 8, type: "AlarmStateEnum", access: "R V", conformance: "O" }),
  Attribute({ name: "InterconnectCoAlarm", id: 9, type: "AlarmStateEnum", access: "R V", conformance: "O" }),
  Attribute(
    { name: "ContaminationState", id: 10, type: "ContaminationStateEnum", access: "R V", conformance: "[SMOKE]" }
  ),
  Attribute({ name: "SmokeSensitivityLevel", id: 11, type: "SensitivityEnum", access: "RW VM", conformance: "[SMOKE]" }),
  Attribute({ name: "ExpiryDate", id: 12, type: "epoch-s", access: "R V", conformance: "O", quality: "F" }),
  Event(
    { name: "SmokeAlarm", id: 0, access: "V", conformance: "SMOKE", priority: "critical" },
    Field({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  Event(
    { name: "CoAlarm", id: 1, access: "V", conformance: "CO", priority: "critical" },
    Field({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  Event(
    { name: "LowBattery", id: 2, access: "V", conformance: "M", priority: "info" },
    Field({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  Event({ name: "HardwareFault", id: 3, access: "V", conformance: "M", priority: "info" }),
  Event({ name: "EndOfService", id: 4, access: "V", conformance: "M", priority: "info" }),
  Event({ name: "SelfTestComplete", id: 5, access: "V", conformance: "M", priority: "info" }),
  Event({ name: "AlarmMuted", id: 6, access: "V", conformance: "O", priority: "info" }),
  Event({ name: "MuteEnded", id: 7, access: "V", conformance: "O", priority: "info" }),
  Event(
    { name: "InterconnectSmokeAlarm", id: 8, access: "V", conformance: "[SMOKE]", priority: "critical" },
    Field({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  Event(
    { name: "InterconnectCoAlarm", id: 9, access: "V", conformance: "[CO]", priority: "critical" },
    Field({ name: "AlarmSeverityLevel", id: 0, type: "AlarmStateEnum", conformance: "M" })
  ),
  Event({ name: "AllClear", id: 10, access: "V", conformance: "M", priority: "info" }),
  Command({ name: "SelfTestRequest", id: 0, access: "O", conformance: "O", direction: "request", response: "status" }),
  Datatype(
    { name: "AlarmStateEnum", type: "enum8" },
    Field({ name: "Normal", id: 0, conformance: "M" }),
    Field({ name: "Warning", id: 1, conformance: "O" }),
    Field({ name: "Critical", id: 2, conformance: "M" })
  ),
  Datatype(
    { name: "SensitivityEnum", type: "enum8" },
    Field({ name: "High", id: 0, conformance: "O" }),
    Field({ name: "Standard", id: 1, conformance: "M" }),
    Field({ name: "Low", id: 2, conformance: "O" })
  ),
  Datatype(
    { name: "ExpressedStateEnum", type: "enum8" },
    Field({ name: "Normal", id: 0, conformance: "M" }),
    Field({ name: "SmokeAlarm", id: 1, conformance: "SMOKE" }),
    Field({ name: "CoAlarm", id: 2, conformance: "CO" }),
    Field({ name: "BatteryAlert", id: 3, conformance: "M" }),
    Field({ name: "Testing", id: 4, conformance: "M" }),
    Field({ name: "HardwareFault", id: 5, conformance: "M" }),
    Field({ name: "EndOfService", id: 6, conformance: "M" }),
    Field({ name: "InterconnectSmoke", id: 7, conformance: "O" }),
    Field({ name: "InterconnectCo", id: 8, conformance: "O" })
  ),
  Datatype(
    { name: "MuteStateEnum", type: "enum8" },
    Field({ name: "NotMuted", id: 0, conformance: "M" }),
    Field({ name: "Muted", id: 1, conformance: "M" })
  ),
  Datatype(
    { name: "EndOfServiceEnum", type: "enum8" },
    Field({ name: "Normal", id: 0, conformance: "M" }),
    Field({ name: "Expired", id: 1, conformance: "M" })
  ),
  Datatype(
    { name: "ContaminationStateEnum", type: "enum8" },
    Field({ name: "Normal", id: 0, conformance: "M" }),
    Field({ name: "Low", id: 1, conformance: "O" }),
    Field({ name: "Warning", id: 2, conformance: "O" }),
    Field({ name: "Critical", id: 3, conformance: "M" })
  )
);
MatterDefinition.children.push(SmokeCoAlarm);
export {
  SmokeCoAlarm
};
//# sourceMappingURL=smoke-co-alarm-cluster.element.js.map
