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

export const bafDomain = "baf";
export const bafDefaultName = "Big Ass Fans";

export type TBafRawData = TSimpleLocalRawData;
export interface IBafSnapshot extends ISimpleLocalSnapshot {}
export interface IBafConfig extends ISimpleLocalConfig {}
export interface IHomeAssistantBafConfig extends IBafConfig {}

export const bafProfile: ISimpleLocalIntegrationProfile = {
  domain: "baf",
  displayName: "Big Ass Fans",
  manufacturer: "Big Ass Fans",
  model: "i6 fan",
  defaultName: "Big Ass Fans",
  defaultProtocol: "local",
  status: "control-runtime",
  platforms: [
    "fan",
    "sensor"
  ],
  serviceDomains: [
    "fan"
  ],
  controlServices: [
    "turn_on",
    "turn_off",
    "set_percentage"
  ],
  discoverySources: [
    "manual",
    "mdns",
    "ssdp",
    "http",
    "custom"
  ],
  discoveryKeywords: [
    "big ass fans",
    "baf",
    "i6"
  ],
  metadata: {
    source: "home-assistant/core",
    upstreamPath: "homeassistant/components/baf",
    upstreamDomain: "baf",
    integrationType: "device",
    iotClass: "local_push",
    requirements: [
      "aiobafi6==0.9.0"
    ],
    dependencies: [],
    afterDependencies: [],
    codeowners: [],
    configFlow: true,
    runtime: {
      type: "control-runtime",
      services: [
        "snapshot",
        "status",
        "refresh",
        "turn_on",
        "turn_off",
        "set_percentage"
      ],
      platforms: [
        "fan",
        "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"
      ]
    }
  }
};
