node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.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.
Files changed (45) hide show
  1. package/build/lib/HAPHostNode.js +59 -64
  2. package/build/lib/HAPServiceNode.js +91 -95
  3. package/build/lib/HAPServiceNode2.js +93 -97
  4. package/build/lib/Storage.d.ts +3 -3
  5. package/build/lib/Storage.js +2 -2
  6. package/build/lib/api.js +26 -29
  7. package/build/lib/hap/HAPCharacteristic.d.ts +1 -1
  8. package/build/lib/hap/HAPService.d.ts +1 -1
  9. package/build/lib/hap/eve-app/EveCharacteristics.d.ts +1 -1
  10. package/build/lib/hap/eve-app/EveCharacteristics.js +10 -10
  11. package/build/lib/types/CustomCharacteristicType.d.ts +1 -1
  12. package/build/lib/types/HAPHostConfigType.d.ts +4 -4
  13. package/build/lib/types/HAPHostNodeType.d.ts +4 -4
  14. package/build/lib/types/HAPService2ConfigType.d.ts +2 -2
  15. package/build/lib/types/HAPService2NodeType.d.ts +3 -3
  16. package/build/lib/types/HAPServiceConfigType.d.ts +3 -3
  17. package/build/lib/types/HAPServiceNodeType.d.ts +10 -10
  18. package/build/lib/types/HAPStatusConfigType.d.ts +1 -1
  19. package/build/lib/types/HAPStatusNodeType.d.ts +5 -5
  20. package/build/lib/types/NodeType.d.ts +1 -1
  21. package/build/lib/types/storage/SerializedHostType.d.ts +2 -2
  22. package/build/lib/utils/AccessoryUtils.js +15 -15
  23. package/build/lib/utils/BridgeUtils.js +5 -5
  24. package/build/lib/utils/CharacteristicUtils.js +6 -6
  25. package/build/lib/utils/CharacteristicUtils2.js +6 -6
  26. package/build/lib/utils/NodeStatusUtils.d.ts +2 -2
  27. package/build/lib/utils/NodeStatusUtils.js +2 -2
  28. package/build/lib/utils/ServiceUtils.js +39 -38
  29. package/build/lib/utils/ServiceUtils2.js +39 -37
  30. package/build/lib/utils/index.js +2 -2
  31. package/build/nodes/nrchkb.js +2 -2
  32. package/build/nodes/status.js +15 -16
  33. package/examples/demo/01 - ALL Demos single import.json +64 -318
  34. package/examples/demo/02 - Air Purifier.json +279 -328
  35. package/examples/demo/03 - Air Quality sensor with Battery.json +254 -282
  36. package/examples/demo/04 - Dimmable Bulb.json +172 -189
  37. package/examples/demo/05 - Color Bulb (HSV).json +195 -216
  38. package/examples/demo/06 - Fan (simple, 3 speeds).json +240 -265
  39. package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +175 -192
  40. package/examples/demo/08 - CO2 detector.json +224 -255
  41. package/examples/demo/09 - CO (carbon monoxide) example.json +255 -290
  42. package/examples/demo/10 - Door window contact sensor.json +234 -265
  43. package/examples/demos (advanced)/01 - Television with inputs and speaker.json +541 -607
  44. package/examples/switch/01 - Plain Switch.json +7 -27
  45. package/package.json +83 -81
@@ -1,268 +1,243 @@
1
1
  [
2
- {
3
- "id": "c869b0a5.e4def8",
4
- "type": "group",
5
- "z": "60b06629.a2ebd",
6
- "name": "Fan Simplified: input from device, output to device",
7
- "style": {
8
- "stroke": "#999999",
9
- "fill": "none",
10
- "label": true,
11
- "label-position": "nw",
12
- "color": "#a4a4a4"
13
- },
14
- "nodes": [
15
- "dadd634c.ae2258",
16
- "753e3777.49a1d",
17
- "992f4930.012aa",
18
- "2497a466.aa0e84",
19
- "c53b76fb.7a3cc8",
20
- "6c9646ee.1f3a18",
21
- "1e42a8f3.cf008f"
22
- ],
23
- "x": 14,
24
- "y": 1819,
25
- "w": 752,
26
- "h": 202,
27
- "info": "# Fan Simple\n\nThis example is for a 3-speed fan.\n\nSpeeds are: <br/>\nLow = 33<br/>\nMedium = 66<br/>\nHigh = 99<br/>\n\nValues outside of this are restricted and will not work. The home app will \"snap\" to these values. Siri will respond to \"set fan to low/medium/high\" with the corresponding value."
2
+ {
3
+ "id": "c869b0a5.e4def8",
4
+ "type": "group",
5
+ "z": "60b06629.a2ebd",
6
+ "name": "Fan Simplified: input from device, output to device",
7
+ "style": {
8
+ "stroke": "#999999",
9
+ "fill": "none",
10
+ "label": true,
11
+ "label-position": "nw",
12
+ "color": "#a4a4a4"
28
13
  },
29
- {
30
- "id": "dadd634c.ae2258",
31
- "type": "debug",
32
- "z": "60b06629.a2ebd",
33
- "g": "c869b0a5.e4def8",
34
- "name": "Fan output",
35
- "active": true,
36
- "tosidebar": true,
37
- "console": false,
38
- "tostatus": false,
39
- "complete": "payload",
40
- "targetType": "msg",
41
- "statusVal": "",
42
- "statusType": "auto",
43
- "x": 650,
44
- "y": 1860,
45
- "wires": []
46
- },
47
- {
48
- "id": "753e3777.49a1d",
49
- "type": "homekit-service",
50
- "z": "60b06629.a2ebd",
51
- "g": "c869b0a5.e4def8",
52
- "isParent": true,
53
- "bridge": "409001a1.3e7a78",
54
- "parentService": "",
55
- "name": "Fan Speeds",
56
- "serviceName": "Fan",
57
- "topic": "",
58
- "filter": false,
59
- "manufacturer": "Gman",
60
- "model": "Default Model",
61
- "serialNo": "CRX1",
62
- "firmwareRev": "1.0.0",
63
- "hardwareRev": "1.0.0",
64
- "softwareRev": "1.0.0",
65
- "cameraConfigVideoProcessor": "ffmpeg",
66
- "cameraConfigSource": "",
67
- "cameraConfigStillImageSource": "",
68
- "cameraConfigMaxStreams": 2,
69
- "cameraConfigMaxWidth": 1280,
70
- "cameraConfigMaxHeight": 720,
71
- "cameraConfigMaxFPS": 10,
72
- "cameraConfigMaxBitrate": 300,
73
- "cameraConfigVideoCodec": "libx264",
74
- "cameraConfigAudioCodec": "libfdk_aac",
75
- "cameraConfigAudio": false,
76
- "cameraConfigPacketSize": 1316,
77
- "cameraConfigVerticalFlip": false,
78
- "cameraConfigHorizontalFlip": false,
79
- "cameraConfigMapVideo": "0:0",
80
- "cameraConfigMapAudio": "0:1",
81
- "cameraConfigVideoFilter": "scale=1280:720",
82
- "cameraConfigAdditionalCommandLine": "-tune zerolatency",
83
- "cameraConfigDebug": false,
84
- "cameraConfigSnapshotOutput": "disabled",
85
- "cameraConfigInterfaceName": "",
86
- "characteristicProperties": "{\n \"RotationSpeed\": {\n \"minValue\":0,\n \"maxValue\":99,\n \"minStep\":33\n }\n}",
87
- "outputs": 2,
88
- "x": 430,
89
- "y": 1860,
90
- "wires": [
91
- [
92
- "dadd634c.ae2258"
93
- ],
94
- []
95
- ]
96
- },
97
- {
98
- "id": "992f4930.012aa",
99
- "type": "inject",
100
- "z": "60b06629.a2ebd",
101
- "g": "c869b0a5.e4def8",
102
- "name": "NO RESPONSE",
103
- "props": [
104
- {
105
- "p": "payload"
106
- },
107
- {
108
- "p": "topic",
109
- "vt": "str"
110
- }
111
- ],
112
- "repeat": "",
113
- "crontab": "",
114
- "once": false,
115
- "onceDelay": 0.1,
116
- "topic": "",
117
- "payload": "{\"On\":\"NO_RESPONSE\"}",
118
- "payloadType": "json",
119
- "x": 380,
120
- "y": 1940,
121
- "wires": [
122
- [
123
- "753e3777.49a1d"
124
- ]
125
- ]
126
- },
127
- {
128
- "id": "2497a466.aa0e84",
129
- "type": "inject",
130
- "z": "60b06629.a2ebd",
131
- "g": "c869b0a5.e4def8",
132
- "name": "OFF",
133
- "props": [
134
- {
135
- "p": "payload"
136
- },
137
- {
138
- "p": "topic",
139
- "vt": "str"
140
- }
141
- ],
142
- "repeat": "",
143
- "crontab": "",
144
- "once": false,
145
- "onceDelay": 0.1,
146
- "topic": "",
147
- "payload": "{\"On\":false}",
148
- "payloadType": "json",
149
- "x": 110,
150
- "y": 1860,
151
- "wires": [
152
- [
153
- "753e3777.49a1d"
154
- ]
155
- ]
156
- },
157
- {
158
- "id": "c53b76fb.7a3cc8",
159
- "type": "inject",
160
- "z": "60b06629.a2ebd",
161
- "g": "c869b0a5.e4def8",
162
- "name": "Low",
163
- "props": [
164
- {
165
- "p": "payload"
166
- },
167
- {
168
- "p": "topic",
169
- "vt": "str"
170
- }
171
- ],
172
- "repeat": "",
173
- "crontab": "",
174
- "once": false,
175
- "onceDelay": 0.1,
176
- "topic": "",
177
- "payload": "{\"On\":true,\"RotationSpeed\":33}",
178
- "payloadType": "json",
179
- "x": 110,
180
- "y": 1900,
181
- "wires": [
182
- [
183
- "753e3777.49a1d"
184
- ]
185
- ]
186
- },
187
- {
188
- "id": "6c9646ee.1f3a18",
189
- "type": "inject",
190
- "z": "60b06629.a2ebd",
191
- "g": "c869b0a5.e4def8",
192
- "name": "Medium",
193
- "props": [
194
- {
195
- "p": "payload"
196
- },
197
- {
198
- "p": "topic",
199
- "vt": "str"
200
- }
201
- ],
202
- "repeat": "",
203
- "crontab": "",
204
- "once": false,
205
- "onceDelay": 0.1,
206
- "topic": "",
207
- "payload": "{\"On\":true,\"RotationSpeed\":66}",
208
- "payloadType": "json",
209
- "x": 120,
210
- "y": 1940,
211
- "wires": [
212
- [
213
- "753e3777.49a1d"
214
- ]
215
- ]
216
- },
217
- {
218
- "id": "1e42a8f3.cf008f",
219
- "type": "inject",
220
- "z": "60b06629.a2ebd",
221
- "g": "c869b0a5.e4def8",
222
- "name": "High",
223
- "props": [
224
- {
225
- "p": "payload"
226
- },
227
- {
228
- "p": "topic",
229
- "vt": "str"
230
- }
231
- ],
232
- "repeat": "",
233
- "crontab": "",
234
- "once": false,
235
- "onceDelay": 0.1,
236
- "topic": "",
237
- "payload": "{\"On\":true,\"RotationSpeed\":99}",
238
- "payloadType": "json",
239
- "x": 110,
240
- "y": 1980,
241
- "wires": [
242
- [
243
- "753e3777.49a1d"
244
- ]
245
- ]
246
- },
247
- {
248
- "id": "409001a1.3e7a78",
249
- "type": "homekit-bridge",
250
- "z": "",
251
- "bridgeName": "Demo 1",
252
- "pinCode": "153-10-538",
253
- "port": "",
254
- "allowInsecureRequest": false,
255
- "manufacturer": "NRCHKB",
256
- "model": "Demo",
257
- "serialNo": "1.1.2",
258
- "customMdnsConfig": false,
259
- "mdnsMulticast": true,
260
- "mdnsInterface": "",
261
- "mdnsPort": "",
262
- "mdnsIp": "",
263
- "mdnsTtl": "",
264
- "mdnsLoopback": true,
265
- "mdnsReuseAddr": true,
266
- "allowMessagePassthrough": true
267
- }
14
+ "nodes": [
15
+ "dadd634c.ae2258",
16
+ "753e3777.49a1d",
17
+ "992f4930.012aa",
18
+ "2497a466.aa0e84",
19
+ "c53b76fb.7a3cc8",
20
+ "6c9646ee.1f3a18",
21
+ "1e42a8f3.cf008f"
22
+ ],
23
+ "x": 14,
24
+ "y": 1819,
25
+ "w": 752,
26
+ "h": 202,
27
+ "info": "# Fan Simple\n\nThis example is for a 3-speed fan.\n\nSpeeds are: <br/>\nLow = 33<br/>\nMedium = 66<br/>\nHigh = 99<br/>\n\nValues outside of this are restricted and will not work. The home app will \"snap\" to these values. Siri will respond to \"set fan to low/medium/high\" with the corresponding value."
28
+ },
29
+ {
30
+ "id": "dadd634c.ae2258",
31
+ "type": "debug",
32
+ "z": "60b06629.a2ebd",
33
+ "g": "c869b0a5.e4def8",
34
+ "name": "Fan output",
35
+ "active": true,
36
+ "tosidebar": true,
37
+ "console": false,
38
+ "tostatus": false,
39
+ "complete": "payload",
40
+ "targetType": "msg",
41
+ "statusVal": "",
42
+ "statusType": "auto",
43
+ "x": 650,
44
+ "y": 1860,
45
+ "wires": []
46
+ },
47
+ {
48
+ "id": "753e3777.49a1d",
49
+ "type": "homekit-service",
50
+ "z": "60b06629.a2ebd",
51
+ "g": "c869b0a5.e4def8",
52
+ "isParent": true,
53
+ "bridge": "409001a1.3e7a78",
54
+ "parentService": "",
55
+ "name": "Fan Speeds",
56
+ "serviceName": "Fan",
57
+ "topic": "",
58
+ "filter": false,
59
+ "manufacturer": "Gman",
60
+ "model": "Default Model",
61
+ "serialNo": "CRX1",
62
+ "firmwareRev": "1.0.0",
63
+ "hardwareRev": "1.0.0",
64
+ "softwareRev": "1.0.0",
65
+ "cameraConfigVideoProcessor": "ffmpeg",
66
+ "cameraConfigSource": "",
67
+ "cameraConfigStillImageSource": "",
68
+ "cameraConfigMaxStreams": 2,
69
+ "cameraConfigMaxWidth": 1280,
70
+ "cameraConfigMaxHeight": 720,
71
+ "cameraConfigMaxFPS": 10,
72
+ "cameraConfigMaxBitrate": 300,
73
+ "cameraConfigVideoCodec": "libx264",
74
+ "cameraConfigAudioCodec": "libfdk_aac",
75
+ "cameraConfigAudio": false,
76
+ "cameraConfigPacketSize": 1316,
77
+ "cameraConfigVerticalFlip": false,
78
+ "cameraConfigHorizontalFlip": false,
79
+ "cameraConfigMapVideo": "0:0",
80
+ "cameraConfigMapAudio": "0:1",
81
+ "cameraConfigVideoFilter": "scale=1280:720",
82
+ "cameraConfigAdditionalCommandLine": "-tune zerolatency",
83
+ "cameraConfigDebug": false,
84
+ "cameraConfigSnapshotOutput": "disabled",
85
+ "cameraConfigInterfaceName": "",
86
+ "characteristicProperties": "{\n \"RotationSpeed\": {\n \"minValue\":0,\n \"maxValue\":99,\n \"minStep\":33\n }\n}",
87
+ "outputs": 2,
88
+ "x": 430,
89
+ "y": 1860,
90
+ "wires": [["dadd634c.ae2258"], []]
91
+ },
92
+ {
93
+ "id": "992f4930.012aa",
94
+ "type": "inject",
95
+ "z": "60b06629.a2ebd",
96
+ "g": "c869b0a5.e4def8",
97
+ "name": "NO RESPONSE",
98
+ "props": [
99
+ {
100
+ "p": "payload"
101
+ },
102
+ {
103
+ "p": "topic",
104
+ "vt": "str"
105
+ }
106
+ ],
107
+ "repeat": "",
108
+ "crontab": "",
109
+ "once": false,
110
+ "onceDelay": 0.1,
111
+ "topic": "",
112
+ "payload": "{\"On\":\"NO_RESPONSE\"}",
113
+ "payloadType": "json",
114
+ "x": 380,
115
+ "y": 1940,
116
+ "wires": [["753e3777.49a1d"]]
117
+ },
118
+ {
119
+ "id": "2497a466.aa0e84",
120
+ "type": "inject",
121
+ "z": "60b06629.a2ebd",
122
+ "g": "c869b0a5.e4def8",
123
+ "name": "OFF",
124
+ "props": [
125
+ {
126
+ "p": "payload"
127
+ },
128
+ {
129
+ "p": "topic",
130
+ "vt": "str"
131
+ }
132
+ ],
133
+ "repeat": "",
134
+ "crontab": "",
135
+ "once": false,
136
+ "onceDelay": 0.1,
137
+ "topic": "",
138
+ "payload": "{\"On\":false}",
139
+ "payloadType": "json",
140
+ "x": 110,
141
+ "y": 1860,
142
+ "wires": [["753e3777.49a1d"]]
143
+ },
144
+ {
145
+ "id": "c53b76fb.7a3cc8",
146
+ "type": "inject",
147
+ "z": "60b06629.a2ebd",
148
+ "g": "c869b0a5.e4def8",
149
+ "name": "Low",
150
+ "props": [
151
+ {
152
+ "p": "payload"
153
+ },
154
+ {
155
+ "p": "topic",
156
+ "vt": "str"
157
+ }
158
+ ],
159
+ "repeat": "",
160
+ "crontab": "",
161
+ "once": false,
162
+ "onceDelay": 0.1,
163
+ "topic": "",
164
+ "payload": "{\"On\":true,\"RotationSpeed\":33}",
165
+ "payloadType": "json",
166
+ "x": 110,
167
+ "y": 1900,
168
+ "wires": [["753e3777.49a1d"]]
169
+ },
170
+ {
171
+ "id": "6c9646ee.1f3a18",
172
+ "type": "inject",
173
+ "z": "60b06629.a2ebd",
174
+ "g": "c869b0a5.e4def8",
175
+ "name": "Medium",
176
+ "props": [
177
+ {
178
+ "p": "payload"
179
+ },
180
+ {
181
+ "p": "topic",
182
+ "vt": "str"
183
+ }
184
+ ],
185
+ "repeat": "",
186
+ "crontab": "",
187
+ "once": false,
188
+ "onceDelay": 0.1,
189
+ "topic": "",
190
+ "payload": "{\"On\":true,\"RotationSpeed\":66}",
191
+ "payloadType": "json",
192
+ "x": 120,
193
+ "y": 1940,
194
+ "wires": [["753e3777.49a1d"]]
195
+ },
196
+ {
197
+ "id": "1e42a8f3.cf008f",
198
+ "type": "inject",
199
+ "z": "60b06629.a2ebd",
200
+ "g": "c869b0a5.e4def8",
201
+ "name": "High",
202
+ "props": [
203
+ {
204
+ "p": "payload"
205
+ },
206
+ {
207
+ "p": "topic",
208
+ "vt": "str"
209
+ }
210
+ ],
211
+ "repeat": "",
212
+ "crontab": "",
213
+ "once": false,
214
+ "onceDelay": 0.1,
215
+ "topic": "",
216
+ "payload": "{\"On\":true,\"RotationSpeed\":99}",
217
+ "payloadType": "json",
218
+ "x": 110,
219
+ "y": 1980,
220
+ "wires": [["753e3777.49a1d"]]
221
+ },
222
+ {
223
+ "id": "409001a1.3e7a78",
224
+ "type": "homekit-bridge",
225
+ "z": "",
226
+ "bridgeName": "Demo 1",
227
+ "pinCode": "153-10-538",
228
+ "port": "",
229
+ "allowInsecureRequest": false,
230
+ "manufacturer": "NRCHKB",
231
+ "model": "Demo",
232
+ "serialNo": "1.1.2",
233
+ "customMdnsConfig": false,
234
+ "mdnsMulticast": true,
235
+ "mdnsInterface": "",
236
+ "mdnsPort": "",
237
+ "mdnsIp": "",
238
+ "mdnsTtl": "",
239
+ "mdnsLoopback": true,
240
+ "mdnsReuseAddr": true,
241
+ "allowMessagePassthrough": true
242
+ }
268
243
  ]