import type { ISimpleLocalConfig, ISimpleLocalIntegrationProfile, ISimpleLocalSnapshot, TSimpleLocalRawData } from '../../core/index.js';

export const concord232Domain = "concord232";
export const concord232DefaultName = "Concord232";

export type TConcord232RawData = TSimpleLocalRawData;
export interface IConcord232Snapshot extends ISimpleLocalSnapshot {}
export interface IConcord232Config extends ISimpleLocalConfig {}
export interface IHomeAssistantConcord232Config extends IConcord232Config {}

export const concord232Profile: ISimpleLocalIntegrationProfile = {
  domain: "concord232",
  displayName: "Concord232",
  manufacturer: "Interlogix",
  model: "Concord alarm panel",
  defaultName: "Concord232",
  defaultProtocol: "local",
  status: "control-runtime",
  platforms: [
    "binary_sensor",
    "sensor"
  ],
  serviceDomains: [
    "alarm_control_panel"
  ],
  controlServices: [
    "arm_away",
    "arm_home",
    "disarm"
  ],
  discoverySources: [
    "manual",
    "mdns",
    "ssdp",
    "http",
    "custom"
  ],
  discoveryKeywords: [
    "concord232",
    "alarm"
  ],
  metadata: {
    source: "home-assistant/core",
    upstreamPath: "homeassistant/components/concord232",
    upstreamDomain: "concord232",
    iotClass: "local_polling",
    qualityScale: "legacy",
    requirements: [
      "concord232==0.15.1"
    ],
    dependencies: [],
    afterDependencies: [],
    codeowners: [],
    configFlow: true,
    runtime: {
      type: "control-runtime",
      services: [
        "snapshot",
        "status",
        "refresh",
        "arm_away",
        "arm_home",
        "disarm"
      ],
      platforms: [
        "binary_sensor",
        "sensor"
      ],
      controls: true
    },
    localApi: {
      implemented: [
        "manual local endpoint setup",
        "snapshot, raw data, snapshotProvider, and injected native client operation",
        "generic HTTP/TCP local transport when config.path, config.transport, or documented defaults are supplied"
      ],
      explicitUnsupported: [
        "claiming live command success without injected client.execute or commandExecutor",
        "cloud account flows and remote API polling",
        "device-specific protocol features not represented by snapshot/rawData/client/executor inputs"
      ]
    }
  }
};
