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",
|
||||
"pluginType": "platform",
|
||||
"singular": true,
|
||||
"headerDisplay": "Configure the required multi-tap-switches here.",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"title": "Platform Name",
|
||||
"type": "string",
|
||||
"required": "true",
|
||||
"required": true,
|
||||
"default": "MultiTapSwitch"
|
||||
},
|
||||
"enabled": {
|
||||
@@ -24,23 +27,33 @@
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string",
|
||||
"required": true
|
||||
"description": "Name of the switch shown in the Home App",
|
||||
"required": true,
|
||||
"minLength": 3,
|
||||
"placeholder": "Multi Tap Switch"
|
||||
},
|
||||
"numberConfiguredScenes": {
|
||||
"title": "Max. Scenes",
|
||||
"type": "number",
|
||||
"description": "Maximum number of configurable programmable switches.<br>The number of really used switches can be changed during runtime.",
|
||||
"required": true,
|
||||
"default": 5
|
||||
"default": 5,
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"triggerTimeout": {
|
||||
"title": "Reset Timeout",
|
||||
"type": "number",
|
||||
"description": "Seconds, after which the switch and trigger index is reset (<code>0 = disabled</code>).",
|
||||
"required": true,
|
||||
"default": 10
|
||||
"default": 10,
|
||||
"minimum": 0,
|
||||
"maximum": 30
|
||||
},
|
||||
"resetAfterSwitchOff": {
|
||||
"title": "Reset after Switch-Off",
|
||||
"title": "Reset when switch turned `Off`",
|
||||
"type": "boolean",
|
||||
"description": "Reset the switch and trigger index, when the trigger switch is turned `Off` (independent from timeout)",
|
||||
"required": true,
|
||||
"default": false
|
||||
},
|
||||
@@ -55,3 +68,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user