homebridge-dummy-cmd-switch
Version:
Homebridge plugin to create momentary dummy switch to run command line commands.
34 lines (33 loc) • 927 B
JSON
{
"pluginAlias": "DummyCmdSwitch",
"pluginType": "accessory",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"description": "Name of the switch accessory."
},
"commandOn": {
"title": "Command On",
"type": "string",
"required": true,
"description": "Shell command to execute when the switch is turned on."
},
"delayOn": {
"title": "Delay On",
"type": "number",
"default": 1000,
"description": "Delay in milliseconds before executing the 'commandOn' after the switch is turned on."
},
"delayOff": {
"title": "Delay Off",
"type": "number",
"default": 1000,
"description": "Delay in milliseconds before resetting the switch to off after executing the 'commandOn'."
}
}
}
}