WIP dynamic platform
This commit is contained in:
@@ -1,23 +1,93 @@
|
||||
{
|
||||
"pluginAlias": "NeatoVacuumRobot",
|
||||
"pluginType": "platform",
|
||||
"headerDisplay": "For Advanced settings like Refresh time interval or Disabled switches/sensors. [Check Here](https://github.com/naofireblade/homebridge-neato#readme)",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"title": "email",
|
||||
"pluginAlias": "NeatoVacuumRobot",
|
||||
"pluginType": "platform",
|
||||
"singular": true,
|
||||
"headerDisplay": "",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"title": "E-Mail",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"format": "email"
|
||||
},
|
||||
"password": {
|
||||
"title": "Password",
|
||||
"type": "string",
|
||||
"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",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"format": "email",
|
||||
"description": "Your Email Address"
|
||||
"enum": [
|
||||
"Clean house",
|
||||
"Clean spot",
|
||||
"Go to dock",
|
||||
"Find me",
|
||||
"Schedule",
|
||||
"Eco",
|
||||
"Nogo lines",
|
||||
"Extra care",
|
||||
"Docked sensor",
|
||||
"Bin full sensor"
|
||||
]
|
||||
},
|
||||
"password": {
|
||||
"title": "password",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Your Password"
|
||||
}
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"layout": [
|
||||
{
|
||||
"type": "help",
|
||||
"helpvalue": "<h4>Login</h4>"
|
||||
},
|
||||
{
|
||||
"type": "help",
|
||||
"helpvalue": "Enter the credentials of your Neato app. If you don't have a neato account yet, register <a target='_blank' href='https://www.neatorobotics.com/create-account/'>here</a>"
|
||||
},
|
||||
{
|
||||
"type": "flex",
|
||||
"flex-flow": "row wrap",
|
||||
"items": [
|
||||
"email",
|
||||
{
|
||||
"key": "password",
|
||||
"type": "password"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "help",
|
||||
"helpvalue": "<h4>Options</h4>"
|
||||
},
|
||||
"backgroundUpdate",
|
||||
"prefix",
|
||||
{
|
||||
"type": "fieldset",
|
||||
"title": "Services",
|
||||
"description": "<i>Services to be displayed in Homekit</i>",
|
||||
"expandable": true,
|
||||
"items": [
|
||||
{
|
||||
"key": "services",
|
||||
"notitle": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user