{
	"pluginAlias": "Evohome",
	"pluginType": "platform",
	"singular": false,
	"headerDisplay": "This Plugin integrates your Honeywell Evohome into Homebridge. Please use your credentials from https://getconnected.honeywellhome.com",
	"footerDisplay": "It is important, that your Homebridge time zone is set correct. Please double check this! If you encounter any problems don't hesitate to have a look at https://github.com/luc-ass/homebridge-evohome.",
	"schema": {
		"type": "object",
		"properties": {
			"name": {
				"title": "Name",
				"type": "string",
				"default": "Evohome",
				"minLength": 1,
				"required": true,
				"description": "Plugin name as displayed in the Homebridge log"
			},
			"username": {
				"title": "Username/Email adress",
				"type": "string",
				"format": "email",
				"required": true
			},
			"password": {
				"title": "Password",
				"type": "string",
				"required": true
			},
			"temperatureUnit": {
				"title": "Temperature Unit",
				"type": "string",
				"default": "Celsius",
				"oneOf": [
					{ "title": "Celsius", "enum": ["Celsius"] },
					{ "title": "Fahrenheit", "enum": ["Fahrenheit"] }
				],
				"required": true
			},
			"locationIndex": {
				"title": "Location Index",
				"type": "integer",
				"minimum": 0,
				"default": 0,
				"required": false,
				"description": "This should only be changed if you have more than one location. The index starts with \"0\" and counts up for each added home."
			},
			"switchAway": {
				"title": "Display \"Away Switch\"",
				"type": "boolean",
				"default": true,
				"required": false
			},
			"switchDayOff": {
				"title": "Display \"Day Off Switch\"",
				"type": "boolean",
				"default": true,
				"required": false
			},
			"switchEco": {
				"title": "Display \"Eco Mode Switch\"",
				"type": "boolean",
				"default": true,
				"required": false
			},
			"switchHeatingOff": {
				"title": "Display \"Heating Off Switch\"",
				"type": "boolean",
				"default": true,
				"required": false
			},
			"switchCustom": {
				"title": "Display \"Custom Mode Switch\"",
				"type": "boolean",
				"default": true,
				"required": false
			}
		}
	},
	"layout": [
		"name",
		{
			"type": "flex",
			"flex-flow": "row wrap",
			"items": [
				"username",
				{
					"key": "password",
					"type": "password"
				}
			]
		},
		{
			"type": "fieldset",
			"title": "Optional Settings",
			"expandable": true,
			"expanded": false,
			"items": [
				"temperatureUnit",
				"locationIndex",
				"switchAway",
				"switchDayOff",
				"switchEco",
				"switchHeatingOff",
				"switchCustom"
			]
		}
	]
}
