update config schema

This commit is contained in:
Luis Riegger 2021-05-09 16:11:40 +02:00
parent 4f9e2ee7f2
commit acb50b3c95

View File

@ -34,13 +34,13 @@
"required": true "required": true
}, },
"prefix": { "prefix": {
"title": "Prefix robot name", "title": "Prefix with Robot Name",
"description": "Display the name of the robot in front of every service.", "description": "Display the name of the robot in front of every service.",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"backgroundUpdate": { "backgroundUpdate": {
"title": "Background update", "title": "Background Update Interval",
"description": "Interval for background updates while the robot is not cleaning (in minutes). During cleaning, the robot will automatically update at a faster rate.", "description": "Interval for background updates while the robot is not cleaning (in minutes). During cleaning, the robot will automatically update at a faster rate.",
"type": "integer", "type": "integer",
"minimum": 1, "minimum": 1,
@ -48,36 +48,74 @@
}, },
"services": { "services": {
"type": "array", "type": "array",
"title": "Services", "title": "Enabled Services",
"description": "The services to be made available for Homekit", "description": "The services to be made available for Homekit",
"uniqueItems": true,
"items": { "items": {
"title": "hihi",
"type": "string", "type": "string",
"enum": [ "enum": [
"Clean house", "clean",
"Clean spot", "cleanThe",
"Go to dock", "cleanSpot",
"Find me", "goToDock",
"dockState",
"binFull",
"eco",
"noGoLines",
"extraCare",
"schedule",
"findMe",
"battery"
],
"enumNames": [
"Clean",
"Clean the",
"Clean Spot",
"Go to Dock",
"Docked State",
"Bin Full",
"Eco Mode",
"NoGo Lines",
"Extra Care",
"Schedule", "Schedule",
"Eco", "Find me",
"Nogo lines", "Battery"
"Extra care",
"Docked sensor",
"Bin full sensor"
] ]
}, },
"default": [ "default": [
"Clean house", "clean",
"Clean spot", "cleanThe",
"Go to dock", "goToDock",
"Find me", "dockState",
"Schedule", "binFull",
"Eco", "eco",
"Nogo lines", "noGoLines",
"Extra care", "extraCare",
"Docked sensor", "schedule",
"Bin full sensor" "findMe",
"cleanSpot",
"battery"
] ]
} }
} }
},
"layout" : [
"language",
"token",
"prefix",
"backgroundUpdate",
{
"type": "fieldset",
"title": "Displayed Services",
"description": "<i>Services to be displayed in Homekit</i>",
"expandable": true,
"items": [
{
"key": "services",
"notitle": false
} }
]
}
]
} }