{
  "pluginAlias": "Flume",
  "pluginType": "platform",
  "singular": true,
  "customUi": true,
  "customUiPath": "./dist/homebridge-ui",
  "schema": {
    "type": "object",
    "required": ["username", "password", "clientId", "clientSecret", "refreshInterval", "units"],
    "properties": {
      "name": {
        "type": "string",
        "default": "Flume"
      },
      "username": {
        "type": "string",
        "title": "Flume-Benutzername",
        "required": true
      },
      "password": {
        "type": "string",
        "title": "Flume-Passwort",
        "required": true
      },
      "clientId": {
        "type": "string",
        "title": "Client ID",
        "placeholder": "1234567890ABCD",
        "required": true
      },
      "clientSecret": {
        "type": "string",
        "title": "Kundengeheimnis",
        "description": "Ihre Flume-Client-ID und Ihr Client-Secret finden Sie unter https://portal.flumetech.com",
        "placeholder": "1234567890ABCDEFGHIJ",
        "required": true
      },
      "refreshInterval": {
        "type": "integer",
        "title": "Intervall Aktualisierung",
        "description": "Anzahl der Minuten zwischen den Anfragen an Flume nach Leckinformationen",
        "default": 2,
        "minimum": 1,
        "required": true
      },
      "useNotifications": {
        "type": "boolean",
        "title": "Use Unread Usage Notifications",
        "description": "If true, an unread usage alert notification will be considered a leak"
      },
      "units": {
        "type": "string",
        "title": "Einheiten",
        "description": "Volumeneinheiten, die für benutzerdefinierte Merkmale verwendet werden",
        "enum": ["GALLONS", "LITERS", "CUBIC_FEET", "CUBIC_METERS"],
        "enumNames": ["Gallonen", "Liter", "Kubikfuß", "Kubikmeter"],
        "default": "GALLONS",
        "required": true
      },
      "disableDeviceLogging": {
        "type": "boolean",
        "title": "Geräteprotokollierung Deaktivieren",
        "description": "Wenn wahr, werden Änderungen am Zubehörstatus nicht protokolliert",
        "default": false,
        "required": false
      },
      "verbose": {
        "type": "boolean",
        "title": "Verbose",
        "description": "Zusätzliche Debug-Protokollierung aktivieren",
        "required": false
      },
      "excludeDevices": {
        "type": "array",
        "title": "Geräte ausschließen",
        "description": "Suchen Sie in den Protokollen nach \"Neues Gerät hinzufügen: [Geräte-ID]\"",
        "items": {
          "type": "string"
        },
        "uniqueItems": true,
        "default": [],
        "required": false
      }
    }
  },
  "layout": [
    {
      "type": "fieldset",
      "items": [
        "username",
        "password",
        "clientId",
        "clientSecret",
        "refreshInterval",
        "useNotifications",
        "units",
        "disableDeviceLogging",
        "verbose",
        {
          "key": "excludeDevices",
          "type": "array",
          "items": {
            "type": "string",
            "title": "Geräte-ID"
          }
        }
      ]
    }
  ]
}
