{
	"pluginAlias": "SOMAShades",
	"pluginType": "platform",
	"singular": true,
	"schema": {
		"type": "object",
		"properties": {
			"discoverDelay": {
				"type": "integer",
				"default": 15,
				"title": "Device Discovery Delay (seconds)",
				"required": true,
				"description": "Delay discovery of BLE devices, if you have other plugins that uses BLE and noble for communication"
			},
			"devices": {
				"type": "array",
				"title": "Devices",
				"items": {
					"type": "object",
					"title": "Shades",
					"properties": {
						"name": {
							"type": "string",
							"title": "Shades Name",
							"required": true,
							"placeholder": "e.g. Living Room Shades",
							"description": "Display Name you want to give this shades accessory in HomeKit. Each shades must have a unique name."
						},
						"id": {
							"type": "string",
							"title": "Shades MAC Address",
							"required": true,
							"placeholder": "e.g. d542c4c9a702",
							"description": "MAC address of the SOMA Shades you want to connect, without colon. You can find this info in the Smart Shades app."
						}
					}
				}
			}
		}
	},
	"layout": [
		{
			"type": "flex",
			"flex-flow": "row wrap",
			"items": [
				"discoverDelay"
			]
		},
		{
			"key": "devices",
			"type": "array",
			"name": " ",
			"description": "Provide the details of your shades.",
			"orderable": true,
			"buttonText": "Add Shades",
			"items": [
				"devices[].name",
				"devices[].id"
			]
		}
	]
}