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
+60
-46
+60
-46
@@ -2,53 +2,67 @@
|
|||||||
"pluginAlias": "MultiTapSwitch",
|
"pluginAlias": "MultiTapSwitch",
|
||||||
"pluginType": "platform",
|
"pluginType": "platform",
|
||||||
"singular": true,
|
"singular": true,
|
||||||
|
"headerDisplay": "Configure the required multi-tap-switches here.",
|
||||||
"schema": {
|
"schema": {
|
||||||
"name": {
|
"type": "object",
|
||||||
"title": "Platform Name",
|
"properties": {
|
||||||
"type": "string",
|
"name": {
|
||||||
"required": "true",
|
"title": "Platform Name",
|
||||||
"default": "MultiTapSwitch"
|
"type": "string",
|
||||||
},
|
"required": true,
|
||||||
"enabled": {
|
"default": "MultiTapSwitch"
|
||||||
"title": "Enable",
|
},
|
||||||
"type": "boolean",
|
"enabled": {
|
||||||
"required": true,
|
"title": "Enable",
|
||||||
"default": true
|
"type": "boolean",
|
||||||
},
|
"required": true,
|
||||||
"devices": {
|
"default": true
|
||||||
"type": "array",
|
},
|
||||||
"items": {
|
"devices": {
|
||||||
"title": "Switch",
|
"type": "array",
|
||||||
"type": "object",
|
"items": {
|
||||||
"properties": {
|
"title": "Switch",
|
||||||
"name": {
|
"type": "object",
|
||||||
"title": "Name",
|
"properties": {
|
||||||
"type": "string",
|
"name": {
|
||||||
"required": true
|
"title": "Name",
|
||||||
},
|
"type": "string",
|
||||||
"numberConfiguredScenes": {
|
"description": "Name of the switch shown in the Home App",
|
||||||
"title": "Max. Scenes",
|
"required": true,
|
||||||
"type": "number",
|
"minLength": 3,
|
||||||
"required": true,
|
"placeholder": "Multi Tap Switch"
|
||||||
"default": 5
|
},
|
||||||
},
|
"numberConfiguredScenes": {
|
||||||
"triggerTimeout": {
|
"title": "Max. Scenes",
|
||||||
"title": "Reset Timeout",
|
"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": 10
|
"default": 5,
|
||||||
},
|
"minimum": 1,
|
||||||
"resetAfterSwitchOff": {
|
"maximum": 10
|
||||||
"title": "Reset after Switch-Off",
|
},
|
||||||
"type": "boolean",
|
"triggerTimeout": {
|
||||||
"required": true,
|
"title": "Reset Timeout",
|
||||||
"default": false
|
"type": "number",
|
||||||
},
|
"description": "Seconds, after which the switch and trigger index is reset (<code>0 = disabled</code>).",
|
||||||
"logging": {
|
"required": true,
|
||||||
"title": "Log state changes",
|
"default": 10,
|
||||||
"type": "boolean",
|
"minimum": 0,
|
||||||
"required": true,
|
"maximum": 30
|
||||||
"default": false
|
},
|
||||||
|
"resetAfterSwitchOff": {
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"logging": {
|
||||||
|
"title": "Log state changes",
|
||||||
|
"type": "boolean",
|
||||||
|
"required": true,
|
||||||
|
"default": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user