{
    "pluginAlias": "FrigidaireAppliance",
    "pluginType": "platform",
    "singular": true,
    "footerDisplay": "Frigidaire Appliance Configuration",
    "schema": {
      "type": "object",
      "properties": {
        "name": {
          "title": "Name",
          "type": "string",
          "required": true,
          "default": "FrigidaireAppliance",
          "placeholder": "e.g. Frigidaire Appliance"
        },
        "auth": {
          "title": "Authorization",
          "type": "object",
          "properties": {
            "username": {
              "title": "Frigidaire Appliance Username",
              "type": "string",
              "required": true
            },
            "password": {
              "title": "Frigidaire Appliance Password",
              "type": "string",
              "required": true
            }
          }
        },
          "deviceRefresh": {
          "title": "Device Refresh Interval",
          "type": "integer",
          "default": 90,
          "description": "Poll interval to obtain device updates in seconds. <b>Please note:</b> A very low value may cause lockout to your account and/or API errors.",
          "minimum": 15,
          "maximum": 3600
        },
        "dehumidifierMode": {
          "title": "Dehumidifying Mode",
          "type": "string",
          "description": "Homekit only has two mode dehumidifying modes <i>auto</i> and <i>dehumidifying</i>. When dehumidifying is selected this select will be map to Frigidaire appliance mode. ",
          "required": true,
          "default": 5,
          "oneOf": [
            {
              "title": "DRY",
              "enum": [
                "DRY"
              ]
            },
            {
              "title": "CONTINUOUS",
              "enum": [
                "CONTINUOUS"
              ]
            },
            {
              "title": "QUIET",
              "enum": [
                "QUIET"
              ]
            }
          ]
          
        },
        "enableAirPurifier": {
          "title": "Show Air Purifier Accessory",
          "type": "boolean",
          "default": true,
          "description": "Expose an Air Purifier Accessory. May not be available in all models."
        },
        "enablePumpSwitch": {
          "title": "Enable Pump Switch",
          "type": "boolean",
          "default": true,
          "description": "Create a Pump Switch accessory. This is only available for dehumidifiers with a pump."
        },
        "excludedDevices": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "Device IDs"
          }
        }
      }
    },
    "layout": [{
        "type": "fieldset",
        "items": [
          "name",
          "auth.username",
          "auth.password",
          "deviceRefresh",
          "dehumidifierMode",
          "enableAirPurifier",
          "enablePumpSwitch"
        ]
      },
      {
        "type": "fieldset",
        "expandable": true,
        "title": "Advanced Options",
        "items": [
          {
            "key": "excludedDevices",
            "title": "Excluded Devices",
            "description": "A list of device ID to exclude from HomeKit. Obtain the device ID from Homebridge startup log.",
            "add": "Add Another Device",
            "type": "array",
            "items": [
              {
                "type": "fieldset",
                "items": [
                  "excludedDevices[]"
                ]
              }
            ]
          }
        ]
      }
    ]
  }
  