forked from hjdhjd/homebridge-myq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
182 lines (165 loc) · 4.96 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"pluginAlias": "myQ",
"pluginType": "platform",
"singular": true,
"customUi": true,
"headerDisplay": "[homebridge-myq](https://github.com/hjdhjd/homebridge-myq) provides HomeKit support to myQ-enabled smart garage door openers and other devices.",
"footerDisplay": "See the [homebridge-myq developer page](https://github.com/hjdhjd/homebridge-myq) for detailed documentation, including [feature options](https://github.com/hjdhjd/homebridge-myq#feature-options).",
"schema": {
"type": "object",
"properties": {
"email": {
"title": "myQ Username",
"type": "string",
"required": true,
"placeholder": "[email protected]",
"description": "Email address used for your myQ account.",
"x-schema-form": {
"type": "email"
}
},
"password": {
"title": "myQ Password",
"type": "string",
"required": true,
"placeholder": "mypassword",
"description": "Password used for your myQ account.",
"x-schema-form": {
"type": "password"
}
},
"name": {
"title": "Name",
"type": "string",
"required": false,
"placeholder": "myQ",
"description": "The name to assign this plugin for logging purposes. Default: myQ."
},
"options": {
"title": "Feature Options",
"type": "array",
"items": {
"type": "string",
"title": "Feature Option",
"required": false,
"description": "Enter only one option per entry. See project page for the complete list of available options.",
"placeholder": "e.g. Disable.SerialNumber"
}
},
"mqttTopic": {
"type": "string",
"title": "MQTT Base Topic",
"required": false,
"placeholder": "e.g. unifi/protect",
"description": "The base MQTT topic to publish to. Default: myq."
},
"mqttUrl": {
"type": "string",
"title": "MQTT Broker URL",
"required": false,
"format": "uri",
"placeholder": "e.g. mqtt://1.2.3.4",
"description": "URL for the MQTT broker you'd like to publish event messages to. Default: None."
},
"refreshInterval": {
"title": "Refresh Interval",
"type": "integer",
"minimum": 5,
"maximum": 60,
"required": false,
"description": "Normal myQ status refresh interval, in seconds. Default: 12."
},
"activeRefreshInterval": {
"title": "Active Refresh Interval",
"type": "integer",
"minimum": 2,
"maximum": 10,
"required": false,
"description": "Refresh interval in seconds to use once device state changes are detected. Default: 3."
},
"activeRefreshDuration": {
"title": "Active Refresh Duration",
"minimum": 5,
"maximum": 900,
"type": "integer",
"required": false,
"description": "Duration in seconds to use the Active Refresh Interval to query for additional device state changes. Default: 300."
},
"debug": {
"title": "Debug Logging",
"type": "boolean",
"required": false,
"description": "Logging verbosity for debugging. Default: false."
}
}
},
"layout": [
{
"type": "section",
"title": "General Options",
"expandable": true,
"expanded": true,
"items": [
{
"description": "Enter your myQ username and password below.",
"items": [
"email",
"password",
"name"
]
}
]
},
{
"type": "section",
"title": "Plugin Feature Options (Optional)",
"expandable": true,
"expanded": false,
"items": [
{
"key": "options",
"type": "array",
"orderable": true,
"title": " ",
"description": "Feature options allow you to further customize the behavior of this plugin such as the ability to show or hide specific garage door openers.",
"buttonText": "Add Feature Option",
"items": [
"options[]"
]
}
]
},
{
"type": "section",
"title": "MQTT Settings (Optional)",
"expandable": true,
"expanded": false,
"items": [
{
"description": "MQTT support will only be enabled if an MQTT broker URL is specified below.",
"items": [
"mqttUrl",
"mqttTopic"
]
}
]
},
{
"type": "section",
"title": "Advanced Settings (Optional)",
"expandable": true,
"expanded": false,
"items": [
{
"description": "These settings should be rarely used or needed by most people. Use these with caution.",
"items": [
"refreshInterval",
"activeRefreshInterval",
"activeRefreshDuration",
"debug"
]
}
]
}
]
}