homebridge-plugin-command-dev
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -5,4 +5,3 @@ { | ||
"singular": false, | ||
"headerDisplay": "Optional content to display above the plugin config. Supports markdown.", | ||
"footerDisplay": "Optional content to display below the plugin config. Supports markdown.", | ||
"headerDisplay": "Add a command based accessory below", | ||
"schema": { | ||
@@ -12,2 +11,3 @@ "type": "object", | ||
"name": { | ||
"title": "Name", | ||
"type": "string", | ||
@@ -18,2 +18,3 @@ "default": "Sample Command", | ||
"turn_on": { | ||
"title": "Command on turn on", | ||
"type": "string", | ||
@@ -23,2 +24,3 @@ "description": "Command to run when the switch is turned on" | ||
"turn_off": { | ||
"title": "Command on turn off", | ||
"type": "string", | ||
@@ -28,2 +30,3 @@ "description": "Command to run when the switch is turned off" | ||
"check_status": { | ||
"title": "(Optional) Command to check status", | ||
"type": "string", | ||
@@ -33,2 +36,3 @@ "description": "(Optional) Command to run to check the current status" | ||
"invert_status": { | ||
"title": "Invert check status exit code", | ||
"type": "boolean", | ||
@@ -35,0 +39,0 @@ "default": false, |
{ | ||
"name": "homebridge-plugin-command-dev", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "This Homebridge plugin enables you to create virtual switches that can run any custom command when it is turned on or off.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,7 +7,10 @@ # homebridge-plugin-command | ||
In the Accessories section of Homebridge, use the below config as a template. | ||
Under Plugins > Homebridge Plugin Command > Settings, add an accessory and fill in the form! | ||
By default, `check_status` assumes turned on if the exit code of the command is 0. Set `invert_status` to true to flip it. | ||
`check_status` command is optional, and if not provided, it just alternates as you turn it on and off. | ||
``` | ||
If you like a JSON config, see the sample below. | ||
```json | ||
{ | ||
@@ -14,0 +17,0 @@ "accessory": "commandAccessory", |
17273
116
24