{
  "pluginAlias": "EufyRobovacHomebridgePlugin",
  "pluginType": "platform",
  "singular": true,
  "schema": {
    "type": "object",
    "required": ["name", "ip", "deviceId", "deviceKey"],
    "properties": {
      "name": {
        "title": "Name",
        "description": "Arbitrary name for your Eufy Robovac",
        "type": "string",
        "default": "Eufy Robovac"
      },
      "ip": {
        "title": "IP Address",
        "description": "IP Address of your Eufy Robovac",
        "type": "string",
        "placeholder": "10.0.1.69"
      },
      "deviceId": {
        "title": "Tuya Device ID",
        "description": "Tuya/Eufy Device ID (see: https://github.com/gtalusan/eufy-device-id-js)",
        "type": "string"
      },
      "deviceKey": {
        "title": "Tuya Device Key",
        "description": "Tuya/Eufy Device/Local Key (see: https://github.com/gtalusan/eufy-device-id-js)",
        "type": "string"
      },
      "roomSwitches": {
        "description": "Rooms - configure according to the eufy clean app.  These are optional.  If no rooms, then the Eufy Robovac will be configured for Auto mode.",
        "type": "array",
        "items": {
          "title": "Room",
          "type": "object",
          "required": ["name", "rooms"],
          "properties": {
            "name": {
              "title": "Name",
              "type": "string",
              "placeholder": "Name for this room"
            },
            "rooms": {
              "title": "Rooms",
              "type": "string",
              "placeholder": "A room number or comma-separated list of room numbers",
              "pattern": "^[0-9]+(,[0-9]+)*$"
            }
          }
        }
      }
    }
  }
}
