homey-api 3.14.0 → 3.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/specifications/HomeyAPIV3Cloud.json +1848 -896
- package/assets/specifications/HomeyAPIV3Local.json +1997 -1170
- package/assets/types/homey-api.d.ts +925 -7
- package/assets/types/homey-api.private.d.ts +710 -32
- package/lib/HomeyAPI/HomeyAPIV2/ManagerInsights.js +8 -8
- package/lib/HomeyAPI/HomeyAPIV3.js +81 -64
- package/package.json +1 -1
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
"method": "get",
|
|
10
10
|
"path": "/state",
|
|
11
11
|
"private": false,
|
|
12
|
-
"scopes": [
|
|
13
|
-
"homey.system.readonly"
|
|
14
|
-
],
|
|
12
|
+
"scopes": ["homey.system.readonly"],
|
|
15
13
|
"parameters": {}
|
|
16
14
|
}
|
|
17
15
|
}
|
|
@@ -23,23 +21,101 @@
|
|
|
23
21
|
"App": {
|
|
24
22
|
"id": "app",
|
|
25
23
|
"schema": {
|
|
24
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
26
25
|
"type": "object",
|
|
27
26
|
"properties": {
|
|
28
27
|
"id": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "uuid",
|
|
30
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
31
|
+
},
|
|
32
|
+
"name": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"iconObj": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"version": {
|
|
29
41
|
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"channel": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["live", "test"]
|
|
46
|
+
},
|
|
47
|
+
"origin": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": ["appstore", "devkit_run", "devkit_install"]
|
|
50
|
+
},
|
|
51
|
+
"author": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"name": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": ["name"],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
"compatibility": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"permissions": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"color": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"images": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {},
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
},
|
|
78
|
+
"state": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": ["starting", "running", "stopping", "stopped", "crashed"]
|
|
81
|
+
},
|
|
82
|
+
"enabled": {
|
|
83
|
+
"description": "Whether the app is enabled.",
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
86
|
+
"crashed": {
|
|
87
|
+
"description": "Whether the app has crashed.",
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
90
|
+
"crashedMessage": {
|
|
91
|
+
"description": "The crash message of the app, if any.",
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "null"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
30
100
|
}
|
|
31
|
-
}
|
|
101
|
+
},
|
|
102
|
+
"additionalProperties": false
|
|
32
103
|
}
|
|
33
104
|
},
|
|
34
105
|
"AppSettings": {
|
|
35
106
|
"id": "appsettings",
|
|
36
107
|
"schema": {
|
|
108
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
37
109
|
"type": "object",
|
|
38
110
|
"properties": {
|
|
39
111
|
"id": {
|
|
40
|
-
"
|
|
112
|
+
"description": "The unique identifier of the item.",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"format": "uuid",
|
|
115
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
41
116
|
}
|
|
42
|
-
}
|
|
117
|
+
},
|
|
118
|
+
"additionalProperties": false
|
|
43
119
|
}
|
|
44
120
|
}
|
|
45
121
|
},
|
|
@@ -48,18 +124,14 @@
|
|
|
48
124
|
"method": "get",
|
|
49
125
|
"path": "/state",
|
|
50
126
|
"private": false,
|
|
51
|
-
"scopes": [
|
|
52
|
-
"homey.system.readonly"
|
|
53
|
-
],
|
|
127
|
+
"scopes": ["homey.system.readonly"],
|
|
54
128
|
"parameters": {}
|
|
55
129
|
},
|
|
56
130
|
"getApps": {
|
|
57
131
|
"method": "get",
|
|
58
132
|
"path": "/app",
|
|
59
133
|
"private": false,
|
|
60
|
-
"scopes": [
|
|
61
|
-
"homey.app.readonly"
|
|
62
|
-
],
|
|
134
|
+
"scopes": ["homey.app.readonly"],
|
|
63
135
|
"crud": {
|
|
64
136
|
"type": "getAll",
|
|
65
137
|
"item": "App"
|
|
@@ -70,9 +142,7 @@
|
|
|
70
142
|
"method": "get",
|
|
71
143
|
"path": "/app/:id",
|
|
72
144
|
"private": false,
|
|
73
|
-
"scopes": [
|
|
74
|
-
"homey.app.readonly"
|
|
75
|
-
],
|
|
145
|
+
"scopes": ["homey.app.readonly"],
|
|
76
146
|
"crud": {
|
|
77
147
|
"type": "getOne",
|
|
78
148
|
"item": "App"
|
|
@@ -89,9 +159,7 @@
|
|
|
89
159
|
"method": "post",
|
|
90
160
|
"path": "/store",
|
|
91
161
|
"private": false,
|
|
92
|
-
"scopes": [
|
|
93
|
-
"homey.app"
|
|
94
|
-
],
|
|
162
|
+
"scopes": ["homey.app"],
|
|
95
163
|
"parameters": {
|
|
96
164
|
"id": {
|
|
97
165
|
"in": "body",
|
|
@@ -108,9 +176,7 @@
|
|
|
108
176
|
"method": "delete",
|
|
109
177
|
"path": "/app/:id",
|
|
110
178
|
"private": false,
|
|
111
|
-
"scopes": [
|
|
112
|
-
"homey.app"
|
|
113
|
-
],
|
|
179
|
+
"scopes": ["homey.app"],
|
|
114
180
|
"parameters": {
|
|
115
181
|
"id": {
|
|
116
182
|
"in": "path",
|
|
@@ -123,9 +189,7 @@
|
|
|
123
189
|
"method": "get",
|
|
124
190
|
"path": "/app/:id/setting",
|
|
125
191
|
"private": false,
|
|
126
|
-
"scopes": [
|
|
127
|
-
"homey.app.control"
|
|
128
|
-
],
|
|
192
|
+
"scopes": ["homey.app.control"],
|
|
129
193
|
"crud": {
|
|
130
194
|
"type": "getOne",
|
|
131
195
|
"item": "AppSettings"
|
|
@@ -142,9 +206,7 @@
|
|
|
142
206
|
"method": "get",
|
|
143
207
|
"path": "/app/:id/setting/:name",
|
|
144
208
|
"private": false,
|
|
145
|
-
"scopes": [
|
|
146
|
-
"homey.app.control"
|
|
147
|
-
],
|
|
209
|
+
"scopes": ["homey.app.control"],
|
|
148
210
|
"parameters": {
|
|
149
211
|
"name": {
|
|
150
212
|
"in": "path",
|
|
@@ -162,9 +224,7 @@
|
|
|
162
224
|
"method": "put",
|
|
163
225
|
"path": "/app/:id/setting/:name",
|
|
164
226
|
"private": false,
|
|
165
|
-
"scopes": [
|
|
166
|
-
"homey.app.control"
|
|
167
|
-
],
|
|
227
|
+
"scopes": ["homey.app.control"],
|
|
168
228
|
"parameters": {
|
|
169
229
|
"name": {
|
|
170
230
|
"in": "path",
|
|
@@ -186,9 +246,7 @@
|
|
|
186
246
|
"method": "delete",
|
|
187
247
|
"path": "/app/:id/setting/:name",
|
|
188
248
|
"private": false,
|
|
189
|
-
"scopes": [
|
|
190
|
-
"homey.app.control"
|
|
191
|
-
],
|
|
249
|
+
"scopes": ["homey.app.control"],
|
|
192
250
|
"parameters": {
|
|
193
251
|
"name": {
|
|
194
252
|
"in": "path",
|
|
@@ -206,9 +264,7 @@
|
|
|
206
264
|
"method": "post",
|
|
207
265
|
"path": "/app/:id/crashlog",
|
|
208
266
|
"private": false,
|
|
209
|
-
"scopes": [
|
|
210
|
-
"homey.app.readonly"
|
|
211
|
-
],
|
|
267
|
+
"scopes": ["homey.app.readonly"],
|
|
212
268
|
"parameters": {
|
|
213
269
|
"id": {
|
|
214
270
|
"in": "path",
|
|
@@ -233,18 +289,14 @@
|
|
|
233
289
|
"method": "get",
|
|
234
290
|
"path": "/state",
|
|
235
291
|
"private": false,
|
|
236
|
-
"scopes": [
|
|
237
|
-
"homey.system.readonly"
|
|
238
|
-
],
|
|
292
|
+
"scopes": ["homey.system.readonly"],
|
|
239
293
|
"parameters": {}
|
|
240
294
|
},
|
|
241
295
|
"runCommand": {
|
|
242
296
|
"method": "post",
|
|
243
297
|
"path": "/command",
|
|
244
298
|
"private": false,
|
|
245
|
-
"scopes": [
|
|
246
|
-
"homey.system"
|
|
247
|
-
],
|
|
299
|
+
"scopes": ["homey.system"],
|
|
248
300
|
"parameters": {
|
|
249
301
|
"command": {
|
|
250
302
|
"in": "body",
|
|
@@ -259,6 +311,98 @@
|
|
|
259
311
|
}
|
|
260
312
|
}
|
|
261
313
|
},
|
|
314
|
+
"ManagerVideos": {
|
|
315
|
+
"id": "videos",
|
|
316
|
+
"idCamelCase": "videos",
|
|
317
|
+
"private": true,
|
|
318
|
+
"items": {
|
|
319
|
+
"Video": {
|
|
320
|
+
"id": "video",
|
|
321
|
+
"schema": {
|
|
322
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
323
|
+
"type": "object",
|
|
324
|
+
"properties": {
|
|
325
|
+
"id": {
|
|
326
|
+
"description": "The unique identifier of the item.",
|
|
327
|
+
"type": "string",
|
|
328
|
+
"format": "uuid",
|
|
329
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"additionalProperties": false
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"operations": {
|
|
337
|
+
"getState": {
|
|
338
|
+
"method": "get",
|
|
339
|
+
"path": "/state",
|
|
340
|
+
"private": false,
|
|
341
|
+
"scopes": ["homey.system.readonly"],
|
|
342
|
+
"parameters": {}
|
|
343
|
+
},
|
|
344
|
+
"getVideos": {
|
|
345
|
+
"method": "get",
|
|
346
|
+
"path": "/video",
|
|
347
|
+
"private": false,
|
|
348
|
+
"scopes": ["homey.device.readonly"],
|
|
349
|
+
"crud": {
|
|
350
|
+
"type": "getAll",
|
|
351
|
+
"item": "Video"
|
|
352
|
+
},
|
|
353
|
+
"parameters": {}
|
|
354
|
+
},
|
|
355
|
+
"videoOffer": {
|
|
356
|
+
"method": "post",
|
|
357
|
+
"path": "/video/:id/offer",
|
|
358
|
+
"private": false,
|
|
359
|
+
"scopes": ["homey.device.readonly"],
|
|
360
|
+
"parameters": {
|
|
361
|
+
"id": {
|
|
362
|
+
"in": "path",
|
|
363
|
+
"type": "string",
|
|
364
|
+
"required": true
|
|
365
|
+
},
|
|
366
|
+
"offer": {
|
|
367
|
+
"in": "body",
|
|
368
|
+
"type": "string",
|
|
369
|
+
"required": true
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"videoKeepAlive": {
|
|
374
|
+
"method": "post",
|
|
375
|
+
"path": "/video/:id/keep-alive",
|
|
376
|
+
"private": false,
|
|
377
|
+
"scopes": ["homey.device.readonly"],
|
|
378
|
+
"parameters": {
|
|
379
|
+
"id": {
|
|
380
|
+
"in": "path",
|
|
381
|
+
"type": "string",
|
|
382
|
+
"required": true
|
|
383
|
+
},
|
|
384
|
+
"streamId": {
|
|
385
|
+
"in": "body",
|
|
386
|
+
"type": "string",
|
|
387
|
+
"required": true
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"getVideoUrl": {
|
|
392
|
+
"method": "get",
|
|
393
|
+
"path": "/video/:id/video-url",
|
|
394
|
+
"private": false,
|
|
395
|
+
"scopes": ["homey.device.readonly"],
|
|
396
|
+
"parameters": {
|
|
397
|
+
"id": {
|
|
398
|
+
"in": "path",
|
|
399
|
+
"type": "string",
|
|
400
|
+
"required": true
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
262
406
|
"ManagerClock": {
|
|
263
407
|
"id": "clock",
|
|
264
408
|
"idCamelCase": "clock",
|
|
@@ -268,9 +412,7 @@
|
|
|
268
412
|
"method": "get",
|
|
269
413
|
"path": "/state",
|
|
270
414
|
"private": false,
|
|
271
|
-
"scopes": [
|
|
272
|
-
"homey.system.readonly"
|
|
273
|
-
],
|
|
415
|
+
"scopes": ["homey.system.readonly"],
|
|
274
416
|
"parameters": {}
|
|
275
417
|
}
|
|
276
418
|
}
|
|
@@ -282,12 +424,17 @@
|
|
|
282
424
|
"Webhook": {
|
|
283
425
|
"id": "webhook",
|
|
284
426
|
"schema": {
|
|
427
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
285
428
|
"type": "object",
|
|
286
429
|
"properties": {
|
|
287
430
|
"id": {
|
|
288
|
-
"
|
|
431
|
+
"description": "The unique identifier of the item.",
|
|
432
|
+
"type": "string",
|
|
433
|
+
"format": "uuid",
|
|
434
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
289
435
|
}
|
|
290
|
-
}
|
|
436
|
+
},
|
|
437
|
+
"additionalProperties": false
|
|
291
438
|
}
|
|
292
439
|
}
|
|
293
440
|
},
|
|
@@ -296,9 +443,7 @@
|
|
|
296
443
|
"method": "get",
|
|
297
444
|
"path": "/state",
|
|
298
445
|
"private": false,
|
|
299
|
-
"scopes": [
|
|
300
|
-
"homey.system.readonly"
|
|
301
|
-
],
|
|
446
|
+
"scopes": ["homey.system.readonly"],
|
|
302
447
|
"parameters": {}
|
|
303
448
|
},
|
|
304
449
|
"emitOAuth2Callback": {
|
|
@@ -349,36 +494,28 @@
|
|
|
349
494
|
"method": "get",
|
|
350
495
|
"path": "/state",
|
|
351
496
|
"private": false,
|
|
352
|
-
"scopes": [
|
|
353
|
-
"homey.system.readonly"
|
|
354
|
-
],
|
|
497
|
+
"scopes": ["homey.system.readonly"],
|
|
355
498
|
"parameters": {}
|
|
356
499
|
},
|
|
357
500
|
"getBridges": {
|
|
358
501
|
"method": "get",
|
|
359
502
|
"path": "/bridge",
|
|
360
503
|
"private": false,
|
|
361
|
-
"scopes": [
|
|
362
|
-
"homey.system.readonly"
|
|
363
|
-
],
|
|
504
|
+
"scopes": ["homey.system.readonly"],
|
|
364
505
|
"parameters": {}
|
|
365
506
|
},
|
|
366
507
|
"getLog": {
|
|
367
508
|
"method": "get",
|
|
368
509
|
"path": "/bridge/log",
|
|
369
510
|
"private": false,
|
|
370
|
-
"scopes": [
|
|
371
|
-
"homey.system.readonly"
|
|
372
|
-
],
|
|
511
|
+
"scopes": ["homey.system.readonly"],
|
|
373
512
|
"parameters": {}
|
|
374
513
|
},
|
|
375
514
|
"pairBridge": {
|
|
376
515
|
"method": "post",
|
|
377
516
|
"path": "/bridge",
|
|
378
517
|
"private": false,
|
|
379
|
-
"scopes": [
|
|
380
|
-
"homey.system"
|
|
381
|
-
],
|
|
518
|
+
"scopes": ["homey.system"],
|
|
382
519
|
"parameters": {
|
|
383
520
|
"serialHash": {
|
|
384
521
|
"in": "body",
|
|
@@ -396,12 +533,17 @@
|
|
|
396
533
|
"Cronjob": {
|
|
397
534
|
"id": "cronjob",
|
|
398
535
|
"schema": {
|
|
536
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
399
537
|
"type": "object",
|
|
400
538
|
"properties": {
|
|
401
539
|
"id": {
|
|
402
|
-
"
|
|
540
|
+
"description": "The unique identifier of the item.",
|
|
541
|
+
"type": "string",
|
|
542
|
+
"format": "uuid",
|
|
543
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
403
544
|
}
|
|
404
|
-
}
|
|
545
|
+
},
|
|
546
|
+
"additionalProperties": false
|
|
405
547
|
}
|
|
406
548
|
}
|
|
407
549
|
},
|
|
@@ -410,9 +552,7 @@
|
|
|
410
552
|
"method": "get",
|
|
411
553
|
"path": "/state",
|
|
412
554
|
"private": false,
|
|
413
|
-
"scopes": [
|
|
414
|
-
"homey.system.readonly"
|
|
415
|
-
],
|
|
555
|
+
"scopes": ["homey.system.readonly"],
|
|
416
556
|
"parameters": {}
|
|
417
557
|
}
|
|
418
558
|
}
|
|
@@ -426,9 +566,7 @@
|
|
|
426
566
|
"method": "get",
|
|
427
567
|
"path": "/state",
|
|
428
568
|
"private": false,
|
|
429
|
-
"scopes": [
|
|
430
|
-
"homey.system.readonly"
|
|
431
|
-
],
|
|
569
|
+
"scopes": ["homey.system.readonly"],
|
|
432
570
|
"parameters": {}
|
|
433
571
|
}
|
|
434
572
|
}
|
|
@@ -436,71 +574,91 @@
|
|
|
436
574
|
"ManagerDashboards": {
|
|
437
575
|
"id": "dashboards",
|
|
438
576
|
"idCamelCase": "dashboards",
|
|
439
|
-
"private": true,
|
|
440
577
|
"items": {
|
|
441
578
|
"Dashboard": {
|
|
442
579
|
"id": "dashboard",
|
|
443
580
|
"schema": {
|
|
581
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
444
582
|
"type": "object",
|
|
445
|
-
"additionalProperties": false,
|
|
446
583
|
"properties": {
|
|
447
584
|
"id": {
|
|
585
|
+
"description": "The unique identifier of the dashboard.",
|
|
448
586
|
"type": "string",
|
|
449
|
-
"format": "uuid"
|
|
587
|
+
"format": "uuid",
|
|
588
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
450
589
|
},
|
|
451
590
|
"name": {
|
|
591
|
+
"description": "The name of the dashboard.",
|
|
452
592
|
"type": "string"
|
|
453
593
|
},
|
|
454
594
|
"columns": {
|
|
595
|
+
"description": "The columns of the dashboard.",
|
|
455
596
|
"type": "array",
|
|
456
597
|
"items": {
|
|
457
598
|
"type": "object",
|
|
458
599
|
"properties": {
|
|
459
600
|
"id": {
|
|
601
|
+
"description": "The unique identifier of the column.",
|
|
460
602
|
"type": "string",
|
|
461
|
-
"format": "uuid"
|
|
603
|
+
"format": "uuid",
|
|
604
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
462
605
|
},
|
|
463
606
|
"widgets": {
|
|
607
|
+
"description": "The widgets in the column.",
|
|
464
608
|
"type": "array",
|
|
465
609
|
"items": {
|
|
466
610
|
"type": "object",
|
|
467
|
-
"required": [
|
|
468
|
-
"id"
|
|
469
|
-
],
|
|
470
611
|
"properties": {
|
|
471
612
|
"id": {
|
|
613
|
+
"description": "The unique identifier of the widget.",
|
|
472
614
|
"type": "string",
|
|
473
|
-
"format": "uuid"
|
|
615
|
+
"format": "uuid",
|
|
616
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
474
617
|
}
|
|
475
|
-
}
|
|
618
|
+
},
|
|
619
|
+
"required": ["id"],
|
|
620
|
+
"additionalProperties": {}
|
|
476
621
|
}
|
|
477
622
|
}
|
|
478
|
-
}
|
|
623
|
+
},
|
|
624
|
+
"required": ["id", "widgets"],
|
|
625
|
+
"additionalProperties": {}
|
|
479
626
|
}
|
|
480
627
|
}
|
|
481
|
-
}
|
|
628
|
+
},
|
|
629
|
+
"additionalProperties": false
|
|
482
630
|
}
|
|
483
631
|
},
|
|
484
632
|
"AppWidget": {
|
|
485
633
|
"id": "appwidget",
|
|
486
634
|
"schema": {
|
|
635
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
487
636
|
"type": "object",
|
|
488
637
|
"properties": {
|
|
489
638
|
"id": {
|
|
490
|
-
"
|
|
639
|
+
"description": "The unique identifier of the item.",
|
|
640
|
+
"type": "string",
|
|
641
|
+
"format": "uuid",
|
|
642
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
491
643
|
}
|
|
492
|
-
}
|
|
644
|
+
},
|
|
645
|
+
"additionalProperties": false
|
|
493
646
|
}
|
|
494
647
|
},
|
|
495
648
|
"WidgetStore": {
|
|
496
649
|
"id": "widgetstore",
|
|
497
650
|
"schema": {
|
|
651
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
498
652
|
"type": "object",
|
|
499
653
|
"properties": {
|
|
500
654
|
"id": {
|
|
501
|
-
"
|
|
655
|
+
"description": "The unique identifier of the item.",
|
|
656
|
+
"type": "string",
|
|
657
|
+
"format": "uuid",
|
|
658
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
502
659
|
}
|
|
503
|
-
}
|
|
660
|
+
},
|
|
661
|
+
"additionalProperties": false
|
|
504
662
|
}
|
|
505
663
|
}
|
|
506
664
|
},
|
|
@@ -509,18 +667,14 @@
|
|
|
509
667
|
"method": "get",
|
|
510
668
|
"path": "/state",
|
|
511
669
|
"private": false,
|
|
512
|
-
"scopes": [
|
|
513
|
-
"homey.system.readonly"
|
|
514
|
-
],
|
|
670
|
+
"scopes": ["homey.system.readonly"],
|
|
515
671
|
"parameters": {}
|
|
516
672
|
},
|
|
517
673
|
"getDashboards": {
|
|
518
674
|
"method": "get",
|
|
519
675
|
"path": "/dashboard",
|
|
520
676
|
"private": false,
|
|
521
|
-
"scopes": [
|
|
522
|
-
"homey.dashboard.readonly"
|
|
523
|
-
],
|
|
677
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
524
678
|
"crud": {
|
|
525
679
|
"type": "getAll",
|
|
526
680
|
"item": "Dashboard"
|
|
@@ -531,9 +685,7 @@
|
|
|
531
685
|
"method": "get",
|
|
532
686
|
"path": "/dashboard/:id",
|
|
533
687
|
"private": false,
|
|
534
|
-
"scopes": [
|
|
535
|
-
"homey.dashboard.readonly"
|
|
536
|
-
],
|
|
688
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
537
689
|
"crud": {
|
|
538
690
|
"type": "getOne",
|
|
539
691
|
"item": "Dashboard"
|
|
@@ -550,9 +702,7 @@
|
|
|
550
702
|
"method": "post",
|
|
551
703
|
"path": "/dashboard",
|
|
552
704
|
"private": false,
|
|
553
|
-
"scopes": [
|
|
554
|
-
"homey.dashboard"
|
|
555
|
-
],
|
|
705
|
+
"scopes": ["homey.dashboard"],
|
|
556
706
|
"crud": {
|
|
557
707
|
"type": "createOne",
|
|
558
708
|
"item": "Dashboard"
|
|
@@ -580,9 +730,7 @@
|
|
|
580
730
|
"method": "put",
|
|
581
731
|
"path": "/dashboard/:id",
|
|
582
732
|
"private": false,
|
|
583
|
-
"scopes": [
|
|
584
|
-
"homey.dashboard"
|
|
585
|
-
],
|
|
733
|
+
"scopes": ["homey.dashboard"],
|
|
586
734
|
"crud": {
|
|
587
735
|
"type": "updateOne",
|
|
588
736
|
"item": "Dashboard"
|
|
@@ -613,9 +761,7 @@
|
|
|
613
761
|
"method": "delete",
|
|
614
762
|
"path": "/dashboard/:id",
|
|
615
763
|
"private": false,
|
|
616
|
-
"scopes": [
|
|
617
|
-
"homey.dashboard"
|
|
618
|
-
],
|
|
764
|
+
"scopes": ["homey.dashboard"],
|
|
619
765
|
"crud": {
|
|
620
766
|
"type": "deleteOne",
|
|
621
767
|
"item": "Dashboard"
|
|
@@ -632,9 +778,7 @@
|
|
|
632
778
|
"method": "get",
|
|
633
779
|
"path": "/appwidget",
|
|
634
780
|
"private": false,
|
|
635
|
-
"scopes": [
|
|
636
|
-
"homey.dashboard.readonly"
|
|
637
|
-
],
|
|
781
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
638
782
|
"crud": {
|
|
639
783
|
"type": "getAll",
|
|
640
784
|
"item": "AppWidget"
|
|
@@ -645,9 +789,7 @@
|
|
|
645
789
|
"method": "get",
|
|
646
790
|
"path": "/appwidget/:id",
|
|
647
791
|
"private": false,
|
|
648
|
-
"scopes": [
|
|
649
|
-
"homey.dashboard.readonly"
|
|
650
|
-
],
|
|
792
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
651
793
|
"crud": {
|
|
652
794
|
"type": "getOne",
|
|
653
795
|
"item": "AppWidget"
|
|
@@ -664,9 +806,7 @@
|
|
|
664
806
|
"method": "get",
|
|
665
807
|
"path": "/appwidget/:id/autocomplete",
|
|
666
808
|
"private": false,
|
|
667
|
-
"scopes": [
|
|
668
|
-
"homey.dashboard.readonly"
|
|
669
|
-
],
|
|
809
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
670
810
|
"parameters": {
|
|
671
811
|
"id": {
|
|
672
812
|
"in": "path",
|
|
@@ -693,9 +833,7 @@
|
|
|
693
833
|
"method": "get",
|
|
694
834
|
"path": "/widgetstore",
|
|
695
835
|
"private": false,
|
|
696
|
-
"scopes": [
|
|
697
|
-
"homey.dashboard.readonly"
|
|
698
|
-
],
|
|
836
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
699
837
|
"crud": {
|
|
700
838
|
"type": "getAll",
|
|
701
839
|
"item": "WidgetStore"
|
|
@@ -706,9 +844,7 @@
|
|
|
706
844
|
"method": "get",
|
|
707
845
|
"path": "/widgetstore/:id",
|
|
708
846
|
"private": false,
|
|
709
|
-
"scopes": [
|
|
710
|
-
"homey.dashboard.readonly"
|
|
711
|
-
],
|
|
847
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
712
848
|
"crud": {
|
|
713
849
|
"type": "getOne",
|
|
714
850
|
"item": "WidgetStore"
|
|
@@ -725,9 +861,7 @@
|
|
|
725
861
|
"method": "get",
|
|
726
862
|
"path": "/widgetstore/:id/state",
|
|
727
863
|
"private": false,
|
|
728
|
-
"scopes": [
|
|
729
|
-
"homey.dashboard.readonly"
|
|
730
|
-
],
|
|
864
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
731
865
|
"parameters": {
|
|
732
866
|
"id": {
|
|
733
867
|
"in": "path",
|
|
@@ -740,9 +874,7 @@
|
|
|
740
874
|
"method": "post",
|
|
741
875
|
"path": "/widgetstore/:id/state",
|
|
742
876
|
"private": false,
|
|
743
|
-
"scopes": [
|
|
744
|
-
"homey.dashboard.readonly"
|
|
745
|
-
],
|
|
877
|
+
"scopes": ["homey.dashboard.readonly"],
|
|
746
878
|
"parameters": {
|
|
747
879
|
"id": {
|
|
748
880
|
"in": "path",
|
|
@@ -769,30 +901,270 @@
|
|
|
769
901
|
"Device": {
|
|
770
902
|
"id": "device",
|
|
771
903
|
"schema": {
|
|
904
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
772
905
|
"type": "object",
|
|
773
906
|
"properties": {
|
|
774
907
|
"id": {
|
|
908
|
+
"description": "The unique identifier of the device",
|
|
775
909
|
"type": "string",
|
|
776
|
-
"format": "uuid"
|
|
910
|
+
"format": "uuid",
|
|
911
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
912
|
+
},
|
|
913
|
+
"driverId": {
|
|
914
|
+
"type": "string"
|
|
915
|
+
},
|
|
916
|
+
"ownerUri": {
|
|
917
|
+
"type": "string"
|
|
777
918
|
},
|
|
778
919
|
"name": {
|
|
779
920
|
"type": "string"
|
|
780
921
|
},
|
|
781
922
|
"note": {
|
|
923
|
+
"anyOf": [
|
|
924
|
+
{
|
|
925
|
+
"type": "string"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"type": "null"
|
|
929
|
+
}
|
|
930
|
+
]
|
|
931
|
+
},
|
|
932
|
+
"zone": {
|
|
933
|
+
"type": "string"
|
|
934
|
+
},
|
|
935
|
+
"data": {
|
|
936
|
+
"type": "object",
|
|
937
|
+
"propertyNames": {
|
|
938
|
+
"type": "string"
|
|
939
|
+
},
|
|
940
|
+
"additionalProperties": {}
|
|
941
|
+
},
|
|
942
|
+
"icon": {
|
|
943
|
+
"anyOf": [
|
|
944
|
+
{
|
|
945
|
+
"type": "string"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"type": "null"
|
|
949
|
+
}
|
|
950
|
+
]
|
|
951
|
+
},
|
|
952
|
+
"iconOverride": {
|
|
953
|
+
"anyOf": [
|
|
954
|
+
{
|
|
955
|
+
"type": "string"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"type": "null"
|
|
959
|
+
}
|
|
960
|
+
]
|
|
961
|
+
},
|
|
962
|
+
"iconObj": {
|
|
963
|
+
"anyOf": [
|
|
964
|
+
{
|
|
965
|
+
"type": "object",
|
|
966
|
+
"propertyNames": {
|
|
967
|
+
"type": "string"
|
|
968
|
+
},
|
|
969
|
+
"additionalProperties": {}
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"type": "null"
|
|
973
|
+
}
|
|
974
|
+
]
|
|
975
|
+
},
|
|
976
|
+
"class": {
|
|
782
977
|
"type": "string"
|
|
978
|
+
},
|
|
979
|
+
"virtualClass": {
|
|
980
|
+
"anyOf": [
|
|
981
|
+
{
|
|
982
|
+
"type": "string"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"type": "null"
|
|
986
|
+
}
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"capabilities": {
|
|
990
|
+
"type": "array",
|
|
991
|
+
"items": {
|
|
992
|
+
"type": "string"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"capabilitiesObj": {
|
|
996
|
+
"type": "object",
|
|
997
|
+
"propertyNames": {
|
|
998
|
+
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
"additionalProperties": {}
|
|
1001
|
+
},
|
|
1002
|
+
"settings": {
|
|
1003
|
+
"type": "object",
|
|
1004
|
+
"propertyNames": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"additionalProperties": {
|
|
1008
|
+
"anyOf": [
|
|
1009
|
+
{
|
|
1010
|
+
"type": "string"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"type": "number"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"type": "boolean"
|
|
1017
|
+
}
|
|
1018
|
+
]
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
"settingsObj": {
|
|
1022
|
+
"type": "boolean"
|
|
1023
|
+
},
|
|
1024
|
+
"flags": {
|
|
1025
|
+
"type": "array",
|
|
1026
|
+
"items": {
|
|
1027
|
+
"type": "string"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"energy": {
|
|
1031
|
+
"anyOf": [
|
|
1032
|
+
{
|
|
1033
|
+
"type": "object",
|
|
1034
|
+
"propertyNames": {
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
},
|
|
1037
|
+
"additionalProperties": {}
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"type": "null"
|
|
1041
|
+
}
|
|
1042
|
+
]
|
|
1043
|
+
},
|
|
1044
|
+
"energyObj": {
|
|
1045
|
+
"anyOf": [
|
|
1046
|
+
{
|
|
1047
|
+
"type": "object",
|
|
1048
|
+
"propertyNames": {
|
|
1049
|
+
"type": "string"
|
|
1050
|
+
},
|
|
1051
|
+
"additionalProperties": {}
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"type": "null"
|
|
1055
|
+
}
|
|
1056
|
+
]
|
|
1057
|
+
},
|
|
1058
|
+
"ui": {
|
|
1059
|
+
"type": "object",
|
|
1060
|
+
"propertyNames": {
|
|
1061
|
+
"type": "string"
|
|
1062
|
+
},
|
|
1063
|
+
"additionalProperties": {}
|
|
1064
|
+
},
|
|
1065
|
+
"uiIndicator": {
|
|
1066
|
+
"anyOf": [
|
|
1067
|
+
{
|
|
1068
|
+
"type": "string"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"type": "null"
|
|
1072
|
+
}
|
|
1073
|
+
]
|
|
1074
|
+
},
|
|
1075
|
+
"available": {
|
|
1076
|
+
"type": "boolean"
|
|
1077
|
+
},
|
|
1078
|
+
"unavailableMessage": {
|
|
1079
|
+
"anyOf": [
|
|
1080
|
+
{
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"type": "null"
|
|
1085
|
+
}
|
|
1086
|
+
]
|
|
1087
|
+
},
|
|
1088
|
+
"warningMessage": {
|
|
1089
|
+
"anyOf": [
|
|
1090
|
+
{
|
|
1091
|
+
"type": "string"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"type": "null"
|
|
1095
|
+
}
|
|
1096
|
+
]
|
|
1097
|
+
},
|
|
1098
|
+
"ready": {
|
|
1099
|
+
"type": "boolean"
|
|
1100
|
+
},
|
|
1101
|
+
"repair": {
|
|
1102
|
+
"anyOf": [
|
|
1103
|
+
{
|
|
1104
|
+
"type": "boolean"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"type": "null"
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
1111
|
+
"unpair": {
|
|
1112
|
+
"anyOf": [
|
|
1113
|
+
{
|
|
1114
|
+
"type": "boolean"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"type": "null"
|
|
1118
|
+
}
|
|
1119
|
+
]
|
|
1120
|
+
},
|
|
1121
|
+
"images": {
|
|
1122
|
+
"type": "array",
|
|
1123
|
+
"items": {
|
|
1124
|
+
"type": "object",
|
|
1125
|
+
"properties": {},
|
|
1126
|
+
"additionalProperties": false
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"color": {
|
|
1130
|
+
"anyOf": [
|
|
1131
|
+
{
|
|
1132
|
+
"type": "string"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"type": "null"
|
|
1136
|
+
}
|
|
1137
|
+
]
|
|
1138
|
+
},
|
|
1139
|
+
"lastSeenAt": {
|
|
1140
|
+
"anyOf": [
|
|
1141
|
+
{
|
|
1142
|
+
"type": "string",
|
|
1143
|
+
"format": "date-time"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"type": "null"
|
|
1147
|
+
}
|
|
1148
|
+
]
|
|
783
1149
|
}
|
|
784
|
-
}
|
|
1150
|
+
},
|
|
1151
|
+
"additionalProperties": false
|
|
785
1152
|
}
|
|
786
1153
|
},
|
|
787
1154
|
"Capability": {
|
|
788
1155
|
"id": "capability",
|
|
789
1156
|
"schema": {
|
|
1157
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
790
1158
|
"type": "object",
|
|
791
1159
|
"properties": {
|
|
792
1160
|
"id": {
|
|
793
|
-
"
|
|
1161
|
+
"description": "The unique identifier of the item.",
|
|
1162
|
+
"type": "string",
|
|
1163
|
+
"format": "uuid",
|
|
1164
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
794
1165
|
}
|
|
795
|
-
}
|
|
1166
|
+
},
|
|
1167
|
+
"additionalProperties": false
|
|
796
1168
|
}
|
|
797
1169
|
}
|
|
798
1170
|
},
|
|
@@ -801,18 +1173,14 @@
|
|
|
801
1173
|
"method": "get",
|
|
802
1174
|
"path": "/state",
|
|
803
1175
|
"private": false,
|
|
804
|
-
"scopes": [
|
|
805
|
-
"homey.system.readonly"
|
|
806
|
-
],
|
|
1176
|
+
"scopes": ["homey.system.readonly"],
|
|
807
1177
|
"parameters": {}
|
|
808
1178
|
},
|
|
809
1179
|
"getDevice": {
|
|
810
1180
|
"method": "get",
|
|
811
1181
|
"path": "/device/:id",
|
|
812
1182
|
"private": false,
|
|
813
|
-
"scopes": [
|
|
814
|
-
"homey.device.readonly"
|
|
815
|
-
],
|
|
1183
|
+
"scopes": ["homey.device.readonly"],
|
|
816
1184
|
"crud": {
|
|
817
1185
|
"type": "getOne",
|
|
818
1186
|
"item": "Device"
|
|
@@ -829,9 +1197,7 @@
|
|
|
829
1197
|
"method": "get",
|
|
830
1198
|
"path": "/device/:id/settings_obj",
|
|
831
1199
|
"private": false,
|
|
832
|
-
"scopes": [
|
|
833
|
-
"homey.device.readonly"
|
|
834
|
-
],
|
|
1200
|
+
"scopes": ["homey.device.readonly"],
|
|
835
1201
|
"parameters": {
|
|
836
1202
|
"id": {
|
|
837
1203
|
"in": "path",
|
|
@@ -844,9 +1210,7 @@
|
|
|
844
1210
|
"method": "put",
|
|
845
1211
|
"path": "/device/:id/settings",
|
|
846
1212
|
"private": false,
|
|
847
|
-
"scopes": [
|
|
848
|
-
"homey.device"
|
|
849
|
-
],
|
|
1213
|
+
"scopes": ["homey.device"],
|
|
850
1214
|
"parameters": {
|
|
851
1215
|
"id": {
|
|
852
1216
|
"in": "path",
|
|
@@ -865,9 +1229,7 @@
|
|
|
865
1229
|
"method": "get",
|
|
866
1230
|
"path": "/device",
|
|
867
1231
|
"private": false,
|
|
868
|
-
"scopes": [
|
|
869
|
-
"homey.device.readonly"
|
|
870
|
-
],
|
|
1232
|
+
"scopes": ["homey.device.readonly"],
|
|
871
1233
|
"crud": {
|
|
872
1234
|
"type": "getAll",
|
|
873
1235
|
"item": "Device"
|
|
@@ -878,9 +1240,7 @@
|
|
|
878
1240
|
"method": "put",
|
|
879
1241
|
"path": "/device/:id",
|
|
880
1242
|
"private": false,
|
|
881
|
-
"scopes": [
|
|
882
|
-
"homey.device"
|
|
883
|
-
],
|
|
1243
|
+
"scopes": ["homey.device"],
|
|
884
1244
|
"crud": {
|
|
885
1245
|
"type": "updateOne",
|
|
886
1246
|
"item": "Device"
|
|
@@ -926,9 +1286,7 @@
|
|
|
926
1286
|
"method": "delete",
|
|
927
1287
|
"path": "/device/:id",
|
|
928
1288
|
"private": false,
|
|
929
|
-
"scopes": [
|
|
930
|
-
"homey.device"
|
|
931
|
-
],
|
|
1289
|
+
"scopes": ["homey.device"],
|
|
932
1290
|
"crud": {
|
|
933
1291
|
"type": "deleteOne",
|
|
934
1292
|
"item": "Device"
|
|
@@ -945,9 +1303,7 @@
|
|
|
945
1303
|
"method": "get",
|
|
946
1304
|
"path": "/device/:deviceId/capability/:capabilityId",
|
|
947
1305
|
"private": false,
|
|
948
|
-
"scopes": [
|
|
949
|
-
"homey.device.readonly"
|
|
950
|
-
],
|
|
1306
|
+
"scopes": ["homey.device.readonly"],
|
|
951
1307
|
"parameters": {
|
|
952
1308
|
"capabilityId": {
|
|
953
1309
|
"in": "path",
|
|
@@ -965,9 +1321,7 @@
|
|
|
965
1321
|
"method": "put",
|
|
966
1322
|
"path": "/device/:deviceId/capability/:capabilityId",
|
|
967
1323
|
"private": false,
|
|
968
|
-
"scopes": [
|
|
969
|
-
"homey.device.control"
|
|
970
|
-
],
|
|
1324
|
+
"scopes": ["homey.device.control"],
|
|
971
1325
|
"parameters": {
|
|
972
1326
|
"capabilityId": {
|
|
973
1327
|
"in": "path",
|
|
@@ -981,11 +1335,7 @@
|
|
|
981
1335
|
},
|
|
982
1336
|
"value": {
|
|
983
1337
|
"in": "body",
|
|
984
|
-
"type": [
|
|
985
|
-
"string",
|
|
986
|
-
"number",
|
|
987
|
-
"boolean"
|
|
988
|
-
],
|
|
1338
|
+
"type": ["string", "number", "boolean"],
|
|
989
1339
|
"required": true
|
|
990
1340
|
},
|
|
991
1341
|
"opts": {
|
|
@@ -1002,9 +1352,7 @@
|
|
|
1002
1352
|
"method": "post",
|
|
1003
1353
|
"path": "/group",
|
|
1004
1354
|
"private": false,
|
|
1005
|
-
"scopes": [
|
|
1006
|
-
"homey.device"
|
|
1007
|
-
],
|
|
1355
|
+
"scopes": ["homey.device"],
|
|
1008
1356
|
"parameters": {
|
|
1009
1357
|
"group": {
|
|
1010
1358
|
"in": "body",
|
|
@@ -1042,9 +1390,7 @@
|
|
|
1042
1390
|
"method": "delete",
|
|
1043
1391
|
"path": "/group/:groupId/device/:deviceId",
|
|
1044
1392
|
"private": false,
|
|
1045
|
-
"scopes": [
|
|
1046
|
-
"homey.device"
|
|
1047
|
-
],
|
|
1393
|
+
"scopes": ["homey.device"],
|
|
1048
1394
|
"parameters": {
|
|
1049
1395
|
"deviceId": {
|
|
1050
1396
|
"in": "path",
|
|
@@ -1062,9 +1408,7 @@
|
|
|
1062
1408
|
"method": "put",
|
|
1063
1409
|
"path": "/group/:id",
|
|
1064
1410
|
"private": false,
|
|
1065
|
-
"scopes": [
|
|
1066
|
-
"homey.device"
|
|
1067
|
-
],
|
|
1411
|
+
"scopes": ["homey.device"],
|
|
1068
1412
|
"parameters": {
|
|
1069
1413
|
"id": {
|
|
1070
1414
|
"in": "path",
|
|
@@ -1097,9 +1441,7 @@
|
|
|
1097
1441
|
"method": "put",
|
|
1098
1442
|
"path": "/device/:id/external-service-hide",
|
|
1099
1443
|
"private": false,
|
|
1100
|
-
"scopes": [
|
|
1101
|
-
"homey.device"
|
|
1102
|
-
],
|
|
1444
|
+
"scopes": ["homey.device"],
|
|
1103
1445
|
"parameters": {
|
|
1104
1446
|
"id": {
|
|
1105
1447
|
"in": "path",
|
|
@@ -1117,9 +1459,7 @@
|
|
|
1117
1459
|
"method": "put",
|
|
1118
1460
|
"path": "/device/:id/external-service-unhide",
|
|
1119
1461
|
"private": false,
|
|
1120
|
-
"scopes": [
|
|
1121
|
-
"homey.device"
|
|
1122
|
-
],
|
|
1462
|
+
"scopes": ["homey.device"],
|
|
1123
1463
|
"parameters": {
|
|
1124
1464
|
"id": {
|
|
1125
1465
|
"in": "path",
|
|
@@ -1144,18 +1484,14 @@
|
|
|
1144
1484
|
"method": "get",
|
|
1145
1485
|
"path": "/state",
|
|
1146
1486
|
"private": false,
|
|
1147
|
-
"scopes": [
|
|
1148
|
-
"homey.system.readonly"
|
|
1149
|
-
],
|
|
1487
|
+
"scopes": ["homey.system.readonly"],
|
|
1150
1488
|
"parameters": {}
|
|
1151
1489
|
},
|
|
1152
1490
|
"installApp": {
|
|
1153
1491
|
"method": "post",
|
|
1154
1492
|
"path": "/app",
|
|
1155
1493
|
"private": false,
|
|
1156
|
-
"scopes": [
|
|
1157
|
-
"homey.app"
|
|
1158
|
-
],
|
|
1494
|
+
"scopes": ["homey.app"],
|
|
1159
1495
|
"parameters": {
|
|
1160
1496
|
"manifest": {
|
|
1161
1497
|
"in": "body",
|
|
@@ -1172,9 +1508,7 @@
|
|
|
1172
1508
|
"method": "delete",
|
|
1173
1509
|
"path": "/app/:sessionId",
|
|
1174
1510
|
"private": false,
|
|
1175
|
-
"scopes": [
|
|
1176
|
-
"homey.app"
|
|
1177
|
-
],
|
|
1511
|
+
"scopes": ["homey.app"],
|
|
1178
1512
|
"parameters": {
|
|
1179
1513
|
"sessionId": {
|
|
1180
1514
|
"in": "path",
|
|
@@ -1192,28 +1526,97 @@
|
|
|
1192
1526
|
"Driver": {
|
|
1193
1527
|
"id": "driver",
|
|
1194
1528
|
"schema": {
|
|
1529
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1195
1530
|
"type": "object",
|
|
1196
1531
|
"properties": {
|
|
1197
1532
|
"id": {
|
|
1533
|
+
"description": "The unique identifier of the driver.",
|
|
1198
1534
|
"type": "string",
|
|
1199
|
-
"format": "uuid"
|
|
1535
|
+
"format": "uuid",
|
|
1536
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1537
|
+
},
|
|
1538
|
+
"ownerUri": {
|
|
1539
|
+
"description": "The URI of the owner of the driver.",
|
|
1540
|
+
"type": "string"
|
|
1541
|
+
},
|
|
1542
|
+
"ownerName": {
|
|
1543
|
+
"description": "The name of the owner of the driver.",
|
|
1544
|
+
"type": "string"
|
|
1545
|
+
},
|
|
1546
|
+
"ownerIconObj": {
|
|
1547
|
+
"description": "The icon object of the driver.",
|
|
1548
|
+
"type": "object",
|
|
1549
|
+
"properties": {},
|
|
1550
|
+
"additionalProperties": false
|
|
1551
|
+
},
|
|
1552
|
+
"name": {
|
|
1553
|
+
"description": "The name of the driver.",
|
|
1554
|
+
"type": "string"
|
|
1555
|
+
},
|
|
1556
|
+
"color": {
|
|
1557
|
+
"description": "The color of the driver.",
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"class": {
|
|
1561
|
+
"description": "The class of the driver.",
|
|
1562
|
+
"type": "string"
|
|
1563
|
+
},
|
|
1564
|
+
"ready": {
|
|
1565
|
+
"description": "Whether the driver is ready.",
|
|
1566
|
+
"type": "boolean"
|
|
1200
1567
|
},
|
|
1201
1568
|
"pair": {
|
|
1569
|
+
"description": "Whether pairing is possible.",
|
|
1570
|
+
"type": "boolean"
|
|
1571
|
+
},
|
|
1572
|
+
"repair": {
|
|
1573
|
+
"description": "Whether repairing is possible.",
|
|
1574
|
+
"type": "boolean"
|
|
1575
|
+
},
|
|
1576
|
+
"unpair": {
|
|
1577
|
+
"description": "Whether unpairing is possible.",
|
|
1578
|
+
"type": "boolean"
|
|
1579
|
+
},
|
|
1580
|
+
"userPath": {
|
|
1581
|
+
"description": "The user path of the driver.",
|
|
1582
|
+
"anyOf": [
|
|
1583
|
+
{
|
|
1584
|
+
"type": "string"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"type": "null"
|
|
1588
|
+
}
|
|
1589
|
+
]
|
|
1590
|
+
},
|
|
1591
|
+
"deprecated": {
|
|
1592
|
+
"description": "Whether the driver is deprecated.",
|
|
1593
|
+
"type": "boolean"
|
|
1594
|
+
},
|
|
1595
|
+
"connectivity": {
|
|
1596
|
+
"description": "The connectivity options of the driver.",
|
|
1202
1597
|
"type": "array",
|
|
1203
|
-
"
|
|
1598
|
+
"items": {
|
|
1599
|
+
"type": "string"
|
|
1600
|
+
}
|
|
1204
1601
|
}
|
|
1205
|
-
}
|
|
1602
|
+
},
|
|
1603
|
+
"additionalProperties": false
|
|
1206
1604
|
}
|
|
1207
1605
|
},
|
|
1208
1606
|
"PairSession": {
|
|
1209
1607
|
"id": "pairsession",
|
|
1210
1608
|
"schema": {
|
|
1609
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1211
1610
|
"type": "object",
|
|
1212
1611
|
"properties": {
|
|
1213
1612
|
"id": {
|
|
1214
|
-
"
|
|
1613
|
+
"description": "The unique identifier of the item.",
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"format": "uuid",
|
|
1616
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1215
1617
|
}
|
|
1216
|
-
}
|
|
1618
|
+
},
|
|
1619
|
+
"additionalProperties": false
|
|
1217
1620
|
}
|
|
1218
1621
|
}
|
|
1219
1622
|
},
|
|
@@ -1222,18 +1625,14 @@
|
|
|
1222
1625
|
"method": "get",
|
|
1223
1626
|
"path": "/state",
|
|
1224
1627
|
"private": false,
|
|
1225
|
-
"scopes": [
|
|
1226
|
-
"homey.system.readonly"
|
|
1227
|
-
],
|
|
1628
|
+
"scopes": ["homey.system.readonly"],
|
|
1228
1629
|
"parameters": {}
|
|
1229
1630
|
},
|
|
1230
1631
|
"getDrivers": {
|
|
1231
1632
|
"method": "get",
|
|
1232
1633
|
"path": "/driver",
|
|
1233
1634
|
"private": false,
|
|
1234
|
-
"scopes": [
|
|
1235
|
-
"homey.device.readonly"
|
|
1236
|
-
],
|
|
1635
|
+
"scopes": ["homey.device.readonly"],
|
|
1237
1636
|
"crud": {
|
|
1238
1637
|
"type": "getAll",
|
|
1239
1638
|
"item": "Driver"
|
|
@@ -1244,9 +1643,7 @@
|
|
|
1244
1643
|
"method": "get",
|
|
1245
1644
|
"path": "/pairsession/:id",
|
|
1246
1645
|
"private": false,
|
|
1247
|
-
"scopes": [
|
|
1248
|
-
"homey.device"
|
|
1249
|
-
],
|
|
1646
|
+
"scopes": ["homey.device"],
|
|
1250
1647
|
"crud": {
|
|
1251
1648
|
"type": "getOne",
|
|
1252
1649
|
"item": "PairSession"
|
|
@@ -1263,9 +1660,7 @@
|
|
|
1263
1660
|
"method": "post",
|
|
1264
1661
|
"path": "/pairsession",
|
|
1265
1662
|
"private": false,
|
|
1266
|
-
"scopes": [
|
|
1267
|
-
"homey.device"
|
|
1268
|
-
],
|
|
1663
|
+
"scopes": ["homey.device"],
|
|
1269
1664
|
"crud": {
|
|
1270
1665
|
"type": "createOne",
|
|
1271
1666
|
"item": "PairSession"
|
|
@@ -1299,9 +1694,7 @@
|
|
|
1299
1694
|
"method": "delete",
|
|
1300
1695
|
"path": "/pairsession/:id",
|
|
1301
1696
|
"private": false,
|
|
1302
|
-
"scopes": [
|
|
1303
|
-
"homey.device"
|
|
1304
|
-
],
|
|
1697
|
+
"scopes": ["homey.device"],
|
|
1305
1698
|
"crud": {
|
|
1306
1699
|
"type": "deleteOne",
|
|
1307
1700
|
"item": "PairSession"
|
|
@@ -1318,9 +1711,7 @@
|
|
|
1318
1711
|
"method": "post",
|
|
1319
1712
|
"path": "/pairsession/:id/heartbeat",
|
|
1320
1713
|
"private": false,
|
|
1321
|
-
"scopes": [
|
|
1322
|
-
"homey.device"
|
|
1323
|
-
],
|
|
1714
|
+
"scopes": ["homey.device"],
|
|
1324
1715
|
"parameters": {
|
|
1325
1716
|
"id": {
|
|
1326
1717
|
"in": "path",
|
|
@@ -1333,9 +1724,7 @@
|
|
|
1333
1724
|
"method": "post",
|
|
1334
1725
|
"path": "/pairsession/:id/emit",
|
|
1335
1726
|
"private": false,
|
|
1336
|
-
"scopes": [
|
|
1337
|
-
"homey.device"
|
|
1338
|
-
],
|
|
1727
|
+
"scopes": ["homey.device"],
|
|
1339
1728
|
"parameters": {
|
|
1340
1729
|
"id": {
|
|
1341
1730
|
"in": "path",
|
|
@@ -1356,9 +1745,7 @@
|
|
|
1356
1745
|
"method": "post",
|
|
1357
1746
|
"path": "/pairsession/:id/callback",
|
|
1358
1747
|
"private": false,
|
|
1359
|
-
"scopes": [
|
|
1360
|
-
"homey.device"
|
|
1361
|
-
],
|
|
1748
|
+
"scopes": ["homey.device"],
|
|
1362
1749
|
"parameters": {
|
|
1363
1750
|
"id": {
|
|
1364
1751
|
"in": "path",
|
|
@@ -1379,9 +1766,7 @@
|
|
|
1379
1766
|
"method": "post",
|
|
1380
1767
|
"path": "/pairsession/:id/device",
|
|
1381
1768
|
"private": false,
|
|
1382
|
-
"scopes": [
|
|
1383
|
-
"homey.device"
|
|
1384
|
-
],
|
|
1769
|
+
"scopes": ["homey.device"],
|
|
1385
1770
|
"parameters": {
|
|
1386
1771
|
"id": {
|
|
1387
1772
|
"in": "path",
|
|
@@ -1435,9 +1820,7 @@
|
|
|
1435
1820
|
"method": "delete",
|
|
1436
1821
|
"path": "/pairsession/:id/device",
|
|
1437
1822
|
"private": false,
|
|
1438
|
-
"scopes": [
|
|
1439
|
-
"homey.device"
|
|
1440
|
-
],
|
|
1823
|
+
"scopes": ["homey.device"],
|
|
1441
1824
|
"parameters": {
|
|
1442
1825
|
"id": {
|
|
1443
1826
|
"in": "path",
|
|
@@ -1455,56 +1838,81 @@
|
|
|
1455
1838
|
"EnergyReportHour": {
|
|
1456
1839
|
"id": "energyreporthour",
|
|
1457
1840
|
"schema": {
|
|
1841
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1458
1842
|
"type": "object",
|
|
1459
1843
|
"properties": {
|
|
1460
1844
|
"id": {
|
|
1461
|
-
"
|
|
1845
|
+
"description": "The unique identifier of the item.",
|
|
1846
|
+
"type": "string",
|
|
1847
|
+
"format": "uuid",
|
|
1848
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1462
1849
|
}
|
|
1463
|
-
}
|
|
1850
|
+
},
|
|
1851
|
+
"additionalProperties": false
|
|
1464
1852
|
}
|
|
1465
1853
|
},
|
|
1466
1854
|
"EnergyReportDay": {
|
|
1467
1855
|
"id": "energyreportday",
|
|
1468
1856
|
"schema": {
|
|
1857
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1469
1858
|
"type": "object",
|
|
1470
1859
|
"properties": {
|
|
1471
1860
|
"id": {
|
|
1472
|
-
"
|
|
1861
|
+
"description": "The unique identifier of the item.",
|
|
1862
|
+
"type": "string",
|
|
1863
|
+
"format": "uuid",
|
|
1864
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1473
1865
|
}
|
|
1474
|
-
}
|
|
1866
|
+
},
|
|
1867
|
+
"additionalProperties": false
|
|
1475
1868
|
}
|
|
1476
1869
|
},
|
|
1477
1870
|
"EnergyReportWeek": {
|
|
1478
1871
|
"id": "energyreportweek",
|
|
1479
1872
|
"schema": {
|
|
1873
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1480
1874
|
"type": "object",
|
|
1481
1875
|
"properties": {
|
|
1482
1876
|
"id": {
|
|
1483
|
-
"
|
|
1877
|
+
"description": "The unique identifier of the item.",
|
|
1878
|
+
"type": "string",
|
|
1879
|
+
"format": "uuid",
|
|
1880
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1484
1881
|
}
|
|
1485
|
-
}
|
|
1882
|
+
},
|
|
1883
|
+
"additionalProperties": false
|
|
1486
1884
|
}
|
|
1487
1885
|
},
|
|
1488
1886
|
"EnergyReportMonth": {
|
|
1489
1887
|
"id": "energyreportmonth",
|
|
1490
1888
|
"schema": {
|
|
1889
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1491
1890
|
"type": "object",
|
|
1492
1891
|
"properties": {
|
|
1493
1892
|
"id": {
|
|
1494
|
-
"
|
|
1893
|
+
"description": "The unique identifier of the item.",
|
|
1894
|
+
"type": "string",
|
|
1895
|
+
"format": "uuid",
|
|
1896
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1495
1897
|
}
|
|
1496
|
-
}
|
|
1898
|
+
},
|
|
1899
|
+
"additionalProperties": false
|
|
1497
1900
|
}
|
|
1498
1901
|
},
|
|
1499
1902
|
"EnergyReportYear": {
|
|
1500
1903
|
"id": "energyreportyear",
|
|
1501
1904
|
"schema": {
|
|
1905
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1502
1906
|
"type": "object",
|
|
1503
1907
|
"properties": {
|
|
1504
1908
|
"id": {
|
|
1505
|
-
"
|
|
1909
|
+
"description": "The unique identifier of the item.",
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"format": "uuid",
|
|
1912
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
1506
1913
|
}
|
|
1507
|
-
}
|
|
1914
|
+
},
|
|
1915
|
+
"additionalProperties": false
|
|
1508
1916
|
}
|
|
1509
1917
|
}
|
|
1510
1918
|
},
|
|
@@ -1512,16 +1920,12 @@
|
|
|
1512
1920
|
"getOptionElectricityPriceFixed": {
|
|
1513
1921
|
"method": "GET",
|
|
1514
1922
|
"path": "/option/electricityPriceFixed",
|
|
1515
|
-
"scopes": [
|
|
1516
|
-
"homey.energy.readonly"
|
|
1517
|
-
]
|
|
1923
|
+
"scopes": ["homey.energy.readonly"]
|
|
1518
1924
|
},
|
|
1519
1925
|
"setOptionElectricityPriceFixed": {
|
|
1520
1926
|
"method": "PUT",
|
|
1521
1927
|
"path": "/option/electricityPriceFixed",
|
|
1522
|
-
"scopes": [
|
|
1523
|
-
"homey.energy"
|
|
1524
|
-
],
|
|
1928
|
+
"scopes": ["homey.energy"],
|
|
1525
1929
|
"parameters": {
|
|
1526
1930
|
"value": {
|
|
1527
1931
|
"in": "body",
|
|
@@ -1532,23 +1936,17 @@
|
|
|
1532
1936
|
"unsetOptionElectricityPriceFixed": {
|
|
1533
1937
|
"method": "DELETE",
|
|
1534
1938
|
"path": "/option/electricityPriceFixed",
|
|
1535
|
-
"scopes": [
|
|
1536
|
-
"homey.energy"
|
|
1537
|
-
]
|
|
1939
|
+
"scopes": ["homey.energy"]
|
|
1538
1940
|
},
|
|
1539
1941
|
"getOptionGasPriceFixed": {
|
|
1540
1942
|
"method": "GET",
|
|
1541
1943
|
"path": "/option/gasPriceFixed",
|
|
1542
|
-
"scopes": [
|
|
1543
|
-
"homey.energy.readonly"
|
|
1544
|
-
]
|
|
1944
|
+
"scopes": ["homey.energy.readonly"]
|
|
1545
1945
|
},
|
|
1546
1946
|
"setOptionGasPriceFixed": {
|
|
1547
1947
|
"method": "PUT",
|
|
1548
1948
|
"path": "/option/gasPriceFixed",
|
|
1549
|
-
"scopes": [
|
|
1550
|
-
"homey.energy"
|
|
1551
|
-
],
|
|
1949
|
+
"scopes": ["homey.energy"],
|
|
1552
1950
|
"parameters": {
|
|
1553
1951
|
"value": {
|
|
1554
1952
|
"in": "body",
|
|
@@ -1559,23 +1957,17 @@
|
|
|
1559
1957
|
"unsetOptionGasPriceFixed": {
|
|
1560
1958
|
"method": "DELETE",
|
|
1561
1959
|
"path": "/option/gasPriceFixed",
|
|
1562
|
-
"scopes": [
|
|
1563
|
-
"homey.energy"
|
|
1564
|
-
]
|
|
1960
|
+
"scopes": ["homey.energy"]
|
|
1565
1961
|
},
|
|
1566
1962
|
"getOptionWaterPriceFixed": {
|
|
1567
1963
|
"method": "GET",
|
|
1568
1964
|
"path": "/option/waterPriceFixed",
|
|
1569
|
-
"scopes": [
|
|
1570
|
-
"homey.energy.readonly"
|
|
1571
|
-
]
|
|
1965
|
+
"scopes": ["homey.energy.readonly"]
|
|
1572
1966
|
},
|
|
1573
1967
|
"setOptionWaterPriceFixed": {
|
|
1574
1968
|
"method": "PUT",
|
|
1575
1969
|
"path": "/option/waterPriceFixed",
|
|
1576
|
-
"scopes": [
|
|
1577
|
-
"homey.energy"
|
|
1578
|
-
],
|
|
1970
|
+
"scopes": ["homey.energy"],
|
|
1579
1971
|
"parameters": {
|
|
1580
1972
|
"value": {
|
|
1581
1973
|
"in": "body",
|
|
@@ -1586,23 +1978,17 @@
|
|
|
1586
1978
|
"unsetOptionWaterPriceFixed": {
|
|
1587
1979
|
"method": "DELETE",
|
|
1588
1980
|
"path": "/option/waterPriceFixed",
|
|
1589
|
-
"scopes": [
|
|
1590
|
-
"homey.energy"
|
|
1591
|
-
]
|
|
1981
|
+
"scopes": ["homey.energy"]
|
|
1592
1982
|
},
|
|
1593
1983
|
"getOptionElectricityPriceDynamicPreferredInterval": {
|
|
1594
1984
|
"method": "GET",
|
|
1595
1985
|
"path": "/option/electricityPriceDynamicPreferredInterval",
|
|
1596
|
-
"scopes": [
|
|
1597
|
-
"homey.energy.readonly"
|
|
1598
|
-
]
|
|
1986
|
+
"scopes": ["homey.energy.readonly"]
|
|
1599
1987
|
},
|
|
1600
1988
|
"setOptionElectricityPriceDynamicPreferredInterval": {
|
|
1601
1989
|
"method": "PUT",
|
|
1602
1990
|
"path": "/option/electricityPriceDynamicPreferredInterval",
|
|
1603
|
-
"scopes": [
|
|
1604
|
-
"homey.energy"
|
|
1605
|
-
],
|
|
1991
|
+
"scopes": ["homey.energy"],
|
|
1606
1992
|
"parameters": {
|
|
1607
1993
|
"value": {
|
|
1608
1994
|
"in": "body",
|
|
@@ -1613,26 +1999,20 @@
|
|
|
1613
1999
|
"unsetOptionElectricityPriceDynamicPreferredInterval": {
|
|
1614
2000
|
"method": "DELETE",
|
|
1615
2001
|
"path": "/option/electricityPriceDynamicPreferredInterval",
|
|
1616
|
-
"scopes": [
|
|
1617
|
-
"homey.energy"
|
|
1618
|
-
]
|
|
2002
|
+
"scopes": ["homey.energy"]
|
|
1619
2003
|
},
|
|
1620
2004
|
"getState": {
|
|
1621
2005
|
"method": "get",
|
|
1622
2006
|
"path": "/state",
|
|
1623
2007
|
"private": false,
|
|
1624
|
-
"scopes": [
|
|
1625
|
-
"homey.system.readonly"
|
|
1626
|
-
],
|
|
2008
|
+
"scopes": ["homey.system.readonly"],
|
|
1627
2009
|
"parameters": {}
|
|
1628
2010
|
},
|
|
1629
2011
|
"getLiveReport": {
|
|
1630
2012
|
"method": "get",
|
|
1631
2013
|
"path": "/live",
|
|
1632
2014
|
"private": false,
|
|
1633
|
-
"scopes": [
|
|
1634
|
-
"homey.energy.readonly"
|
|
1635
|
-
],
|
|
2015
|
+
"scopes": ["homey.energy.readonly"],
|
|
1636
2016
|
"parameters": {
|
|
1637
2017
|
"zone": {
|
|
1638
2018
|
"in": "query",
|
|
@@ -1644,9 +2024,7 @@
|
|
|
1644
2024
|
"method": "get",
|
|
1645
2025
|
"path": "/report/day",
|
|
1646
2026
|
"private": false,
|
|
1647
|
-
"scopes": [
|
|
1648
|
-
"homey.energy.readonly"
|
|
1649
|
-
],
|
|
2027
|
+
"scopes": ["homey.energy.readonly"],
|
|
1650
2028
|
"parameters": {
|
|
1651
2029
|
"date": {
|
|
1652
2030
|
"in": "query",
|
|
@@ -1663,9 +2041,7 @@
|
|
|
1663
2041
|
"method": "get",
|
|
1664
2042
|
"path": "/report/week",
|
|
1665
2043
|
"private": false,
|
|
1666
|
-
"scopes": [
|
|
1667
|
-
"homey.energy.readonly"
|
|
1668
|
-
],
|
|
2044
|
+
"scopes": ["homey.energy.readonly"],
|
|
1669
2045
|
"parameters": {
|
|
1670
2046
|
"isoWeek": {
|
|
1671
2047
|
"in": "query",
|
|
@@ -1682,9 +2058,7 @@
|
|
|
1682
2058
|
"method": "get",
|
|
1683
2059
|
"path": "/report/month",
|
|
1684
2060
|
"private": false,
|
|
1685
|
-
"scopes": [
|
|
1686
|
-
"homey.energy.readonly"
|
|
1687
|
-
],
|
|
2061
|
+
"scopes": ["homey.energy.readonly"],
|
|
1688
2062
|
"parameters": {
|
|
1689
2063
|
"yearMonth": {
|
|
1690
2064
|
"in": "query",
|
|
@@ -1701,9 +2075,7 @@
|
|
|
1701
2075
|
"method": "get",
|
|
1702
2076
|
"path": "/report/year",
|
|
1703
2077
|
"private": false,
|
|
1704
|
-
"scopes": [
|
|
1705
|
-
"homey.energy.readonly"
|
|
1706
|
-
],
|
|
2078
|
+
"scopes": ["homey.energy.readonly"],
|
|
1707
2079
|
"parameters": {
|
|
1708
2080
|
"year": {
|
|
1709
2081
|
"in": "query",
|
|
@@ -1720,36 +2092,28 @@
|
|
|
1720
2092
|
"method": "get",
|
|
1721
2093
|
"path": "/reports/available",
|
|
1722
2094
|
"private": false,
|
|
1723
|
-
"scopes": [
|
|
1724
|
-
"homey.energy.readonly"
|
|
1725
|
-
],
|
|
2095
|
+
"scopes": ["homey.energy.readonly"],
|
|
1726
2096
|
"parameters": {}
|
|
1727
2097
|
},
|
|
1728
2098
|
"getCurrency": {
|
|
1729
2099
|
"method": "get",
|
|
1730
2100
|
"path": "/currency",
|
|
1731
2101
|
"private": false,
|
|
1732
|
-
"scopes": [
|
|
1733
|
-
"homey.energy.readonly"
|
|
1734
|
-
],
|
|
2102
|
+
"scopes": ["homey.energy.readonly"],
|
|
1735
2103
|
"parameters": {}
|
|
1736
2104
|
},
|
|
1737
2105
|
"deleteReports": {
|
|
1738
2106
|
"method": "delete",
|
|
1739
2107
|
"path": "/reports",
|
|
1740
2108
|
"private": false,
|
|
1741
|
-
"scopes": [
|
|
1742
|
-
"homey.energy"
|
|
1743
|
-
],
|
|
2109
|
+
"scopes": ["homey.energy"],
|
|
1744
2110
|
"parameters": {}
|
|
1745
2111
|
},
|
|
1746
2112
|
"resetReportDayCategories": {
|
|
1747
2113
|
"method": "put",
|
|
1748
2114
|
"path": "/report/day/reset/categories",
|
|
1749
2115
|
"private": false,
|
|
1750
|
-
"scopes": [
|
|
1751
|
-
"homey.energy"
|
|
1752
|
-
],
|
|
2116
|
+
"scopes": ["homey.energy"],
|
|
1753
2117
|
"parameters": {
|
|
1754
2118
|
"options": {
|
|
1755
2119
|
"in": "body",
|
|
@@ -1773,9 +2137,7 @@
|
|
|
1773
2137
|
"method": "get",
|
|
1774
2138
|
"path": "/price/electricity/dynamic",
|
|
1775
2139
|
"private": false,
|
|
1776
|
-
"scopes": [
|
|
1777
|
-
"homey.energy.readonly"
|
|
1778
|
-
],
|
|
2140
|
+
"scopes": ["homey.energy.readonly"],
|
|
1779
2141
|
"parameters": {
|
|
1780
2142
|
"date": {
|
|
1781
2143
|
"in": "query",
|
|
@@ -1788,9 +2150,7 @@
|
|
|
1788
2150
|
"method": "put",
|
|
1789
2151
|
"path": "/price/electricity/dynamic/user-costs",
|
|
1790
2152
|
"private": false,
|
|
1791
|
-
"scopes": [
|
|
1792
|
-
"homey.energy"
|
|
1793
|
-
],
|
|
2153
|
+
"scopes": ["homey.energy"],
|
|
1794
2154
|
"parameters": {
|
|
1795
2155
|
"mathExpression": {
|
|
1796
2156
|
"in": "body",
|
|
@@ -1807,27 +2167,21 @@
|
|
|
1807
2167
|
"method": "get",
|
|
1808
2168
|
"path": "/price/electricity/dynamic/user-costs",
|
|
1809
2169
|
"private": false,
|
|
1810
|
-
"scopes": [
|
|
1811
|
-
"homey.energy.readonly"
|
|
1812
|
-
],
|
|
2170
|
+
"scopes": ["homey.energy.readonly"],
|
|
1813
2171
|
"parameters": {}
|
|
1814
2172
|
},
|
|
1815
2173
|
"unsetDynamicElectricityPriceUserCosts": {
|
|
1816
2174
|
"method": "delete",
|
|
1817
2175
|
"path": "/price/electricity/dynamic/user-costs",
|
|
1818
2176
|
"private": false,
|
|
1819
|
-
"scopes": [
|
|
1820
|
-
"homey.energy"
|
|
1821
|
-
],
|
|
2177
|
+
"scopes": ["homey.energy"],
|
|
1822
2178
|
"parameters": {}
|
|
1823
2179
|
},
|
|
1824
2180
|
"setElectricityPriceType": {
|
|
1825
2181
|
"method": "put",
|
|
1826
2182
|
"path": "/price/electricity/:type",
|
|
1827
2183
|
"private": false,
|
|
1828
|
-
"scopes": [
|
|
1829
|
-
"homey.energy"
|
|
1830
|
-
],
|
|
2184
|
+
"scopes": ["homey.energy"],
|
|
1831
2185
|
"parameters": {
|
|
1832
2186
|
"type": {
|
|
1833
2187
|
"in": "path",
|
|
@@ -1840,36 +2194,28 @@
|
|
|
1840
2194
|
"method": "get",
|
|
1841
2195
|
"path": "/price/electricity/type",
|
|
1842
2196
|
"private": false,
|
|
1843
|
-
"scopes": [
|
|
1844
|
-
"homey.energy.readonly"
|
|
1845
|
-
],
|
|
2197
|
+
"scopes": ["homey.energy.readonly"],
|
|
1846
2198
|
"parameters": {}
|
|
1847
2199
|
},
|
|
1848
2200
|
"getDynamicPricesElectricityZones": {
|
|
1849
2201
|
"method": "get",
|
|
1850
2202
|
"path": "/price/electricity/dynamic/zones",
|
|
1851
2203
|
"private": false,
|
|
1852
|
-
"scopes": [
|
|
1853
|
-
"homey.energy.readonly"
|
|
1854
|
-
],
|
|
2204
|
+
"scopes": ["homey.energy.readonly"],
|
|
1855
2205
|
"parameters": {}
|
|
1856
2206
|
},
|
|
1857
2207
|
"getDynamicPricesElectricityZone": {
|
|
1858
2208
|
"method": "get",
|
|
1859
2209
|
"path": "/price/electricity/dynamic/zone",
|
|
1860
2210
|
"private": false,
|
|
1861
|
-
"scopes": [
|
|
1862
|
-
"homey.energy.readonly"
|
|
1863
|
-
],
|
|
2211
|
+
"scopes": ["homey.energy.readonly"],
|
|
1864
2212
|
"parameters": {}
|
|
1865
2213
|
},
|
|
1866
2214
|
"setDynamicPricesElectricityZone": {
|
|
1867
2215
|
"method": "put",
|
|
1868
2216
|
"path": "/price/electricity/dynamic/zone",
|
|
1869
2217
|
"private": false,
|
|
1870
|
-
"scopes": [
|
|
1871
|
-
"homey.energy"
|
|
1872
|
-
],
|
|
2218
|
+
"scopes": ["homey.energy"],
|
|
1873
2219
|
"parameters": {
|
|
1874
2220
|
"options": {
|
|
1875
2221
|
"in": "body",
|
|
@@ -1896,9 +2242,7 @@
|
|
|
1896
2242
|
"method": "post",
|
|
1897
2243
|
"path": "/reports/dummy/enable",
|
|
1898
2244
|
"private": true,
|
|
1899
|
-
"scopes": [
|
|
1900
|
-
"homey.energy"
|
|
1901
|
-
],
|
|
2245
|
+
"scopes": ["homey.energy"],
|
|
1902
2246
|
"parameters": {
|
|
1903
2247
|
"fromDate": {
|
|
1904
2248
|
"in": "query",
|
|
@@ -1922,9 +2266,7 @@
|
|
|
1922
2266
|
"method": "post",
|
|
1923
2267
|
"path": "/reports/dummy/disable",
|
|
1924
2268
|
"private": true,
|
|
1925
|
-
"scopes": [
|
|
1926
|
-
"homey.energy"
|
|
1927
|
-
],
|
|
2269
|
+
"scopes": ["homey.energy"],
|
|
1928
2270
|
"parameters": {}
|
|
1929
2271
|
}
|
|
1930
2272
|
}
|
|
@@ -1937,16 +2279,12 @@
|
|
|
1937
2279
|
"getOptionPhaseLoadNotificationSettings": {
|
|
1938
2280
|
"method": "GET",
|
|
1939
2281
|
"path": "/option/phaseLoadNotificationSettings",
|
|
1940
|
-
"scopes": [
|
|
1941
|
-
"homey.system.readonly"
|
|
1942
|
-
]
|
|
2282
|
+
"scopes": ["homey.system.readonly"]
|
|
1943
2283
|
},
|
|
1944
2284
|
"setOptionPhaseLoadNotificationSettings": {
|
|
1945
2285
|
"method": "PUT",
|
|
1946
2286
|
"path": "/option/phaseLoadNotificationSettings",
|
|
1947
|
-
"scopes": [
|
|
1948
|
-
"homey.system"
|
|
1949
|
-
],
|
|
2287
|
+
"scopes": ["homey.system"],
|
|
1950
2288
|
"parameters": {
|
|
1951
2289
|
"value": {
|
|
1952
2290
|
"in": "body",
|
|
@@ -1957,17 +2295,13 @@
|
|
|
1957
2295
|
"unsetOptionPhaseLoadNotificationSettings": {
|
|
1958
2296
|
"method": "DELETE",
|
|
1959
2297
|
"path": "/option/phaseLoadNotificationSettings",
|
|
1960
|
-
"scopes": [
|
|
1961
|
-
"homey.system"
|
|
1962
|
-
]
|
|
2298
|
+
"scopes": ["homey.system"]
|
|
1963
2299
|
},
|
|
1964
2300
|
"createAndUploadDiagnosticReport": {
|
|
1965
2301
|
"method": "post",
|
|
1966
2302
|
"path": "/:deviceId/diagnostic-report",
|
|
1967
2303
|
"private": true,
|
|
1968
|
-
"scopes": [
|
|
1969
|
-
"homey.system.readonly"
|
|
1970
|
-
],
|
|
2304
|
+
"scopes": ["homey.system.readonly"],
|
|
1971
2305
|
"parameters": {
|
|
1972
2306
|
"deviceId": {
|
|
1973
2307
|
"in": "path",
|
|
@@ -1984,9 +2318,7 @@
|
|
|
1984
2318
|
"method": "get",
|
|
1985
2319
|
"path": "/:deviceId/next-frame",
|
|
1986
2320
|
"private": true,
|
|
1987
|
-
"scopes": [
|
|
1988
|
-
"homey.system.readonly"
|
|
1989
|
-
],
|
|
2321
|
+
"scopes": ["homey.system.readonly"],
|
|
1990
2322
|
"parameters": {
|
|
1991
2323
|
"deviceId": {
|
|
1992
2324
|
"in": "path",
|
|
@@ -2003,9 +2335,7 @@
|
|
|
2003
2335
|
"method": "post",
|
|
2004
2336
|
"path": "/:deviceId/restart-settings-discovery",
|
|
2005
2337
|
"private": true,
|
|
2006
|
-
"scopes": [
|
|
2007
|
-
"homey.system"
|
|
2008
|
-
],
|
|
2338
|
+
"scopes": ["homey.system"],
|
|
2009
2339
|
"parameters": {
|
|
2010
2340
|
"deviceId": {
|
|
2011
2341
|
"in": "path",
|
|
@@ -2018,9 +2348,7 @@
|
|
|
2018
2348
|
"method": "get",
|
|
2019
2349
|
"path": "/:deviceId/uart-config",
|
|
2020
2350
|
"private": true,
|
|
2021
|
-
"scopes": [
|
|
2022
|
-
"homey.system.readonly"
|
|
2023
|
-
],
|
|
2351
|
+
"scopes": ["homey.system.readonly"],
|
|
2024
2352
|
"parameters": {
|
|
2025
2353
|
"deviceId": {
|
|
2026
2354
|
"in": "path",
|
|
@@ -2033,9 +2361,7 @@
|
|
|
2033
2361
|
"method": "post",
|
|
2034
2362
|
"path": "/:deviceId/uart-config",
|
|
2035
2363
|
"private": true,
|
|
2036
|
-
"scopes": [
|
|
2037
|
-
"homey.system"
|
|
2038
|
-
],
|
|
2364
|
+
"scopes": ["homey.system"],
|
|
2039
2365
|
"parameters": {
|
|
2040
2366
|
"deviceId": {
|
|
2041
2367
|
"in": "path",
|
|
@@ -2083,9 +2409,7 @@
|
|
|
2083
2409
|
"method": "get",
|
|
2084
2410
|
"path": "/:deviceId/firmware-update",
|
|
2085
2411
|
"private": true,
|
|
2086
|
-
"scopes": [
|
|
2087
|
-
"homey.system.readonly"
|
|
2088
|
-
],
|
|
2412
|
+
"scopes": ["homey.system.readonly"],
|
|
2089
2413
|
"parameters": {
|
|
2090
2414
|
"deviceId": {
|
|
2091
2415
|
"in": "path",
|
|
@@ -2098,9 +2422,7 @@
|
|
|
2098
2422
|
"method": "post",
|
|
2099
2423
|
"path": "/:deviceId/firmware-update",
|
|
2100
2424
|
"private": true,
|
|
2101
|
-
"scopes": [
|
|
2102
|
-
"homey.system"
|
|
2103
|
-
],
|
|
2425
|
+
"scopes": ["homey.system"],
|
|
2104
2426
|
"parameters": {
|
|
2105
2427
|
"deviceId": {
|
|
2106
2428
|
"in": "path",
|
|
@@ -2117,9 +2439,7 @@
|
|
|
2117
2439
|
"method": "post",
|
|
2118
2440
|
"path": "/:deviceId/reboot",
|
|
2119
2441
|
"private": true,
|
|
2120
|
-
"scopes": [
|
|
2121
|
-
"homey.system"
|
|
2122
|
-
],
|
|
2442
|
+
"scopes": ["homey.system"],
|
|
2123
2443
|
"parameters": {
|
|
2124
2444
|
"deviceId": {
|
|
2125
2445
|
"in": "path",
|
|
@@ -2132,9 +2452,7 @@
|
|
|
2132
2452
|
"method": "put",
|
|
2133
2453
|
"path": "/:deviceId/phase-load",
|
|
2134
2454
|
"private": true,
|
|
2135
|
-
"scopes": [
|
|
2136
|
-
"homey.device"
|
|
2137
|
-
],
|
|
2455
|
+
"scopes": ["homey.device"],
|
|
2138
2456
|
"parameters": {
|
|
2139
2457
|
"deviceId": {
|
|
2140
2458
|
"in": "path",
|
|
@@ -2157,9 +2475,7 @@
|
|
|
2157
2475
|
"method": "get",
|
|
2158
2476
|
"path": "/:deviceId/phase-load",
|
|
2159
2477
|
"private": true,
|
|
2160
|
-
"scopes": [
|
|
2161
|
-
"homey.device.readonly"
|
|
2162
|
-
],
|
|
2478
|
+
"scopes": ["homey.device.readonly"],
|
|
2163
2479
|
"parameters": {
|
|
2164
2480
|
"deviceId": {
|
|
2165
2481
|
"in": "path",
|
|
@@ -2175,61 +2491,541 @@
|
|
|
2175
2491
|
"idCamelCase": "flow",
|
|
2176
2492
|
"items": {
|
|
2177
2493
|
"Flow": {
|
|
2178
|
-
"id": "flow"
|
|
2494
|
+
"id": "flow",
|
|
2495
|
+
"schema": {
|
|
2496
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2497
|
+
"type": "object",
|
|
2498
|
+
"properties": {
|
|
2499
|
+
"id": {
|
|
2500
|
+
"description": "The unique identifier of the Flow.",
|
|
2501
|
+
"type": "string",
|
|
2502
|
+
"format": "uuid",
|
|
2503
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2504
|
+
},
|
|
2505
|
+
"name": {
|
|
2506
|
+
"description": "The name of the Flow.",
|
|
2507
|
+
"type": "string"
|
|
2508
|
+
},
|
|
2509
|
+
"folder": {
|
|
2510
|
+
"description": "The folder of the Flow.",
|
|
2511
|
+
"anyOf": [
|
|
2512
|
+
{
|
|
2513
|
+
"type": "string"
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
"type": "null"
|
|
2517
|
+
}
|
|
2518
|
+
]
|
|
2519
|
+
},
|
|
2520
|
+
"triggerable": {
|
|
2521
|
+
"description": "Whether the Flow can manually be triggered.",
|
|
2522
|
+
"type": "boolean"
|
|
2523
|
+
},
|
|
2524
|
+
"enabled": {
|
|
2525
|
+
"description": "Whether the Flow is enabled.",
|
|
2526
|
+
"type": "boolean"
|
|
2527
|
+
},
|
|
2528
|
+
"trigger": {
|
|
2529
|
+
"description": "The trigger of the Flow.",
|
|
2530
|
+
"type": "object",
|
|
2531
|
+
"properties": {
|
|
2532
|
+
"id": {
|
|
2533
|
+
"description": "The unique identifier of the trigger.",
|
|
2534
|
+
"type": "string"
|
|
2535
|
+
}
|
|
2536
|
+
},
|
|
2537
|
+
"required": ["id"],
|
|
2538
|
+
"additionalProperties": {}
|
|
2539
|
+
},
|
|
2540
|
+
"conditions": {
|
|
2541
|
+
"description": "The conditions of the Flow.",
|
|
2542
|
+
"type": "array",
|
|
2543
|
+
"items": {
|
|
2544
|
+
"type": "object",
|
|
2545
|
+
"properties": {
|
|
2546
|
+
"id": {
|
|
2547
|
+
"description": "The unique identifier of the condition.",
|
|
2548
|
+
"type": "string"
|
|
2549
|
+
}
|
|
2550
|
+
},
|
|
2551
|
+
"required": ["id"],
|
|
2552
|
+
"additionalProperties": {}
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
"actions": {
|
|
2556
|
+
"description": "The actions of the Flow.",
|
|
2557
|
+
"type": "array",
|
|
2558
|
+
"items": {
|
|
2559
|
+
"type": "object",
|
|
2560
|
+
"properties": {
|
|
2561
|
+
"id": {
|
|
2562
|
+
"description": "The unique identifier of the action.",
|
|
2563
|
+
"type": "string"
|
|
2564
|
+
}
|
|
2565
|
+
},
|
|
2566
|
+
"required": ["id"],
|
|
2567
|
+
"additionalProperties": {}
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
"additionalProperties": false
|
|
2572
|
+
}
|
|
2179
2573
|
},
|
|
2180
2574
|
"FlowFolder": {
|
|
2181
2575
|
"id": "flowfolder",
|
|
2182
2576
|
"schema": {
|
|
2577
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2183
2578
|
"type": "object",
|
|
2184
2579
|
"properties": {
|
|
2185
2580
|
"id": {
|
|
2581
|
+
"description": "The unique identifier of the Flow folder",
|
|
2582
|
+
"type": "string",
|
|
2583
|
+
"format": "uuid",
|
|
2584
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2585
|
+
},
|
|
2586
|
+
"name": {
|
|
2587
|
+
"description": "The name of the folder.",
|
|
2186
2588
|
"type": "string"
|
|
2589
|
+
},
|
|
2590
|
+
"parent": {
|
|
2591
|
+
"description": "The id of the parent folder, if any.",
|
|
2592
|
+
"anyOf": [
|
|
2593
|
+
{
|
|
2594
|
+
"type": "string"
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"type": "null"
|
|
2598
|
+
}
|
|
2599
|
+
]
|
|
2187
2600
|
}
|
|
2188
|
-
}
|
|
2601
|
+
},
|
|
2602
|
+
"additionalProperties": false
|
|
2189
2603
|
}
|
|
2190
2604
|
},
|
|
2191
2605
|
"FlowCardTrigger": {
|
|
2192
2606
|
"id": "flowcardtrigger",
|
|
2193
2607
|
"schema": {
|
|
2608
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2194
2609
|
"type": "object",
|
|
2195
2610
|
"properties": {
|
|
2196
2611
|
"id": {
|
|
2612
|
+
"description": "The unique identifier of the Flow card.",
|
|
2613
|
+
"type": "string",
|
|
2614
|
+
"format": "uuid",
|
|
2615
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2616
|
+
},
|
|
2617
|
+
"ownerId": {
|
|
2618
|
+
"description": "The unique identifier of the owner of the Flow card.",
|
|
2619
|
+
"type": "string"
|
|
2620
|
+
},
|
|
2621
|
+
"ownerUri": {
|
|
2622
|
+
"description": "The URI of the owner of the Flow card.",
|
|
2623
|
+
"type": "string"
|
|
2624
|
+
},
|
|
2625
|
+
"ownerName": {
|
|
2626
|
+
"description": "The name of the owner of the Flow card.",
|
|
2197
2627
|
"type": "string"
|
|
2628
|
+
},
|
|
2629
|
+
"title": {
|
|
2630
|
+
"description": "The title of the Flow card.",
|
|
2631
|
+
"type": "string"
|
|
2632
|
+
},
|
|
2633
|
+
"titleFormatted": {
|
|
2634
|
+
"description": "The formatted title of the Flow card.",
|
|
2635
|
+
"anyOf": [
|
|
2636
|
+
{
|
|
2637
|
+
"type": "string"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"type": "null"
|
|
2641
|
+
}
|
|
2642
|
+
]
|
|
2643
|
+
},
|
|
2644
|
+
"hint": {
|
|
2645
|
+
"description": "The hint of the Flow card.",
|
|
2646
|
+
"anyOf": [
|
|
2647
|
+
{
|
|
2648
|
+
"type": "string"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"type": "null"
|
|
2652
|
+
}
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
"args": {
|
|
2656
|
+
"description": "The arguments of the Flow card.",
|
|
2657
|
+
"anyOf": [
|
|
2658
|
+
{
|
|
2659
|
+
"type": "array",
|
|
2660
|
+
"items": {}
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
"type": "null"
|
|
2664
|
+
}
|
|
2665
|
+
]
|
|
2666
|
+
},
|
|
2667
|
+
"droptoken": {
|
|
2668
|
+
"anyOf": [
|
|
2669
|
+
{
|
|
2670
|
+
"type": "array",
|
|
2671
|
+
"items": {
|
|
2672
|
+
"type": "string"
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"type": "null"
|
|
2677
|
+
}
|
|
2678
|
+
]
|
|
2679
|
+
},
|
|
2680
|
+
"deprecated": {
|
|
2681
|
+
"description": "Whether the Flow card is deprecated.",
|
|
2682
|
+
"anyOf": [
|
|
2683
|
+
{
|
|
2684
|
+
"type": "boolean"
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"type": "null"
|
|
2688
|
+
}
|
|
2689
|
+
]
|
|
2690
|
+
},
|
|
2691
|
+
"highlight": {
|
|
2692
|
+
"description": "Whether the Flow card should be highlighted.",
|
|
2693
|
+
"anyOf": [
|
|
2694
|
+
{
|
|
2695
|
+
"type": "boolean"
|
|
2696
|
+
},
|
|
2697
|
+
{
|
|
2698
|
+
"type": "null"
|
|
2699
|
+
}
|
|
2700
|
+
]
|
|
2701
|
+
},
|
|
2702
|
+
"tokens": {
|
|
2703
|
+
"anyOf": [
|
|
2704
|
+
{
|
|
2705
|
+
"type": "array",
|
|
2706
|
+
"items": {}
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
"type": "null"
|
|
2710
|
+
}
|
|
2711
|
+
]
|
|
2198
2712
|
}
|
|
2199
|
-
}
|
|
2713
|
+
},
|
|
2714
|
+
"additionalProperties": false
|
|
2200
2715
|
}
|
|
2201
2716
|
},
|
|
2202
2717
|
"FlowCardCondition": {
|
|
2203
2718
|
"id": "flowcardcondition",
|
|
2204
2719
|
"schema": {
|
|
2720
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2205
2721
|
"type": "object",
|
|
2206
2722
|
"properties": {
|
|
2207
2723
|
"id": {
|
|
2724
|
+
"description": "The unique identifier of the Flow card.",
|
|
2725
|
+
"type": "string",
|
|
2726
|
+
"format": "uuid",
|
|
2727
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2728
|
+
},
|
|
2729
|
+
"ownerId": {
|
|
2730
|
+
"description": "The unique identifier of the owner of the Flow card.",
|
|
2208
2731
|
"type": "string"
|
|
2732
|
+
},
|
|
2733
|
+
"ownerUri": {
|
|
2734
|
+
"description": "The URI of the owner of the Flow card.",
|
|
2735
|
+
"type": "string"
|
|
2736
|
+
},
|
|
2737
|
+
"ownerName": {
|
|
2738
|
+
"description": "The name of the owner of the Flow card.",
|
|
2739
|
+
"type": "string"
|
|
2740
|
+
},
|
|
2741
|
+
"title": {
|
|
2742
|
+
"description": "The title of the Flow card.",
|
|
2743
|
+
"type": "string"
|
|
2744
|
+
},
|
|
2745
|
+
"titleFormatted": {
|
|
2746
|
+
"description": "The formatted title of the Flow card.",
|
|
2747
|
+
"anyOf": [
|
|
2748
|
+
{
|
|
2749
|
+
"type": "string"
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
"type": "null"
|
|
2753
|
+
}
|
|
2754
|
+
]
|
|
2755
|
+
},
|
|
2756
|
+
"hint": {
|
|
2757
|
+
"description": "The hint of the Flow card.",
|
|
2758
|
+
"anyOf": [
|
|
2759
|
+
{
|
|
2760
|
+
"type": "string"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"type": "null"
|
|
2764
|
+
}
|
|
2765
|
+
]
|
|
2766
|
+
},
|
|
2767
|
+
"args": {
|
|
2768
|
+
"description": "The arguments of the Flow card.",
|
|
2769
|
+
"anyOf": [
|
|
2770
|
+
{
|
|
2771
|
+
"type": "array",
|
|
2772
|
+
"items": {}
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"type": "null"
|
|
2776
|
+
}
|
|
2777
|
+
]
|
|
2778
|
+
},
|
|
2779
|
+
"droptoken": {
|
|
2780
|
+
"anyOf": [
|
|
2781
|
+
{
|
|
2782
|
+
"type": "array",
|
|
2783
|
+
"items": {
|
|
2784
|
+
"type": "string"
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"type": "null"
|
|
2789
|
+
}
|
|
2790
|
+
]
|
|
2791
|
+
},
|
|
2792
|
+
"deprecated": {
|
|
2793
|
+
"description": "Whether the Flow card is deprecated.",
|
|
2794
|
+
"anyOf": [
|
|
2795
|
+
{
|
|
2796
|
+
"type": "boolean"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"type": "null"
|
|
2800
|
+
}
|
|
2801
|
+
]
|
|
2802
|
+
},
|
|
2803
|
+
"highlight": {
|
|
2804
|
+
"description": "Whether the Flow card should be highlighted.",
|
|
2805
|
+
"anyOf": [
|
|
2806
|
+
{
|
|
2807
|
+
"type": "boolean"
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"type": "null"
|
|
2811
|
+
}
|
|
2812
|
+
]
|
|
2209
2813
|
}
|
|
2210
|
-
}
|
|
2814
|
+
},
|
|
2815
|
+
"additionalProperties": false
|
|
2211
2816
|
}
|
|
2212
2817
|
},
|
|
2213
2818
|
"FlowCardAction": {
|
|
2214
2819
|
"id": "flowcardaction",
|
|
2215
2820
|
"schema": {
|
|
2821
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2216
2822
|
"type": "object",
|
|
2217
2823
|
"properties": {
|
|
2218
2824
|
"id": {
|
|
2825
|
+
"description": "The unique identifier of the Flow card.",
|
|
2826
|
+
"type": "string",
|
|
2827
|
+
"format": "uuid",
|
|
2828
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2829
|
+
},
|
|
2830
|
+
"ownerId": {
|
|
2831
|
+
"description": "The unique identifier of the owner of the Flow card.",
|
|
2219
2832
|
"type": "string"
|
|
2833
|
+
},
|
|
2834
|
+
"ownerUri": {
|
|
2835
|
+
"description": "The URI of the owner of the Flow card.",
|
|
2836
|
+
"type": "string"
|
|
2837
|
+
},
|
|
2838
|
+
"ownerName": {
|
|
2839
|
+
"description": "The name of the owner of the Flow card.",
|
|
2840
|
+
"type": "string"
|
|
2841
|
+
},
|
|
2842
|
+
"title": {
|
|
2843
|
+
"description": "The title of the Flow card.",
|
|
2844
|
+
"type": "string"
|
|
2845
|
+
},
|
|
2846
|
+
"titleFormatted": {
|
|
2847
|
+
"description": "The formatted title of the Flow card.",
|
|
2848
|
+
"anyOf": [
|
|
2849
|
+
{
|
|
2850
|
+
"type": "string"
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
"type": "null"
|
|
2854
|
+
}
|
|
2855
|
+
]
|
|
2856
|
+
},
|
|
2857
|
+
"hint": {
|
|
2858
|
+
"description": "The hint of the Flow card.",
|
|
2859
|
+
"anyOf": [
|
|
2860
|
+
{
|
|
2861
|
+
"type": "string"
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
"type": "null"
|
|
2865
|
+
}
|
|
2866
|
+
]
|
|
2867
|
+
},
|
|
2868
|
+
"args": {
|
|
2869
|
+
"description": "The arguments of the Flow card.",
|
|
2870
|
+
"anyOf": [
|
|
2871
|
+
{
|
|
2872
|
+
"type": "array",
|
|
2873
|
+
"items": {}
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
"type": "null"
|
|
2877
|
+
}
|
|
2878
|
+
]
|
|
2879
|
+
},
|
|
2880
|
+
"droptoken": {
|
|
2881
|
+
"anyOf": [
|
|
2882
|
+
{
|
|
2883
|
+
"type": "array",
|
|
2884
|
+
"items": {
|
|
2885
|
+
"type": "string"
|
|
2886
|
+
}
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
"type": "null"
|
|
2890
|
+
}
|
|
2891
|
+
]
|
|
2892
|
+
},
|
|
2893
|
+
"deprecated": {
|
|
2894
|
+
"description": "Whether the Flow card is deprecated.",
|
|
2895
|
+
"anyOf": [
|
|
2896
|
+
{
|
|
2897
|
+
"type": "boolean"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"type": "null"
|
|
2901
|
+
}
|
|
2902
|
+
]
|
|
2903
|
+
},
|
|
2904
|
+
"highlight": {
|
|
2905
|
+
"description": "Whether the Flow card should be highlighted.",
|
|
2906
|
+
"anyOf": [
|
|
2907
|
+
{
|
|
2908
|
+
"type": "boolean"
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"type": "null"
|
|
2912
|
+
}
|
|
2913
|
+
]
|
|
2914
|
+
},
|
|
2915
|
+
"duration": {
|
|
2916
|
+
"type": "boolean"
|
|
2917
|
+
},
|
|
2918
|
+
"durationMin": {
|
|
2919
|
+
"anyOf": [
|
|
2920
|
+
{
|
|
2921
|
+
"type": "number"
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"type": "null"
|
|
2925
|
+
}
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2928
|
+
"durationMax": {
|
|
2929
|
+
"anyOf": [
|
|
2930
|
+
{
|
|
2931
|
+
"type": "number"
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
"type": "null"
|
|
2935
|
+
}
|
|
2936
|
+
]
|
|
2937
|
+
},
|
|
2938
|
+
"tokens": {
|
|
2939
|
+
"anyOf": [
|
|
2940
|
+
{
|
|
2941
|
+
"type": "array",
|
|
2942
|
+
"items": {}
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"type": "null"
|
|
2946
|
+
}
|
|
2947
|
+
]
|
|
2948
|
+
},
|
|
2949
|
+
"advanced": {
|
|
2950
|
+
"type": "boolean"
|
|
2220
2951
|
}
|
|
2221
|
-
}
|
|
2952
|
+
},
|
|
2953
|
+
"additionalProperties": false
|
|
2222
2954
|
}
|
|
2223
2955
|
},
|
|
2224
2956
|
"AdvancedFlow": {
|
|
2225
2957
|
"id": "advancedflow",
|
|
2226
2958
|
"schema": {
|
|
2959
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2227
2960
|
"type": "object",
|
|
2228
2961
|
"properties": {
|
|
2229
2962
|
"id": {
|
|
2963
|
+
"description": "The unique identifier of the Advanced Flow.",
|
|
2964
|
+
"type": "string",
|
|
2965
|
+
"format": "uuid",
|
|
2966
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2967
|
+
},
|
|
2968
|
+
"name": {
|
|
2969
|
+
"description": "The name of the Advanced Flow.",
|
|
2230
2970
|
"type": "string"
|
|
2971
|
+
},
|
|
2972
|
+
"folder": {
|
|
2973
|
+
"description": "The folder of the Advanced Flow.",
|
|
2974
|
+
"anyOf": [
|
|
2975
|
+
{
|
|
2976
|
+
"type": "string"
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"type": "null"
|
|
2980
|
+
}
|
|
2981
|
+
]
|
|
2982
|
+
},
|
|
2983
|
+
"triggerable": {
|
|
2984
|
+
"description": "Whether the Advanced Flow can manually be triggered.",
|
|
2985
|
+
"type": "boolean"
|
|
2986
|
+
},
|
|
2987
|
+
"enabled": {
|
|
2988
|
+
"description": "Whether the Advanced Flow is enabled.",
|
|
2989
|
+
"type": "boolean"
|
|
2990
|
+
},
|
|
2991
|
+
"cards": {
|
|
2992
|
+
"description": "A record of cards associated with the Advanced Flow.",
|
|
2993
|
+
"type": "object",
|
|
2994
|
+
"propertyNames": {
|
|
2995
|
+
"type": "string",
|
|
2996
|
+
"format": "uuid",
|
|
2997
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
2998
|
+
},
|
|
2999
|
+
"additionalProperties": {
|
|
3000
|
+
"type": "object",
|
|
3001
|
+
"properties": {
|
|
3002
|
+
"id": {
|
|
3003
|
+
"description": "The unique identifier of the card.",
|
|
3004
|
+
"type": "string"
|
|
3005
|
+
},
|
|
3006
|
+
"ownerUri": {
|
|
3007
|
+
"description": "The URI of the owner of the card.",
|
|
3008
|
+
"type": "string"
|
|
3009
|
+
},
|
|
3010
|
+
"type": {
|
|
3011
|
+
"description": "The type of the card.",
|
|
3012
|
+
"type": "string"
|
|
3013
|
+
},
|
|
3014
|
+
"x": {
|
|
3015
|
+
"description": "The x-coordinate of the card.",
|
|
3016
|
+
"type": "number"
|
|
3017
|
+
},
|
|
3018
|
+
"y": {
|
|
3019
|
+
"description": "The y-coordinate of the card.",
|
|
3020
|
+
"type": "number"
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
"required": ["type", "x", "y"],
|
|
3024
|
+
"additionalProperties": {}
|
|
3025
|
+
}
|
|
2231
3026
|
}
|
|
2232
|
-
}
|
|
3027
|
+
},
|
|
3028
|
+
"additionalProperties": false
|
|
2233
3029
|
}
|
|
2234
3030
|
}
|
|
2235
3031
|
},
|
|
@@ -2238,18 +3034,14 @@
|
|
|
2238
3034
|
"method": "get",
|
|
2239
3035
|
"path": "/state",
|
|
2240
3036
|
"private": false,
|
|
2241
|
-
"scopes": [
|
|
2242
|
-
"homey.system.readonly"
|
|
2243
|
-
],
|
|
3037
|
+
"scopes": ["homey.system.readonly"],
|
|
2244
3038
|
"parameters": {}
|
|
2245
3039
|
},
|
|
2246
3040
|
"getFlow": {
|
|
2247
3041
|
"method": "get",
|
|
2248
3042
|
"path": "/flow/:id",
|
|
2249
3043
|
"private": false,
|
|
2250
|
-
"scopes": [
|
|
2251
|
-
"homey.flow.readonly"
|
|
2252
|
-
],
|
|
3044
|
+
"scopes": ["homey.flow.readonly"],
|
|
2253
3045
|
"crud": {
|
|
2254
3046
|
"type": "getOne",
|
|
2255
3047
|
"item": "Flow"
|
|
@@ -2266,9 +3058,7 @@
|
|
|
2266
3058
|
"method": "get",
|
|
2267
3059
|
"path": "/flow",
|
|
2268
3060
|
"private": false,
|
|
2269
|
-
"scopes": [
|
|
2270
|
-
"homey.flow.readonly"
|
|
2271
|
-
],
|
|
3061
|
+
"scopes": ["homey.flow.readonly"],
|
|
2272
3062
|
"crud": {
|
|
2273
3063
|
"type": "getAll",
|
|
2274
3064
|
"item": "Flow"
|
|
@@ -2279,9 +3069,7 @@
|
|
|
2279
3069
|
"method": "post",
|
|
2280
3070
|
"path": "/flow",
|
|
2281
3071
|
"private": false,
|
|
2282
|
-
"scopes": [
|
|
2283
|
-
"homey.flow"
|
|
2284
|
-
],
|
|
3072
|
+
"scopes": ["homey.flow"],
|
|
2285
3073
|
"crud": {
|
|
2286
3074
|
"type": "createOne",
|
|
2287
3075
|
"item": "Flow"
|
|
@@ -2323,9 +3111,7 @@
|
|
|
2323
3111
|
"method": "put",
|
|
2324
3112
|
"path": "/flow/:id",
|
|
2325
3113
|
"private": false,
|
|
2326
|
-
"scopes": [
|
|
2327
|
-
"homey.flow"
|
|
2328
|
-
],
|
|
3114
|
+
"scopes": ["homey.flow"],
|
|
2329
3115
|
"crud": {
|
|
2330
3116
|
"type": "updateOne",
|
|
2331
3117
|
"item": "Flow"
|
|
@@ -2368,9 +3154,7 @@
|
|
|
2368
3154
|
"method": "delete",
|
|
2369
3155
|
"path": "/flow/:id",
|
|
2370
3156
|
"private": false,
|
|
2371
|
-
"scopes": [
|
|
2372
|
-
"homey.flow"
|
|
2373
|
-
],
|
|
3157
|
+
"scopes": ["homey.flow"],
|
|
2374
3158
|
"crud": {
|
|
2375
3159
|
"type": "deleteOne",
|
|
2376
3160
|
"item": "Flow"
|
|
@@ -2387,9 +3171,7 @@
|
|
|
2387
3171
|
"method": "post",
|
|
2388
3172
|
"path": "/flow/test",
|
|
2389
3173
|
"private": false,
|
|
2390
|
-
"scopes": [
|
|
2391
|
-
"homey.flow"
|
|
2392
|
-
],
|
|
3174
|
+
"scopes": ["homey.flow"],
|
|
2393
3175
|
"parameters": {
|
|
2394
3176
|
"flow": {
|
|
2395
3177
|
"in": "body",
|
|
@@ -2426,9 +3208,7 @@
|
|
|
2426
3208
|
"method": "post",
|
|
2427
3209
|
"path": "/flow/:id/trigger",
|
|
2428
3210
|
"private": false,
|
|
2429
|
-
"scopes": [
|
|
2430
|
-
"homey.flow.start"
|
|
2431
|
-
],
|
|
3211
|
+
"scopes": ["homey.flow.start"],
|
|
2432
3212
|
"parameters": {
|
|
2433
3213
|
"id": {
|
|
2434
3214
|
"in": "path",
|
|
@@ -2441,9 +3221,7 @@
|
|
|
2441
3221
|
"method": "post",
|
|
2442
3222
|
"path": "/flow/:id/share",
|
|
2443
3223
|
"private": false,
|
|
2444
|
-
"scopes": [
|
|
2445
|
-
"homey.flow.readonly"
|
|
2446
|
-
],
|
|
3224
|
+
"scopes": ["homey.flow.readonly"],
|
|
2447
3225
|
"parameters": {
|
|
2448
3226
|
"id": {
|
|
2449
3227
|
"in": "path",
|
|
@@ -2456,9 +3234,7 @@
|
|
|
2456
3234
|
"method": "get",
|
|
2457
3235
|
"path": "/flowfolder",
|
|
2458
3236
|
"private": false,
|
|
2459
|
-
"scopes": [
|
|
2460
|
-
"homey.flow.readonly"
|
|
2461
|
-
],
|
|
3237
|
+
"scopes": ["homey.flow.readonly"],
|
|
2462
3238
|
"crud": {
|
|
2463
3239
|
"type": "getAll",
|
|
2464
3240
|
"item": "FlowFolder"
|
|
@@ -2469,9 +3245,7 @@
|
|
|
2469
3245
|
"method": "get",
|
|
2470
3246
|
"path": "/flowfolder/:id",
|
|
2471
3247
|
"private": false,
|
|
2472
|
-
"scopes": [
|
|
2473
|
-
"homey.flow.readonly"
|
|
2474
|
-
],
|
|
3248
|
+
"scopes": ["homey.flow.readonly"],
|
|
2475
3249
|
"crud": {
|
|
2476
3250
|
"type": "getOne",
|
|
2477
3251
|
"item": "FlowFolder"
|
|
@@ -2488,9 +3262,7 @@
|
|
|
2488
3262
|
"method": "post",
|
|
2489
3263
|
"path": "/flowfolder",
|
|
2490
3264
|
"private": false,
|
|
2491
|
-
"scopes": [
|
|
2492
|
-
"homey.flow"
|
|
2493
|
-
],
|
|
3265
|
+
"scopes": ["homey.flow"],
|
|
2494
3266
|
"crud": {
|
|
2495
3267
|
"type": "createOne",
|
|
2496
3268
|
"item": "FlowFolder"
|
|
@@ -2517,9 +3289,7 @@
|
|
|
2517
3289
|
"method": "put",
|
|
2518
3290
|
"path": "/flowfolder/:id",
|
|
2519
3291
|
"private": false,
|
|
2520
|
-
"scopes": [
|
|
2521
|
-
"homey.flow"
|
|
2522
|
-
],
|
|
3292
|
+
"scopes": ["homey.flow"],
|
|
2523
3293
|
"crud": {
|
|
2524
3294
|
"type": "updateOne",
|
|
2525
3295
|
"item": "FlowFolder"
|
|
@@ -2550,9 +3320,7 @@
|
|
|
2550
3320
|
"method": "delete",
|
|
2551
3321
|
"path": "/flowfolder/:id",
|
|
2552
3322
|
"private": false,
|
|
2553
|
-
"scopes": [
|
|
2554
|
-
"homey.flow"
|
|
2555
|
-
],
|
|
3323
|
+
"scopes": ["homey.flow"],
|
|
2556
3324
|
"crud": {
|
|
2557
3325
|
"type": "deleteOne",
|
|
2558
3326
|
"item": "FlowFolder"
|
|
@@ -2569,9 +3337,7 @@
|
|
|
2569
3337
|
"method": "get",
|
|
2570
3338
|
"path": "/flowcardtrigger/:uri/:id",
|
|
2571
3339
|
"private": false,
|
|
2572
|
-
"scopes": [
|
|
2573
|
-
"homey.flow.readonly"
|
|
2574
|
-
],
|
|
3340
|
+
"scopes": ["homey.flow.readonly"],
|
|
2575
3341
|
"crud": {
|
|
2576
3342
|
"type": "getOne",
|
|
2577
3343
|
"item": "FlowCardTrigger"
|
|
@@ -2593,9 +3359,7 @@
|
|
|
2593
3359
|
"method": "get",
|
|
2594
3360
|
"path": "/flowcardtrigger",
|
|
2595
3361
|
"private": false,
|
|
2596
|
-
"scopes": [
|
|
2597
|
-
"homey.flow.readonly"
|
|
2598
|
-
],
|
|
3362
|
+
"scopes": ["homey.flow.readonly"],
|
|
2599
3363
|
"crud": {
|
|
2600
3364
|
"type": "getAll",
|
|
2601
3365
|
"item": "FlowCardTrigger"
|
|
@@ -2606,9 +3370,7 @@
|
|
|
2606
3370
|
"method": "get",
|
|
2607
3371
|
"path": "/flowcardcondition/:uri/:id",
|
|
2608
3372
|
"private": false,
|
|
2609
|
-
"scopes": [
|
|
2610
|
-
"homey.flow.readonly"
|
|
2611
|
-
],
|
|
3373
|
+
"scopes": ["homey.flow.readonly"],
|
|
2612
3374
|
"crud": {
|
|
2613
3375
|
"type": "getOne",
|
|
2614
3376
|
"item": "FlowCardCondition"
|
|
@@ -2630,9 +3392,7 @@
|
|
|
2630
3392
|
"method": "get",
|
|
2631
3393
|
"path": "/flowcardcondition",
|
|
2632
3394
|
"private": false,
|
|
2633
|
-
"scopes": [
|
|
2634
|
-
"homey.flow.readonly"
|
|
2635
|
-
],
|
|
3395
|
+
"scopes": ["homey.flow.readonly"],
|
|
2636
3396
|
"crud": {
|
|
2637
3397
|
"type": "getAll",
|
|
2638
3398
|
"item": "FlowCardCondition"
|
|
@@ -2643,9 +3403,7 @@
|
|
|
2643
3403
|
"method": "post",
|
|
2644
3404
|
"path": "/flowcardcondition/:uri/:id/run",
|
|
2645
3405
|
"private": false,
|
|
2646
|
-
"scopes": [
|
|
2647
|
-
"homey.flow"
|
|
2648
|
-
],
|
|
3406
|
+
"scopes": ["homey.flow"],
|
|
2649
3407
|
"parameters": {
|
|
2650
3408
|
"id": {
|
|
2651
3409
|
"in": "path",
|
|
@@ -2679,9 +3437,7 @@
|
|
|
2679
3437
|
"method": "get",
|
|
2680
3438
|
"path": "/flowcardaction/:uri/:id",
|
|
2681
3439
|
"private": false,
|
|
2682
|
-
"scopes": [
|
|
2683
|
-
"homey.flow.readonly"
|
|
2684
|
-
],
|
|
3440
|
+
"scopes": ["homey.flow.readonly"],
|
|
2685
3441
|
"crud": {
|
|
2686
3442
|
"type": "getOne",
|
|
2687
3443
|
"item": "FlowCardAction"
|
|
@@ -2703,9 +3459,7 @@
|
|
|
2703
3459
|
"method": "get",
|
|
2704
3460
|
"path": "/flowcardaction",
|
|
2705
3461
|
"private": false,
|
|
2706
|
-
"scopes": [
|
|
2707
|
-
"homey.flow.readonly"
|
|
2708
|
-
],
|
|
3462
|
+
"scopes": ["homey.flow.readonly"],
|
|
2709
3463
|
"crud": {
|
|
2710
3464
|
"type": "getAll",
|
|
2711
3465
|
"item": "FlowCardAction"
|
|
@@ -2716,9 +3470,7 @@
|
|
|
2716
3470
|
"method": "post",
|
|
2717
3471
|
"path": "/flowcardaction/:uri/:id/run",
|
|
2718
3472
|
"private": false,
|
|
2719
|
-
"scopes": [
|
|
2720
|
-
"homey.flow"
|
|
2721
|
-
],
|
|
3473
|
+
"scopes": ["homey.flow"],
|
|
2722
3474
|
"parameters": {
|
|
2723
3475
|
"id": {
|
|
2724
3476
|
"in": "path",
|
|
@@ -2793,9 +3545,7 @@
|
|
|
2793
3545
|
"method": "get",
|
|
2794
3546
|
"path": "/advancedflow/:id",
|
|
2795
3547
|
"private": false,
|
|
2796
|
-
"scopes": [
|
|
2797
|
-
"homey.flow.readonly"
|
|
2798
|
-
],
|
|
3548
|
+
"scopes": ["homey.flow.readonly"],
|
|
2799
3549
|
"crud": {
|
|
2800
3550
|
"type": "getOne",
|
|
2801
3551
|
"item": "AdvancedFlow"
|
|
@@ -2812,9 +3562,7 @@
|
|
|
2812
3562
|
"method": "get",
|
|
2813
3563
|
"path": "/advancedflow",
|
|
2814
3564
|
"private": false,
|
|
2815
|
-
"scopes": [
|
|
2816
|
-
"homey.flow.readonly"
|
|
2817
|
-
],
|
|
3565
|
+
"scopes": ["homey.flow.readonly"],
|
|
2818
3566
|
"crud": {
|
|
2819
3567
|
"type": "getAll",
|
|
2820
3568
|
"item": "AdvancedFlow"
|
|
@@ -2825,9 +3573,7 @@
|
|
|
2825
3573
|
"method": "post",
|
|
2826
3574
|
"path": "/advancedflow",
|
|
2827
3575
|
"private": false,
|
|
2828
|
-
"scopes": [
|
|
2829
|
-
"homey.flow"
|
|
2830
|
-
],
|
|
3576
|
+
"scopes": ["homey.flow"],
|
|
2831
3577
|
"crud": {
|
|
2832
3578
|
"type": "createOne",
|
|
2833
3579
|
"item": "AdvancedFlow"
|
|
@@ -2844,9 +3590,7 @@
|
|
|
2844
3590
|
"method": "put",
|
|
2845
3591
|
"path": "/advancedflow/:id",
|
|
2846
3592
|
"private": false,
|
|
2847
|
-
"scopes": [
|
|
2848
|
-
"homey.flow"
|
|
2849
|
-
],
|
|
3593
|
+
"scopes": ["homey.flow"],
|
|
2850
3594
|
"crud": {
|
|
2851
3595
|
"type": "updateOne",
|
|
2852
3596
|
"item": "AdvancedFlow"
|
|
@@ -2868,9 +3612,7 @@
|
|
|
2868
3612
|
"method": "delete",
|
|
2869
3613
|
"path": "/advancedflow/:id",
|
|
2870
3614
|
"private": false,
|
|
2871
|
-
"scopes": [
|
|
2872
|
-
"homey.flow"
|
|
2873
|
-
],
|
|
3615
|
+
"scopes": ["homey.flow"],
|
|
2874
3616
|
"crud": {
|
|
2875
3617
|
"type": "deleteOne",
|
|
2876
3618
|
"item": "AdvancedFlow"
|
|
@@ -2887,9 +3629,7 @@
|
|
|
2887
3629
|
"method": "post",
|
|
2888
3630
|
"path": "/advancedflow/:id/trigger",
|
|
2889
3631
|
"private": false,
|
|
2890
|
-
"scopes": [
|
|
2891
|
-
"homey.flow.start"
|
|
2892
|
-
],
|
|
3632
|
+
"scopes": ["homey.flow.start"],
|
|
2893
3633
|
"parameters": {
|
|
2894
3634
|
"id": {
|
|
2895
3635
|
"in": "path",
|
|
@@ -2907,12 +3647,48 @@
|
|
|
2907
3647
|
"FlowToken": {
|
|
2908
3648
|
"id": "flowtoken",
|
|
2909
3649
|
"schema": {
|
|
3650
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2910
3651
|
"type": "object",
|
|
2911
3652
|
"properties": {
|
|
2912
3653
|
"id": {
|
|
3654
|
+
"description": "The unique identifier of the Flow token.",
|
|
3655
|
+
"type": "string",
|
|
3656
|
+
"format": "uuid",
|
|
3657
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3658
|
+
},
|
|
3659
|
+
"ownerId": {
|
|
3660
|
+
"description": "The id of the owner of the Flow token.",
|
|
3661
|
+
"type": "string"
|
|
3662
|
+
},
|
|
3663
|
+
"ownerUri": {
|
|
3664
|
+
"description": "The URI of the owner of the Flow token.",
|
|
3665
|
+
"type": "string"
|
|
3666
|
+
},
|
|
3667
|
+
"ownerName": {
|
|
3668
|
+
"description": "The name of the owner of the Flow token.",
|
|
3669
|
+
"type": "string"
|
|
3670
|
+
},
|
|
3671
|
+
"type": {
|
|
3672
|
+
"description": "The type of the Flow token.",
|
|
3673
|
+
"type": "string"
|
|
3674
|
+
},
|
|
3675
|
+
"title": {
|
|
3676
|
+
"description": "The title of the Flow token.",
|
|
2913
3677
|
"type": "string"
|
|
3678
|
+
},
|
|
3679
|
+
"example": {
|
|
3680
|
+
"description": "An example of the Flow token value.",
|
|
3681
|
+
"anyOf": [
|
|
3682
|
+
{
|
|
3683
|
+
"type": "string"
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
"type": "null"
|
|
3687
|
+
}
|
|
3688
|
+
]
|
|
2914
3689
|
}
|
|
2915
|
-
}
|
|
3690
|
+
},
|
|
3691
|
+
"additionalProperties": false
|
|
2916
3692
|
}
|
|
2917
3693
|
}
|
|
2918
3694
|
},
|
|
@@ -2921,18 +3697,14 @@
|
|
|
2921
3697
|
"method": "get",
|
|
2922
3698
|
"path": "/state",
|
|
2923
3699
|
"private": false,
|
|
2924
|
-
"scopes": [
|
|
2925
|
-
"homey.system.readonly"
|
|
2926
|
-
],
|
|
3700
|
+
"scopes": ["homey.system.readonly"],
|
|
2927
3701
|
"parameters": {}
|
|
2928
3702
|
},
|
|
2929
3703
|
"getFlowTokens": {
|
|
2930
3704
|
"method": "get",
|
|
2931
3705
|
"path": "/flowtoken",
|
|
2932
3706
|
"private": false,
|
|
2933
|
-
"scopes": [
|
|
2934
|
-
"homey.flow.readonly"
|
|
2935
|
-
],
|
|
3707
|
+
"scopes": ["homey.flow.readonly"],
|
|
2936
3708
|
"crud": {
|
|
2937
3709
|
"type": "getAll",
|
|
2938
3710
|
"item": "FlowToken"
|
|
@@ -2943,9 +3715,7 @@
|
|
|
2943
3715
|
"method": "get",
|
|
2944
3716
|
"path": "/flowtoken/:id",
|
|
2945
3717
|
"private": false,
|
|
2946
|
-
"scopes": [
|
|
2947
|
-
"homey.flow.readonly"
|
|
2948
|
-
],
|
|
3718
|
+
"scopes": ["homey.flow.readonly"],
|
|
2949
3719
|
"crud": {
|
|
2950
3720
|
"type": "getOne",
|
|
2951
3721
|
"item": "FlowToken"
|
|
@@ -2962,9 +3732,7 @@
|
|
|
2962
3732
|
"method": "get",
|
|
2963
3733
|
"path": "/flowtoken/:id/value",
|
|
2964
3734
|
"private": false,
|
|
2965
|
-
"scopes": [
|
|
2966
|
-
"homey.flow.readonly"
|
|
2967
|
-
],
|
|
3735
|
+
"scopes": ["homey.flow.readonly"],
|
|
2968
3736
|
"parameters": {
|
|
2969
3737
|
"id": {
|
|
2970
3738
|
"in": "path",
|
|
@@ -2983,16 +3751,12 @@
|
|
|
2983
3751
|
"getOptionAddress": {
|
|
2984
3752
|
"method": "GET",
|
|
2985
3753
|
"path": "/option/address",
|
|
2986
|
-
"scopes": [
|
|
2987
|
-
"homey.geolocation.readonly"
|
|
2988
|
-
]
|
|
3754
|
+
"scopes": ["homey.geolocation.readonly"]
|
|
2989
3755
|
},
|
|
2990
3756
|
"setOptionAddress": {
|
|
2991
3757
|
"method": "PUT",
|
|
2992
3758
|
"path": "/option/address",
|
|
2993
|
-
"scopes": [
|
|
2994
|
-
"homey.geolocation"
|
|
2995
|
-
],
|
|
3759
|
+
"scopes": ["homey.geolocation"],
|
|
2996
3760
|
"parameters": {
|
|
2997
3761
|
"value": {
|
|
2998
3762
|
"in": "body",
|
|
@@ -3003,23 +3767,17 @@
|
|
|
3003
3767
|
"unsetOptionAddress": {
|
|
3004
3768
|
"method": "DELETE",
|
|
3005
3769
|
"path": "/option/address",
|
|
3006
|
-
"scopes": [
|
|
3007
|
-
"homey.geolocation"
|
|
3008
|
-
]
|
|
3770
|
+
"scopes": ["homey.geolocation"]
|
|
3009
3771
|
},
|
|
3010
3772
|
"getOptionLocation": {
|
|
3011
3773
|
"method": "GET",
|
|
3012
3774
|
"path": "/option/location",
|
|
3013
|
-
"scopes": [
|
|
3014
|
-
"homey.geolocation.readonly"
|
|
3015
|
-
]
|
|
3775
|
+
"scopes": ["homey.geolocation.readonly"]
|
|
3016
3776
|
},
|
|
3017
3777
|
"setOptionLocation": {
|
|
3018
3778
|
"method": "PUT",
|
|
3019
3779
|
"path": "/option/location",
|
|
3020
|
-
"scopes": [
|
|
3021
|
-
"homey.geolocation"
|
|
3022
|
-
],
|
|
3780
|
+
"scopes": ["homey.geolocation"],
|
|
3023
3781
|
"parameters": {
|
|
3024
3782
|
"value": {
|
|
3025
3783
|
"in": "body",
|
|
@@ -3030,17 +3788,13 @@
|
|
|
3030
3788
|
"unsetOptionLocation": {
|
|
3031
3789
|
"method": "DELETE",
|
|
3032
3790
|
"path": "/option/location",
|
|
3033
|
-
"scopes": [
|
|
3034
|
-
"homey.geolocation"
|
|
3035
|
-
]
|
|
3791
|
+
"scopes": ["homey.geolocation"]
|
|
3036
3792
|
},
|
|
3037
3793
|
"getState": {
|
|
3038
3794
|
"method": "get",
|
|
3039
3795
|
"path": "/state",
|
|
3040
3796
|
"private": false,
|
|
3041
|
-
"scopes": [
|
|
3042
|
-
"homey.system.readonly"
|
|
3043
|
-
],
|
|
3797
|
+
"scopes": ["homey.system.readonly"],
|
|
3044
3798
|
"parameters": {}
|
|
3045
3799
|
}
|
|
3046
3800
|
}
|
|
@@ -3053,16 +3807,12 @@
|
|
|
3053
3807
|
"getOptionPinCode": {
|
|
3054
3808
|
"method": "GET",
|
|
3055
3809
|
"path": "/option/pinCode",
|
|
3056
|
-
"scopes": [
|
|
3057
|
-
"homey.system"
|
|
3058
|
-
]
|
|
3810
|
+
"scopes": ["homey.system"]
|
|
3059
3811
|
},
|
|
3060
3812
|
"setOptionPinCode": {
|
|
3061
3813
|
"method": "PUT",
|
|
3062
3814
|
"path": "/option/pinCode",
|
|
3063
|
-
"scopes": [
|
|
3064
|
-
"homey.system"
|
|
3065
|
-
],
|
|
3815
|
+
"scopes": ["homey.system"],
|
|
3066
3816
|
"parameters": {
|
|
3067
3817
|
"value": {
|
|
3068
3818
|
"in": "body",
|
|
@@ -3073,17 +3823,13 @@
|
|
|
3073
3823
|
"unsetOptionPinCode": {
|
|
3074
3824
|
"method": "DELETE",
|
|
3075
3825
|
"path": "/option/pinCode",
|
|
3076
|
-
"scopes": [
|
|
3077
|
-
"homey.system"
|
|
3078
|
-
]
|
|
3826
|
+
"scopes": ["homey.system"]
|
|
3079
3827
|
},
|
|
3080
3828
|
"getState": {
|
|
3081
3829
|
"method": "get",
|
|
3082
3830
|
"path": "/state",
|
|
3083
3831
|
"private": false,
|
|
3084
|
-
"scopes": [
|
|
3085
|
-
"homey.system.readonly"
|
|
3086
|
-
],
|
|
3832
|
+
"scopes": ["homey.system.readonly"],
|
|
3087
3833
|
"parameters": {}
|
|
3088
3834
|
}
|
|
3089
3835
|
}
|
|
@@ -3096,16 +3842,12 @@
|
|
|
3096
3842
|
"getOptionLanguage": {
|
|
3097
3843
|
"method": "GET",
|
|
3098
3844
|
"path": "/option/language",
|
|
3099
|
-
"scopes": [
|
|
3100
|
-
"homey.system.readonly"
|
|
3101
|
-
]
|
|
3845
|
+
"scopes": ["homey.system.readonly"]
|
|
3102
3846
|
},
|
|
3103
3847
|
"setOptionLanguage": {
|
|
3104
3848
|
"method": "PUT",
|
|
3105
3849
|
"path": "/option/language",
|
|
3106
|
-
"scopes": [
|
|
3107
|
-
"homey.system"
|
|
3108
|
-
],
|
|
3850
|
+
"scopes": ["homey.system"],
|
|
3109
3851
|
"parameters": {
|
|
3110
3852
|
"value": {
|
|
3111
3853
|
"in": "body",
|
|
@@ -3116,23 +3858,17 @@
|
|
|
3116
3858
|
"unsetOptionLanguage": {
|
|
3117
3859
|
"method": "DELETE",
|
|
3118
3860
|
"path": "/option/language",
|
|
3119
|
-
"scopes": [
|
|
3120
|
-
"homey.system"
|
|
3121
|
-
]
|
|
3861
|
+
"scopes": ["homey.system"]
|
|
3122
3862
|
},
|
|
3123
3863
|
"getOptionUnits": {
|
|
3124
3864
|
"method": "GET",
|
|
3125
3865
|
"path": "/option/units",
|
|
3126
|
-
"scopes": [
|
|
3127
|
-
"homey.system.readonly"
|
|
3128
|
-
]
|
|
3866
|
+
"scopes": ["homey.system.readonly"]
|
|
3129
3867
|
},
|
|
3130
3868
|
"setOptionUnits": {
|
|
3131
3869
|
"method": "PUT",
|
|
3132
3870
|
"path": "/option/units",
|
|
3133
|
-
"scopes": [
|
|
3134
|
-
"homey.system"
|
|
3135
|
-
],
|
|
3871
|
+
"scopes": ["homey.system"],
|
|
3136
3872
|
"parameters": {
|
|
3137
3873
|
"value": {
|
|
3138
3874
|
"in": "body",
|
|
@@ -3143,17 +3879,13 @@
|
|
|
3143
3879
|
"unsetOptionUnits": {
|
|
3144
3880
|
"method": "DELETE",
|
|
3145
3881
|
"path": "/option/units",
|
|
3146
|
-
"scopes": [
|
|
3147
|
-
"homey.system"
|
|
3148
|
-
]
|
|
3882
|
+
"scopes": ["homey.system"]
|
|
3149
3883
|
},
|
|
3150
3884
|
"getState": {
|
|
3151
3885
|
"method": "get",
|
|
3152
3886
|
"path": "/state",
|
|
3153
3887
|
"private": false,
|
|
3154
|
-
"scopes": [
|
|
3155
|
-
"homey.system.readonly"
|
|
3156
|
-
],
|
|
3888
|
+
"scopes": ["homey.system.readonly"],
|
|
3157
3889
|
"parameters": {}
|
|
3158
3890
|
}
|
|
3159
3891
|
}
|
|
@@ -3165,12 +3897,17 @@
|
|
|
3165
3897
|
"Icon": {
|
|
3166
3898
|
"id": "icon",
|
|
3167
3899
|
"schema": {
|
|
3900
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3168
3901
|
"type": "object",
|
|
3169
3902
|
"properties": {
|
|
3170
3903
|
"id": {
|
|
3171
|
-
"
|
|
3904
|
+
"description": "The unique identifier of the item.",
|
|
3905
|
+
"type": "string",
|
|
3906
|
+
"format": "uuid",
|
|
3907
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3172
3908
|
}
|
|
3173
|
-
}
|
|
3909
|
+
},
|
|
3910
|
+
"additionalProperties": false
|
|
3174
3911
|
}
|
|
3175
3912
|
}
|
|
3176
3913
|
},
|
|
@@ -3179,9 +3916,7 @@
|
|
|
3179
3916
|
"method": "get",
|
|
3180
3917
|
"path": "/state",
|
|
3181
3918
|
"private": false,
|
|
3182
|
-
"scopes": [
|
|
3183
|
-
"homey.system.readonly"
|
|
3184
|
-
],
|
|
3919
|
+
"scopes": ["homey.system.readonly"],
|
|
3185
3920
|
"parameters": {}
|
|
3186
3921
|
}
|
|
3187
3922
|
}
|
|
@@ -3193,12 +3928,30 @@
|
|
|
3193
3928
|
"Image": {
|
|
3194
3929
|
"id": "image",
|
|
3195
3930
|
"schema": {
|
|
3931
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3196
3932
|
"type": "object",
|
|
3197
3933
|
"properties": {
|
|
3198
3934
|
"id": {
|
|
3935
|
+
"description": "The unique identifier of the image.",
|
|
3936
|
+
"type": "string",
|
|
3937
|
+
"format": "uuid",
|
|
3938
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3939
|
+
},
|
|
3940
|
+
"ownerUri": {
|
|
3941
|
+
"description": "The URI of the owner of the image.",
|
|
3942
|
+
"type": "string"
|
|
3943
|
+
},
|
|
3944
|
+
"url": {
|
|
3945
|
+
"description": "The URL of the image.",
|
|
3199
3946
|
"type": "string"
|
|
3947
|
+
},
|
|
3948
|
+
"lastUpdated": {
|
|
3949
|
+
"description": "The time the image was last updated.",
|
|
3950
|
+
"type": "string",
|
|
3951
|
+
"format": "date-time"
|
|
3200
3952
|
}
|
|
3201
|
-
}
|
|
3953
|
+
},
|
|
3954
|
+
"additionalProperties": false
|
|
3202
3955
|
}
|
|
3203
3956
|
}
|
|
3204
3957
|
},
|
|
@@ -3207,18 +3960,14 @@
|
|
|
3207
3960
|
"method": "get",
|
|
3208
3961
|
"path": "/state",
|
|
3209
3962
|
"private": false,
|
|
3210
|
-
"scopes": [
|
|
3211
|
-
"homey.system.readonly"
|
|
3212
|
-
],
|
|
3963
|
+
"scopes": ["homey.system.readonly"],
|
|
3213
3964
|
"parameters": {}
|
|
3214
3965
|
},
|
|
3215
3966
|
"getImages": {
|
|
3216
3967
|
"method": "get",
|
|
3217
3968
|
"path": "/image",
|
|
3218
3969
|
"private": false,
|
|
3219
|
-
"scopes": [
|
|
3220
|
-
"homey.device.readonly"
|
|
3221
|
-
],
|
|
3970
|
+
"scopes": ["homey.device.readonly"],
|
|
3222
3971
|
"crud": {
|
|
3223
3972
|
"type": "getAll",
|
|
3224
3973
|
"item": "Image"
|
|
@@ -3234,23 +3983,131 @@
|
|
|
3234
3983
|
"Log": {
|
|
3235
3984
|
"id": "log",
|
|
3236
3985
|
"schema": {
|
|
3986
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3237
3987
|
"type": "object",
|
|
3238
3988
|
"properties": {
|
|
3239
3989
|
"id": {
|
|
3990
|
+
"description": "The unique identifier of the log.",
|
|
3991
|
+
"type": "string",
|
|
3992
|
+
"format": "uuid",
|
|
3993
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3994
|
+
},
|
|
3995
|
+
"ownerUri": {
|
|
3996
|
+
"description": "The URI of the owner of the log.",
|
|
3997
|
+
"type": "string"
|
|
3998
|
+
},
|
|
3999
|
+
"ownerName": {
|
|
4000
|
+
"description": "The name of the owner of the log.",
|
|
4001
|
+
"type": "string"
|
|
4002
|
+
},
|
|
4003
|
+
"ownerId": {
|
|
4004
|
+
"description": "The id of the owner of the log.",
|
|
4005
|
+
"type": "string"
|
|
4006
|
+
},
|
|
4007
|
+
"type": {
|
|
4008
|
+
"description": "The type of the log.",
|
|
4009
|
+
"type": "string",
|
|
4010
|
+
"enum": ["number", "boolean"]
|
|
4011
|
+
},
|
|
4012
|
+
"title": {
|
|
4013
|
+
"description": "The title of the log.",
|
|
3240
4014
|
"type": "string"
|
|
4015
|
+
},
|
|
4016
|
+
"titleTrue": {
|
|
4017
|
+
"description": "The title that should be used for when a log value is true.",
|
|
4018
|
+
"anyOf": [
|
|
4019
|
+
{
|
|
4020
|
+
"type": "string"
|
|
4021
|
+
},
|
|
4022
|
+
{
|
|
4023
|
+
"type": "null"
|
|
4024
|
+
}
|
|
4025
|
+
]
|
|
4026
|
+
},
|
|
4027
|
+
"titleFalse": {
|
|
4028
|
+
"description": "The title that should be used for when a log value is false.",
|
|
4029
|
+
"anyOf": [
|
|
4030
|
+
{
|
|
4031
|
+
"type": "string"
|
|
4032
|
+
},
|
|
4033
|
+
{
|
|
4034
|
+
"type": "null"
|
|
4035
|
+
}
|
|
4036
|
+
]
|
|
4037
|
+
},
|
|
4038
|
+
"units": {
|
|
4039
|
+
"description": "The units of the log.",
|
|
4040
|
+
"anyOf": [
|
|
4041
|
+
{
|
|
4042
|
+
"type": "string"
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
"type": "null"
|
|
4046
|
+
}
|
|
4047
|
+
]
|
|
4048
|
+
},
|
|
4049
|
+
"decimals": {
|
|
4050
|
+
"description": "The number of decimals that should be used for the log value.",
|
|
4051
|
+
"anyOf": [
|
|
4052
|
+
{
|
|
4053
|
+
"type": "number"
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"type": "null"
|
|
4057
|
+
}
|
|
4058
|
+
]
|
|
4059
|
+
},
|
|
4060
|
+
"lastValue": {
|
|
4061
|
+
"anyOf": [
|
|
4062
|
+
{
|
|
4063
|
+
"anyOf": [
|
|
4064
|
+
{
|
|
4065
|
+
"description": "The last boolean value of the log.",
|
|
4066
|
+
"anyOf": [
|
|
4067
|
+
{
|
|
4068
|
+
"type": "boolean"
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
"type": "null"
|
|
4072
|
+
}
|
|
4073
|
+
]
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
"description": "The last number value of the log.",
|
|
4077
|
+
"anyOf": [
|
|
4078
|
+
{
|
|
4079
|
+
"type": "number"
|
|
4080
|
+
},
|
|
4081
|
+
{
|
|
4082
|
+
"type": "null"
|
|
4083
|
+
}
|
|
4084
|
+
]
|
|
4085
|
+
}
|
|
4086
|
+
]
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
"type": "null"
|
|
4090
|
+
}
|
|
4091
|
+
]
|
|
3241
4092
|
}
|
|
3242
|
-
}
|
|
4093
|
+
},
|
|
4094
|
+
"additionalProperties": false
|
|
3243
4095
|
}
|
|
3244
4096
|
},
|
|
3245
4097
|
"LogEntryBoolean": {
|
|
3246
4098
|
"id": "logentryboolean",
|
|
3247
4099
|
"schema": {
|
|
4100
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3248
4101
|
"type": "object",
|
|
3249
4102
|
"properties": {
|
|
3250
4103
|
"id": {
|
|
3251
|
-
"
|
|
4104
|
+
"description": "The unique identifier of the item.",
|
|
4105
|
+
"type": "string",
|
|
4106
|
+
"format": "uuid",
|
|
4107
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3252
4108
|
}
|
|
3253
|
-
}
|
|
4109
|
+
},
|
|
4110
|
+
"additionalProperties": false
|
|
3254
4111
|
}
|
|
3255
4112
|
}
|
|
3256
4113
|
},
|
|
@@ -3259,18 +4116,14 @@
|
|
|
3259
4116
|
"method": "get",
|
|
3260
4117
|
"path": "/state",
|
|
3261
4118
|
"private": false,
|
|
3262
|
-
"scopes": [
|
|
3263
|
-
"homey.system.readonly"
|
|
3264
|
-
],
|
|
4119
|
+
"scopes": ["homey.system.readonly"],
|
|
3265
4120
|
"parameters": {}
|
|
3266
4121
|
},
|
|
3267
4122
|
"getLog": {
|
|
3268
4123
|
"method": "get",
|
|
3269
4124
|
"path": "/log/:id",
|
|
3270
4125
|
"private": false,
|
|
3271
|
-
"scopes": [
|
|
3272
|
-
"homey.insights.readonly"
|
|
3273
|
-
],
|
|
4126
|
+
"scopes": ["homey.insights.readonly"],
|
|
3274
4127
|
"crud": {
|
|
3275
4128
|
"type": "getOne",
|
|
3276
4129
|
"item": "Log"
|
|
@@ -3287,9 +4140,7 @@
|
|
|
3287
4140
|
"method": "get",
|
|
3288
4141
|
"path": "/log",
|
|
3289
4142
|
"private": false,
|
|
3290
|
-
"scopes": [
|
|
3291
|
-
"homey.insights.readonly"
|
|
3292
|
-
],
|
|
4143
|
+
"scopes": ["homey.insights.readonly"],
|
|
3293
4144
|
"crud": {
|
|
3294
4145
|
"type": "getAll",
|
|
3295
4146
|
"item": "Log"
|
|
@@ -3300,9 +4151,7 @@
|
|
|
3300
4151
|
"method": "get",
|
|
3301
4152
|
"path": "/log/:uri/:id/entry",
|
|
3302
4153
|
"private": false,
|
|
3303
|
-
"scopes": [
|
|
3304
|
-
"homey.insights.readonly"
|
|
3305
|
-
],
|
|
4154
|
+
"scopes": ["homey.insights.readonly"],
|
|
3306
4155
|
"parameters": {
|
|
3307
4156
|
"id": {
|
|
3308
4157
|
"in": "path",
|
|
@@ -3324,9 +4173,7 @@
|
|
|
3324
4173
|
"method": "delete",
|
|
3325
4174
|
"path": "/log/:uri/:id",
|
|
3326
4175
|
"private": false,
|
|
3327
|
-
"scopes": [
|
|
3328
|
-
"homey.insights"
|
|
3329
|
-
],
|
|
4176
|
+
"scopes": ["homey.insights"],
|
|
3330
4177
|
"crud": {
|
|
3331
4178
|
"type": "deleteOne",
|
|
3332
4179
|
"item": "Log"
|
|
@@ -3348,9 +4195,7 @@
|
|
|
3348
4195
|
"method": "delete",
|
|
3349
4196
|
"path": "/log/:uri/:id/entry",
|
|
3350
4197
|
"private": false,
|
|
3351
|
-
"scopes": [
|
|
3352
|
-
"homey.insights"
|
|
3353
|
-
],
|
|
4198
|
+
"scopes": ["homey.insights"],
|
|
3354
4199
|
"parameters": {
|
|
3355
4200
|
"id": {
|
|
3356
4201
|
"in": "path",
|
|
@@ -3373,29 +4218,39 @@
|
|
|
3373
4218
|
"Variable": {
|
|
3374
4219
|
"id": "variable",
|
|
3375
4220
|
"schema": {
|
|
4221
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3376
4222
|
"type": "object",
|
|
3377
4223
|
"properties": {
|
|
3378
4224
|
"id": {
|
|
3379
|
-
"
|
|
4225
|
+
"description": "The unique identifier of the variable.",
|
|
4226
|
+
"type": "string",
|
|
4227
|
+
"format": "uuid",
|
|
4228
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3380
4229
|
},
|
|
3381
4230
|
"name": {
|
|
4231
|
+
"description": "The name of the variable.",
|
|
3382
4232
|
"type": "string"
|
|
3383
4233
|
},
|
|
3384
4234
|
"type": {
|
|
3385
4235
|
"type": "string",
|
|
3386
|
-
"enum": [
|
|
3387
|
-
"n",
|
|
3388
|
-
"u",
|
|
3389
|
-
"m",
|
|
3390
|
-
"b",
|
|
3391
|
-
"e",
|
|
3392
|
-
"r"
|
|
3393
|
-
]
|
|
4236
|
+
"enum": ["string", "number", "boolean"]
|
|
3394
4237
|
},
|
|
3395
4238
|
"value": {
|
|
3396
|
-
"description": "Should
|
|
4239
|
+
"description": "The value of the variable. Should match the type defined in the `type` property.",
|
|
4240
|
+
"anyOf": [
|
|
4241
|
+
{
|
|
4242
|
+
"type": "string"
|
|
4243
|
+
},
|
|
4244
|
+
{
|
|
4245
|
+
"type": "number"
|
|
4246
|
+
},
|
|
4247
|
+
{
|
|
4248
|
+
"type": "boolean"
|
|
4249
|
+
}
|
|
4250
|
+
]
|
|
3397
4251
|
}
|
|
3398
|
-
}
|
|
4252
|
+
},
|
|
4253
|
+
"additionalProperties": false
|
|
3399
4254
|
}
|
|
3400
4255
|
}
|
|
3401
4256
|
},
|
|
@@ -3404,18 +4259,14 @@
|
|
|
3404
4259
|
"method": "get",
|
|
3405
4260
|
"path": "/state",
|
|
3406
4261
|
"private": false,
|
|
3407
|
-
"scopes": [
|
|
3408
|
-
"homey.system.readonly"
|
|
3409
|
-
],
|
|
4262
|
+
"scopes": ["homey.system.readonly"],
|
|
3410
4263
|
"parameters": {}
|
|
3411
4264
|
},
|
|
3412
4265
|
"getVariable": {
|
|
3413
4266
|
"method": "get",
|
|
3414
4267
|
"path": "/variable/:id",
|
|
3415
4268
|
"private": false,
|
|
3416
|
-
"scopes": [
|
|
3417
|
-
"homey.logic.readonly"
|
|
3418
|
-
],
|
|
4269
|
+
"scopes": ["homey.logic.readonly"],
|
|
3419
4270
|
"crud": {
|
|
3420
4271
|
"type": "getOne",
|
|
3421
4272
|
"item": "Variable"
|
|
@@ -3432,9 +4283,7 @@
|
|
|
3432
4283
|
"method": "get",
|
|
3433
4284
|
"path": "/variable",
|
|
3434
4285
|
"private": false,
|
|
3435
|
-
"scopes": [
|
|
3436
|
-
"homey.logic.readonly"
|
|
3437
|
-
],
|
|
4286
|
+
"scopes": ["homey.logic.readonly"],
|
|
3438
4287
|
"crud": {
|
|
3439
4288
|
"type": "getAll",
|
|
3440
4289
|
"item": "Variable"
|
|
@@ -3445,9 +4294,7 @@
|
|
|
3445
4294
|
"method": "post",
|
|
3446
4295
|
"path": "/variable",
|
|
3447
4296
|
"private": false,
|
|
3448
|
-
"scopes": [
|
|
3449
|
-
"homey.logic"
|
|
3450
|
-
],
|
|
4297
|
+
"scopes": ["homey.logic"],
|
|
3451
4298
|
"crud": {
|
|
3452
4299
|
"type": "createOne",
|
|
3453
4300
|
"item": "Variable"
|
|
@@ -3468,11 +4315,7 @@
|
|
|
3468
4315
|
"required": true
|
|
3469
4316
|
},
|
|
3470
4317
|
"value": {
|
|
3471
|
-
"type": [
|
|
3472
|
-
"string",
|
|
3473
|
-
"number",
|
|
3474
|
-
"boolean"
|
|
3475
|
-
],
|
|
4318
|
+
"type": ["string", "number", "boolean"],
|
|
3476
4319
|
"required": true
|
|
3477
4320
|
}
|
|
3478
4321
|
}
|
|
@@ -3483,9 +4326,7 @@
|
|
|
3483
4326
|
"method": "put",
|
|
3484
4327
|
"path": "/variable/:id",
|
|
3485
4328
|
"private": false,
|
|
3486
|
-
"scopes": [
|
|
3487
|
-
"homey.logic"
|
|
3488
|
-
],
|
|
4329
|
+
"scopes": ["homey.logic"],
|
|
3489
4330
|
"crud": {
|
|
3490
4331
|
"type": "updateOne",
|
|
3491
4332
|
"item": "Variable"
|
|
@@ -3506,11 +4347,7 @@
|
|
|
3506
4347
|
"type": "string"
|
|
3507
4348
|
},
|
|
3508
4349
|
"value": {
|
|
3509
|
-
"type": [
|
|
3510
|
-
"string",
|
|
3511
|
-
"number",
|
|
3512
|
-
"boolean"
|
|
3513
|
-
]
|
|
4350
|
+
"type": ["string", "number", "boolean"]
|
|
3514
4351
|
}
|
|
3515
4352
|
}
|
|
3516
4353
|
}
|
|
@@ -3520,9 +4357,7 @@
|
|
|
3520
4357
|
"method": "delete",
|
|
3521
4358
|
"path": "/variable/:id",
|
|
3522
4359
|
"private": false,
|
|
3523
|
-
"scopes": [
|
|
3524
|
-
"homey.logic"
|
|
3525
|
-
],
|
|
4360
|
+
"scopes": ["homey.logic"],
|
|
3526
4361
|
"crud": {
|
|
3527
4362
|
"type": "deleteOne",
|
|
3528
4363
|
"item": "Variable"
|
|
@@ -3546,9 +4381,7 @@
|
|
|
3546
4381
|
"method": "get",
|
|
3547
4382
|
"path": "/state",
|
|
3548
4383
|
"private": false,
|
|
3549
|
-
"scopes": [
|
|
3550
|
-
"homey.system.readonly"
|
|
3551
|
-
],
|
|
4384
|
+
"scopes": ["homey.system.readonly"],
|
|
3552
4385
|
"parameters": {}
|
|
3553
4386
|
},
|
|
3554
4387
|
"onMobileEvent": {
|
|
@@ -3592,57 +4425,72 @@
|
|
|
3592
4425
|
"ManagerMoods": {
|
|
3593
4426
|
"id": "moods",
|
|
3594
4427
|
"idCamelCase": "moods",
|
|
3595
|
-
"private": true,
|
|
3596
4428
|
"items": {
|
|
3597
4429
|
"Mood": {
|
|
3598
4430
|
"id": "mood",
|
|
3599
4431
|
"schema": {
|
|
4432
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3600
4433
|
"type": "object",
|
|
3601
4434
|
"properties": {
|
|
3602
4435
|
"id": {
|
|
3603
|
-
"
|
|
4436
|
+
"description": "The unique identifier of the mood.",
|
|
4437
|
+
"type": "string",
|
|
4438
|
+
"format": "uuid",
|
|
4439
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3604
4440
|
},
|
|
3605
4441
|
"name": {
|
|
4442
|
+
"description": "The name of the mood.",
|
|
3606
4443
|
"type": "string"
|
|
3607
4444
|
},
|
|
3608
4445
|
"preset": {
|
|
3609
|
-
"
|
|
3610
|
-
|
|
3611
|
-
|
|
4446
|
+
"description": "The preset associated with the mood, if any.",
|
|
4447
|
+
"anyOf": [
|
|
4448
|
+
{
|
|
4449
|
+
"type": "string"
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"type": "null"
|
|
4453
|
+
}
|
|
3612
4454
|
]
|
|
3613
4455
|
},
|
|
3614
4456
|
"zone": {
|
|
4457
|
+
"description": "The zone to which the mood belongs.",
|
|
3615
4458
|
"type": "string"
|
|
3616
4459
|
},
|
|
3617
4460
|
"devices": {
|
|
4461
|
+
"description": "A record of devices associated with the mood, where keys are device IDs and values are objects containing their state.",
|
|
3618
4462
|
"type": "object",
|
|
3619
|
-
"
|
|
3620
|
-
|
|
3621
|
-
"
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
4463
|
+
"propertyNames": {
|
|
4464
|
+
"type": "string",
|
|
4465
|
+
"format": "uuid",
|
|
4466
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4467
|
+
},
|
|
4468
|
+
"additionalProperties": {
|
|
4469
|
+
"type": "object",
|
|
4470
|
+
"properties": {
|
|
4471
|
+
"state": {
|
|
4472
|
+
"description": "The state of the device, where keys are state names and values can be strings, booleans, or numbers.",
|
|
4473
|
+
"type": "object",
|
|
4474
|
+
"propertyNames": {
|
|
4475
|
+
"type": "string"
|
|
4476
|
+
},
|
|
4477
|
+
"additionalProperties": {
|
|
4478
|
+
"anyOf": [
|
|
4479
|
+
{
|
|
4480
|
+
"type": "string"
|
|
4481
|
+
},
|
|
4482
|
+
{
|
|
4483
|
+
"type": "boolean"
|
|
4484
|
+
},
|
|
4485
|
+
{
|
|
4486
|
+
"type": "number"
|
|
3641
4487
|
}
|
|
3642
|
-
|
|
4488
|
+
]
|
|
3643
4489
|
}
|
|
3644
4490
|
}
|
|
3645
|
-
}
|
|
4491
|
+
},
|
|
4492
|
+
"required": ["state"],
|
|
4493
|
+
"additionalProperties": false
|
|
3646
4494
|
}
|
|
3647
4495
|
}
|
|
3648
4496
|
},
|
|
@@ -3655,18 +4503,14 @@
|
|
|
3655
4503
|
"method": "get",
|
|
3656
4504
|
"path": "/state",
|
|
3657
4505
|
"private": false,
|
|
3658
|
-
"scopes": [
|
|
3659
|
-
"homey.system.readonly"
|
|
3660
|
-
],
|
|
4506
|
+
"scopes": ["homey.system.readonly"],
|
|
3661
4507
|
"parameters": {}
|
|
3662
4508
|
},
|
|
3663
4509
|
"getMoods": {
|
|
3664
4510
|
"method": "get",
|
|
3665
4511
|
"path": "/mood",
|
|
3666
4512
|
"private": false,
|
|
3667
|
-
"scopes": [
|
|
3668
|
-
"homey.mood.readonly"
|
|
3669
|
-
],
|
|
4513
|
+
"scopes": ["homey.mood.readonly"],
|
|
3670
4514
|
"crud": {
|
|
3671
4515
|
"type": "getAll",
|
|
3672
4516
|
"item": "Mood"
|
|
@@ -3677,9 +4521,7 @@
|
|
|
3677
4521
|
"method": "get",
|
|
3678
4522
|
"path": "/mood/:id",
|
|
3679
4523
|
"private": false,
|
|
3680
|
-
"scopes": [
|
|
3681
|
-
"homey.mood.readonly"
|
|
3682
|
-
],
|
|
4524
|
+
"scopes": ["homey.mood.readonly"],
|
|
3683
4525
|
"crud": {
|
|
3684
4526
|
"type": "getOne",
|
|
3685
4527
|
"item": "Mood"
|
|
@@ -3696,9 +4538,7 @@
|
|
|
3696
4538
|
"method": "post",
|
|
3697
4539
|
"path": "/mood",
|
|
3698
4540
|
"private": false,
|
|
3699
|
-
"scopes": [
|
|
3700
|
-
"homey.mood"
|
|
3701
|
-
],
|
|
4541
|
+
"scopes": ["homey.mood"],
|
|
3702
4542
|
"crud": {
|
|
3703
4543
|
"type": "createOne",
|
|
3704
4544
|
"item": "Mood"
|
|
@@ -3729,9 +4569,7 @@
|
|
|
3729
4569
|
"method": "put",
|
|
3730
4570
|
"path": "/mood/:id",
|
|
3731
4571
|
"private": false,
|
|
3732
|
-
"scopes": [
|
|
3733
|
-
"homey.mood"
|
|
3734
|
-
],
|
|
4572
|
+
"scopes": ["homey.mood"],
|
|
3735
4573
|
"crud": {
|
|
3736
4574
|
"type": "updateOne",
|
|
3737
4575
|
"item": "Mood"
|
|
@@ -3765,9 +4603,7 @@
|
|
|
3765
4603
|
"method": "post",
|
|
3766
4604
|
"path": "/mood/:id/set",
|
|
3767
4605
|
"private": false,
|
|
3768
|
-
"scopes": [
|
|
3769
|
-
"homey.mood.set"
|
|
3770
|
-
],
|
|
4606
|
+
"scopes": ["homey.mood.set"],
|
|
3771
4607
|
"parameters": {
|
|
3772
4608
|
"id": {
|
|
3773
4609
|
"in": "path",
|
|
@@ -3780,9 +4616,7 @@
|
|
|
3780
4616
|
"method": "delete",
|
|
3781
4617
|
"path": "/mood/:id",
|
|
3782
4618
|
"private": false,
|
|
3783
|
-
"scopes": [
|
|
3784
|
-
"homey.mood"
|
|
3785
|
-
],
|
|
4619
|
+
"scopes": ["homey.mood"],
|
|
3786
4620
|
"crud": {
|
|
3787
4621
|
"type": "deleteOne",
|
|
3788
4622
|
"item": "Mood"
|
|
@@ -3804,24 +4638,39 @@
|
|
|
3804
4638
|
"Notification": {
|
|
3805
4639
|
"id": "notification",
|
|
3806
4640
|
"schema": {
|
|
4641
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3807
4642
|
"type": "object",
|
|
3808
4643
|
"properties": {
|
|
3809
4644
|
"id": {
|
|
3810
|
-
"
|
|
4645
|
+
"description": "The unique identifier of the notification.",
|
|
4646
|
+
"type": "string",
|
|
4647
|
+
"format": "uuid",
|
|
4648
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
3811
4649
|
},
|
|
3812
4650
|
"ownerUri": {
|
|
4651
|
+
"description": "The URI of the owner of the notification.",
|
|
3813
4652
|
"type": "string"
|
|
3814
4653
|
},
|
|
3815
|
-
"
|
|
4654
|
+
"ownerName": {
|
|
3816
4655
|
"type": "string"
|
|
3817
4656
|
},
|
|
4657
|
+
"dateCreated": {
|
|
4658
|
+
"type": "string",
|
|
4659
|
+
"format": "date-time"
|
|
4660
|
+
},
|
|
3818
4661
|
"excerpt": {
|
|
3819
4662
|
"type": "string"
|
|
3820
4663
|
},
|
|
3821
4664
|
"meta": {
|
|
3822
|
-
"
|
|
4665
|
+
"description": "Metadata associated with the notification.",
|
|
4666
|
+
"type": "object",
|
|
4667
|
+
"propertyNames": {
|
|
4668
|
+
"type": "string"
|
|
4669
|
+
},
|
|
4670
|
+
"additionalProperties": {}
|
|
3823
4671
|
}
|
|
3824
|
-
}
|
|
4672
|
+
},
|
|
4673
|
+
"additionalProperties": false
|
|
3825
4674
|
}
|
|
3826
4675
|
}
|
|
3827
4676
|
},
|
|
@@ -3830,18 +4679,14 @@
|
|
|
3830
4679
|
"method": "get",
|
|
3831
4680
|
"path": "/state",
|
|
3832
4681
|
"private": false,
|
|
3833
|
-
"scopes": [
|
|
3834
|
-
"homey.system.readonly"
|
|
3835
|
-
],
|
|
4682
|
+
"scopes": ["homey.system.readonly"],
|
|
3836
4683
|
"parameters": {}
|
|
3837
4684
|
},
|
|
3838
4685
|
"getNotifications": {
|
|
3839
4686
|
"method": "get",
|
|
3840
4687
|
"path": "/notification",
|
|
3841
4688
|
"private": false,
|
|
3842
|
-
"scopes": [
|
|
3843
|
-
"homey.notifications.readonly"
|
|
3844
|
-
],
|
|
4689
|
+
"scopes": ["homey.notifications.readonly"],
|
|
3845
4690
|
"crud": {
|
|
3846
4691
|
"type": "getAll",
|
|
3847
4692
|
"item": "Notification"
|
|
@@ -3852,9 +4697,7 @@
|
|
|
3852
4697
|
"method": "delete",
|
|
3853
4698
|
"path": "/notification/:id",
|
|
3854
4699
|
"private": false,
|
|
3855
|
-
"scopes": [
|
|
3856
|
-
"homey.notifications"
|
|
3857
|
-
],
|
|
4700
|
+
"scopes": ["homey.notifications"],
|
|
3858
4701
|
"crud": {
|
|
3859
4702
|
"type": "deleteOne",
|
|
3860
4703
|
"item": "Notification"
|
|
@@ -3871,9 +4714,7 @@
|
|
|
3871
4714
|
"method": "delete",
|
|
3872
4715
|
"path": "/notification",
|
|
3873
4716
|
"private": false,
|
|
3874
|
-
"scopes": [
|
|
3875
|
-
"homey.notifications"
|
|
3876
|
-
],
|
|
4717
|
+
"scopes": ["homey.notifications"],
|
|
3877
4718
|
"parameters": {
|
|
3878
4719
|
"ownerUri": {
|
|
3879
4720
|
"in": "query",
|
|
@@ -3885,18 +4726,14 @@
|
|
|
3885
4726
|
"method": "get",
|
|
3886
4727
|
"path": "/owner",
|
|
3887
4728
|
"private": false,
|
|
3888
|
-
"scopes": [
|
|
3889
|
-
"homey.notifications.readonly"
|
|
3890
|
-
],
|
|
4729
|
+
"scopes": ["homey.notifications.readonly"],
|
|
3891
4730
|
"parameters": {}
|
|
3892
4731
|
},
|
|
3893
4732
|
"setOwnerEnabled": {
|
|
3894
4733
|
"method": "put",
|
|
3895
4734
|
"path": "/owner/:uri/enabled",
|
|
3896
4735
|
"private": false,
|
|
3897
|
-
"scopes": [
|
|
3898
|
-
"homey.notifications"
|
|
3899
|
-
],
|
|
4736
|
+
"scopes": ["homey.notifications"],
|
|
3900
4737
|
"parameters": {
|
|
3901
4738
|
"uri": {
|
|
3902
4739
|
"in": "path",
|
|
@@ -3914,9 +4751,7 @@
|
|
|
3914
4751
|
"method": "put",
|
|
3915
4752
|
"path": "/owner/:uri/push",
|
|
3916
4753
|
"private": false,
|
|
3917
|
-
"scopes": [
|
|
3918
|
-
"homey.notifications"
|
|
3919
|
-
],
|
|
4754
|
+
"scopes": ["homey.notifications"],
|
|
3920
4755
|
"parameters": {
|
|
3921
4756
|
"uri": {
|
|
3922
4757
|
"in": "path",
|
|
@@ -3947,18 +4782,14 @@
|
|
|
3947
4782
|
"method": "get",
|
|
3948
4783
|
"path": "/state",
|
|
3949
4784
|
"private": false,
|
|
3950
|
-
"scopes": [
|
|
3951
|
-
"homey.system.readonly"
|
|
3952
|
-
],
|
|
4785
|
+
"scopes": ["homey.system.readonly"],
|
|
3953
4786
|
"parameters": {}
|
|
3954
4787
|
},
|
|
3955
4788
|
"setPresentMe": {
|
|
3956
4789
|
"method": "put",
|
|
3957
4790
|
"path": "/me/present",
|
|
3958
4791
|
"private": false,
|
|
3959
|
-
"scopes": [
|
|
3960
|
-
"homey.presence.self"
|
|
3961
|
-
],
|
|
4792
|
+
"scopes": ["homey.presence.self"],
|
|
3962
4793
|
"parameters": {
|
|
3963
4794
|
"value": {
|
|
3964
4795
|
"in": "body",
|
|
@@ -3979,9 +4810,7 @@
|
|
|
3979
4810
|
"method": "put",
|
|
3980
4811
|
"path": "/:id/present",
|
|
3981
4812
|
"private": false,
|
|
3982
|
-
"scopes": [
|
|
3983
|
-
"homey.presence"
|
|
3984
|
-
],
|
|
4813
|
+
"scopes": ["homey.presence"],
|
|
3985
4814
|
"parameters": {
|
|
3986
4815
|
"id": {
|
|
3987
4816
|
"in": "path",
|
|
@@ -3998,9 +4827,7 @@
|
|
|
3998
4827
|
"method": "get",
|
|
3999
4828
|
"path": "/:id/present",
|
|
4000
4829
|
"private": false,
|
|
4001
|
-
"scopes": [
|
|
4002
|
-
"homey.presence.readonly"
|
|
4003
|
-
],
|
|
4830
|
+
"scopes": ["homey.presence.readonly"],
|
|
4004
4831
|
"parameters": {
|
|
4005
4832
|
"id": {
|
|
4006
4833
|
"in": "path",
|
|
@@ -4013,9 +4840,7 @@
|
|
|
4013
4840
|
"method": "put",
|
|
4014
4841
|
"path": "/me/asleep",
|
|
4015
4842
|
"private": false,
|
|
4016
|
-
"scopes": [
|
|
4017
|
-
"homey.presence.self"
|
|
4018
|
-
],
|
|
4843
|
+
"scopes": ["homey.presence.self"],
|
|
4019
4844
|
"parameters": {
|
|
4020
4845
|
"value": {
|
|
4021
4846
|
"in": "body",
|
|
@@ -4036,9 +4861,7 @@
|
|
|
4036
4861
|
"method": "put",
|
|
4037
4862
|
"path": "/:id/asleep",
|
|
4038
4863
|
"private": false,
|
|
4039
|
-
"scopes": [
|
|
4040
|
-
"homey.presence"
|
|
4041
|
-
],
|
|
4864
|
+
"scopes": ["homey.presence"],
|
|
4042
4865
|
"parameters": {
|
|
4043
4866
|
"id": {
|
|
4044
4867
|
"in": "path",
|
|
@@ -4055,9 +4878,7 @@
|
|
|
4055
4878
|
"method": "get",
|
|
4056
4879
|
"path": "/:id/asleep",
|
|
4057
4880
|
"private": false,
|
|
4058
|
-
"scopes": [
|
|
4059
|
-
"homey.presence.readonly"
|
|
4060
|
-
],
|
|
4881
|
+
"scopes": ["homey.presence.readonly"],
|
|
4061
4882
|
"parameters": {
|
|
4062
4883
|
"id": {
|
|
4063
4884
|
"in": "path",
|
|
@@ -4075,12 +4896,17 @@
|
|
|
4075
4896
|
"Signal": {
|
|
4076
4897
|
"id": "signal",
|
|
4077
4898
|
"schema": {
|
|
4899
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4078
4900
|
"type": "object",
|
|
4079
4901
|
"properties": {
|
|
4080
4902
|
"id": {
|
|
4081
|
-
"
|
|
4903
|
+
"description": "The unique identifier of the item.",
|
|
4904
|
+
"type": "string",
|
|
4905
|
+
"format": "uuid",
|
|
4906
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4082
4907
|
}
|
|
4083
|
-
}
|
|
4908
|
+
},
|
|
4909
|
+
"additionalProperties": false
|
|
4084
4910
|
}
|
|
4085
4911
|
}
|
|
4086
4912
|
},
|
|
@@ -4089,18 +4915,14 @@
|
|
|
4089
4915
|
"method": "get",
|
|
4090
4916
|
"path": "/state",
|
|
4091
4917
|
"private": false,
|
|
4092
|
-
"scopes": [
|
|
4093
|
-
"homey.system.readonly"
|
|
4094
|
-
],
|
|
4918
|
+
"scopes": ["homey.system.readonly"],
|
|
4095
4919
|
"parameters": {}
|
|
4096
4920
|
},
|
|
4097
4921
|
"record": {
|
|
4098
4922
|
"method": "post",
|
|
4099
4923
|
"path": "/record",
|
|
4100
4924
|
"private": false,
|
|
4101
|
-
"scopes": [
|
|
4102
|
-
"homey.system"
|
|
4103
|
-
],
|
|
4925
|
+
"scopes": ["homey.system"],
|
|
4104
4926
|
"parameters": {
|
|
4105
4927
|
"frequency": {
|
|
4106
4928
|
"in": "body",
|
|
@@ -4116,9 +4938,7 @@
|
|
|
4116
4938
|
"method": "post",
|
|
4117
4939
|
"path": "/replay",
|
|
4118
4940
|
"private": false,
|
|
4119
|
-
"scopes": [
|
|
4120
|
-
"homey.system"
|
|
4121
|
-
],
|
|
4941
|
+
"scopes": ["homey.system"],
|
|
4122
4942
|
"parameters": {
|
|
4123
4943
|
"frequency": {
|
|
4124
4944
|
"in": "body",
|
|
@@ -4136,9 +4956,7 @@
|
|
|
4136
4956
|
"method": "post",
|
|
4137
4957
|
"path": "/:frequency/emulate",
|
|
4138
4958
|
"private": false,
|
|
4139
|
-
"scopes": [
|
|
4140
|
-
"homey.system"
|
|
4141
|
-
],
|
|
4959
|
+
"scopes": ["homey.system"],
|
|
4142
4960
|
"parameters": {
|
|
4143
4961
|
"frequency": {
|
|
4144
4962
|
"in": "path",
|
|
@@ -4157,9 +4975,7 @@
|
|
|
4157
4975
|
"method": "post",
|
|
4158
4976
|
"path": "/mhz433/config",
|
|
4159
4977
|
"private": false,
|
|
4160
|
-
"scopes": [
|
|
4161
|
-
"homey.system"
|
|
4162
|
-
],
|
|
4978
|
+
"scopes": ["homey.system"],
|
|
4163
4979
|
"parameters": {
|
|
4164
4980
|
"modulation": {
|
|
4165
4981
|
"in": "body",
|
|
@@ -4195,9 +5011,7 @@
|
|
|
4195
5011
|
"method": "post",
|
|
4196
5012
|
"path": "/ir/prontohex",
|
|
4197
5013
|
"private": false,
|
|
4198
|
-
"scopes": [
|
|
4199
|
-
"homey.system"
|
|
4200
|
-
],
|
|
5014
|
+
"scopes": ["homey.system"],
|
|
4201
5015
|
"parameters": {
|
|
4202
5016
|
"payload": {
|
|
4203
5017
|
"in": "body",
|
|
@@ -4221,9 +5035,7 @@
|
|
|
4221
5035
|
"method": "get",
|
|
4222
5036
|
"path": "/state",
|
|
4223
5037
|
"private": false,
|
|
4224
|
-
"scopes": [
|
|
4225
|
-
"homey.system.readonly"
|
|
4226
|
-
],
|
|
5038
|
+
"scopes": ["homey.system.readonly"],
|
|
4227
5039
|
"parameters": {}
|
|
4228
5040
|
}
|
|
4229
5041
|
}
|
|
@@ -4237,9 +5049,7 @@
|
|
|
4237
5049
|
"method": "get",
|
|
4238
5050
|
"path": "/state",
|
|
4239
5051
|
"private": false,
|
|
4240
|
-
"scopes": [
|
|
4241
|
-
"homey.system.readonly"
|
|
4242
|
-
],
|
|
5052
|
+
"scopes": ["homey.system.readonly"],
|
|
4243
5053
|
"parameters": {}
|
|
4244
5054
|
}
|
|
4245
5055
|
}
|
|
@@ -4259,11 +5069,7 @@
|
|
|
4259
5069
|
},
|
|
4260
5070
|
"type": {
|
|
4261
5071
|
"type": "string",
|
|
4262
|
-
"enum": [
|
|
4263
|
-
"OAUTH",
|
|
4264
|
-
"APP",
|
|
4265
|
-
"PAT"
|
|
4266
|
-
]
|
|
5072
|
+
"enum": ["OAUTH", "APP", "PAT"]
|
|
4267
5073
|
},
|
|
4268
5074
|
"scopes": {
|
|
4269
5075
|
"description": "These are the requested scopes",
|
|
@@ -4288,9 +5094,7 @@
|
|
|
4288
5094
|
"method": "get",
|
|
4289
5095
|
"path": "/state",
|
|
4290
5096
|
"private": false,
|
|
4291
|
-
"scopes": [
|
|
4292
|
-
"homey.system.readonly"
|
|
4293
|
-
],
|
|
5097
|
+
"scopes": ["homey.system.readonly"],
|
|
4294
5098
|
"parameters": {}
|
|
4295
5099
|
},
|
|
4296
5100
|
"getSessionMe": {
|
|
@@ -4311,9 +5115,7 @@
|
|
|
4311
5115
|
"method": "get",
|
|
4312
5116
|
"path": "/state",
|
|
4313
5117
|
"private": false,
|
|
4314
|
-
"scopes": [
|
|
4315
|
-
"homey.system.readonly"
|
|
4316
|
-
],
|
|
5118
|
+
"scopes": ["homey.system.readonly"],
|
|
4317
5119
|
"parameters": {}
|
|
4318
5120
|
},
|
|
4319
5121
|
"ping": {
|
|
@@ -4332,27 +5134,21 @@
|
|
|
4332
5134
|
"method": "get",
|
|
4333
5135
|
"path": "/",
|
|
4334
5136
|
"private": false,
|
|
4335
|
-
"scopes": [
|
|
4336
|
-
"homey.system.readonly"
|
|
4337
|
-
],
|
|
5137
|
+
"scopes": ["homey.system.readonly"],
|
|
4338
5138
|
"parameters": {}
|
|
4339
5139
|
},
|
|
4340
5140
|
"getSystemName": {
|
|
4341
5141
|
"method": "get",
|
|
4342
5142
|
"path": "/name",
|
|
4343
5143
|
"private": false,
|
|
4344
|
-
"scopes": [
|
|
4345
|
-
"homey.system.readonly"
|
|
4346
|
-
],
|
|
5144
|
+
"scopes": ["homey.system.readonly"],
|
|
4347
5145
|
"parameters": {}
|
|
4348
5146
|
},
|
|
4349
5147
|
"setSystemName": {
|
|
4350
5148
|
"method": "put",
|
|
4351
5149
|
"path": "/name",
|
|
4352
5150
|
"private": false,
|
|
4353
|
-
"scopes": [
|
|
4354
|
-
"homey.system"
|
|
4355
|
-
],
|
|
5151
|
+
"scopes": ["homey.system"],
|
|
4356
5152
|
"parameters": {
|
|
4357
5153
|
"name": {
|
|
4358
5154
|
"in": "body",
|
|
@@ -4365,18 +5161,14 @@
|
|
|
4365
5161
|
"method": "post",
|
|
4366
5162
|
"path": "/reboot",
|
|
4367
5163
|
"private": false,
|
|
4368
|
-
"scopes": [
|
|
4369
|
-
"homey.system"
|
|
4370
|
-
],
|
|
5164
|
+
"scopes": ["homey.system"],
|
|
4371
5165
|
"parameters": {}
|
|
4372
5166
|
},
|
|
4373
5167
|
"sendLog": {
|
|
4374
5168
|
"method": "post",
|
|
4375
5169
|
"path": "/journalctl",
|
|
4376
5170
|
"private": false,
|
|
4377
|
-
"scopes": [
|
|
4378
|
-
"homey.system.readonly"
|
|
4379
|
-
],
|
|
5171
|
+
"scopes": ["homey.system.readonly"],
|
|
4380
5172
|
"parameters": {
|
|
4381
5173
|
"append": {
|
|
4382
5174
|
"in": "body",
|
|
@@ -4388,27 +5180,21 @@
|
|
|
4388
5180
|
"method": "post",
|
|
4389
5181
|
"path": "/delete",
|
|
4390
5182
|
"private": false,
|
|
4391
|
-
"scopes": [
|
|
4392
|
-
"homey.system"
|
|
4393
|
-
],
|
|
5183
|
+
"scopes": ["homey.system"],
|
|
4394
5184
|
"parameters": {}
|
|
4395
5185
|
},
|
|
4396
5186
|
"getMemoryInfo": {
|
|
4397
5187
|
"method": "get",
|
|
4398
5188
|
"path": "/memory",
|
|
4399
5189
|
"private": false,
|
|
4400
|
-
"scopes": [
|
|
4401
|
-
"homey.system.readonly"
|
|
4402
|
-
],
|
|
5190
|
+
"scopes": ["homey.system.readonly"],
|
|
4403
5191
|
"parameters": {}
|
|
4404
5192
|
},
|
|
4405
5193
|
"getStorageInfo": {
|
|
4406
5194
|
"method": "get",
|
|
4407
5195
|
"path": "/storage",
|
|
4408
5196
|
"private": false,
|
|
4409
|
-
"scopes": [
|
|
4410
|
-
"homey.system.readonly"
|
|
4411
|
-
],
|
|
5197
|
+
"scopes": ["homey.system.readonly"],
|
|
4412
5198
|
"parameters": {}
|
|
4413
5199
|
}
|
|
4414
5200
|
}
|
|
@@ -4420,12 +5206,118 @@
|
|
|
4420
5206
|
"User": {
|
|
4421
5207
|
"id": "user",
|
|
4422
5208
|
"schema": {
|
|
5209
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4423
5210
|
"type": "object",
|
|
4424
5211
|
"properties": {
|
|
4425
5212
|
"id": {
|
|
5213
|
+
"description": "The unique identifier of the user.",
|
|
5214
|
+
"type": "string",
|
|
5215
|
+
"format": "uuid",
|
|
5216
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
5217
|
+
},
|
|
5218
|
+
"name": {
|
|
5219
|
+
"description": "The name of the user.",
|
|
5220
|
+
"anyOf": [
|
|
5221
|
+
{
|
|
5222
|
+
"type": "string"
|
|
5223
|
+
},
|
|
5224
|
+
{
|
|
5225
|
+
"type": "null"
|
|
5226
|
+
}
|
|
5227
|
+
]
|
|
5228
|
+
},
|
|
5229
|
+
"role": {
|
|
5230
|
+
"description": "The role of the user.",
|
|
4426
5231
|
"type": "string"
|
|
5232
|
+
},
|
|
5233
|
+
"properties": {
|
|
5234
|
+
"type": "object",
|
|
5235
|
+
"propertyNames": {
|
|
5236
|
+
"type": "string"
|
|
5237
|
+
},
|
|
5238
|
+
"additionalProperties": {}
|
|
5239
|
+
},
|
|
5240
|
+
"athomId": {
|
|
5241
|
+
"description": "The Athom id of the user.",
|
|
5242
|
+
"anyOf": [
|
|
5243
|
+
{
|
|
5244
|
+
"type": "string"
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
"type": "null"
|
|
5248
|
+
}
|
|
5249
|
+
]
|
|
5250
|
+
},
|
|
5251
|
+
"enabled": {
|
|
5252
|
+
"description": "Whether the user is enabled.",
|
|
5253
|
+
"default": true,
|
|
5254
|
+
"type": "boolean"
|
|
5255
|
+
},
|
|
5256
|
+
"enabledUntil": {
|
|
5257
|
+
"description": "The date until the user is enabled.",
|
|
5258
|
+
"anyOf": [
|
|
5259
|
+
{
|
|
5260
|
+
"type": "string",
|
|
5261
|
+
"format": "date-time"
|
|
5262
|
+
},
|
|
5263
|
+
{
|
|
5264
|
+
"type": "null"
|
|
5265
|
+
}
|
|
5266
|
+
]
|
|
5267
|
+
},
|
|
5268
|
+
"present": {
|
|
5269
|
+
"description": "Whether the user is present.",
|
|
5270
|
+
"default": false,
|
|
5271
|
+
"anyOf": [
|
|
5272
|
+
{
|
|
5273
|
+
"type": "boolean"
|
|
5274
|
+
},
|
|
5275
|
+
{
|
|
5276
|
+
"type": "null"
|
|
5277
|
+
}
|
|
5278
|
+
]
|
|
5279
|
+
},
|
|
5280
|
+
"asleep": {
|
|
5281
|
+
"description": "Whether the user is asleep.",
|
|
5282
|
+
"default": false,
|
|
5283
|
+
"anyOf": [
|
|
5284
|
+
{
|
|
5285
|
+
"type": "boolean"
|
|
5286
|
+
},
|
|
5287
|
+
{
|
|
5288
|
+
"type": "null"
|
|
5289
|
+
}
|
|
5290
|
+
]
|
|
5291
|
+
},
|
|
5292
|
+
"avatar": {
|
|
5293
|
+
"description": "The avatar URL of the user.",
|
|
5294
|
+
"anyOf": [
|
|
5295
|
+
{
|
|
5296
|
+
"type": "string"
|
|
5297
|
+
},
|
|
5298
|
+
{
|
|
5299
|
+
"type": "null"
|
|
5300
|
+
}
|
|
5301
|
+
]
|
|
5302
|
+
},
|
|
5303
|
+
"verified": {
|
|
5304
|
+
"description": "Whether the user is verified.",
|
|
5305
|
+
"default": false,
|
|
5306
|
+
"type": "boolean"
|
|
5307
|
+
},
|
|
5308
|
+
"inviteUrl": {
|
|
5309
|
+
"description": "The invite URL for the user.",
|
|
5310
|
+
"anyOf": [
|
|
5311
|
+
{
|
|
5312
|
+
"type": "string"
|
|
5313
|
+
},
|
|
5314
|
+
{
|
|
5315
|
+
"type": "null"
|
|
5316
|
+
}
|
|
5317
|
+
]
|
|
4427
5318
|
}
|
|
4428
|
-
}
|
|
5319
|
+
},
|
|
5320
|
+
"additionalProperties": false
|
|
4429
5321
|
}
|
|
4430
5322
|
}
|
|
4431
5323
|
},
|
|
@@ -4434,9 +5326,7 @@
|
|
|
4434
5326
|
"method": "get",
|
|
4435
5327
|
"path": "/state",
|
|
4436
5328
|
"private": false,
|
|
4437
|
-
"scopes": [
|
|
4438
|
-
"homey.system.readonly"
|
|
4439
|
-
],
|
|
5329
|
+
"scopes": ["homey.system.readonly"],
|
|
4440
5330
|
"parameters": {}
|
|
4441
5331
|
},
|
|
4442
5332
|
"login": {
|
|
@@ -4456,18 +5346,14 @@
|
|
|
4456
5346
|
"method": "get",
|
|
4457
5347
|
"path": "/user/me",
|
|
4458
5348
|
"private": false,
|
|
4459
|
-
"scopes": [
|
|
4460
|
-
"homey.user.self"
|
|
4461
|
-
],
|
|
5349
|
+
"scopes": ["homey.user.self"],
|
|
4462
5350
|
"parameters": {}
|
|
4463
5351
|
},
|
|
4464
5352
|
"updateUserMe": {
|
|
4465
5353
|
"method": "put",
|
|
4466
5354
|
"path": "/user/me",
|
|
4467
5355
|
"private": false,
|
|
4468
|
-
"scopes": [
|
|
4469
|
-
"homey.user.self"
|
|
4470
|
-
],
|
|
5356
|
+
"scopes": ["homey.user.self"],
|
|
4471
5357
|
"parameters": {
|
|
4472
5358
|
"name": {
|
|
4473
5359
|
"in": "body",
|
|
@@ -4479,18 +5365,14 @@
|
|
|
4479
5365
|
"method": "delete",
|
|
4480
5366
|
"path": "/user/me",
|
|
4481
5367
|
"private": false,
|
|
4482
|
-
"scopes": [
|
|
4483
|
-
"homey.user.self"
|
|
4484
|
-
],
|
|
5368
|
+
"scopes": ["homey.user.self"],
|
|
4485
5369
|
"parameters": {}
|
|
4486
5370
|
},
|
|
4487
5371
|
"getUsers": {
|
|
4488
5372
|
"method": "get",
|
|
4489
5373
|
"path": "/user",
|
|
4490
5374
|
"private": false,
|
|
4491
|
-
"scopes": [
|
|
4492
|
-
"homey.user.readonly"
|
|
4493
|
-
],
|
|
5375
|
+
"scopes": ["homey.user.readonly"],
|
|
4494
5376
|
"crud": {
|
|
4495
5377
|
"type": "getAll",
|
|
4496
5378
|
"item": "User"
|
|
@@ -4501,9 +5383,7 @@
|
|
|
4501
5383
|
"method": "get",
|
|
4502
5384
|
"path": "/user/:id",
|
|
4503
5385
|
"private": false,
|
|
4504
|
-
"scopes": [
|
|
4505
|
-
"homey.user.readonly"
|
|
4506
|
-
],
|
|
5386
|
+
"scopes": ["homey.user.readonly"],
|
|
4507
5387
|
"crud": {
|
|
4508
5388
|
"type": "getOne",
|
|
4509
5389
|
"item": "User"
|
|
@@ -4520,9 +5400,7 @@
|
|
|
4520
5400
|
"method": "post",
|
|
4521
5401
|
"path": "/user",
|
|
4522
5402
|
"private": false,
|
|
4523
|
-
"scopes": [
|
|
4524
|
-
"homey.user"
|
|
4525
|
-
],
|
|
5403
|
+
"scopes": ["homey.user"],
|
|
4526
5404
|
"crud": {
|
|
4527
5405
|
"type": "createOne",
|
|
4528
5406
|
"item": "User"
|
|
@@ -4546,9 +5424,7 @@
|
|
|
4546
5424
|
"method": "put",
|
|
4547
5425
|
"path": "/user/:id",
|
|
4548
5426
|
"private": false,
|
|
4549
|
-
"scopes": [
|
|
4550
|
-
"homey.user"
|
|
4551
|
-
],
|
|
5427
|
+
"scopes": ["homey.user"],
|
|
4552
5428
|
"crud": {
|
|
4553
5429
|
"type": "updateOne",
|
|
4554
5430
|
"item": "User"
|
|
@@ -4579,9 +5455,7 @@
|
|
|
4579
5455
|
"method": "delete",
|
|
4580
5456
|
"path": "/user/:id",
|
|
4581
5457
|
"private": false,
|
|
4582
|
-
"scopes": [
|
|
4583
|
-
"homey.user"
|
|
4584
|
-
],
|
|
5458
|
+
"scopes": ["homey.user"],
|
|
4585
5459
|
"crud": {
|
|
4586
5460
|
"type": "deleteOne",
|
|
4587
5461
|
"item": "User"
|
|
@@ -4598,9 +5472,7 @@
|
|
|
4598
5472
|
"method": "put",
|
|
4599
5473
|
"path": "/user/me/properties/:id",
|
|
4600
5474
|
"private": false,
|
|
4601
|
-
"scopes": [
|
|
4602
|
-
"homey.user.self"
|
|
4603
|
-
],
|
|
5475
|
+
"scopes": ["homey.user.self"],
|
|
4604
5476
|
"parameters": {
|
|
4605
5477
|
"id": {
|
|
4606
5478
|
"in": "path",
|
|
@@ -4618,9 +5490,7 @@
|
|
|
4618
5490
|
"method": "delete",
|
|
4619
5491
|
"path": "/user/me/properties/:id",
|
|
4620
5492
|
"private": false,
|
|
4621
|
-
"scopes": [
|
|
4622
|
-
"homey.user.self"
|
|
4623
|
-
],
|
|
5493
|
+
"scopes": ["homey.user.self"],
|
|
4624
5494
|
"parameters": {
|
|
4625
5495
|
"id": {
|
|
4626
5496
|
"in": "path",
|
|
@@ -4666,177 +5536,257 @@
|
|
|
4666
5536
|
"VirtualDriverDummySocket": {
|
|
4667
5537
|
"id": "virtualdriverdummysocket",
|
|
4668
5538
|
"schema": {
|
|
5539
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4669
5540
|
"type": "object",
|
|
4670
5541
|
"properties": {
|
|
4671
5542
|
"id": {
|
|
4672
|
-
"
|
|
5543
|
+
"description": "The unique identifier of the item.",
|
|
5544
|
+
"type": "string",
|
|
5545
|
+
"format": "uuid",
|
|
5546
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4673
5547
|
}
|
|
4674
|
-
}
|
|
5548
|
+
},
|
|
5549
|
+
"additionalProperties": false
|
|
4675
5550
|
}
|
|
4676
5551
|
},
|
|
4677
5552
|
"VirtualDeviceDummySocket": {
|
|
4678
5553
|
"id": "virtualdevicedummysocket",
|
|
4679
5554
|
"schema": {
|
|
5555
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4680
5556
|
"type": "object",
|
|
4681
5557
|
"properties": {
|
|
4682
5558
|
"id": {
|
|
4683
|
-
"
|
|
5559
|
+
"description": "The unique identifier of the item.",
|
|
5560
|
+
"type": "string",
|
|
5561
|
+
"format": "uuid",
|
|
5562
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4684
5563
|
}
|
|
4685
|
-
}
|
|
5564
|
+
},
|
|
5565
|
+
"additionalProperties": false
|
|
4686
5566
|
}
|
|
4687
5567
|
},
|
|
4688
5568
|
"VirtualDriverZwave": {
|
|
4689
5569
|
"id": "virtualdriverzwave",
|
|
4690
5570
|
"schema": {
|
|
5571
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4691
5572
|
"type": "object",
|
|
4692
5573
|
"properties": {
|
|
4693
5574
|
"id": {
|
|
4694
|
-
"
|
|
5575
|
+
"description": "The unique identifier of the item.",
|
|
5576
|
+
"type": "string",
|
|
5577
|
+
"format": "uuid",
|
|
5578
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4695
5579
|
}
|
|
4696
|
-
}
|
|
5580
|
+
},
|
|
5581
|
+
"additionalProperties": false
|
|
4697
5582
|
}
|
|
4698
5583
|
},
|
|
4699
5584
|
"VirtualDeviceZwave": {
|
|
4700
5585
|
"id": "virtualdevicezwave",
|
|
4701
5586
|
"schema": {
|
|
5587
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4702
5588
|
"type": "object",
|
|
4703
5589
|
"properties": {
|
|
4704
5590
|
"id": {
|
|
4705
|
-
"
|
|
5591
|
+
"description": "The unique identifier of the item.",
|
|
5592
|
+
"type": "string",
|
|
5593
|
+
"format": "uuid",
|
|
5594
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4706
5595
|
}
|
|
4707
|
-
}
|
|
5596
|
+
},
|
|
5597
|
+
"additionalProperties": false
|
|
4708
5598
|
}
|
|
4709
5599
|
},
|
|
4710
5600
|
"VirtualDriverZigbee": {
|
|
4711
5601
|
"id": "virtualdriverzigbee",
|
|
4712
5602
|
"schema": {
|
|
5603
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4713
5604
|
"type": "object",
|
|
4714
5605
|
"properties": {
|
|
4715
5606
|
"id": {
|
|
4716
|
-
"
|
|
5607
|
+
"description": "The unique identifier of the item.",
|
|
5608
|
+
"type": "string",
|
|
5609
|
+
"format": "uuid",
|
|
5610
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4717
5611
|
}
|
|
4718
|
-
}
|
|
5612
|
+
},
|
|
5613
|
+
"additionalProperties": false
|
|
4719
5614
|
}
|
|
4720
5615
|
},
|
|
4721
5616
|
"VirtualDeviceZigbee": {
|
|
4722
5617
|
"id": "virtualdevicezigbee",
|
|
4723
5618
|
"schema": {
|
|
5619
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4724
5620
|
"type": "object",
|
|
4725
5621
|
"properties": {
|
|
4726
5622
|
"id": {
|
|
4727
|
-
"
|
|
5623
|
+
"description": "The unique identifier of the item.",
|
|
5624
|
+
"type": "string",
|
|
5625
|
+
"format": "uuid",
|
|
5626
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4728
5627
|
}
|
|
4729
|
-
}
|
|
5628
|
+
},
|
|
5629
|
+
"additionalProperties": false
|
|
4730
5630
|
}
|
|
4731
5631
|
},
|
|
4732
5632
|
"VirtualDriverInfrared": {
|
|
4733
5633
|
"id": "virtualdriverinfrared",
|
|
4734
5634
|
"schema": {
|
|
5635
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4735
5636
|
"type": "object",
|
|
4736
5637
|
"properties": {
|
|
4737
5638
|
"id": {
|
|
4738
|
-
"
|
|
5639
|
+
"description": "The unique identifier of the item.",
|
|
5640
|
+
"type": "string",
|
|
5641
|
+
"format": "uuid",
|
|
5642
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4739
5643
|
}
|
|
4740
|
-
}
|
|
5644
|
+
},
|
|
5645
|
+
"additionalProperties": false
|
|
4741
5646
|
}
|
|
4742
5647
|
},
|
|
4743
5648
|
"VirtualDeviceInfrared": {
|
|
4744
5649
|
"id": "virtualdeviceinfrared",
|
|
4745
5650
|
"schema": {
|
|
5651
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4746
5652
|
"type": "object",
|
|
4747
5653
|
"properties": {
|
|
4748
5654
|
"id": {
|
|
4749
|
-
"
|
|
5655
|
+
"description": "The unique identifier of the item.",
|
|
5656
|
+
"type": "string",
|
|
5657
|
+
"format": "uuid",
|
|
5658
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4750
5659
|
}
|
|
4751
|
-
}
|
|
5660
|
+
},
|
|
5661
|
+
"additionalProperties": false
|
|
4752
5662
|
}
|
|
4753
5663
|
},
|
|
4754
5664
|
"VirtualDriverRF433": {
|
|
4755
5665
|
"id": "virtualdriverrf433",
|
|
4756
5666
|
"schema": {
|
|
5667
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4757
5668
|
"type": "object",
|
|
4758
5669
|
"properties": {
|
|
4759
5670
|
"id": {
|
|
4760
|
-
"
|
|
5671
|
+
"description": "The unique identifier of the item.",
|
|
5672
|
+
"type": "string",
|
|
5673
|
+
"format": "uuid",
|
|
5674
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4761
5675
|
}
|
|
4762
|
-
}
|
|
5676
|
+
},
|
|
5677
|
+
"additionalProperties": false
|
|
4763
5678
|
}
|
|
4764
5679
|
},
|
|
4765
5680
|
"VirtualDeviceRF433": {
|
|
4766
5681
|
"id": "virtualdevicerf433",
|
|
4767
5682
|
"schema": {
|
|
5683
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4768
5684
|
"type": "object",
|
|
4769
5685
|
"properties": {
|
|
4770
5686
|
"id": {
|
|
4771
|
-
"
|
|
5687
|
+
"description": "The unique identifier of the item.",
|
|
5688
|
+
"type": "string",
|
|
5689
|
+
"format": "uuid",
|
|
5690
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4772
5691
|
}
|
|
4773
|
-
}
|
|
5692
|
+
},
|
|
5693
|
+
"additionalProperties": false
|
|
4774
5694
|
}
|
|
4775
5695
|
},
|
|
4776
5696
|
"VirtualDriverHomeyBridge": {
|
|
4777
5697
|
"id": "virtualdriverbridge",
|
|
4778
5698
|
"schema": {
|
|
5699
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4779
5700
|
"type": "object",
|
|
4780
5701
|
"properties": {
|
|
4781
5702
|
"id": {
|
|
4782
|
-
"
|
|
5703
|
+
"description": "The unique identifier of the item.",
|
|
5704
|
+
"type": "string",
|
|
5705
|
+
"format": "uuid",
|
|
5706
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4783
5707
|
}
|
|
4784
|
-
}
|
|
5708
|
+
},
|
|
5709
|
+
"additionalProperties": false
|
|
4785
5710
|
}
|
|
4786
5711
|
},
|
|
4787
5712
|
"VirtualDeviceHomeyBridge": {
|
|
4788
5713
|
"id": "virtualdevicebridge",
|
|
4789
5714
|
"schema": {
|
|
5715
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4790
5716
|
"type": "object",
|
|
4791
5717
|
"properties": {
|
|
4792
5718
|
"id": {
|
|
4793
|
-
"
|
|
5719
|
+
"description": "The unique identifier of the item.",
|
|
5720
|
+
"type": "string",
|
|
5721
|
+
"format": "uuid",
|
|
5722
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4794
5723
|
}
|
|
4795
|
-
}
|
|
5724
|
+
},
|
|
5725
|
+
"additionalProperties": false
|
|
4796
5726
|
}
|
|
4797
5727
|
},
|
|
4798
5728
|
"VirtualDriverEnergyDongle": {
|
|
4799
5729
|
"id": "virtualdriverenergydongle",
|
|
4800
5730
|
"schema": {
|
|
5731
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4801
5732
|
"type": "object",
|
|
4802
5733
|
"properties": {
|
|
4803
5734
|
"id": {
|
|
4804
|
-
"
|
|
5735
|
+
"description": "The unique identifier of the item.",
|
|
5736
|
+
"type": "string",
|
|
5737
|
+
"format": "uuid",
|
|
5738
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4805
5739
|
}
|
|
4806
|
-
}
|
|
5740
|
+
},
|
|
5741
|
+
"additionalProperties": false
|
|
4807
5742
|
}
|
|
4808
5743
|
},
|
|
4809
5744
|
"VirtualDeviceEnergyDongle": {
|
|
4810
5745
|
"id": "virtualdeviceenergydongle",
|
|
4811
5746
|
"schema": {
|
|
5747
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4812
5748
|
"type": "object",
|
|
4813
5749
|
"properties": {
|
|
4814
5750
|
"id": {
|
|
4815
|
-
"
|
|
5751
|
+
"description": "The unique identifier of the item.",
|
|
5752
|
+
"type": "string",
|
|
5753
|
+
"format": "uuid",
|
|
5754
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4816
5755
|
}
|
|
4817
|
-
}
|
|
5756
|
+
},
|
|
5757
|
+
"additionalProperties": false
|
|
4818
5758
|
}
|
|
4819
5759
|
},
|
|
4820
5760
|
"VirtualDriverGroup": {
|
|
4821
5761
|
"id": "virtualdrivergroup",
|
|
4822
5762
|
"schema": {
|
|
5763
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4823
5764
|
"type": "object",
|
|
4824
5765
|
"properties": {
|
|
4825
5766
|
"id": {
|
|
4826
|
-
"
|
|
5767
|
+
"description": "The unique identifier of the item.",
|
|
5768
|
+
"type": "string",
|
|
5769
|
+
"format": "uuid",
|
|
5770
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4827
5771
|
}
|
|
4828
|
-
}
|
|
5772
|
+
},
|
|
5773
|
+
"additionalProperties": false
|
|
4829
5774
|
}
|
|
4830
5775
|
},
|
|
4831
5776
|
"VirtualDeviceGroup": {
|
|
4832
5777
|
"id": "virtualdevicegroup",
|
|
4833
5778
|
"schema": {
|
|
5779
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4834
5780
|
"type": "object",
|
|
4835
5781
|
"properties": {
|
|
4836
5782
|
"id": {
|
|
4837
|
-
"
|
|
5783
|
+
"description": "The unique identifier of the item.",
|
|
5784
|
+
"type": "string",
|
|
5785
|
+
"format": "uuid",
|
|
5786
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
4838
5787
|
}
|
|
4839
|
-
}
|
|
5788
|
+
},
|
|
5789
|
+
"additionalProperties": false
|
|
4840
5790
|
}
|
|
4841
5791
|
}
|
|
4842
5792
|
},
|
|
@@ -4845,9 +5795,7 @@
|
|
|
4845
5795
|
"method": "get",
|
|
4846
5796
|
"path": "/state",
|
|
4847
5797
|
"private": false,
|
|
4848
|
-
"scopes": [
|
|
4849
|
-
"homey.system.readonly"
|
|
4850
|
-
],
|
|
5798
|
+
"scopes": ["homey.system.readonly"],
|
|
4851
5799
|
"parameters": {}
|
|
4852
5800
|
}
|
|
4853
5801
|
}
|
|
@@ -4861,27 +5809,21 @@
|
|
|
4861
5809
|
"method": "get",
|
|
4862
5810
|
"path": "/state",
|
|
4863
5811
|
"private": false,
|
|
4864
|
-
"scopes": [
|
|
4865
|
-
"homey.system.readonly"
|
|
4866
|
-
],
|
|
5812
|
+
"scopes": ["homey.system.readonly"],
|
|
4867
5813
|
"parameters": {}
|
|
4868
5814
|
},
|
|
4869
5815
|
"getWeather": {
|
|
4870
5816
|
"method": "get",
|
|
4871
5817
|
"path": "/weather",
|
|
4872
5818
|
"private": false,
|
|
4873
|
-
"scopes": [
|
|
4874
|
-
"homey.geolocation.readonly"
|
|
4875
|
-
],
|
|
5819
|
+
"scopes": ["homey.geolocation.readonly"],
|
|
4876
5820
|
"parameters": {}
|
|
4877
5821
|
},
|
|
4878
5822
|
"getWeatherHourly": {
|
|
4879
5823
|
"method": "get",
|
|
4880
5824
|
"path": "/forecast/hourly",
|
|
4881
5825
|
"private": false,
|
|
4882
|
-
"scopes": [
|
|
4883
|
-
"homey.geolocation.readonly"
|
|
4884
|
-
],
|
|
5826
|
+
"scopes": ["homey.geolocation.readonly"],
|
|
4885
5827
|
"parameters": {}
|
|
4886
5828
|
}
|
|
4887
5829
|
}
|
|
@@ -4895,9 +5837,7 @@
|
|
|
4895
5837
|
"method": "get",
|
|
4896
5838
|
"path": "/state",
|
|
4897
5839
|
"private": false,
|
|
4898
|
-
"scopes": [
|
|
4899
|
-
"homey.system.readonly"
|
|
4900
|
-
],
|
|
5840
|
+
"scopes": ["homey.system.readonly"],
|
|
4901
5841
|
"parameters": {}
|
|
4902
5842
|
}
|
|
4903
5843
|
}
|
|
@@ -4909,12 +5849,62 @@
|
|
|
4909
5849
|
"Zone": {
|
|
4910
5850
|
"id": "zone",
|
|
4911
5851
|
"schema": {
|
|
5852
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4912
5853
|
"type": "object",
|
|
4913
5854
|
"properties": {
|
|
4914
5855
|
"id": {
|
|
5856
|
+
"description": "The unique identifier of the zone.",
|
|
5857
|
+
"type": "string",
|
|
5858
|
+
"format": "uuid",
|
|
5859
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
|
|
5860
|
+
},
|
|
5861
|
+
"name": {
|
|
5862
|
+
"description": "The name of the zone.",
|
|
5863
|
+
"type": "string"
|
|
5864
|
+
},
|
|
5865
|
+
"parent": {
|
|
5866
|
+
"description": "The parent zone of the zone.",
|
|
5867
|
+
"anyOf": [
|
|
5868
|
+
{
|
|
5869
|
+
"type": "string"
|
|
5870
|
+
},
|
|
5871
|
+
{
|
|
5872
|
+
"type": "null"
|
|
5873
|
+
}
|
|
5874
|
+
]
|
|
5875
|
+
},
|
|
5876
|
+
"icon": {
|
|
5877
|
+
"description": "The icon of the zone.",
|
|
5878
|
+
"default": "default",
|
|
4915
5879
|
"type": "string"
|
|
5880
|
+
},
|
|
5881
|
+
"active": {
|
|
5882
|
+
"description": "Whether the zone is currently active.",
|
|
5883
|
+
"type": "boolean"
|
|
5884
|
+
},
|
|
5885
|
+
"activeOrigins": {
|
|
5886
|
+
"description": "The origins that are currently active in the zone.",
|
|
5887
|
+
"default": [],
|
|
5888
|
+
"type": "array",
|
|
5889
|
+
"items": {
|
|
5890
|
+
"type": "string"
|
|
5891
|
+
}
|
|
5892
|
+
},
|
|
5893
|
+
"activeLastUpdated": {
|
|
5894
|
+
"description": "The last time the active origins changed.",
|
|
5895
|
+
"default": null,
|
|
5896
|
+
"anyOf": [
|
|
5897
|
+
{
|
|
5898
|
+
"type": "string",
|
|
5899
|
+
"format": "date-time"
|
|
5900
|
+
},
|
|
5901
|
+
{
|
|
5902
|
+
"type": "null"
|
|
5903
|
+
}
|
|
5904
|
+
]
|
|
4916
5905
|
}
|
|
4917
|
-
}
|
|
5906
|
+
},
|
|
5907
|
+
"additionalProperties": false
|
|
4918
5908
|
}
|
|
4919
5909
|
}
|
|
4920
5910
|
},
|
|
@@ -4923,18 +5913,14 @@
|
|
|
4923
5913
|
"method": "get",
|
|
4924
5914
|
"path": "/state",
|
|
4925
5915
|
"private": false,
|
|
4926
|
-
"scopes": [
|
|
4927
|
-
"homey.system.readonly"
|
|
4928
|
-
],
|
|
5916
|
+
"scopes": ["homey.system.readonly"],
|
|
4929
5917
|
"parameters": {}
|
|
4930
5918
|
},
|
|
4931
5919
|
"getZones": {
|
|
4932
5920
|
"method": "get",
|
|
4933
5921
|
"path": "/zone",
|
|
4934
5922
|
"private": false,
|
|
4935
|
-
"scopes": [
|
|
4936
|
-
"homey.zone.readonly"
|
|
4937
|
-
],
|
|
5923
|
+
"scopes": ["homey.zone.readonly"],
|
|
4938
5924
|
"crud": {
|
|
4939
5925
|
"type": "getAll",
|
|
4940
5926
|
"item": "Zone"
|
|
@@ -4945,9 +5931,7 @@
|
|
|
4945
5931
|
"method": "get",
|
|
4946
5932
|
"path": "/zone/:id",
|
|
4947
5933
|
"private": false,
|
|
4948
|
-
"scopes": [
|
|
4949
|
-
"homey.zone.readonly"
|
|
4950
|
-
],
|
|
5934
|
+
"scopes": ["homey.zone.readonly"],
|
|
4951
5935
|
"crud": {
|
|
4952
5936
|
"type": "getOne",
|
|
4953
5937
|
"item": "Zone"
|
|
@@ -4964,9 +5948,7 @@
|
|
|
4964
5948
|
"method": "post",
|
|
4965
5949
|
"path": "/zone",
|
|
4966
5950
|
"private": false,
|
|
4967
|
-
"scopes": [
|
|
4968
|
-
"homey.zone"
|
|
4969
|
-
],
|
|
5951
|
+
"scopes": ["homey.zone"],
|
|
4970
5952
|
"crud": {
|
|
4971
5953
|
"type": "createOne",
|
|
4972
5954
|
"item": "Zone"
|
|
@@ -4998,9 +5980,7 @@
|
|
|
4998
5980
|
"method": "put",
|
|
4999
5981
|
"path": "/zone/:id",
|
|
5000
5982
|
"private": false,
|
|
5001
|
-
"scopes": [
|
|
5002
|
-
"homey.zone"
|
|
5003
|
-
],
|
|
5983
|
+
"scopes": ["homey.zone"],
|
|
5004
5984
|
"crud": {
|
|
5005
5985
|
"type": "updateOne",
|
|
5006
5986
|
"item": "Zone"
|
|
@@ -5034,9 +6014,7 @@
|
|
|
5034
6014
|
"method": "delete",
|
|
5035
6015
|
"path": "/zone/:id",
|
|
5036
6016
|
"private": false,
|
|
5037
|
-
"scopes": [
|
|
5038
|
-
"homey.zone"
|
|
5039
|
-
],
|
|
6017
|
+
"scopes": ["homey.zone"],
|
|
5040
6018
|
"crud": {
|
|
5041
6019
|
"type": "deleteOne",
|
|
5042
6020
|
"item": "Zone"
|
|
@@ -5059,16 +6037,12 @@
|
|
|
5059
6037
|
"getOptionRegionOverride": {
|
|
5060
6038
|
"method": "GET",
|
|
5061
6039
|
"path": "/option/regionOverride",
|
|
5062
|
-
"scopes": [
|
|
5063
|
-
"homey.system.readonly"
|
|
5064
|
-
]
|
|
6040
|
+
"scopes": ["homey.system.readonly"]
|
|
5065
6041
|
},
|
|
5066
6042
|
"setOptionRegionOverride": {
|
|
5067
6043
|
"method": "PUT",
|
|
5068
6044
|
"path": "/option/regionOverride",
|
|
5069
|
-
"scopes": [
|
|
5070
|
-
"homey.system"
|
|
5071
|
-
],
|
|
6045
|
+
"scopes": ["homey.system"],
|
|
5072
6046
|
"parameters": {
|
|
5073
6047
|
"value": {
|
|
5074
6048
|
"in": "body",
|
|
@@ -5079,26 +6053,20 @@
|
|
|
5079
6053
|
"unsetOptionRegionOverride": {
|
|
5080
6054
|
"method": "DELETE",
|
|
5081
6055
|
"path": "/option/regionOverride",
|
|
5082
|
-
"scopes": [
|
|
5083
|
-
"homey.system"
|
|
5084
|
-
]
|
|
6056
|
+
"scopes": ["homey.system"]
|
|
5085
6057
|
},
|
|
5086
6058
|
"getState": {
|
|
5087
6059
|
"method": "get",
|
|
5088
6060
|
"path": "/state",
|
|
5089
6061
|
"private": false,
|
|
5090
|
-
"scopes": [
|
|
5091
|
-
"homey.system.readonly"
|
|
5092
|
-
],
|
|
6062
|
+
"scopes": ["homey.system.readonly"],
|
|
5093
6063
|
"parameters": {}
|
|
5094
6064
|
},
|
|
5095
6065
|
"runCommand": {
|
|
5096
6066
|
"method": "post",
|
|
5097
6067
|
"path": "/command",
|
|
5098
6068
|
"private": false,
|
|
5099
|
-
"scopes": [
|
|
5100
|
-
"homey.system"
|
|
5101
|
-
],
|
|
6069
|
+
"scopes": ["homey.system"],
|
|
5102
6070
|
"parameters": {
|
|
5103
6071
|
"command": {
|
|
5104
6072
|
"in": "body",
|
|
@@ -5115,18 +6083,14 @@
|
|
|
5115
6083
|
"method": "get",
|
|
5116
6084
|
"path": "/log",
|
|
5117
6085
|
"private": false,
|
|
5118
|
-
"scopes": [
|
|
5119
|
-
"homey.system"
|
|
5120
|
-
],
|
|
6086
|
+
"scopes": ["homey.system"],
|
|
5121
6087
|
"parameters": {}
|
|
5122
6088
|
},
|
|
5123
6089
|
"setLogEnabled": {
|
|
5124
6090
|
"method": "put",
|
|
5125
6091
|
"path": "/log",
|
|
5126
6092
|
"private": false,
|
|
5127
|
-
"scopes": [
|
|
5128
|
-
"homey.system"
|
|
5129
|
-
],
|
|
6093
|
+
"scopes": ["homey.system"],
|
|
5130
6094
|
"parameters": {
|
|
5131
6095
|
"enabled": {
|
|
5132
6096
|
"in": "body",
|
|
@@ -5146,18 +6110,14 @@
|
|
|
5146
6110
|
"method": "get",
|
|
5147
6111
|
"path": "/state",
|
|
5148
6112
|
"private": false,
|
|
5149
|
-
"scopes": [
|
|
5150
|
-
"homey.system.readonly"
|
|
5151
|
-
],
|
|
6113
|
+
"scopes": ["homey.system.readonly"],
|
|
5152
6114
|
"parameters": {}
|
|
5153
6115
|
},
|
|
5154
6116
|
"runCommand": {
|
|
5155
6117
|
"method": "post",
|
|
5156
6118
|
"path": "/command",
|
|
5157
6119
|
"private": false,
|
|
5158
|
-
"scopes": [
|
|
5159
|
-
"homey.system"
|
|
5160
|
-
],
|
|
6120
|
+
"scopes": ["homey.system"],
|
|
5161
6121
|
"parameters": {
|
|
5162
6122
|
"command": {
|
|
5163
6123
|
"in": "body",
|
|
@@ -5174,18 +6134,14 @@
|
|
|
5174
6134
|
"method": "get",
|
|
5175
6135
|
"path": "/verify-firmware",
|
|
5176
6136
|
"private": true,
|
|
5177
|
-
"scopes": [
|
|
5178
|
-
"homey.system"
|
|
5179
|
-
],
|
|
6137
|
+
"scopes": ["homey.system"],
|
|
5180
6138
|
"parameters": {}
|
|
5181
6139
|
},
|
|
5182
6140
|
"flashFirmware": {
|
|
5183
6141
|
"method": "put",
|
|
5184
6142
|
"path": "/flash-firmware",
|
|
5185
6143
|
"private": true,
|
|
5186
|
-
"scopes": [
|
|
5187
|
-
"homey.system"
|
|
5188
|
-
],
|
|
6144
|
+
"scopes": ["homey.system"],
|
|
5189
6145
|
"parameters": {
|
|
5190
6146
|
"keepNV": {
|
|
5191
6147
|
"in": "body",
|
|
@@ -5198,21 +6154,17 @@
|
|
|
5198
6154
|
"method": "get",
|
|
5199
6155
|
"path": "/get-last-flash-result",
|
|
5200
6156
|
"private": true,
|
|
5201
|
-
"scopes": [
|
|
5202
|
-
"homey.system"
|
|
5203
|
-
],
|
|
6157
|
+
"scopes": ["homey.system"],
|
|
5204
6158
|
"parameters": {}
|
|
5205
6159
|
},
|
|
5206
6160
|
"eraseNV": {
|
|
5207
6161
|
"method": "put",
|
|
5208
6162
|
"path": "/erase-nv",
|
|
5209
6163
|
"private": true,
|
|
5210
|
-
"scopes": [
|
|
5211
|
-
"homey.system"
|
|
5212
|
-
],
|
|
6164
|
+
"scopes": ["homey.system"],
|
|
5213
6165
|
"parameters": {}
|
|
5214
6166
|
}
|
|
5215
6167
|
}
|
|
5216
6168
|
}
|
|
5217
6169
|
}
|
|
5218
|
-
}
|
|
6170
|
+
}
|