mirror of
https://github.com/dtwardow/homebridge-multi-tap-switch.git
synced 2026-11-01 20:18:30 +00:00
Fix config.schema.json
This commit is contained in:
1 parent
4c8217618c
commit
5c5c118ddf
1 file changed
+19
-5
+19
-5
@@ -2,11 +2,14 @@
|
|||||||
"pluginAlias": "MultiTapSwitch",
|
"pluginAlias": "MultiTapSwitch",
|
||||||
"pluginType": "platform",
|
"pluginType": "platform",
|
||||||
"singular": true,
|
"singular": true,
|
||||||
|
"headerDisplay": "Configure the required multi-tap-switches here.",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"title": "Platform Name",
|
"title": "Platform Name",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"required": "true",
|
"required": true,
|
||||||
"default": "MultiTapSwitch"
|
"default": "MultiTapSwitch"
|
||||||
},
|
},
|
||||||
"enabled": {
|
"enabled": {
|
||||||
@@ -24,23 +27,33 @@
|
|||||||
"name": {
|
"name": {
|
||||||
"title": "Name",
|
"title": "Name",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"required": true
|
"description": "Name of the switch shown in the Home App",
|
||||||
|
"required": true,
|
||||||
|
"minLength": 3,
|
||||||
|
"placeholder": "Multi Tap Switch"
|
||||||
},
|
},
|
||||||
"numberConfiguredScenes": {
|
"numberConfiguredScenes": {
|
||||||
"title": "Max. Scenes",
|
"title": "Max. Scenes",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
"description": "Maximum number of configurable programmable switches.<br>The number of really used switches can be changed during runtime.",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": 5
|
"default": 5,
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 10
|
||||||
},
|
},
|
||||||
"triggerTimeout": {
|
"triggerTimeout": {
|
||||||
"title": "Reset Timeout",
|
"title": "Reset Timeout",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
"description": "Seconds, after which the switch and trigger index is reset (<code>0 = disabled</code>).",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": 10
|
"default": 10,
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 30
|
||||||
},
|
},
|
||||||
"resetAfterSwitchOff": {
|
"resetAfterSwitchOff": {
|
||||||
"title": "Reset after Switch-Off",
|
"title": "Reset when switch turned `Off`",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
"description": "Reset the switch and trigger index, when the trigger switch is turned `Off` (independent from timeout)",
|
||||||
"required": true,
|
"required": true,
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
@@ -55,3 +68,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user