@nebulahome/integration-sdk 0.0.0-stage → 1.1.0

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.
@@ -0,0 +1,1480 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string",
7
+ "description": "The JSON Schema an editor checks the file with."
8
+ },
9
+ "discovery": {
10
+ "type": "object",
11
+ "properties": {
12
+ "scan": {
13
+ "default": {},
14
+ "type": "object",
15
+ "propertyNames": {
16
+ "type": "string"
17
+ },
18
+ "additionalProperties": {
19
+ "$ref": "#/$defs/__schema0"
20
+ }
21
+ },
22
+ "probe": {
23
+ "type": "object",
24
+ "properties": {
25
+ "op": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 32
29
+ },
30
+ "args": {
31
+ "default": {},
32
+ "type": "object",
33
+ "propertyNames": {
34
+ "type": "string"
35
+ },
36
+ "additionalProperties": {
37
+ "$ref": "#/$defs/__schema1"
38
+ }
39
+ }
40
+ },
41
+ "required": [
42
+ "op"
43
+ ],
44
+ "additionalProperties": false
45
+ },
46
+ "claim": {
47
+ "minItems": 1,
48
+ "type": "array",
49
+ "items": {
50
+ "anyOf": [
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "path": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 256,
58
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
59
+ },
60
+ "equals": {
61
+ "type": [
62
+ "string",
63
+ "number",
64
+ "boolean"
65
+ ]
66
+ }
67
+ },
68
+ "required": [
69
+ "path",
70
+ "equals"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ {
75
+ "type": "object",
76
+ "properties": {
77
+ "path": {
78
+ "type": "string",
79
+ "minLength": 1,
80
+ "maxLength": 256,
81
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
82
+ },
83
+ "exists": {
84
+ "type": "boolean",
85
+ "const": true
86
+ }
87
+ },
88
+ "required": [
89
+ "path",
90
+ "exists"
91
+ ],
92
+ "additionalProperties": false
93
+ },
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "path": {
98
+ "type": "string",
99
+ "minLength": 1,
100
+ "maxLength": 256,
101
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
102
+ },
103
+ "oneOf": {
104
+ "minItems": 1,
105
+ "maxItems": 64,
106
+ "type": "array",
107
+ "items": {
108
+ "type": [
109
+ "string",
110
+ "number",
111
+ "boolean"
112
+ ]
113
+ }
114
+ }
115
+ },
116
+ "required": [
117
+ "path",
118
+ "oneOf"
119
+ ],
120
+ "additionalProperties": false
121
+ },
122
+ {
123
+ "type": "object",
124
+ "properties": {
125
+ "path": {
126
+ "type": "string",
127
+ "minLength": 1,
128
+ "maxLength": 256,
129
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
130
+ },
131
+ "startsWith": {
132
+ "type": "string",
133
+ "minLength": 1,
134
+ "maxLength": 64
135
+ }
136
+ },
137
+ "required": [
138
+ "path",
139
+ "startsWith"
140
+ ],
141
+ "additionalProperties": false
142
+ },
143
+ {
144
+ "type": "object",
145
+ "properties": {
146
+ "path": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 256,
150
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
151
+ },
152
+ "endsWith": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 64
156
+ }
157
+ },
158
+ "required": [
159
+ "path",
160
+ "endsWith"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ {
165
+ "type": "object",
166
+ "properties": {
167
+ "path": {
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 256,
171
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
172
+ },
173
+ "contains": {
174
+ "type": [
175
+ "string",
176
+ "number",
177
+ "boolean"
178
+ ]
179
+ }
180
+ },
181
+ "required": [
182
+ "path",
183
+ "contains"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "path": {
191
+ "type": "string",
192
+ "minLength": 1,
193
+ "maxLength": 256,
194
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
195
+ },
196
+ "min": {
197
+ "type": "number"
198
+ },
199
+ "max": {
200
+ "type": "number"
201
+ }
202
+ },
203
+ "required": [
204
+ "path"
205
+ ],
206
+ "additionalProperties": false
207
+ }
208
+ ]
209
+ }
210
+ },
211
+ "identity": {
212
+ "type": "object",
213
+ "properties": {
214
+ "externalId": {
215
+ "type": "string",
216
+ "minLength": 1,
217
+ "maxLength": 256,
218
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
219
+ },
220
+ "name": {
221
+ "type": "string",
222
+ "minLength": 1,
223
+ "maxLength": 256,
224
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
225
+ },
226
+ "manufacturer": {
227
+ "type": "string",
228
+ "minLength": 1,
229
+ "maxLength": 256,
230
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
231
+ },
232
+ "model": {
233
+ "type": "string",
234
+ "minLength": 1,
235
+ "maxLength": 256,
236
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
237
+ },
238
+ "swVersion": {
239
+ "type": "string",
240
+ "minLength": 1,
241
+ "maxLength": 256,
242
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
243
+ },
244
+ "hwVersion": {
245
+ "type": "string",
246
+ "minLength": 1,
247
+ "maxLength": 256,
248
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
249
+ }
250
+ },
251
+ "required": [
252
+ "externalId"
253
+ ],
254
+ "additionalProperties": false
255
+ }
256
+ },
257
+ "required": [
258
+ "claim",
259
+ "identity"
260
+ ],
261
+ "additionalProperties": false
262
+ },
263
+ "subscriptions": {
264
+ "default": [],
265
+ "type": "array",
266
+ "items": {
267
+ "type": "object",
268
+ "properties": {
269
+ "op": {
270
+ "type": "string",
271
+ "minLength": 1,
272
+ "maxLength": 32
273
+ },
274
+ "args": {
275
+ "default": {},
276
+ "type": "object",
277
+ "propertyNames": {
278
+ "type": "string"
279
+ },
280
+ "additionalProperties": {
281
+ "$ref": "#/$defs/__schema1"
282
+ }
283
+ }
284
+ },
285
+ "required": [
286
+ "op"
287
+ ],
288
+ "additionalProperties": false
289
+ }
290
+ },
291
+ "device": {
292
+ "type": "object",
293
+ "properties": {
294
+ "swVersion": {
295
+ "anyOf": [
296
+ {
297
+ "type": "string",
298
+ "minLength": 1,
299
+ "maxLength": 256,
300
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
301
+ },
302
+ {
303
+ "minItems": 1,
304
+ "maxItems": 4,
305
+ "type": "array",
306
+ "items": {
307
+ "type": "string",
308
+ "minLength": 1,
309
+ "maxLength": 256,
310
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
311
+ }
312
+ }
313
+ ]
314
+ },
315
+ "hwVersion": {
316
+ "anyOf": [
317
+ {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
322
+ },
323
+ {
324
+ "minItems": 1,
325
+ "maxItems": 4,
326
+ "type": "array",
327
+ "items": {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "maxLength": 256,
331
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
332
+ }
333
+ }
334
+ ]
335
+ }
336
+ },
337
+ "additionalProperties": false
338
+ },
339
+ "entities": {
340
+ "minItems": 1,
341
+ "type": "array",
342
+ "items": {
343
+ "type": "object",
344
+ "properties": {
345
+ "domain": {
346
+ "type": "string",
347
+ "enum": [
348
+ "light",
349
+ "switch",
350
+ "sensor",
351
+ "binary_sensor",
352
+ "cover",
353
+ "lock",
354
+ "climate",
355
+ "media_player",
356
+ "camera",
357
+ "button",
358
+ "update",
359
+ "lawn_mower",
360
+ "select",
361
+ "number",
362
+ "vacuum",
363
+ "image",
364
+ "custom",
365
+ "alias"
366
+ ]
367
+ },
368
+ "objectId": {
369
+ "type": "string",
370
+ "pattern": "^[a-z][a-z0-9_]{0,31}$"
371
+ },
372
+ "name": {
373
+ "type": "string",
374
+ "minLength": 1,
375
+ "maxLength": 128
376
+ },
377
+ "icon": {
378
+ "type": "string",
379
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
380
+ },
381
+ "capabilities": {
382
+ "type": "object",
383
+ "propertyNames": {
384
+ "type": "string",
385
+ "enum": [
386
+ "on_off",
387
+ "level",
388
+ "color_hs",
389
+ "color_temp",
390
+ "cover",
391
+ "lock",
392
+ "thermostat",
393
+ "sensor_numeric",
394
+ "sensor_binary",
395
+ "sensor_text",
396
+ "media_player",
397
+ "camera",
398
+ "button",
399
+ "update",
400
+ "lawn_mower",
401
+ "select",
402
+ "number",
403
+ "vacuum",
404
+ "image",
405
+ "custom"
406
+ ]
407
+ },
408
+ "additionalProperties": {
409
+ "type": "object",
410
+ "propertyNames": {
411
+ "type": "string"
412
+ },
413
+ "additionalProperties": {
414
+ "$ref": "#/$defs/__schema0"
415
+ }
416
+ }
417
+ },
418
+ "state": {
419
+ "type": "object",
420
+ "propertyNames": {
421
+ "type": "string",
422
+ "enum": [
423
+ "on_off",
424
+ "level",
425
+ "color_hs",
426
+ "color_temp",
427
+ "cover",
428
+ "lock",
429
+ "thermostat",
430
+ "sensor_numeric",
431
+ "sensor_binary",
432
+ "sensor_text",
433
+ "media_player",
434
+ "camera",
435
+ "button",
436
+ "update",
437
+ "lawn_mower",
438
+ "select",
439
+ "number",
440
+ "vacuum",
441
+ "image",
442
+ "custom"
443
+ ]
444
+ },
445
+ "additionalProperties": {
446
+ "type": "object",
447
+ "propertyNames": {
448
+ "type": "string"
449
+ },
450
+ "additionalProperties": {
451
+ "anyOf": [
452
+ {
453
+ "anyOf": [
454
+ {
455
+ "type": "string",
456
+ "minLength": 1,
457
+ "maxLength": 256,
458
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
459
+ },
460
+ {
461
+ "type": "object",
462
+ "properties": {
463
+ "path": {
464
+ "type": "string",
465
+ "minLength": 1,
466
+ "maxLength": 256,
467
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
468
+ },
469
+ "bits": {
470
+ "type": "array",
471
+ "prefixItems": [
472
+ {
473
+ "type": "integer",
474
+ "minimum": 0,
475
+ "maximum": 31
476
+ },
477
+ {
478
+ "type": "integer",
479
+ "minimum": 1,
480
+ "maximum": 32
481
+ }
482
+ ],
483
+ "items": false,
484
+ "minItems": 2,
485
+ "maxItems": 2
486
+ },
487
+ "base": {
488
+ "anyOf": [
489
+ {
490
+ "type": "number",
491
+ "const": 10
492
+ },
493
+ {
494
+ "type": "number",
495
+ "const": 16
496
+ }
497
+ ]
498
+ },
499
+ "equals": {
500
+ "type": [
501
+ "string",
502
+ "number",
503
+ "boolean"
504
+ ]
505
+ }
506
+ },
507
+ "required": [
508
+ "path",
509
+ "equals"
510
+ ],
511
+ "additionalProperties": false
512
+ },
513
+ {
514
+ "type": "object",
515
+ "properties": {
516
+ "path": {
517
+ "type": "string",
518
+ "minLength": 1,
519
+ "maxLength": 256,
520
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
521
+ },
522
+ "present": {
523
+ "type": "boolean",
524
+ "const": true
525
+ }
526
+ },
527
+ "required": [
528
+ "path",
529
+ "present"
530
+ ],
531
+ "additionalProperties": false
532
+ },
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "path": {
537
+ "type": "string",
538
+ "minLength": 1,
539
+ "maxLength": 256,
540
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
541
+ },
542
+ "bits": {
543
+ "type": "array",
544
+ "prefixItems": [
545
+ {
546
+ "type": "integer",
547
+ "minimum": 0,
548
+ "maximum": 31
549
+ },
550
+ {
551
+ "type": "integer",
552
+ "minimum": 1,
553
+ "maximum": 32
554
+ }
555
+ ],
556
+ "items": false,
557
+ "minItems": 2,
558
+ "maxItems": 2
559
+ },
560
+ "base": {
561
+ "anyOf": [
562
+ {
563
+ "type": "number",
564
+ "const": 10
565
+ },
566
+ {
567
+ "type": "number",
568
+ "const": 16
569
+ }
570
+ ]
571
+ },
572
+ "map": {
573
+ "type": "object",
574
+ "propertyNames": {
575
+ "type": "string"
576
+ },
577
+ "additionalProperties": {
578
+ "type": [
579
+ "string",
580
+ "number",
581
+ "boolean"
582
+ ]
583
+ }
584
+ },
585
+ "default": {
586
+ "type": [
587
+ "string",
588
+ "number",
589
+ "boolean"
590
+ ]
591
+ }
592
+ },
593
+ "required": [
594
+ "path",
595
+ "map"
596
+ ],
597
+ "additionalProperties": false
598
+ },
599
+ {
600
+ "type": "object",
601
+ "properties": {
602
+ "path": {
603
+ "type": "string",
604
+ "minLength": 1,
605
+ "maxLength": 256,
606
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
607
+ },
608
+ "bits": {
609
+ "type": "array",
610
+ "prefixItems": [
611
+ {
612
+ "type": "integer",
613
+ "minimum": 0,
614
+ "maximum": 31
615
+ },
616
+ {
617
+ "type": "integer",
618
+ "minimum": 1,
619
+ "maximum": 32
620
+ }
621
+ ],
622
+ "items": false,
623
+ "minItems": 2,
624
+ "maxItems": 2
625
+ },
626
+ "base": {
627
+ "anyOf": [
628
+ {
629
+ "type": "number",
630
+ "const": 10
631
+ },
632
+ {
633
+ "type": "number",
634
+ "const": 16
635
+ }
636
+ ]
637
+ }
638
+ },
639
+ "required": [
640
+ "path"
641
+ ],
642
+ "additionalProperties": false
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "minItems": 2,
648
+ "maxItems": 4,
649
+ "type": "array",
650
+ "items": {
651
+ "anyOf": [
652
+ {
653
+ "type": "string",
654
+ "minLength": 1,
655
+ "maxLength": 256,
656
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
657
+ },
658
+ {
659
+ "type": "object",
660
+ "properties": {
661
+ "path": {
662
+ "type": "string",
663
+ "minLength": 1,
664
+ "maxLength": 256,
665
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
666
+ },
667
+ "bits": {
668
+ "type": "array",
669
+ "prefixItems": [
670
+ {
671
+ "type": "integer",
672
+ "minimum": 0,
673
+ "maximum": 31
674
+ },
675
+ {
676
+ "type": "integer",
677
+ "minimum": 1,
678
+ "maximum": 32
679
+ }
680
+ ],
681
+ "items": false,
682
+ "minItems": 2,
683
+ "maxItems": 2
684
+ },
685
+ "base": {
686
+ "anyOf": [
687
+ {
688
+ "type": "number",
689
+ "const": 10
690
+ },
691
+ {
692
+ "type": "number",
693
+ "const": 16
694
+ }
695
+ ]
696
+ },
697
+ "equals": {
698
+ "type": [
699
+ "string",
700
+ "number",
701
+ "boolean"
702
+ ]
703
+ }
704
+ },
705
+ "required": [
706
+ "path",
707
+ "equals"
708
+ ],
709
+ "additionalProperties": false
710
+ },
711
+ {
712
+ "type": "object",
713
+ "properties": {
714
+ "path": {
715
+ "type": "string",
716
+ "minLength": 1,
717
+ "maxLength": 256,
718
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
719
+ },
720
+ "present": {
721
+ "type": "boolean",
722
+ "const": true
723
+ }
724
+ },
725
+ "required": [
726
+ "path",
727
+ "present"
728
+ ],
729
+ "additionalProperties": false
730
+ },
731
+ {
732
+ "type": "object",
733
+ "properties": {
734
+ "path": {
735
+ "type": "string",
736
+ "minLength": 1,
737
+ "maxLength": 256,
738
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
739
+ },
740
+ "bits": {
741
+ "type": "array",
742
+ "prefixItems": [
743
+ {
744
+ "type": "integer",
745
+ "minimum": 0,
746
+ "maximum": 31
747
+ },
748
+ {
749
+ "type": "integer",
750
+ "minimum": 1,
751
+ "maximum": 32
752
+ }
753
+ ],
754
+ "items": false,
755
+ "minItems": 2,
756
+ "maxItems": 2
757
+ },
758
+ "base": {
759
+ "anyOf": [
760
+ {
761
+ "type": "number",
762
+ "const": 10
763
+ },
764
+ {
765
+ "type": "number",
766
+ "const": 16
767
+ }
768
+ ]
769
+ },
770
+ "map": {
771
+ "type": "object",
772
+ "propertyNames": {
773
+ "type": "string"
774
+ },
775
+ "additionalProperties": {
776
+ "type": [
777
+ "string",
778
+ "number",
779
+ "boolean"
780
+ ]
781
+ }
782
+ },
783
+ "default": {
784
+ "type": [
785
+ "string",
786
+ "number",
787
+ "boolean"
788
+ ]
789
+ }
790
+ },
791
+ "required": [
792
+ "path",
793
+ "map"
794
+ ],
795
+ "additionalProperties": false
796
+ },
797
+ {
798
+ "type": "object",
799
+ "properties": {
800
+ "path": {
801
+ "type": "string",
802
+ "minLength": 1,
803
+ "maxLength": 256,
804
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
805
+ },
806
+ "bits": {
807
+ "type": "array",
808
+ "prefixItems": [
809
+ {
810
+ "type": "integer",
811
+ "minimum": 0,
812
+ "maximum": 31
813
+ },
814
+ {
815
+ "type": "integer",
816
+ "minimum": 1,
817
+ "maximum": 32
818
+ }
819
+ ],
820
+ "items": false,
821
+ "minItems": 2,
822
+ "maxItems": 2
823
+ },
824
+ "base": {
825
+ "anyOf": [
826
+ {
827
+ "type": "number",
828
+ "const": 10
829
+ },
830
+ {
831
+ "type": "number",
832
+ "const": 16
833
+ }
834
+ ]
835
+ }
836
+ },
837
+ "required": [
838
+ "path"
839
+ ],
840
+ "additionalProperties": false
841
+ }
842
+ ]
843
+ }
844
+ }
845
+ ]
846
+ }
847
+ }
848
+ },
849
+ "commands": {
850
+ "default": {},
851
+ "type": "object",
852
+ "propertyNames": {
853
+ "type": "string",
854
+ "pattern": "^(?:on_off|level|color_hs|color_temp|cover|lock|thermostat|sensor_numeric|sensor_binary|sensor_text|media_player|camera|button|update|lawn_mower|select|number|vacuum|image|custom)[.][a-z][a-z0-9_]*$"
855
+ },
856
+ "additionalProperties": {
857
+ "type": "object",
858
+ "properties": {
859
+ "op": {
860
+ "type": "string",
861
+ "minLength": 1,
862
+ "maxLength": 32
863
+ },
864
+ "args": {
865
+ "default": {},
866
+ "type": "object",
867
+ "propertyNames": {
868
+ "type": "string"
869
+ },
870
+ "additionalProperties": {
871
+ "$ref": "#/$defs/__schema1"
872
+ }
873
+ }
874
+ },
875
+ "required": [
876
+ "op"
877
+ ],
878
+ "additionalProperties": false
879
+ }
880
+ },
881
+ "attributes": {
882
+ "type": "object",
883
+ "propertyNames": {
884
+ "type": "string",
885
+ "pattern": "^[a-z][a-zA-Z0-9]{0,31}$"
886
+ },
887
+ "additionalProperties": {
888
+ "anyOf": [
889
+ {
890
+ "anyOf": [
891
+ {
892
+ "type": "string",
893
+ "minLength": 1,
894
+ "maxLength": 256,
895
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
896
+ },
897
+ {
898
+ "type": "object",
899
+ "properties": {
900
+ "path": {
901
+ "type": "string",
902
+ "minLength": 1,
903
+ "maxLength": 256,
904
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
905
+ },
906
+ "bits": {
907
+ "type": "array",
908
+ "prefixItems": [
909
+ {
910
+ "type": "integer",
911
+ "minimum": 0,
912
+ "maximum": 31
913
+ },
914
+ {
915
+ "type": "integer",
916
+ "minimum": 1,
917
+ "maximum": 32
918
+ }
919
+ ],
920
+ "items": false,
921
+ "minItems": 2,
922
+ "maxItems": 2
923
+ },
924
+ "base": {
925
+ "anyOf": [
926
+ {
927
+ "type": "number",
928
+ "const": 10
929
+ },
930
+ {
931
+ "type": "number",
932
+ "const": 16
933
+ }
934
+ ]
935
+ },
936
+ "equals": {
937
+ "type": [
938
+ "string",
939
+ "number",
940
+ "boolean"
941
+ ]
942
+ }
943
+ },
944
+ "required": [
945
+ "path",
946
+ "equals"
947
+ ],
948
+ "additionalProperties": false
949
+ },
950
+ {
951
+ "type": "object",
952
+ "properties": {
953
+ "path": {
954
+ "type": "string",
955
+ "minLength": 1,
956
+ "maxLength": 256,
957
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
958
+ },
959
+ "present": {
960
+ "type": "boolean",
961
+ "const": true
962
+ }
963
+ },
964
+ "required": [
965
+ "path",
966
+ "present"
967
+ ],
968
+ "additionalProperties": false
969
+ },
970
+ {
971
+ "type": "object",
972
+ "properties": {
973
+ "path": {
974
+ "type": "string",
975
+ "minLength": 1,
976
+ "maxLength": 256,
977
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
978
+ },
979
+ "bits": {
980
+ "type": "array",
981
+ "prefixItems": [
982
+ {
983
+ "type": "integer",
984
+ "minimum": 0,
985
+ "maximum": 31
986
+ },
987
+ {
988
+ "type": "integer",
989
+ "minimum": 1,
990
+ "maximum": 32
991
+ }
992
+ ],
993
+ "items": false,
994
+ "minItems": 2,
995
+ "maxItems": 2
996
+ },
997
+ "base": {
998
+ "anyOf": [
999
+ {
1000
+ "type": "number",
1001
+ "const": 10
1002
+ },
1003
+ {
1004
+ "type": "number",
1005
+ "const": 16
1006
+ }
1007
+ ]
1008
+ },
1009
+ "map": {
1010
+ "type": "object",
1011
+ "propertyNames": {
1012
+ "type": "string"
1013
+ },
1014
+ "additionalProperties": {
1015
+ "type": [
1016
+ "string",
1017
+ "number",
1018
+ "boolean"
1019
+ ]
1020
+ }
1021
+ },
1022
+ "default": {
1023
+ "type": [
1024
+ "string",
1025
+ "number",
1026
+ "boolean"
1027
+ ]
1028
+ }
1029
+ },
1030
+ "required": [
1031
+ "path",
1032
+ "map"
1033
+ ],
1034
+ "additionalProperties": false
1035
+ },
1036
+ {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "path": {
1040
+ "type": "string",
1041
+ "minLength": 1,
1042
+ "maxLength": 256,
1043
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1044
+ },
1045
+ "bits": {
1046
+ "type": "array",
1047
+ "prefixItems": [
1048
+ {
1049
+ "type": "integer",
1050
+ "minimum": 0,
1051
+ "maximum": 31
1052
+ },
1053
+ {
1054
+ "type": "integer",
1055
+ "minimum": 1,
1056
+ "maximum": 32
1057
+ }
1058
+ ],
1059
+ "items": false,
1060
+ "minItems": 2,
1061
+ "maxItems": 2
1062
+ },
1063
+ "base": {
1064
+ "anyOf": [
1065
+ {
1066
+ "type": "number",
1067
+ "const": 10
1068
+ },
1069
+ {
1070
+ "type": "number",
1071
+ "const": 16
1072
+ }
1073
+ ]
1074
+ }
1075
+ },
1076
+ "required": [
1077
+ "path"
1078
+ ],
1079
+ "additionalProperties": false
1080
+ }
1081
+ ]
1082
+ },
1083
+ {
1084
+ "minItems": 2,
1085
+ "maxItems": 4,
1086
+ "type": "array",
1087
+ "items": {
1088
+ "anyOf": [
1089
+ {
1090
+ "type": "string",
1091
+ "minLength": 1,
1092
+ "maxLength": 256,
1093
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1094
+ },
1095
+ {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "path": {
1099
+ "type": "string",
1100
+ "minLength": 1,
1101
+ "maxLength": 256,
1102
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1103
+ },
1104
+ "bits": {
1105
+ "type": "array",
1106
+ "prefixItems": [
1107
+ {
1108
+ "type": "integer",
1109
+ "minimum": 0,
1110
+ "maximum": 31
1111
+ },
1112
+ {
1113
+ "type": "integer",
1114
+ "minimum": 1,
1115
+ "maximum": 32
1116
+ }
1117
+ ],
1118
+ "items": false,
1119
+ "minItems": 2,
1120
+ "maxItems": 2
1121
+ },
1122
+ "base": {
1123
+ "anyOf": [
1124
+ {
1125
+ "type": "number",
1126
+ "const": 10
1127
+ },
1128
+ {
1129
+ "type": "number",
1130
+ "const": 16
1131
+ }
1132
+ ]
1133
+ },
1134
+ "equals": {
1135
+ "type": [
1136
+ "string",
1137
+ "number",
1138
+ "boolean"
1139
+ ]
1140
+ }
1141
+ },
1142
+ "required": [
1143
+ "path",
1144
+ "equals"
1145
+ ],
1146
+ "additionalProperties": false
1147
+ },
1148
+ {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "path": {
1152
+ "type": "string",
1153
+ "minLength": 1,
1154
+ "maxLength": 256,
1155
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1156
+ },
1157
+ "present": {
1158
+ "type": "boolean",
1159
+ "const": true
1160
+ }
1161
+ },
1162
+ "required": [
1163
+ "path",
1164
+ "present"
1165
+ ],
1166
+ "additionalProperties": false
1167
+ },
1168
+ {
1169
+ "type": "object",
1170
+ "properties": {
1171
+ "path": {
1172
+ "type": "string",
1173
+ "minLength": 1,
1174
+ "maxLength": 256,
1175
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1176
+ },
1177
+ "bits": {
1178
+ "type": "array",
1179
+ "prefixItems": [
1180
+ {
1181
+ "type": "integer",
1182
+ "minimum": 0,
1183
+ "maximum": 31
1184
+ },
1185
+ {
1186
+ "type": "integer",
1187
+ "minimum": 1,
1188
+ "maximum": 32
1189
+ }
1190
+ ],
1191
+ "items": false,
1192
+ "minItems": 2,
1193
+ "maxItems": 2
1194
+ },
1195
+ "base": {
1196
+ "anyOf": [
1197
+ {
1198
+ "type": "number",
1199
+ "const": 10
1200
+ },
1201
+ {
1202
+ "type": "number",
1203
+ "const": 16
1204
+ }
1205
+ ]
1206
+ },
1207
+ "map": {
1208
+ "type": "object",
1209
+ "propertyNames": {
1210
+ "type": "string"
1211
+ },
1212
+ "additionalProperties": {
1213
+ "type": [
1214
+ "string",
1215
+ "number",
1216
+ "boolean"
1217
+ ]
1218
+ }
1219
+ },
1220
+ "default": {
1221
+ "type": [
1222
+ "string",
1223
+ "number",
1224
+ "boolean"
1225
+ ]
1226
+ }
1227
+ },
1228
+ "required": [
1229
+ "path",
1230
+ "map"
1231
+ ],
1232
+ "additionalProperties": false
1233
+ },
1234
+ {
1235
+ "type": "object",
1236
+ "properties": {
1237
+ "path": {
1238
+ "type": "string",
1239
+ "minLength": 1,
1240
+ "maxLength": 256,
1241
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1242
+ },
1243
+ "bits": {
1244
+ "type": "array",
1245
+ "prefixItems": [
1246
+ {
1247
+ "type": "integer",
1248
+ "minimum": 0,
1249
+ "maximum": 31
1250
+ },
1251
+ {
1252
+ "type": "integer",
1253
+ "minimum": 1,
1254
+ "maximum": 32
1255
+ }
1256
+ ],
1257
+ "items": false,
1258
+ "minItems": 2,
1259
+ "maxItems": 2
1260
+ },
1261
+ "base": {
1262
+ "anyOf": [
1263
+ {
1264
+ "type": "number",
1265
+ "const": 10
1266
+ },
1267
+ {
1268
+ "type": "number",
1269
+ "const": 16
1270
+ }
1271
+ ]
1272
+ }
1273
+ },
1274
+ "required": [
1275
+ "path"
1276
+ ],
1277
+ "additionalProperties": false
1278
+ }
1279
+ ]
1280
+ }
1281
+ }
1282
+ ]
1283
+ }
1284
+ },
1285
+ "unitOfMeasurement": {
1286
+ "type": "string",
1287
+ "maxLength": 32
1288
+ },
1289
+ "deviceClass": {
1290
+ "type": "string",
1291
+ "maxLength": 64
1292
+ },
1293
+ "stateClass": {
1294
+ "type": "string",
1295
+ "enum": [
1296
+ "measurement",
1297
+ "total",
1298
+ "total_increasing"
1299
+ ]
1300
+ },
1301
+ "displayPrecision": {
1302
+ "type": "integer",
1303
+ "minimum": 0,
1304
+ "maximum": 6
1305
+ },
1306
+ "stream": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "source": {
1310
+ "type": "string",
1311
+ "pattern": "^[a-z][a-z0-9-]{1,63}\\/[a-z][a-z0-9-]{0,63}$"
1312
+ },
1313
+ "args": {
1314
+ "default": {},
1315
+ "type": "object",
1316
+ "propertyNames": {
1317
+ "type": "string"
1318
+ },
1319
+ "additionalProperties": {
1320
+ "$ref": "#/$defs/__schema0"
1321
+ }
1322
+ }
1323
+ },
1324
+ "required": [
1325
+ "source"
1326
+ ],
1327
+ "additionalProperties": false
1328
+ },
1329
+ "image": {
1330
+ "type": "object",
1331
+ "properties": {
1332
+ "path": {
1333
+ "type": "string",
1334
+ "minLength": 1,
1335
+ "maxLength": 256,
1336
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1337
+ },
1338
+ "contentType": {
1339
+ "type": "string",
1340
+ "enum": [
1341
+ "image/svg+xml",
1342
+ "image/png",
1343
+ "image/jpeg"
1344
+ ]
1345
+ },
1346
+ "encoding": {
1347
+ "default": "utf8",
1348
+ "type": "string",
1349
+ "enum": [
1350
+ "utf8",
1351
+ "base64"
1352
+ ]
1353
+ },
1354
+ "minIntervalMs": {
1355
+ "default": 2000,
1356
+ "type": "integer",
1357
+ "minimum": 0,
1358
+ "maximum": 600000
1359
+ }
1360
+ },
1361
+ "required": [
1362
+ "path",
1363
+ "contentType"
1364
+ ],
1365
+ "additionalProperties": false
1366
+ }
1367
+ },
1368
+ "required": [
1369
+ "domain",
1370
+ "capabilities",
1371
+ "state"
1372
+ ],
1373
+ "additionalProperties": false
1374
+ }
1375
+ }
1376
+ },
1377
+ "required": [
1378
+ "discovery",
1379
+ "entities"
1380
+ ],
1381
+ "additionalProperties": false,
1382
+ "$defs": {
1383
+ "__schema0": {
1384
+ "anyOf": [
1385
+ {
1386
+ "type": "string"
1387
+ },
1388
+ {
1389
+ "type": "number"
1390
+ },
1391
+ {
1392
+ "type": "boolean"
1393
+ },
1394
+ {
1395
+ "type": "null"
1396
+ },
1397
+ {
1398
+ "type": "array",
1399
+ "items": {
1400
+ "$ref": "#/$defs/__schema0"
1401
+ }
1402
+ },
1403
+ {
1404
+ "type": "object",
1405
+ "propertyNames": {
1406
+ "type": "string"
1407
+ },
1408
+ "additionalProperties": {
1409
+ "$ref": "#/$defs/__schema0"
1410
+ }
1411
+ }
1412
+ ]
1413
+ },
1414
+ "__schema1": {
1415
+ "anyOf": [
1416
+ {
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "$": {
1420
+ "type": "string",
1421
+ "minLength": 1,
1422
+ "maxLength": 256,
1423
+ "pattern": "^(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')(?:\\.(?:[A-Za-z_][A-Za-z0-9_]*|'[^']+')|\\[[0-9]+\\])*$"
1424
+ },
1425
+ "scale": {
1426
+ "type": "number",
1427
+ "exclusiveMinimum": 0
1428
+ },
1429
+ "decimals": {
1430
+ "type": "integer",
1431
+ "minimum": 0,
1432
+ "maximum": 6
1433
+ },
1434
+ "min": {
1435
+ "type": "number"
1436
+ },
1437
+ "max": {
1438
+ "type": "number"
1439
+ },
1440
+ "optional": {
1441
+ "type": "boolean"
1442
+ }
1443
+ },
1444
+ "required": [
1445
+ "$"
1446
+ ],
1447
+ "additionalProperties": false
1448
+ },
1449
+ {
1450
+ "type": "string"
1451
+ },
1452
+ {
1453
+ "type": "number"
1454
+ },
1455
+ {
1456
+ "type": "boolean"
1457
+ },
1458
+ {
1459
+ "type": "null"
1460
+ },
1461
+ {
1462
+ "type": "array",
1463
+ "items": {
1464
+ "$ref": "#/$defs/__schema1"
1465
+ }
1466
+ },
1467
+ {
1468
+ "type": "object",
1469
+ "propertyNames": {
1470
+ "type": "string"
1471
+ },
1472
+ "additionalProperties": {
1473
+ "$ref": "#/$defs/__schema1"
1474
+ }
1475
+ }
1476
+ ]
1477
+ }
1478
+ },
1479
+ "title": "NebulaHome integration: profile.json"
1480
+ }