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.
- package/build/lib/HAPHostNode.js +59 -64
- package/build/lib/HAPServiceNode.js +91 -95
- package/build/lib/HAPServiceNode2.js +93 -97
- package/build/lib/Storage.d.ts +3 -3
- package/build/lib/Storage.js +2 -2
- package/build/lib/api.js +26 -29
- package/build/lib/hap/HAPCharacteristic.d.ts +1 -1
- package/build/lib/hap/HAPService.d.ts +1 -1
- package/build/lib/hap/eve-app/EveCharacteristics.d.ts +1 -1
- package/build/lib/hap/eve-app/EveCharacteristics.js +10 -10
- package/build/lib/types/CustomCharacteristicType.d.ts +1 -1
- package/build/lib/types/HAPHostConfigType.d.ts +4 -4
- package/build/lib/types/HAPHostNodeType.d.ts +4 -4
- package/build/lib/types/HAPService2ConfigType.d.ts +2 -2
- package/build/lib/types/HAPService2NodeType.d.ts +3 -3
- package/build/lib/types/HAPServiceConfigType.d.ts +3 -3
- package/build/lib/types/HAPServiceNodeType.d.ts +10 -10
- package/build/lib/types/HAPStatusConfigType.d.ts +1 -1
- package/build/lib/types/HAPStatusNodeType.d.ts +5 -5
- package/build/lib/types/NodeType.d.ts +1 -1
- package/build/lib/types/storage/SerializedHostType.d.ts +2 -2
- package/build/lib/utils/AccessoryUtils.js +15 -15
- package/build/lib/utils/BridgeUtils.js +5 -5
- package/build/lib/utils/CharacteristicUtils.js +6 -6
- package/build/lib/utils/CharacteristicUtils2.js +6 -6
- package/build/lib/utils/NodeStatusUtils.d.ts +2 -2
- package/build/lib/utils/NodeStatusUtils.js +2 -2
- package/build/lib/utils/ServiceUtils.js +39 -38
- package/build/lib/utils/ServiceUtils2.js +39 -37
- package/build/lib/utils/index.js +2 -2
- package/build/nodes/nrchkb.js +2 -2
- package/build/nodes/status.js +15 -16
- package/examples/demo/01 - ALL Demos single import.json +64 -318
- package/examples/demo/02 - Air Purifier.json +279 -328
- package/examples/demo/03 - Air Quality sensor with Battery.json +254 -282
- package/examples/demo/04 - Dimmable Bulb.json +172 -189
- package/examples/demo/05 - Color Bulb (HSV).json +195 -216
- package/examples/demo/06 - Fan (simple, 3 speeds).json +240 -265
- package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +175 -192
- package/examples/demo/08 - CO2 detector.json +224 -255
- package/examples/demo/09 - CO (carbon monoxide) example.json +255 -290
- package/examples/demo/10 - Door window contact sensor.json +234 -265
- package/examples/demos (advanced)/01 - Television with inputs and speaker.json +541 -607
- package/examples/switch/01 - Plain Switch.json +7 -27
- package/package.json +83 -81
|
@@ -1,268 +1,237 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"nodes": [
|
|
15
|
-
"a5194c26.18c628",
|
|
16
|
-
"2f9bc0d.42a73c",
|
|
17
|
-
"dfca0b2d.8b8e8",
|
|
18
|
-
"d74a610c.09a36",
|
|
19
|
-
"c15b6468.ae2eb8",
|
|
20
|
-
"6f7bc7fa.7f4f6",
|
|
21
|
-
"99b55eb3.e31bf8",
|
|
22
|
-
"508d9ccf.29e404"
|
|
23
|
-
],
|
|
24
|
-
"x": 14,
|
|
25
|
-
"y": 1359,
|
|
26
|
-
"w": 752,
|
|
27
|
-
"h": 242,
|
|
28
|
-
"info": "# Contact Sensor\n\nThe contact sensor has one inject node to Open the sensor (door, window, etc). Once open, a ten second timer will run then set it back to closed.\n\nAdditional inputs are for \"No Response\", \"Tampered\", and \"Battery\". Note that this battery will not show a battery level but only a good/low battery status."
|
|
2
|
+
{
|
|
3
|
+
"id": "a875cc7.a4c42b",
|
|
4
|
+
"type": "group",
|
|
5
|
+
"z": "60b06629.a2ebd",
|
|
6
|
+
"name": "Contact Sensor: input only sensor",
|
|
7
|
+
"style": {
|
|
8
|
+
"stroke": "#999999",
|
|
9
|
+
"fill": "none",
|
|
10
|
+
"label": true,
|
|
11
|
+
"label-position": "nw",
|
|
12
|
+
"color": "#a4a4a4"
|
|
29
13
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
+
"a5194c26.18c628",
|
|
16
|
+
"2f9bc0d.42a73c",
|
|
17
|
+
"dfca0b2d.8b8e8",
|
|
18
|
+
"d74a610c.09a36",
|
|
19
|
+
"c15b6468.ae2eb8",
|
|
20
|
+
"6f7bc7fa.7f4f6",
|
|
21
|
+
"99b55eb3.e31bf8",
|
|
22
|
+
"508d9ccf.29e404"
|
|
23
|
+
],
|
|
24
|
+
"x": 14,
|
|
25
|
+
"y": 1359,
|
|
26
|
+
"w": 752,
|
|
27
|
+
"h": 242,
|
|
28
|
+
"info": "# Contact Sensor\n\nThe contact sensor has one inject node to Open the sensor (door, window, etc). Once open, a ten second timer will run then set it back to closed.\n\nAdditional inputs are for \"No Response\", \"Tampered\", and \"Battery\". Note that this battery will not show a battery level but only a good/low battery status."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "a5194c26.18c628",
|
|
32
|
+
"type": "homekit-service",
|
|
33
|
+
"z": "60b06629.a2ebd",
|
|
34
|
+
"g": "a875cc7.a4c42b",
|
|
35
|
+
"isParent": true,
|
|
36
|
+
"bridge": "409001a1.3e7a78",
|
|
37
|
+
"parentService": "",
|
|
38
|
+
"name": "Contact Sensor",
|
|
39
|
+
"serviceName": "ContactSensor",
|
|
40
|
+
"topic": "",
|
|
41
|
+
"filter": false,
|
|
42
|
+
"manufacturer": "Full Contact",
|
|
43
|
+
"model": "Door",
|
|
44
|
+
"serialNo": "Sensor",
|
|
45
|
+
"firmwareRev": "1.0.0",
|
|
46
|
+
"hardwareRev": "1.0.0",
|
|
47
|
+
"softwareRev": "1.0.0",
|
|
48
|
+
"cameraConfigVideoProcessor": "ffmpeg",
|
|
49
|
+
"cameraConfigSource": "",
|
|
50
|
+
"cameraConfigStillImageSource": "",
|
|
51
|
+
"cameraConfigMaxStreams": 2,
|
|
52
|
+
"cameraConfigMaxWidth": 1280,
|
|
53
|
+
"cameraConfigMaxHeight": 720,
|
|
54
|
+
"cameraConfigMaxFPS": 10,
|
|
55
|
+
"cameraConfigMaxBitrate": 300,
|
|
56
|
+
"cameraConfigVideoCodec": "libx264",
|
|
57
|
+
"cameraConfigAudioCodec": "libfdk_aac",
|
|
58
|
+
"cameraConfigAudio": false,
|
|
59
|
+
"cameraConfigPacketSize": 1316,
|
|
60
|
+
"cameraConfigVerticalFlip": false,
|
|
61
|
+
"cameraConfigHorizontalFlip": false,
|
|
62
|
+
"cameraConfigMapVideo": "0:0",
|
|
63
|
+
"cameraConfigMapAudio": "0:1",
|
|
64
|
+
"cameraConfigVideoFilter": "scale=1280:720",
|
|
65
|
+
"cameraConfigAdditionalCommandLine": "-tune zerolatency",
|
|
66
|
+
"cameraConfigDebug": false,
|
|
67
|
+
"cameraConfigSnapshotOutput": "disabled",
|
|
68
|
+
"cameraConfigInterfaceName": "",
|
|
69
|
+
"characteristicProperties": "{\n \"StatusTampered\":true,\n \"StatusLowBattery\":true\n}",
|
|
70
|
+
"outputs": 2,
|
|
71
|
+
"x": 660,
|
|
72
|
+
"y": 1400,
|
|
73
|
+
"wires": [[], []]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "2f9bc0d.42a73c",
|
|
77
|
+
"type": "inject",
|
|
78
|
+
"z": "60b06629.a2ebd",
|
|
79
|
+
"g": "a875cc7.a4c42b",
|
|
80
|
+
"name": "Tampered",
|
|
81
|
+
"repeat": "",
|
|
82
|
+
"crontab": "",
|
|
83
|
+
"once": false,
|
|
84
|
+
"onceDelay": 0.1,
|
|
85
|
+
"topic": "",
|
|
86
|
+
"payload": "{\"StatusTampered\":1}",
|
|
87
|
+
"payloadType": "json",
|
|
88
|
+
"x": 120,
|
|
89
|
+
"y": 1520,
|
|
90
|
+
"wires": [["a5194c26.18c628"]]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "dfca0b2d.8b8e8",
|
|
94
|
+
"type": "inject",
|
|
95
|
+
"z": "60b06629.a2ebd",
|
|
96
|
+
"g": "a875cc7.a4c42b",
|
|
97
|
+
"name": "Clear tampered",
|
|
98
|
+
"repeat": "",
|
|
99
|
+
"crontab": "",
|
|
100
|
+
"once": false,
|
|
101
|
+
"onceDelay": 0.1,
|
|
102
|
+
"topic": "",
|
|
103
|
+
"payload": "{\"StatusTampered\":0}",
|
|
104
|
+
"payloadType": "json",
|
|
105
|
+
"x": 140,
|
|
106
|
+
"y": 1560,
|
|
107
|
+
"wires": [["a5194c26.18c628"]]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "d74a610c.09a36",
|
|
111
|
+
"type": "inject",
|
|
112
|
+
"z": "60b06629.a2ebd",
|
|
113
|
+
"g": "a875cc7.a4c42b",
|
|
114
|
+
"name": "Low batt",
|
|
115
|
+
"repeat": "",
|
|
116
|
+
"crontab": "",
|
|
117
|
+
"once": false,
|
|
118
|
+
"onceDelay": 0.1,
|
|
119
|
+
"topic": "",
|
|
120
|
+
"payload": "{\"StatusLowBattery\":1}",
|
|
121
|
+
"payloadType": "json",
|
|
122
|
+
"x": 480,
|
|
123
|
+
"y": 1520,
|
|
124
|
+
"wires": [["a5194c26.18c628"]]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "c15b6468.ae2eb8",
|
|
128
|
+
"type": "inject",
|
|
129
|
+
"z": "60b06629.a2ebd",
|
|
130
|
+
"g": "a875cc7.a4c42b",
|
|
131
|
+
"name": "Good batt",
|
|
132
|
+
"repeat": "",
|
|
133
|
+
"crontab": "",
|
|
134
|
+
"once": false,
|
|
135
|
+
"onceDelay": 0.1,
|
|
136
|
+
"topic": "",
|
|
137
|
+
"payload": "{\"StatusLowBattery\":0}",
|
|
138
|
+
"payloadType": "json",
|
|
139
|
+
"x": 480,
|
|
140
|
+
"y": 1560,
|
|
141
|
+
"wires": [["a5194c26.18c628"]]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "6f7bc7fa.7f4f6",
|
|
145
|
+
"type": "inject",
|
|
146
|
+
"z": "60b06629.a2ebd",
|
|
147
|
+
"g": "a875cc7.a4c42b",
|
|
148
|
+
"name": "NO RESPONSE",
|
|
149
|
+
"props": [
|
|
150
|
+
{
|
|
151
|
+
"p": "payload"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"p": "topic",
|
|
155
|
+
"vt": "str"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"repeat": "",
|
|
159
|
+
"crontab": "",
|
|
160
|
+
"once": false,
|
|
161
|
+
"onceDelay": 0.1,
|
|
162
|
+
"topic": "",
|
|
163
|
+
"payload": "{\"ContactSensorState\":\"NO_RESPONSE\"}",
|
|
164
|
+
"payloadType": "json",
|
|
165
|
+
"x": 140,
|
|
166
|
+
"y": 1460,
|
|
167
|
+
"wires": [["a5194c26.18c628"]]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "99b55eb3.e31bf8",
|
|
171
|
+
"type": "trigger",
|
|
172
|
+
"z": "60b06629.a2ebd",
|
|
173
|
+
"g": "a875cc7.a4c42b",
|
|
174
|
+
"name": "10 Sec open",
|
|
175
|
+
"op1": "",
|
|
176
|
+
"op2": "{\"ContactSensorState\":0}",
|
|
177
|
+
"op1type": "pay",
|
|
178
|
+
"op2type": "json",
|
|
179
|
+
"duration": "10",
|
|
180
|
+
"extend": false,
|
|
181
|
+
"units": "s",
|
|
182
|
+
"reset": "",
|
|
183
|
+
"bytopic": "all",
|
|
184
|
+
"topic": "topic",
|
|
185
|
+
"outputs": 1,
|
|
186
|
+
"x": 350,
|
|
187
|
+
"y": 1400,
|
|
188
|
+
"wires": [["a5194c26.18c628"]]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "508d9ccf.29e404",
|
|
192
|
+
"type": "inject",
|
|
193
|
+
"z": "60b06629.a2ebd",
|
|
194
|
+
"g": "a875cc7.a4c42b",
|
|
195
|
+
"name": "Open",
|
|
196
|
+
"props": [
|
|
197
|
+
{
|
|
198
|
+
"p": "payload"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"p": "topic",
|
|
202
|
+
"vt": "str"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"repeat": "",
|
|
206
|
+
"crontab": "",
|
|
207
|
+
"once": false,
|
|
208
|
+
"onceDelay": "1",
|
|
209
|
+
"topic": "",
|
|
210
|
+
"payload": "{\"ContactSensorState\":1}",
|
|
211
|
+
"payloadType": "json",
|
|
212
|
+
"x": 110,
|
|
213
|
+
"y": 1400,
|
|
214
|
+
"wires": [["99b55eb3.e31bf8"]]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "409001a1.3e7a78",
|
|
218
|
+
"type": "homekit-bridge",
|
|
219
|
+
"z": "",
|
|
220
|
+
"bridgeName": "Demo 1",
|
|
221
|
+
"pinCode": "153-10-538",
|
|
222
|
+
"port": "",
|
|
223
|
+
"allowInsecureRequest": false,
|
|
224
|
+
"manufacturer": "NRCHKB",
|
|
225
|
+
"model": "Demo",
|
|
226
|
+
"serialNo": "1.1.2",
|
|
227
|
+
"customMdnsConfig": false,
|
|
228
|
+
"mdnsMulticast": true,
|
|
229
|
+
"mdnsInterface": "",
|
|
230
|
+
"mdnsPort": "",
|
|
231
|
+
"mdnsIp": "",
|
|
232
|
+
"mdnsTtl": "",
|
|
233
|
+
"mdnsLoopback": true,
|
|
234
|
+
"mdnsReuseAddr": true,
|
|
235
|
+
"allowMessagePassthrough": true
|
|
236
|
+
}
|
|
268
237
|
]
|