update config.schema

This commit is contained in:
Luis Riegger 2021-05-08 18:45:41 +02:00
parent 1b10a91d96
commit c2050afa21

View File

@ -1,42 +1,83 @@
{ {
"pluginAlias": "KoboldVacuumRobot", "pluginAlias": "KoboldVacuumRobot",
"pluginType": "platform", "pluginType": "platform",
"headerDisplay": "For Advanced settings like the refresh time interval or disabled switches/sensors. [Check Here](https://github.com/himbeles/homebridge-kobold#readme)", "singular": true,
"schema": { "headerDisplay": "homebridge-kobold plugin details [on github](https://github.com/himbeles/homebridge-kobold#readme)",
"type": "object", "schema": {
"properties": { "type": "object",
"token": { "properties": {
"title": "token", "token": {
"type": "string", "title": "Vorwerk Kobold Token",
"required": true, "type": "string",
"description": "Your Kobold Token (https://git.io/J3g1b)" "required": true,
}, "description": "How to get your Vorwerk Kobold Token (https://git.io/J3g1b)"
"language": { },
"title": "language", "language": {
"title": "Services Language",
"description": "The displayed language of the registered services (and associated Siri commands)",
"type": "string",
"default": "en",
"oneOf": [
{
"title": "English",
"enum": ["en"]
},
{
"title": "German",
"enum": ["de"]
},
{
"title": "French",
"enum": ["fr"]
}
],
"required": true
},
"prefix": {
"title": "Prefix robot name",
"description": "Display the name of the robot in front of every service.",
"type": "boolean",
"default": false
},
"backgroundUpdate": {
"title": "Background update",
"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",
"minimum": 1,
"default": 30
},
"services": {
"type": "array",
"title": "Services",
"description": "The services to be made available for Homekit",
"items": {
"type": "string", "type": "string",
"default": "en", "enum": [
"oneOf": [ "Clean house",
{ "Clean spot",
"title": "English", "Go to dock",
"enum": [ "Find me",
"en" "Schedule",
] "Eco",
}, "Nogo lines",
{ "Extra care",
"title": "German", "Docked sensor",
"enum": [ "Bin full sensor"
"de" ]
] },
}, "default": [
{ "Clean house",
"title": "French", "Clean spot",
"enum": [ "Go to dock",
"fr" "Find me",
] "Schedule",
} "Eco",
], "Nogo lines",
"required": true "Extra care",
} "Docked sensor",
"Bin full sensor"
]
} }
} }
}
} }