{
  "pluginAlias": "UnifiAPLight",
  "pluginType": "platform",
  "singular": true,
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "title": "Name",
        "type": "string",
        "required": true,
        "default": "UniFi AP Lights"
      },
      "host": {
        "title": "Host",
        "type": "string",
        "required": true,
        "description": "The hostname or IP address of the UniFi Controller, including port if necessary (e.g., '192.168.1.1:8443')."
      },
      "username": {
        "title": "Username",
        "type": "string",
        "required": true,
        "description": "The username for the UniFi Controller."
      },
      "password": {
        "title": "Password",
        "type": "string",
        "required": true,
        "description": "The password for the UniFi Controller."
      },
      "sites": {
        "title": "Sites",
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Optional list of UniFi site names to control (e.g., ['default', 'MyHome']). Leave empty to use the default site."
      },
      "includeIds": {
        "title": "Include Device IDs",
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Optional list of specific device IDs to include. Leave empty to include all devices (unless excluded below)."
      },
      "excludeIds": {
        "title": "Exclude Device IDs",
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Optional list of device IDs to exclude. These will be skipped even if included above."
      }
    }
  }
}
