-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.schema.json
104 lines (104 loc) · 2.51 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"pluginAlias": "GarageCommand",
"pluginType": "accessory",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Garage Door",
"required": true
},
"open": {
"title": "Command to open garage door",
"type": "string",
"required": true
},
"close": {
"title": "Command to close garage door",
"type": "string",
"required": true
},
"state": {
"title": "Command to get state/status of garage door",
"type": "string",
"required": true
},
"status_update_delay": {
"title": "Status update delay",
"descroption": "how long it takes for garage door to open/close (in seconds)",
"type": "string",
"default": "15",
"required": true
},
"poll_state_delay": {
"title": "Enable polling",
"description": "poll state/status of garage door (in seconds) (use 0 to disable polling)",
"type": "integer"
},
"ignore_errors": {
"title": "Ignore errors",
"description": "STOPPED will report as CLOSED",
"type": "boolean"
},
"log_polling": {
"title": "Log Polling",
"type": "boolean"
},
"manufacturer": {
"title": "Garage Door Manufacturer",
"type": "string",
"required": false
},
"model": {
"title": "Garage Door Model",
"type": "string",
"required": false
},
"serialNum": {
"title": "Serial Number",
"type": "string",
"required": false
}
}
},
"form": [
"name",
"open",
"close",
"state",
"status_update_delay",
{
"type": "fieldset",
"expandable": true,
"title": "Branding Settings",
"description": "Use if you want custom manufacture/model/serial number",
"items": [
"manufacturer",
"model",
"serialNum"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Polling Settings",
"description": "Options for polling Garage Door when Home app is closed",
"items": [
"poll_state_delay",
"log_polling"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "Don't change these, unless you understand what you're doing",
"items": [
"ignore_errors"
]
}
]
}