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