{
  "pluginAlias": "P1",
  "pluginType": "platform",
  "singular": true,
  "headerDisplay": "Homebridge plugin for DSMR end-consumer (P1) interface",
  "footerDisplay": "",
  "schema": {
    "type": "object",
    "properties": {
      "dsmr22": {
        "title": "DSMR v2.2",
        "description": "Connect to DSMR v2.2 smart meter.  Default: false.",
        "type": "boolean"
      },
      "name": {
        "description": "Plugin name as displayed in the Homebridge log.",
        "type": "string",
        "required": true,
        "default": "P1"
      },
      "serialPort": {
        "title": "Serial Port",
        "description": "Serial port connected to the P1 interface.  E.g. '/dev/ttyUSB0'.",
        "type": "string"
      },
      "timeout": {
        "title": "Timeout",
        "description": "Timeout in seconds.  Default: 5.",
        "type": "integer",
        "minimum": 5,
        "maximum": 120
      }
    }
  },
  "form": [
    "name",
    "outlet",
    {
      "type": "fieldset",
      "expandable": true,
      "title": "Advanced Settings",
      "description": "Don't change these, unless you understand what you're doing.",
      "items": [
        "serialPort",
        "dsmr22",
        "timeout"
      ]
    }
  ]
}
