{
    "pluginAlias": "Nibe",
    "pluginType": "platform",
    "singular": true,
    "customUi": true,
    "customUiPath": "./dist/homebridge-ui",
    "schema": {
      "type": "object",
      "properties": {
        "identifier": {
            "title": "Client Identifier",
            "type": "string",
            "required": true
        },
        "secret": {
            "title": "Client Secret",
            "type": "string",
            "required": true
        },
        "language": {
          "title": "Language",
          "type": "string",
          "default": "en",
          "oneOf": [
            {
              "title": "English",
              "enum": [
                "en"
              ]
            },
            {
              "title": "Polish",
              "enum": [
                "pl"
              ]
            },
            {
              "title": "Swedish",
              "enum": [
                "sv"
              ]
            }
          ],
          "required": true
        },
        "pollingPeriod": {
          "title": "Polling period",
          "type": "number",
          "minimum": 60,
          "placeholder": 60,
          "description": "Period (in seconds) for fetching device changes from api"
        },
        "ventilationStep0": {
          "title": "Ventilation/ERS step normal",
          "description": "You can check this value in SERVCIE menu -> operating settings -> fan speed exhaust air (5.1.5, 5.1.6)",
          "type": "integer",
          "minimum": 0,
          "maximum": 100,
          "placeholder": 65
        },
        "disabledAccessories": {
          "title": "Disabled accessories",
          "type": "array",
          "items": {
            "title": "Accessory",
            "type": "string"
          }
        },
        "showApiResponse": {
          "title": "Show Nibe MyUplink API response",
          "type": "boolean"
        }
      }
    },
    "layout": [
      {
        "type": "fieldset",
        "title": "Nibe API Credentials",
        "expandable": false,
        "items": [
          "identifier",
          "secret"
        ]
      },
      {
        "type": "fieldset",
        "title": "Locale",
        "description": "Nibe Api data and accessories language",
        "expandable": true,
        "expanded": false,
        "items": [
          "language"
        ]
      },
      {
        "type": "fieldset",
        "title": "Advanced Settings",
        "description": "Don't change these, unless you understand what you're doing.",
        "expandable": true,
        "expanded": false,
        "items": [
          "showApiResponse",
          "pollingPeriod"
        ]
      }
    ]
  }