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,41 +1,82 @@
{ {
"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,
"headerDisplay": "homebridge-kobold plugin details [on github](https://github.com/himbeles/homebridge-kobold#readme)",
"schema": { "schema": {
"type": "object", "type": "object",
"properties": { "properties": {
"token": { "token": {
"title": "token", "title": "Vorwerk Kobold Token",
"type": "string", "type": "string",
"required": true, "required": true,
"description": "Your Kobold Token (https://git.io/J3g1b)" "description": "How to get your Vorwerk Kobold Token (https://git.io/J3g1b)"
}, },
"language": { "language": {
"title": "language", "title": "Services Language",
"description": "The displayed language of the registered services (and associated Siri commands)",
"type": "string", "type": "string",
"default": "en", "default": "en",
"oneOf": [ "oneOf": [
{ {
"title": "English", "title": "English",
"enum": [ "enum": ["en"]
"en"
]
}, },
{ {
"title": "German", "title": "German",
"enum": [ "enum": ["de"]
"de"
]
}, },
{ {
"title": "French", "title": "French",
"enum": [ "enum": ["fr"]
"fr"
]
} }
], ],
"required": true "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",
"enum": [
"Clean house",
"Clean spot",
"Go to dock",
"Find me",
"Schedule",
"Eco",
"Nogo lines",
"Extra care",
"Docked sensor",
"Bin full sensor"
]
},
"default": [
"Clean house",
"Clean spot",
"Go to dock",
"Find me",
"Schedule",
"Eco",
"Nogo lines",
"Extra care",
"Docked sensor",
"Bin full sensor"
]
} }
} }
} }