From c2050afa21ae2d41b7bfdad13a8feb0cc33a2056 Mon Sep 17 00:00:00 2001 From: Luis Riegger Date: Sat, 8 May 2021 18:45:41 +0200 Subject: [PATCH] update config.schema --- config.schema.json | 115 ++++++++++++++++++++++++++++++--------------- 1 file changed, 78 insertions(+), 37 deletions(-) diff --git a/config.schema.json b/config.schema.json index 3282d8c..004a61b 100644 --- a/config.schema.json +++ b/config.schema.json @@ -1,42 +1,83 @@ { - "pluginAlias": "KoboldVacuumRobot", - "pluginType": "platform", - "headerDisplay": "For Advanced settings like the refresh time interval or disabled switches/sensors. [Check Here](https://github.com/himbeles/homebridge-kobold#readme)", - "schema": { - "type": "object", - "properties": { - "token": { - "title": "token", - "type": "string", - "required": true, - "description": "Your Kobold Token (https://git.io/J3g1b)" - }, - "language": { - "title": "language", + "pluginAlias": "KoboldVacuumRobot", + "pluginType": "platform", + "singular": true, + "headerDisplay": "homebridge-kobold plugin details [on github](https://github.com/himbeles/homebridge-kobold#readme)", + "schema": { + "type": "object", + "properties": { + "token": { + "title": "Vorwerk Kobold Token", + "type": "string", + "required": true, + "description": "How to get your Vorwerk Kobold Token (https://git.io/J3g1b)" + }, + "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", - "default": "en", - "oneOf": [ - { - "title": "English", - "enum": [ - "en" - ] - }, - { - "title": "German", - "enum": [ - "de" - ] - }, - { - "title": "French", - "enum": [ - "fr" - ] - } - ], - "required": true - } + "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" + ] } } + } }