{
  "pluginAlias": "BigAssFans-i6",
  "pluginType": "platform",
  "singular": true,
  "headerDisplay": "Homebridge plugin for Big Ass Fans i6",
  "footerDisplay": "For a detailed description, see the [README](https://github.com/oogje/homebridge-i6-bigassfans#platform-configuration-fields)",
  "schema": {
    "type": "object",
    "properties": {
      "fans": {
        "title": "Fans:",
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
                "title": "Name",
                "description": "The name of the fan.",
                "type": "string",
                "minLength": 1,
                "required": true,
                "default": "i6 fan"
            },
            "ip": {
              "title": "Fan IP address or hostname",
              "description": "The IP address or hostname of the fan.",
              "type": "string",
              "format": "hostname",
              "required": true
            },
            "mac": {
              "title": "MAC address",
              "description": "The MAC address of the fan.",
              "type": "string",
              "required": true
            },
            "showWhooshSwitch": {
              "title": "Whoosh Switch",
              "description": "Add a switch for 'Whoosh Mode'",
              "type": "boolean",
              "default": false
            },
            "showFanAutoSwitch": {
              "title": "Fan Auto Switch",
              "description": "Add a switch for 'Fan Auto'",
              "type": "boolean",
              "default": false
            },
            "showLightAutoSwitch": {
              "title": "Light Auto Switch",
              "description": "Add a switch for 'Light Auto'",
              "type": "boolean",
              "default": false
            },
            "showDimToWarmSwitch": {
              "title": "Dim to Warm Switch",
              "description": "Add a switch for 'Dim to Warm'",
              "type": "boolean",
              "default": false,
              "condition": {
                "functionBody": "return model.fans[arrayIndices].fanModel !== 'Haiku L Series' && model.fans[arrayIndices].fanModel !== 'Haiku H/I Series';"
              }
            },
            "showEcoModeSwitch": {
              "title": "Eco Mode Switch",
              "description": "Add a switch for 'Eco to Mode'",
              "type": "boolean",
              "default": false,
              "condition": {
                "functionBody": "return model.fans[arrayIndices].fanModel !== 'i6';"
              }
            },
            "disableDirectionControl": {
              "title": "Disable Direction Control",
              "description": "Prevents user from changing fan direction from HomeKit.",
              "type": "boolean",
              "default": false
            }
          }
        }  
      }
    }
  }
}