homebridge-roborock-control
Version:
A Homebridge plugin to control Roborock vacuum cleaners.
80 lines • 1.68 kB
JSON
{
"pluginAlias": "HomebridgeRoborockControl",
"pluginType": "platform",
"singular": true,
"schema": {
"username": {
"title": "Username",
"type": "string",
"format": "email",
"required": true
},
"authMode": {
"title": "Auth Mode",
"type": "string",
"default": "password",
"oneOf": [
{
"title": "Password",
"enum": [
"password"
]
},
{
"title": "One-Time Code",
"enum": [
"otp"
]
}
],
"required": true
},
"password": {
"title": "Password",
"type": "string",
"condition": {
"functionBody": "return model.authMode === 'password'"
},
"required": false
},
"otpLogin": {
"title": "One-Time Code Login",
"description": "Run 'npx homebridge-roborock-control' and follow the instructions",
"type": "string",
"condition": {
"functionBody": "return model.authMode === 'otp'"
},
"required": false
},
"enableDebugLog": {
"title": "Debug Logging",
"type": "boolean",
"default": false
}
},
"layout": [
{
"key": "user_credentials",
"title": "User Credentials",
"type": "section",
"expandable": true,
"expanded": true,
"items": [
"username",
"authMode",
"password",
"otpLogin"
]
},
{
"key": "debug_options",
"title": "Debug Options",
"type": "section",
"expandable": true,
"expanded": false,
"items": [
"enableDebugLog"
]
}
]
}