{
	"i18n": true,
	"type": "tabs",
	"tabsStyle": {
		"width": "calc(100% - 100px)"
	},
	"items": {
		"LightGroupsTab": {
			"type": "panel",
			"label": "LightGroups",
			"items": {
				"_info": {
					"type": "staticText",
					"text": "Warning: If you change a Groupname, then you have to change the Name in all used Object-IDs (Custom Config)!!!",
					"style": {
						"color": "red"
					},
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4
				},
				"LightGroups": {
					"newLine": true,
					"type": "table",
					"label": "LightGroups",
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"items": [
						{
							"type": "text",
							"attr": "Group",
							"width": "30%",
							"title": {
								"en": "Group name",
								"de": "Gruppenname",
								"ru": "Название группы",
								"pt": "Nome do grupo",
								"nl": "Groepsnaam",
								"fr": "Nom du groupe",
								"it": "Nome gruppo",
								"es": "Nombre del grupo",
								"pl": "Nazwa",
								"uk": "Назва групи",
								"zh-cn": "姓名"
							},
							"filter": true,
							"sort": true,
							"default": "",
							"validator": "data.Group.match(/^[a-zA-Z0-9_-]*$/)",
							"validatorErrorText": "No special characters allowed except - and _",
							"validatorNoSaveOnError": true
						},
						{
							"type": "objectId",
							"attr": "GroupLuxSensor",
							"width": "70%",
							"title": {
								"en": "Individual Lux Sensor (optional)",
								"de": "Individueller Lux Sensor (optional)",
								"ru": "Индивидуальный Lux Sensor (необязательно)",
								"pt": "Sensor individual Lux (opcional)",
								"nl": "Individuele Lux Sensor (optioneel)",
								"fr": "Senseur individuel Lux (facultatif)",
								"it": "Sensore Lux individuale (opzionale)",
								"es": "Sensor individual de lujo (opcional)",
								"pl": "Lux Sensor (odc",
								"uk": "Індивідуальний датчик Lux (за бажанням)",
								"zh-cn": "个人Lx Sensor(自愿)"
							},
							"default": ""
						}
					]
				},
				"_LightGroupsDuplicateError": {
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"newLine": true,
					"container": "div",
					"type": "textSendTo",
					"alsoDependsOn": ["LightControl"],
					"command": "checkIdForDuplicates",
					"style": {
						"color": "red"
					},
					"jsonData": "{\"LightGroups\": ${JSON.stringify(data.LightGroups)}}"
				},
				"deleteUnusedConfig": {
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"type": "checkbox",
					"label": "Deactivate lights and sensors settings when the light group is deleted",
					"default": true
				}
			}
		},
		"mainTab": {
			"type": "panel",
			"label": "General Settings",
			"items": {
				"headerGlobalLux": {
					"type": "header",
					"size": 3,
					"text": "Settings for Global Lux Sensor"
				},
				"GlobalLuxSensor": {
					"type": "objectId",
					"label": "Object ID for global Lux-Sensor",
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"default": "",
					"newLine": true,
					"help": "Only numerical states allowed!"
				},
				"headerMinCt": {
					"type": "header",
					"size": 3,
					"text": "Settings for Color-Temperature"
				},
				"minCt": {
					"type": "number",
					"label": "Minimum Value for Color-Temperature (Kelvin)",
					"default": 2700,
					"min": 2000,
					"max": 9000,
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"newLine": true
				},
				"maxCt": {
					"type": "number",
					"label": "Maximum Value for Color-Temperature (Kelvin)",
					"default": 6500,
					"min": 2000,
					"max": 9000,
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4
				},
				"headerDimming": {
					"type": "header",
					"size": 3,
					"text": "Settings for Dimming"
				},
				"RampSteps": {
					"type": "number",
					"label": "Ramp Steps for Dimming",
					"default": 10,
					"min": 5,
					"max": 30,
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"newLine": true
				},
				"minBri": {
					"type": "number",
					"label": "Minimum Brightness for Dimming",
					"default": 10,
					"min": 2,
					"max": 50,
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4
				},
				"headerPrecense": {
					"type": "header",
					"size": 3,
					"text": "Settings for Presence"
				},
				"IsPresenceDp": {
					"type": "objectId",
					"label": "Object ID for Presence",
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"default": "",
					"newLine": true
				},
				"PresenceCountDp": {
					"type": "objectId",
					"label": "Object ID for Presence Counter",
					"xs": 12,
					"sm": 12,
					"md": 4,
					"lg": 4,
					"xl": 4,
					"default": ""
				},
				"headerDebug": {
					"type": "header",
					"size": 3,
					"text": "Logging"
				},
				"debug": {
					"type": "checkbox",
					"label": "Extended logging",
					"xs": 4,
					"sm": 4,
					"md": 4,
					"lg": 4,
					"xl": 4
				}
			}
		}
	}
}
