-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
53 lines (53 loc) · 1.94 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"pluginAlias": "Command Accessory",
"pluginType": "accessory",
"singular": false,
"headerDisplay": "Add a command based accessory below",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Sample Command",
"description": "Name to be shown for the device",
"required": true
},
"turn_on": {
"title": "Command on turn on",
"type": "string",
"description": "Command to run when the switch is turned on",
"required": true
},
"turn_off": {
"title": "Command on turn off",
"type": "string",
"description": "Command to run when the switch is turned off",
"required": true
},
"check_status": {
"title": "(Optional) Command to check status",
"type": "string",
"description": "(Optional) Command to run to check the current status"
},
"poll_check": {
"title": "(Optional) Interval to check status for changes automatically",
"type": "string",
"description": "(Optional) Interval in seconds or 5d2h3m10s format to check for status and update. Make sure that the command completes within this time, else it will not be considered. Needs to have the status command set."
},
"invert_status": {
"title": "Invert check status exit code",
"type": "boolean",
"default": false,
"description": "Exit code 0 is turned off (applies to check status only)"
}
},
"required": [
"name",
"turn_on",
"turn_off"
]
},
"form": null,
"display": null
}