-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.schema.json
More file actions
257 lines (257 loc) · 9.25 KB
/
Copy pathconfig.schema.json
File metadata and controls
257 lines (257 loc) · 9.25 KB
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
{
"pluginAlias": "Meater",
"pluginType": "platform",
"singular": true,
"customUi": true,
"customUiPath": "./dist/homebridge-ui",
"headerDisplay": "<p align='center'><img width='250px' src='https://raw.githubusercontent.com/homebridge-plugins/homebridge-meater/latest/branding/Homebridge_x_Meater.png'></p>\n\nThe **Meater** plugin allows you to see your Meater status.",
"footerDisplay": "Please raise any issues on our [project page](https://github.com/homebridge-plugins/homebridge-meater/issues).\n\nFill out the [Feature Request Form](https://github.com/homebridge-plugins/homebridge-meater/issues/new?assignees=&labels=&template=feature_request.md) if there is a feature you would like to request.",
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "Meater"
},
"credentials": {
"type": "object",
"properties": {
"email": {
"type": "string",
"title": "email",
"placeholder": "apple@icloud.com",
"format": "email"
},
"password": {
"type": "string",
"title": "Password",
"x-schema-form": {
"type": "password"
}
},
"token": {
"type": "string",
"title": "Token",
"x-schema-form": {
"type": "token"
}
},
"notice": {
"title": "Notice",
"type": "string",
"default": "Keep your tokens a secret!"
}
},
"required": ["email", "password"]
},
"options": {
"type": "object",
"properties": {
"devices": {
"type": "array",
"items": {
"title": "Devices",
"type": "object",
"properties": {
"id": {
"title": "Device ID",
"type": "string",
"placeholder": "81F3UT59513F"
},
"configDeviceName": {
"title": "Device Name",
"type": "string",
"placeholder": "Hallway Thermostat",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].id);"
}
},
"hide_device": {
"title": "Hide Device",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].id);"
}
},
"external": {
"title": "External Accessory",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].id && !model.options.devices[arrayIndices].hide_device);"
}
},
"firmware": {
"title": "Firmware Override",
"type": "string",
"placeholder": "1.2.8",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].id && !model.options.devices[arrayIndices].hide_device);"
}
},
"refreshRate": {
"title": "Device Refresh Rate",
"type": "number",
"minimum": 30,
"maximum": 2073600,
"placeholder": 360,
"description": "Indicates the number of seconds between polls of Meater API.",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].id && !model.options.devices[arrayIndices].hide_device);"
}
},
"logging": {
"title": "Device Logging Level Override",
"description": "Overrides the plugin logging level for this device only. None turns off all messages from this plugin. Standard shows normal activity, warnings and errors. Debug adds detailed messages, and is what to use when reporting a problem. Default behaves the same as Standard.",
"type": "string",
"default": "",
"oneOf": [
{
"title": "Default (same as Standard)",
"enum": [""]
},
{
"title": "None",
"enum": ["none"]
},
{
"title": "Standard",
"enum": ["standard"]
},
{
"title": "Debug",
"enum": ["debug"]
}
],
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].id && !model.options.devices[arrayIndices].hide_device);"
}
}
},
"required": ["id", "configDeviceName", "logging"]
}
},
"refreshRate": {
"title": "Refresh Rate",
"type": "number",
"minimum": 30,
"maximum": 2073600,
"placeholder": 120,
"description": "Indicates the number of seconds between polls of the Meater service."
},
"logging": {
"title": "Plugin Logging Level",
"description": "None turns off all messages from this plugin. Standard shows normal activity, warnings and errors. Debug adds detailed messages, and is what to use when reporting a problem. Default behaves the same as Standard.",
"type": "string",
"default": "",
"oneOf": [
{
"title": "Default (same as Standard)",
"enum": [""]
},
{
"title": "None",
"enum": ["none"]
},
{
"title": "Standard",
"enum": ["standard"]
},
{
"title": "Debug",
"enum": ["debug"]
}
]
},
"enableMatter": {
"title": "Enable Matter",
"type": "boolean",
"default": true,
"description": "Uses Matter automatically when Homebridge v2.0 Matter support is available. Disable this to force HAP-only behavior."
},
"allowInvalidCharacters": {
"title": "Allow Invalid Characters",
"type": "boolean",
"default": false,
"description": "Keep accessory names exactly as the provider reports them. Without this, characters HomeKit does not accept are stripped out and the change is reported in the log."
}
},
"required": ["logging"]
}
}
},
"layout": [
{
"type": "fieldset",
"title": "Meater Account Info",
"expandable": true,
"expanded": false,
"items": [
{
"type": "help",
"helpvalue": "<h5></h5><em class='primary-text'>This is for Manual Setup Only.</em>"
},
"credentials.email",
"credentials.password",
"credentials.token"
]
},
{
"type": "fieldset",
"title": "Meater Device Settings",
"expandable": true,
"expanded": false,
"items": [
{
"key": "options.devices",
"notitle": true,
"type": "tabarray",
"title": "{{ value.configDeviceName || value.id || 'New Meater Device' }}",
"expandable": true,
"expanded": false,
"orderable": false,
"items": [
"options.devices[].configDeviceName",
"options.devices[].id",
"options.devices[].hide_device",
"options.devices[].firmware",
"options.devices[].external",
"options.devices[].refreshRate",
"options.devices[].logging"
]
}
]
},
{
"type": "fieldset",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [
{
"type": "help",
"helpvalue": "<h5>Refresh Rate</h5><em class='primary-text'>Refresh Rate indicates the number of seconds between polls of the Meater service.</em>"
},
{
"key": "options.refreshRate",
"notitle": true
},
"options.logging",
"options.allowInvalidCharacters"
]
},
{
"type": "fieldset",
"title": "Matter Settings (Homebridge v2.0+)",
"expandable": true,
"expanded": false,
"items": [
{
"type": "help",
"helpvalue": "<h5>Matter Support</h5><em class='primary-text'>Matter is selected automatically when available. Disable this option only if you want to force HAP.</em>"
},
"options.enableMatter"
]
}
]
}