node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.10

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.
Files changed (125) hide show
  1. package/build/lib/HAPHostNode.js +185 -148
  2. package/build/lib/HAPServiceNode.js +200 -177
  3. package/build/lib/HAPServiceNode2.js +208 -177
  4. package/build/lib/NRCHKBError.js +23 -2
  5. package/build/lib/PairingQRCode.js +62 -0
  6. package/build/lib/Storage.js +152 -90
  7. package/build/lib/api.js +654 -291
  8. package/build/lib/camera/CameraControl.js +125 -0
  9. package/build/lib/camera/CameraDelegate.js +507 -0
  10. package/build/lib/camera/MP4StreamingServer.js +159 -0
  11. package/build/lib/hap/HAPCharacteristic.js +25 -4
  12. package/build/lib/hap/HAPService.js +25 -4
  13. package/build/lib/hap/eve-app/EveCharacteristics.js +124 -81
  14. package/build/lib/hap/eve-app/EveServices.js +50 -17
  15. package/build/lib/hap/hap-nodejs.js +32 -0
  16. package/build/lib/migration/HomeKitService2Migration.js +34 -0
  17. package/build/lib/migration/NodeMigration.js +75 -0
  18. package/build/lib/types/AccessoryInformationType.js +15 -1
  19. package/build/lib/types/CameraConfigType.js +15 -1
  20. package/build/lib/types/CustomCharacteristicType.js +15 -1
  21. package/build/lib/types/HAPHostConfigType.js +15 -1
  22. package/build/lib/types/HAPHostNodeType.js +15 -1
  23. package/build/lib/types/HAPService2ConfigType.js +15 -1
  24. package/build/lib/types/HAPService2NodeType.js +15 -1
  25. package/build/lib/types/HAPServiceConfigType.js +15 -1
  26. package/build/lib/types/HAPServiceNodeType.js +15 -1
  27. package/build/lib/types/HAPStatusConfigType.js +15 -1
  28. package/build/lib/types/HAPStatusNodeType.js +15 -1
  29. package/build/lib/types/HostType.js +28 -7
  30. package/build/lib/types/NodeType.js +15 -1
  31. package/build/lib/types/PublishTimersType.js +15 -1
  32. package/build/lib/types/UniFiControllerConfigType.js +16 -0
  33. package/build/lib/types/hap-nodejs/HapAdaptiveLightingControllerMode.js +28 -7
  34. package/build/lib/types/hap-nodejs/HapCategories.js +64 -43
  35. package/build/lib/types/storage/SerializedHostType.js +15 -1
  36. package/build/lib/types/storage/StorageType.js +34 -10
  37. package/build/lib/unifi/ProtectDiscovery.js +80 -0
  38. package/build/lib/utils/AccessoryUtils.js +152 -110
  39. package/build/lib/utils/BridgeUtils.js +95 -39
  40. package/build/lib/utils/CharacteristicUtils.js +5 -49
  41. package/build/lib/utils/CharacteristicUtils2.js +5 -49
  42. package/build/lib/utils/CharacteristicUtilsBase.js +81 -0
  43. package/build/lib/utils/NodeStatusUtils.js +89 -40
  44. package/build/lib/utils/ServiceUtils.js +433 -371
  45. package/build/lib/utils/ServiceUtils2.js +519 -305
  46. package/build/lib/utils/index.js +11 -12
  47. package/build/nodes/bridge.html +206 -168
  48. package/build/nodes/bridge.js +27 -9
  49. package/build/nodes/locales/en-US/node-red-contrib-homekit-bridged.json +22 -0
  50. package/build/nodes/nrchkb.html +1753 -117
  51. package/build/nodes/nrchkb.js +66 -88
  52. package/build/nodes/plugin-instance.html +509 -0
  53. package/build/nodes/plugin-instance.js +46 -0
  54. package/build/nodes/service.html +557 -306
  55. package/build/nodes/service.js +5 -6
  56. package/build/nodes/service2.html +1735 -455
  57. package/build/nodes/service2.js +5 -8
  58. package/build/nodes/standalone.html +208 -176
  59. package/build/nodes/standalone.js +27 -9
  60. package/build/nodes/status.html +51 -18
  61. package/build/nodes/status.js +47 -41
  62. package/build/nodes/unifi-controller.html +92 -0
  63. package/build/nodes/unifi-controller.js +20 -0
  64. package/build/plugins/embedded/homebridge-camera-ffmpeg/index.js +479 -0
  65. package/build/plugins/embedded/homebridge-unifi-protect/index.js +521 -0
  66. package/build/plugins/embedded/index.js +58 -0
  67. package/build/plugins/nrchkb-homekit-plugins.js +17 -0
  68. package/build/plugins/registry/index.js +203 -0
  69. package/build/plugins/registry/types.js +16 -0
  70. package/build/scripts/migrate-homekit-service-flows.js +47 -0
  71. package/examples/demo/01 - ALL Demos single import.json +1885 -2139
  72. package/examples/demo/02 - Air Purifier.json +12 -61
  73. package/examples/demo/03 - Air Quality sensor with Battery.json +8 -36
  74. package/examples/demo/04 - Dimmable Bulb.json +4 -21
  75. package/examples/demo/05 - Color Bulb (HSV).json +5 -26
  76. package/examples/demo/06 - Fan (simple, 3 speeds).json +6 -31
  77. package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +4 -21
  78. package/examples/demo/08 - CO2 detector.json +8 -39
  79. package/examples/demo/09 - CO (carbon monoxide) example.json +9 -44
  80. package/examples/demo/10 - Door window contact sensor.json +8 -39
  81. package/examples/demos (advanced)/01 - Television with inputs and speaker.json +19 -85
  82. package/examples/switch/01 - Plain Switch.json +179 -199
  83. package/package.json +48 -34
  84. package/build/lib/HAPHostNode.d.ts +0 -1
  85. package/build/lib/HAPServiceNode.d.ts +0 -1
  86. package/build/lib/HAPServiceNode2.d.ts +0 -1
  87. package/build/lib/NRCHKBError.d.ts +0 -3
  88. package/build/lib/Storage.d.ts +0 -30
  89. package/build/lib/api.d.ts +0 -1
  90. package/build/lib/hap/HAPCharacteristic.d.ts +0 -9
  91. package/build/lib/hap/HAPService.d.ts +0 -6
  92. package/build/lib/hap/eve-app/EveCharacteristics.d.ts +0 -20
  93. package/build/lib/hap/eve-app/EveServices.d.ts +0 -5
  94. package/build/lib/types/AccessoryInformationType.d.ts +0 -11
  95. package/build/lib/types/CameraConfigType.d.ts +0 -24
  96. package/build/lib/types/CustomCharacteristicType.d.ts +0 -6
  97. package/build/lib/types/HAPHostConfigType.d.ts +0 -22
  98. package/build/lib/types/HAPHostNodeType.d.ts +0 -14
  99. package/build/lib/types/HAPService2ConfigType.d.ts +0 -6
  100. package/build/lib/types/HAPService2NodeType.d.ts +0 -7
  101. package/build/lib/types/HAPServiceConfigType.d.ts +0 -26
  102. package/build/lib/types/HAPServiceNodeType.d.ts +0 -38
  103. package/build/lib/types/HAPStatusConfigType.d.ts +0 -5
  104. package/build/lib/types/HAPStatusNodeType.d.ts +0 -12
  105. package/build/lib/types/HostType.d.ts +0 -5
  106. package/build/lib/types/NodeType.d.ts +0 -3
  107. package/build/lib/types/PublishTimersType.d.ts +0 -4
  108. package/build/lib/types/hap-nodejs/HapAdaptiveLightingControllerMode.d.ts +0 -5
  109. package/build/lib/types/hap-nodejs/HapCategories.d.ts +0 -41
  110. package/build/lib/types/storage/SerializedHostType.d.ts +0 -5
  111. package/build/lib/types/storage/StorageType.d.ts +0 -8
  112. package/build/lib/utils/AccessoryUtils.d.ts +0 -1
  113. package/build/lib/utils/BridgeUtils.d.ts +0 -1
  114. package/build/lib/utils/CharacteristicUtils.d.ts +0 -1
  115. package/build/lib/utils/CharacteristicUtils2.d.ts +0 -1
  116. package/build/lib/utils/NodeStatusUtils.d.ts +0 -17
  117. package/build/lib/utils/ServiceUtils.d.ts +0 -1
  118. package/build/lib/utils/ServiceUtils2.d.ts +0 -1
  119. package/build/lib/utils/index.d.ts +0 -1
  120. package/build/nodes/bridge.d.ts +0 -1
  121. package/build/nodes/nrchkb.d.ts +0 -1
  122. package/build/nodes/service.d.ts +0 -1
  123. package/build/nodes/service2.d.ts +0 -1
  124. package/build/nodes/standalone.d.ts +0 -1
  125. package/build/nodes/status.d.ts +0 -1
@@ -70,10 +70,7 @@
70
70
  "outputs": 2,
71
71
  "x": 660,
72
72
  "y": 1400,
73
- "wires": [
74
- [],
75
- []
76
- ]
73
+ "wires": [[], []]
77
74
  },
78
75
  {
79
76
  "id": "2f9bc0d.42a73c",
@@ -90,11 +87,7 @@
90
87
  "payloadType": "json",
91
88
  "x": 120,
92
89
  "y": 1520,
93
- "wires": [
94
- [
95
- "a5194c26.18c628"
96
- ]
97
- ]
90
+ "wires": [["a5194c26.18c628"]]
98
91
  },
99
92
  {
100
93
  "id": "dfca0b2d.8b8e8",
@@ -111,11 +104,7 @@
111
104
  "payloadType": "json",
112
105
  "x": 140,
113
106
  "y": 1560,
114
- "wires": [
115
- [
116
- "a5194c26.18c628"
117
- ]
118
- ]
107
+ "wires": [["a5194c26.18c628"]]
119
108
  },
120
109
  {
121
110
  "id": "d74a610c.09a36",
@@ -132,11 +121,7 @@
132
121
  "payloadType": "json",
133
122
  "x": 480,
134
123
  "y": 1520,
135
- "wires": [
136
- [
137
- "a5194c26.18c628"
138
- ]
139
- ]
124
+ "wires": [["a5194c26.18c628"]]
140
125
  },
141
126
  {
142
127
  "id": "c15b6468.ae2eb8",
@@ -153,11 +138,7 @@
153
138
  "payloadType": "json",
154
139
  "x": 480,
155
140
  "y": 1560,
156
- "wires": [
157
- [
158
- "a5194c26.18c628"
159
- ]
160
- ]
141
+ "wires": [["a5194c26.18c628"]]
161
142
  },
162
143
  {
163
144
  "id": "6f7bc7fa.7f4f6",
@@ -183,11 +164,7 @@
183
164
  "payloadType": "json",
184
165
  "x": 140,
185
166
  "y": 1460,
186
- "wires": [
187
- [
188
- "a5194c26.18c628"
189
- ]
190
- ]
167
+ "wires": [["a5194c26.18c628"]]
191
168
  },
192
169
  {
193
170
  "id": "99b55eb3.e31bf8",
@@ -208,11 +185,7 @@
208
185
  "outputs": 1,
209
186
  "x": 350,
210
187
  "y": 1400,
211
- "wires": [
212
- [
213
- "a5194c26.18c628"
214
- ]
215
- ]
188
+ "wires": [["a5194c26.18c628"]]
216
189
  },
217
190
  {
218
191
  "id": "508d9ccf.29e404",
@@ -238,11 +211,7 @@
238
211
  "payloadType": "json",
239
212
  "x": 110,
240
213
  "y": 1400,
241
- "wires": [
242
- [
243
- "99b55eb3.e31bf8"
244
- ]
245
- ]
214
+ "wires": [["99b55eb3.e31bf8"]]
246
215
  },
247
216
  {
248
217
  "id": "409001a1.3e7a78",
@@ -48,11 +48,7 @@
48
48
  "payloadType": "json",
49
49
  "x": 110,
50
50
  "y": 160,
51
- "wires": [
52
- [
53
- "56282414.102184"
54
- ]
55
- ]
51
+ "wires": [["56282414.102184"]]
56
52
  },
57
53
  {
58
54
  "id": "87183aa8.418ec",
@@ -69,11 +65,7 @@
69
65
  "payloadType": "json",
70
66
  "x": 110,
71
67
  "y": 200,
72
- "wires": [
73
- [
74
- "56282414.102184"
75
- ]
76
- ]
68
+ "wires": [["56282414.102184"]]
77
69
  },
78
70
  {
79
71
  "id": "519fe2f2.b4870c",
@@ -124,11 +116,7 @@
124
116
  "payloadType": "date",
125
117
  "x": 120,
126
118
  "y": 100,
127
- "wires": [
128
- [
129
- "1d662593.e8434a"
130
- ]
131
- ]
119
+ "wires": [["1d662593.e8434a"]]
132
120
  },
133
121
  {
134
122
  "id": "ac7b78f3.2b9328",
@@ -145,11 +133,7 @@
145
133
  "payloadType": "date",
146
134
  "x": 140,
147
135
  "y": 480,
148
- "wires": [
149
- [
150
- "b4c4b8b.fc331c8"
151
- ]
152
- ]
136
+ "wires": [["b4c4b8b.fc331c8"]]
153
137
  },
154
138
  {
155
139
  "id": "1d662593.e8434a",
@@ -162,11 +146,7 @@
162
146
  "noerr": 0,
163
147
  "x": 300,
164
148
  "y": 100,
165
- "wires": [
166
- [
167
- "56282414.102184"
168
- ]
169
- ]
149
+ "wires": [["56282414.102184"]]
170
150
  },
171
151
  {
172
152
  "id": "405055ca.02f2dc",
@@ -183,11 +163,7 @@
183
163
  "payloadType": "json",
184
164
  "x": 110,
185
165
  "y": 320,
186
- "wires": [
187
- [
188
- "56282414.102184"
189
- ]
190
- ]
166
+ "wires": [["56282414.102184"]]
191
167
  },
192
168
  {
193
169
  "id": "f164c3c9.de75e8",
@@ -204,11 +180,7 @@
204
180
  "payloadType": "json",
205
181
  "x": 110,
206
182
  "y": 280,
207
- "wires": [
208
- [
209
- "56282414.102184"
210
- ]
211
- ]
183
+ "wires": [["56282414.102184"]]
212
184
  },
213
185
  {
214
186
  "id": "d35fba0b.560e68",
@@ -225,11 +197,7 @@
225
197
  "payloadType": "json",
226
198
  "x": 110,
227
199
  "y": 360,
228
- "wires": [
229
- [
230
- "56282414.102184"
231
- ]
232
- ]
200
+ "wires": [["56282414.102184"]]
233
201
  },
234
202
  {
235
203
  "id": "da9f0bd6.b2bbf",
@@ -246,11 +214,7 @@
246
214
  "payloadType": "json",
247
215
  "x": 110,
248
216
  "y": 400,
249
- "wires": [
250
- [
251
- "56282414.102184"
252
- ]
253
- ]
217
+ "wires": [["56282414.102184"]]
254
218
  },
255
219
  {
256
220
  "id": "b4c4b8b.fc331c8",
@@ -264,18 +228,10 @@
264
228
  "x": 330,
265
229
  "y": 460,
266
230
  "wires": [
267
- [
268
- "cb312294.a7f498"
269
- ],
270
- [
271
- "28645f7e.68e9b"
272
- ],
273
- [
274
- "3a8efd21.5d57c2"
275
- ],
276
- [
277
- "4c751d1f.e9a014"
278
- ]
231
+ ["cb312294.a7f498"],
232
+ ["28645f7e.68e9b"],
233
+ ["3a8efd21.5d57c2"],
234
+ ["4c751d1f.e9a014"]
279
235
  ]
280
236
  },
281
237
  {
@@ -320,12 +276,7 @@
320
276
  "outputs": 2,
321
277
  "x": 530,
322
278
  "y": 140,
323
- "wires": [
324
- [],
325
- [
326
- "519fe2f2.b4870c"
327
- ]
328
- ]
279
+ "wires": [[], ["519fe2f2.b4870c"]]
329
280
  },
330
281
  {
331
282
  "id": "f83a84cb.08b19",
@@ -392,12 +343,7 @@
392
343
  "outputs": 2,
393
344
  "x": 550,
394
345
  "y": 220,
395
- "wires": [
396
- [],
397
- [
398
- "5de4624c.b2aeac"
399
- ]
400
- ]
346
+ "wires": [[], ["5de4624c.b2aeac"]]
401
347
  },
402
348
  {
403
349
  "id": "cb312294.a7f498",
@@ -441,10 +387,7 @@
441
387
  "outputs": 2,
442
388
  "x": 580,
443
389
  "y": 300,
444
- "wires": [
445
- [],
446
- []
447
- ]
390
+ "wires": [[], []]
448
391
  },
449
392
  {
450
393
  "id": "28645f7e.68e9b",
@@ -488,10 +431,7 @@
488
431
  "outputs": 2,
489
432
  "x": 580,
490
433
  "y": 360,
491
- "wires": [
492
- [],
493
- []
494
- ]
434
+ "wires": [[], []]
495
435
  },
496
436
  {
497
437
  "id": "3a8efd21.5d57c2",
@@ -535,10 +475,7 @@
535
475
  "outputs": 2,
536
476
  "x": 580,
537
477
  "y": 420,
538
- "wires": [
539
- [],
540
- []
541
- ]
478
+ "wires": [[], []]
542
479
  },
543
480
  {
544
481
  "id": "4c751d1f.e9a014",
@@ -582,10 +519,7 @@
582
519
  "outputs": 2,
583
520
  "x": 580,
584
521
  "y": 480,
585
- "wires": [
586
- [],
587
- []
588
- ]
522
+ "wires": [[], []]
589
523
  },
590
524
  {
591
525
  "id": "5257174b.4307a8",