{
  "pluginAlias": "HomebridgeMHIWFRACPlatform",
  "pluginType": "platform",
  "singular": true,
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "title": "Name",
        "type": "string",
        "required": true,
        "default": "Homebridge MHI WF-RAC"
      },
      "operatorId": {
        "title": "Operator ID (optional)",
        "type": "string",
        "required": false,
        "description": "Leave blank to let the plugin self-register a new remote on each device (uses one of the device's 4 remote slots). Provide an operator ID (e.g. sniffed from the Smart M-Air app) to mirror an existing remote instead — no registration is performed in that case. See https://github.com/JobDoesburg/homebridge-mhi-wfrac for more information."
      },
      "ignoreConnectionErrors": {
        "title": "Ignore Connection Errors",
        "type": "boolean",
        "required": false,
        "default": true,
        "description": "When enabled, connection errors will not be logged to reduce console spam when devices are offline."
      },
      "devices": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "title": "Name",
              "type": "string",
              "required": true,
              "description": "A friendly name for this device (e.g., 'Living Room AC')."
            },
            "mac": {
              "type": "string",
              "required": true,
              "pattern": "^[a-fA-F0-9]{12}$",
              "title": "MAC Address (serial number)",
              "description": "The MAC address (serial number) of the device, without separating characters (so denote 12:34:56:78:90:ab as 1234567890ab)."
            },
            "deviceId": {
              "type": "string",
              "required": false,
              "title": "Device ID",
              "description": "Optional: client identifier sent with each request. The device accepts any string and the MAC address is used by default. Only set this if you want to mirror a specific value (e.g. one sniffed from the Smart M-Air app)."
            },
            "ip": {
              "title": "IP Address",
              "type": "string",
              "required": true,
              "format": "ipv4",
              "description": "The IP address of the device on your local network."
            },
            "hideDehumidifier": {
              "title": "Hide Dehumidifier",
              "type": "boolean",
              "required": false,
              "default": false,
              "description": "Hide the dehumidifier accessory if your AC unit doesn't support dry mode."
            }
          }
        }
      }
    }
  }
}