Files

83 lines
3.0 KiB
JSON

{
"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,
"minLength": 3,
"default": "MultiTapSwitch"
},
"devices": {
"type": "array",
"items": {
"title": "Switch",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"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,
"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,
"minimum": 0,
"maximum": 60
},
"resetAfterSwitchOff": {
"title": "Reset when switch is turned `Off`",
"type": "boolean",
"description": "Reset the switch and trigger index, when the stateless switch is turned <code>Off</code>",
"required": true,
"default": false
},
"triggerSceneAfterSwitchOff": {
"title": "Trigger scene, when switch is turned `Off`",
"type": "boolean",
"description": "Trigger scene <code>0</code> (so called <code>Off</code>-scene), when the stateless switch is turned <code>Off</code> (independent from timeout).<br><b>Note:</b> If this is enabled, rotation starts from switch <code>1</code>, otherwise <code>0</code>.",
"required": true,
"default": false
},
"logging": {
"title": "Log state changes",
"type": "boolean",
"required": true,
"default": false
},
"debounceTimerMs": {
"title": "Debounce Timer (in milliseconds)",
"type": "number",
"description": "Time to wait before the next switch trigger is accepted.<br>Only change this value, if you encounter problems using the HomeKit slider in the Home App",
"required": true,
"minimum": 10,
"maximum": 1000,
"default": 150
}
}
}
}
}
}
}