node-red-contrib-homebridge-automation 0.1.12-beta.4 → 0.1.12-beta.41
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/.github/npm-version-script.js +35 -43
- package/.github/workflows/Build and Publish.yml +81 -75
- package/README.md +7 -4
- package/eslint.config.mjs +34 -0
- package/package.json +30 -21
- package/src/HAP-NodeRed.html +71 -71
- package/src/HAP-NodeRed.js +36 -1082
- package/src/HapDeviceRoutes.js +59 -0
- package/src/hbBaseNode.js +94 -0
- package/src/hbConfigNode.js +238 -0
- package/src/hbConfigNode.test.js +2179 -0
- package/src/hbControlNode.js +77 -0
- package/src/hbEventNode.js +23 -0
- package/src/hbResumeNode.js +53 -0
- package/src/hbStatusNode.js +37 -0
- package/test/node-red/.config.nodes.json +453 -0
- package/test/node-red/.config.nodes.json.backup +453 -0
- package/test/node-red/.config.runtime.json +4 -0
- package/test/node-red/.config.runtime.json.backup +3 -0
- package/test/node-red/.config.users.json +20 -0
- package/test/node-red/.config.users.json.backup +17 -0
- package/test/node-red/.flows.json.backup +839 -0
- package/test/node-red/flows.json +839 -0
- package/test/node-red/package.json +6 -0
- package/test/node-red/settings.js +593 -0
- package/test/node-red/test/node-red/.config.nodes.json +430 -0
- package/test/node-red/test/node-red/.config.runtime.json +4 -0
- package/test/node-red/test/node-red/.config.runtime.json.backup +3 -0
- package/test/node-red/test/node-red/.config.users.json +20 -0
- package/test/node-red/test/node-red/.config.users.json.backup +17 -0
- package/test/node-red/test/node-red/package.json +6 -0
- package/test/node-red/test/node-red/settings.js +593 -0
- package/.eslintrc.js +0 -24
- package/.nycrc.json +0 -11
- package/src/lib/Accessory.js +0 -126
- package/src/lib/Characteristic.js +0 -30
- package/src/lib/HbAccessories.js +0 -167
- package/src/lib/Homebridge.js +0 -71
- package/src/lib/Homebridges.js +0 -68
- package/src/lib/Service.js +0 -307
- package/src/lib/register.js +0 -156
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "caef1e7b5b399e80",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "Flow 1",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "",
|
|
8
|
+
"env": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "ddaa42d2292b69e2",
|
|
12
|
+
"type": "tab",
|
|
13
|
+
"label": "Flow 2",
|
|
14
|
+
"disabled": false,
|
|
15
|
+
"info": "",
|
|
16
|
+
"env": []
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "557aec8e8c47e61e",
|
|
20
|
+
"type": "hb-conf",
|
|
21
|
+
"username": "031-45-154",
|
|
22
|
+
"macAddress": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "902c5887b6877df6",
|
|
26
|
+
"type": "debug",
|
|
27
|
+
"z": "caef1e7b5b399e80",
|
|
28
|
+
"name": "debug 1",
|
|
29
|
+
"active": true,
|
|
30
|
+
"tosidebar": true,
|
|
31
|
+
"console": false,
|
|
32
|
+
"tostatus": true,
|
|
33
|
+
"complete": "true",
|
|
34
|
+
"targetType": "full",
|
|
35
|
+
"statusVal": "payload",
|
|
36
|
+
"statusType": "auto",
|
|
37
|
+
"x": 820,
|
|
38
|
+
"y": 40,
|
|
39
|
+
"wires": []
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "a866ae0bb24ce682",
|
|
43
|
+
"type": "debug",
|
|
44
|
+
"z": "caef1e7b5b399e80",
|
|
45
|
+
"name": "debug 2",
|
|
46
|
+
"active": true,
|
|
47
|
+
"tosidebar": true,
|
|
48
|
+
"console": false,
|
|
49
|
+
"tostatus": true,
|
|
50
|
+
"complete": "true",
|
|
51
|
+
"targetType": "full",
|
|
52
|
+
"statusVal": "payload",
|
|
53
|
+
"statusType": "auto",
|
|
54
|
+
"x": 820,
|
|
55
|
+
"y": 100,
|
|
56
|
+
"wires": []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "f2b5f7e909917c8b",
|
|
60
|
+
"type": "inject",
|
|
61
|
+
"z": "caef1e7b5b399e80",
|
|
62
|
+
"name": "",
|
|
63
|
+
"props": [
|
|
64
|
+
{
|
|
65
|
+
"p": "payload"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"p": "topic",
|
|
69
|
+
"vt": "str"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"repeat": "60",
|
|
73
|
+
"crontab": "",
|
|
74
|
+
"once": true,
|
|
75
|
+
"onceDelay": "60",
|
|
76
|
+
"topic": "",
|
|
77
|
+
"payload": "",
|
|
78
|
+
"payloadType": "date",
|
|
79
|
+
"x": 270,
|
|
80
|
+
"y": 40,
|
|
81
|
+
"wires": [
|
|
82
|
+
[
|
|
83
|
+
"3d7babac3a298e60"
|
|
84
|
+
]
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "3d7babac3a298e60",
|
|
89
|
+
"type": "hb-status",
|
|
90
|
+
"z": "caef1e7b5b399e80",
|
|
91
|
+
"name": "West Bedroom",
|
|
92
|
+
"Homebridge": "homebridge",
|
|
93
|
+
"Manufacturer": "Tasmota",
|
|
94
|
+
"Service": "Lightbulb",
|
|
95
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
|
|
96
|
+
"conf": "557aec8e8c47e61e",
|
|
97
|
+
"x": 500,
|
|
98
|
+
"y": 40,
|
|
99
|
+
"wires": [
|
|
100
|
+
[
|
|
101
|
+
"902c5887b6877df6"
|
|
102
|
+
]
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "452e3e6171aa7a25",
|
|
107
|
+
"type": "hb-resume",
|
|
108
|
+
"z": "caef1e7b5b399e80",
|
|
109
|
+
"name": "West Bedroom",
|
|
110
|
+
"Homebridge": "homebridge",
|
|
111
|
+
"Manufacturer": "Tasmota",
|
|
112
|
+
"Service": "Lightbulb",
|
|
113
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
|
|
114
|
+
"conf": "557aec8e8c47e61e",
|
|
115
|
+
"x": 500,
|
|
116
|
+
"y": 160,
|
|
117
|
+
"wires": [
|
|
118
|
+
[
|
|
119
|
+
"1093ab38b01fd39f"
|
|
120
|
+
]
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "1093ab38b01fd39f",
|
|
125
|
+
"type": "debug",
|
|
126
|
+
"z": "caef1e7b5b399e80",
|
|
127
|
+
"name": "debug 3",
|
|
128
|
+
"active": true,
|
|
129
|
+
"tosidebar": true,
|
|
130
|
+
"console": false,
|
|
131
|
+
"tostatus": true,
|
|
132
|
+
"complete": "payload",
|
|
133
|
+
"targetType": "msg",
|
|
134
|
+
"statusVal": "payload",
|
|
135
|
+
"statusType": "auto",
|
|
136
|
+
"x": 820,
|
|
137
|
+
"y": 160,
|
|
138
|
+
"wires": []
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "0ed3cd7e0d60beda",
|
|
142
|
+
"type": "hb-control",
|
|
143
|
+
"z": "caef1e7b5b399e80",
|
|
144
|
+
"name": "West Bedroom Fan",
|
|
145
|
+
"Homebridge": "homebridge",
|
|
146
|
+
"Manufacturer": "Tasmota",
|
|
147
|
+
"Service": "Fan",
|
|
148
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom Fan00000040",
|
|
149
|
+
"conf": "557aec8e8c47e61e",
|
|
150
|
+
"outputs": 0,
|
|
151
|
+
"x": 510,
|
|
152
|
+
"y": 220,
|
|
153
|
+
"wires": []
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "6703815a8874b156",
|
|
157
|
+
"type": "hb-control",
|
|
158
|
+
"z": "caef1e7b5b399e80",
|
|
159
|
+
"name": "West Bedroom",
|
|
160
|
+
"Homebridge": "homebridge",
|
|
161
|
+
"Manufacturer": "Tasmota",
|
|
162
|
+
"Service": "Lightbulb",
|
|
163
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
|
|
164
|
+
"conf": "557aec8e8c47e61e",
|
|
165
|
+
"outputs": 1,
|
|
166
|
+
"x": 500,
|
|
167
|
+
"y": 300,
|
|
168
|
+
"wires": [
|
|
169
|
+
[
|
|
170
|
+
"f194fc4bcb1997a9"
|
|
171
|
+
]
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "24660f9d2862cee9",
|
|
176
|
+
"type": "inject",
|
|
177
|
+
"z": "caef1e7b5b399e80",
|
|
178
|
+
"name": "",
|
|
179
|
+
"props": [
|
|
180
|
+
{
|
|
181
|
+
"p": "payload"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"p": "topic",
|
|
185
|
+
"vt": "str"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"repeat": "",
|
|
189
|
+
"crontab": "",
|
|
190
|
+
"once": false,
|
|
191
|
+
"onceDelay": 0.1,
|
|
192
|
+
"topic": "",
|
|
193
|
+
"payload": "{\"On\": true, \"RotationSpeed\": 33}",
|
|
194
|
+
"payloadType": "json",
|
|
195
|
+
"x": 90,
|
|
196
|
+
"y": 180,
|
|
197
|
+
"wires": [
|
|
198
|
+
[
|
|
199
|
+
"0ed3cd7e0d60beda"
|
|
200
|
+
]
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "8c0ecac45b01df73",
|
|
205
|
+
"type": "inject",
|
|
206
|
+
"z": "caef1e7b5b399e80",
|
|
207
|
+
"name": "",
|
|
208
|
+
"props": [
|
|
209
|
+
{
|
|
210
|
+
"p": "payload"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"p": "topic",
|
|
214
|
+
"vt": "str"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"repeat": "",
|
|
218
|
+
"crontab": "",
|
|
219
|
+
"once": false,
|
|
220
|
+
"onceDelay": 0.1,
|
|
221
|
+
"topic": "",
|
|
222
|
+
"payload": "{\"On\": false}",
|
|
223
|
+
"payloadType": "json",
|
|
224
|
+
"x": 110,
|
|
225
|
+
"y": 240,
|
|
226
|
+
"wires": [
|
|
227
|
+
[
|
|
228
|
+
"0ed3cd7e0d60beda"
|
|
229
|
+
]
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": "b14ebf264be0c60d",
|
|
234
|
+
"type": "inject",
|
|
235
|
+
"z": "caef1e7b5b399e80",
|
|
236
|
+
"name": "",
|
|
237
|
+
"props": [
|
|
238
|
+
{
|
|
239
|
+
"p": "payload"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"p": "topic",
|
|
243
|
+
"vt": "str"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"repeat": "",
|
|
247
|
+
"crontab": "",
|
|
248
|
+
"once": false,
|
|
249
|
+
"onceDelay": 0.1,
|
|
250
|
+
"topic": "",
|
|
251
|
+
"payload": "{\"On\": true}",
|
|
252
|
+
"payloadType": "json",
|
|
253
|
+
"x": 110,
|
|
254
|
+
"y": 300,
|
|
255
|
+
"wires": [
|
|
256
|
+
[
|
|
257
|
+
"6703815a8874b156"
|
|
258
|
+
]
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "f872545e74246764",
|
|
263
|
+
"type": "inject",
|
|
264
|
+
"z": "caef1e7b5b399e80",
|
|
265
|
+
"name": "",
|
|
266
|
+
"props": [
|
|
267
|
+
{
|
|
268
|
+
"p": "payload"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"p": "topic",
|
|
272
|
+
"vt": "str"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"repeat": "",
|
|
276
|
+
"crontab": "",
|
|
277
|
+
"once": false,
|
|
278
|
+
"onceDelay": 0.1,
|
|
279
|
+
"topic": "",
|
|
280
|
+
"payload": "{\"On\": false}",
|
|
281
|
+
"payloadType": "json",
|
|
282
|
+
"x": 110,
|
|
283
|
+
"y": 340,
|
|
284
|
+
"wires": [
|
|
285
|
+
[
|
|
286
|
+
"6703815a8874b156"
|
|
287
|
+
]
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"id": "7eae7b87f319966e",
|
|
292
|
+
"type": "inject",
|
|
293
|
+
"z": "caef1e7b5b399e80",
|
|
294
|
+
"name": "",
|
|
295
|
+
"props": [
|
|
296
|
+
{
|
|
297
|
+
"p": "payload"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"p": "topic",
|
|
301
|
+
"vt": "str"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"repeat": "",
|
|
305
|
+
"crontab": "",
|
|
306
|
+
"once": false,
|
|
307
|
+
"onceDelay": 0.1,
|
|
308
|
+
"topic": "",
|
|
309
|
+
"payload": "",
|
|
310
|
+
"payloadType": "date",
|
|
311
|
+
"x": 280,
|
|
312
|
+
"y": 260,
|
|
313
|
+
"wires": [
|
|
314
|
+
[
|
|
315
|
+
"6703815a8874b156",
|
|
316
|
+
"0ed3cd7e0d60beda"
|
|
317
|
+
]
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": "6a7b40f6149f2d36",
|
|
322
|
+
"type": "inject",
|
|
323
|
+
"z": "caef1e7b5b399e80",
|
|
324
|
+
"name": "",
|
|
325
|
+
"props": [
|
|
326
|
+
{
|
|
327
|
+
"p": "payload"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"p": "topic",
|
|
331
|
+
"vt": "str"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"repeat": "",
|
|
335
|
+
"crontab": "",
|
|
336
|
+
"once": false,
|
|
337
|
+
"onceDelay": 0.1,
|
|
338
|
+
"topic": "",
|
|
339
|
+
"payload": "{\"Off\": false}",
|
|
340
|
+
"payloadType": "json",
|
|
341
|
+
"x": 110,
|
|
342
|
+
"y": 380,
|
|
343
|
+
"wires": [
|
|
344
|
+
[
|
|
345
|
+
"6703815a8874b156"
|
|
346
|
+
]
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"id": "80ffdbb93cd24b48",
|
|
351
|
+
"type": "inject",
|
|
352
|
+
"z": "caef1e7b5b399e80",
|
|
353
|
+
"name": "",
|
|
354
|
+
"props": [
|
|
355
|
+
{
|
|
356
|
+
"p": "payload"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"p": "topic",
|
|
360
|
+
"vt": "str"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"repeat": "",
|
|
364
|
+
"crontab": "",
|
|
365
|
+
"once": false,
|
|
366
|
+
"onceDelay": 0.1,
|
|
367
|
+
"topic": "",
|
|
368
|
+
"payload": "{\"On\": true}",
|
|
369
|
+
"payloadType": "json",
|
|
370
|
+
"x": 110,
|
|
371
|
+
"y": 80,
|
|
372
|
+
"wires": [
|
|
373
|
+
[
|
|
374
|
+
"452e3e6171aa7a25"
|
|
375
|
+
]
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": "d0e413b3c28f757a",
|
|
380
|
+
"type": "inject",
|
|
381
|
+
"z": "caef1e7b5b399e80",
|
|
382
|
+
"name": "",
|
|
383
|
+
"props": [
|
|
384
|
+
{
|
|
385
|
+
"p": "payload"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"p": "topic",
|
|
389
|
+
"vt": "str"
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"repeat": "",
|
|
393
|
+
"crontab": "",
|
|
394
|
+
"once": false,
|
|
395
|
+
"onceDelay": 0.1,
|
|
396
|
+
"topic": "",
|
|
397
|
+
"payload": "{\"On\": false}",
|
|
398
|
+
"payloadType": "json",
|
|
399
|
+
"x": 110,
|
|
400
|
+
"y": 140,
|
|
401
|
+
"wires": [
|
|
402
|
+
[
|
|
403
|
+
"452e3e6171aa7a25"
|
|
404
|
+
]
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"id": "82638dac6ac32bb1",
|
|
409
|
+
"type": "hb-event",
|
|
410
|
+
"z": "caef1e7b5b399e80",
|
|
411
|
+
"name": "West Bedroom",
|
|
412
|
+
"Homebridge": "homebridge",
|
|
413
|
+
"Manufacturer": "Tasmota",
|
|
414
|
+
"Service": "Lightbulb",
|
|
415
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaWest Bedroom00000043",
|
|
416
|
+
"conf": "557aec8e8c47e61e",
|
|
417
|
+
"sendInitialState": true,
|
|
418
|
+
"x": 500,
|
|
419
|
+
"y": 100,
|
|
420
|
+
"wires": [
|
|
421
|
+
[
|
|
422
|
+
"a866ae0bb24ce682"
|
|
423
|
+
]
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"id": "f194fc4bcb1997a9",
|
|
428
|
+
"type": "debug",
|
|
429
|
+
"z": "caef1e7b5b399e80",
|
|
430
|
+
"name": "debug 4",
|
|
431
|
+
"active": true,
|
|
432
|
+
"tosidebar": true,
|
|
433
|
+
"console": false,
|
|
434
|
+
"tostatus": true,
|
|
435
|
+
"complete": "payload",
|
|
436
|
+
"targetType": "msg",
|
|
437
|
+
"statusVal": "payload",
|
|
438
|
+
"statusType": "auto",
|
|
439
|
+
"x": 800,
|
|
440
|
+
"y": 300,
|
|
441
|
+
"wires": []
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"id": "12ce98441601c981",
|
|
445
|
+
"type": "hb-event",
|
|
446
|
+
"z": "caef1e7b5b399e80",
|
|
447
|
+
"name": "Driveway",
|
|
448
|
+
"Homebridge": "ECI-T24F2",
|
|
449
|
+
"Manufacturer": "HikVision",
|
|
450
|
+
"Service": "MotionSensor",
|
|
451
|
+
"device": "ECI-T24F2CB:6F:94:DD:43:77HikVisionDriveway00000085",
|
|
452
|
+
"conf": "557aec8e8c47e61e",
|
|
453
|
+
"sendInitialState": true,
|
|
454
|
+
"x": 320,
|
|
455
|
+
"y": 520,
|
|
456
|
+
"wires": [
|
|
457
|
+
[
|
|
458
|
+
"e2919464e7c4ab5c",
|
|
459
|
+
"08bc0ab3e3f2439f"
|
|
460
|
+
]
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"id": "6216377792cba653",
|
|
465
|
+
"type": "hb-control",
|
|
466
|
+
"z": "caef1e7b5b399e80",
|
|
467
|
+
"name": "Driveway 8E52",
|
|
468
|
+
"Homebridge": "ECI-T24F2",
|
|
469
|
+
"Manufacturer": "HikVision",
|
|
470
|
+
"Service": "CameraRTPStreamManagement",
|
|
471
|
+
"device": "ECI-T24F2CB:6F:94:DD:43:77HikVisionDriveway 8E5200000110",
|
|
472
|
+
"conf": "557aec8e8c47e61e",
|
|
473
|
+
"outputs": 1,
|
|
474
|
+
"x": 940,
|
|
475
|
+
"y": 500,
|
|
476
|
+
"wires": [
|
|
477
|
+
[
|
|
478
|
+
"9dc75e95be7ba465",
|
|
479
|
+
"12d2a40f6441c49c"
|
|
480
|
+
]
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"id": "08bc0ab3e3f2439f",
|
|
485
|
+
"type": "debug",
|
|
486
|
+
"z": "caef1e7b5b399e80",
|
|
487
|
+
"name": "debug 5",
|
|
488
|
+
"active": true,
|
|
489
|
+
"tosidebar": true,
|
|
490
|
+
"console": false,
|
|
491
|
+
"tostatus": true,
|
|
492
|
+
"complete": "true",
|
|
493
|
+
"targetType": "full",
|
|
494
|
+
"statusVal": "payload",
|
|
495
|
+
"statusType": "auto",
|
|
496
|
+
"x": 600,
|
|
497
|
+
"y": 580,
|
|
498
|
+
"wires": []
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"id": "e2919464e7c4ab5c",
|
|
502
|
+
"type": "switch",
|
|
503
|
+
"z": "caef1e7b5b399e80",
|
|
504
|
+
"name": "",
|
|
505
|
+
"property": "payload.MotionDetected",
|
|
506
|
+
"propertyType": "msg",
|
|
507
|
+
"rules": [
|
|
508
|
+
{
|
|
509
|
+
"t": "eq",
|
|
510
|
+
"v": "1",
|
|
511
|
+
"vt": "num"
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"checkall": "true",
|
|
515
|
+
"repair": false,
|
|
516
|
+
"outputs": 1,
|
|
517
|
+
"x": 590,
|
|
518
|
+
"y": 500,
|
|
519
|
+
"wires": [
|
|
520
|
+
[
|
|
521
|
+
"4982be53458df3a8"
|
|
522
|
+
]
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"id": "4982be53458df3a8",
|
|
527
|
+
"type": "change",
|
|
528
|
+
"z": "caef1e7b5b399e80",
|
|
529
|
+
"name": "",
|
|
530
|
+
"rules": [
|
|
531
|
+
{
|
|
532
|
+
"t": "set",
|
|
533
|
+
"p": "payload",
|
|
534
|
+
"pt": "msg",
|
|
535
|
+
"to": "",
|
|
536
|
+
"tot": "date"
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"action": "",
|
|
540
|
+
"property": "",
|
|
541
|
+
"from": "",
|
|
542
|
+
"to": "",
|
|
543
|
+
"reg": false,
|
|
544
|
+
"x": 740,
|
|
545
|
+
"y": 500,
|
|
546
|
+
"wires": [
|
|
547
|
+
[
|
|
548
|
+
"6216377792cba653"
|
|
549
|
+
]
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"id": "9dc75e95be7ba465",
|
|
554
|
+
"type": "debug",
|
|
555
|
+
"z": "caef1e7b5b399e80",
|
|
556
|
+
"name": "debug 6",
|
|
557
|
+
"active": true,
|
|
558
|
+
"tosidebar": true,
|
|
559
|
+
"console": false,
|
|
560
|
+
"tostatus": true,
|
|
561
|
+
"complete": "true",
|
|
562
|
+
"targetType": "full",
|
|
563
|
+
"statusVal": "payload",
|
|
564
|
+
"statusType": "msg",
|
|
565
|
+
"x": 1120,
|
|
566
|
+
"y": 500,
|
|
567
|
+
"wires": []
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"id": "25a7fbf22f944415",
|
|
571
|
+
"type": "inject",
|
|
572
|
+
"z": "caef1e7b5b399e80",
|
|
573
|
+
"name": "",
|
|
574
|
+
"props": [
|
|
575
|
+
{
|
|
576
|
+
"p": "payload"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"p": "topic",
|
|
580
|
+
"vt": "str"
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"repeat": "",
|
|
584
|
+
"crontab": "",
|
|
585
|
+
"once": false,
|
|
586
|
+
"onceDelay": 0.1,
|
|
587
|
+
"topic": "",
|
|
588
|
+
"payload": "{ \"MotionDetected\": 1 }",
|
|
589
|
+
"payloadType": "json",
|
|
590
|
+
"x": 340,
|
|
591
|
+
"y": 460,
|
|
592
|
+
"wires": [
|
|
593
|
+
[
|
|
594
|
+
"e2919464e7c4ab5c"
|
|
595
|
+
]
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"id": "12d2a40f6441c49c",
|
|
600
|
+
"type": "file",
|
|
601
|
+
"z": "caef1e7b5b399e80",
|
|
602
|
+
"name": "",
|
|
603
|
+
"filename": "/Users/sgracey/Desktop/image.jpeg",
|
|
604
|
+
"filenameType": "str",
|
|
605
|
+
"appendNewline": false,
|
|
606
|
+
"createDir": false,
|
|
607
|
+
"overwriteFile": "true",
|
|
608
|
+
"encoding": "none",
|
|
609
|
+
"x": 1210,
|
|
610
|
+
"y": 620,
|
|
611
|
+
"wires": [
|
|
612
|
+
[]
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"id": "4b787bfb023ccf23",
|
|
617
|
+
"type": "hb-event",
|
|
618
|
+
"z": "caef1e7b5b399e80",
|
|
619
|
+
"name": "Backyard",
|
|
620
|
+
"Homebridge": "Default Model",
|
|
621
|
+
"Manufacturer": "NRCHKB",
|
|
622
|
+
"Service": "TemperatureSensor",
|
|
623
|
+
"device": "Default Model69:62:B7:AE:38:D4NRCHKBBackyard0000008A",
|
|
624
|
+
"conf": "557aec8e8c47e61e",
|
|
625
|
+
"sendInitialState": true,
|
|
626
|
+
"x": 160,
|
|
627
|
+
"y": 660,
|
|
628
|
+
"wires": [
|
|
629
|
+
[
|
|
630
|
+
"c68bef6563c5d07e"
|
|
631
|
+
]
|
|
632
|
+
]
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"id": "c68bef6563c5d07e",
|
|
636
|
+
"type": "debug",
|
|
637
|
+
"z": "caef1e7b5b399e80",
|
|
638
|
+
"name": "debug 7",
|
|
639
|
+
"active": true,
|
|
640
|
+
"tosidebar": true,
|
|
641
|
+
"console": false,
|
|
642
|
+
"tostatus": true,
|
|
643
|
+
"complete": "payload",
|
|
644
|
+
"targetType": "msg",
|
|
645
|
+
"statusVal": "payload",
|
|
646
|
+
"statusType": "auto",
|
|
647
|
+
"x": 620,
|
|
648
|
+
"y": 740,
|
|
649
|
+
"wires": []
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"id": "3c36252a6f45eed9",
|
|
653
|
+
"type": "hb-status",
|
|
654
|
+
"z": "caef1e7b5b399e80",
|
|
655
|
+
"name": "Backyard Tree",
|
|
656
|
+
"Homebridge": "Default Model",
|
|
657
|
+
"Manufacturer": "NRCHKB",
|
|
658
|
+
"Service": "TemperatureSensor",
|
|
659
|
+
"device": "Default Model69:62:B7:AE:38:D4NRCHKBBackyard Tree0000008A",
|
|
660
|
+
"conf": "557aec8e8c47e61e",
|
|
661
|
+
"x": 360,
|
|
662
|
+
"y": 800,
|
|
663
|
+
"wires": [
|
|
664
|
+
[
|
|
665
|
+
"c68bef6563c5d07e"
|
|
666
|
+
]
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"id": "3b7537939b63eee8",
|
|
671
|
+
"type": "inject",
|
|
672
|
+
"z": "caef1e7b5b399e80",
|
|
673
|
+
"name": "",
|
|
674
|
+
"props": [
|
|
675
|
+
{
|
|
676
|
+
"p": "payload"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"p": "topic",
|
|
680
|
+
"vt": "str"
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"repeat": "60",
|
|
684
|
+
"crontab": "",
|
|
685
|
+
"once": true,
|
|
686
|
+
"onceDelay": "60",
|
|
687
|
+
"topic": "",
|
|
688
|
+
"payload": "",
|
|
689
|
+
"payloadType": "date",
|
|
690
|
+
"x": 150,
|
|
691
|
+
"y": 800,
|
|
692
|
+
"wires": [
|
|
693
|
+
[
|
|
694
|
+
"3c36252a6f45eed9"
|
|
695
|
+
]
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"id": "aabce5ff7fbbeec6",
|
|
700
|
+
"type": "status",
|
|
701
|
+
"z": "caef1e7b5b399e80",
|
|
702
|
+
"name": "",
|
|
703
|
+
"scope": [
|
|
704
|
+
"3d7babac3a298e60",
|
|
705
|
+
"452e3e6171aa7a25",
|
|
706
|
+
"0ed3cd7e0d60beda",
|
|
707
|
+
"6703815a8874b156",
|
|
708
|
+
"82638dac6ac32bb1",
|
|
709
|
+
"6216377792cba653",
|
|
710
|
+
"12ce98441601c981",
|
|
711
|
+
"4b787bfb023ccf23",
|
|
712
|
+
"3c36252a6f45eed9"
|
|
713
|
+
],
|
|
714
|
+
"x": 1020,
|
|
715
|
+
"y": 380,
|
|
716
|
+
"wires": [
|
|
717
|
+
[
|
|
718
|
+
"94f051597d18eaa3"
|
|
719
|
+
]
|
|
720
|
+
]
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"id": "94f051597d18eaa3",
|
|
724
|
+
"type": "debug",
|
|
725
|
+
"z": "caef1e7b5b399e80",
|
|
726
|
+
"name": "Status",
|
|
727
|
+
"active": true,
|
|
728
|
+
"tosidebar": true,
|
|
729
|
+
"console": false,
|
|
730
|
+
"tostatus": true,
|
|
731
|
+
"complete": "true",
|
|
732
|
+
"targetType": "full",
|
|
733
|
+
"statusVal": "status.source.name",
|
|
734
|
+
"statusType": "msg",
|
|
735
|
+
"x": 1190,
|
|
736
|
+
"y": 380,
|
|
737
|
+
"wires": []
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"id": "296297c79b544f59",
|
|
741
|
+
"type": "catch",
|
|
742
|
+
"z": "caef1e7b5b399e80",
|
|
743
|
+
"name": "",
|
|
744
|
+
"scope": null,
|
|
745
|
+
"uncaught": false,
|
|
746
|
+
"x": 1020,
|
|
747
|
+
"y": 300,
|
|
748
|
+
"wires": [
|
|
749
|
+
[
|
|
750
|
+
"0073218b1ebc53f1"
|
|
751
|
+
]
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"id": "0073218b1ebc53f1",
|
|
756
|
+
"type": "debug",
|
|
757
|
+
"z": "caef1e7b5b399e80",
|
|
758
|
+
"name": "Catch",
|
|
759
|
+
"active": true,
|
|
760
|
+
"tosidebar": true,
|
|
761
|
+
"console": false,
|
|
762
|
+
"tostatus": true,
|
|
763
|
+
"complete": "true",
|
|
764
|
+
"targetType": "full",
|
|
765
|
+
"statusVal": "payload",
|
|
766
|
+
"statusType": "msg",
|
|
767
|
+
"x": 1190,
|
|
768
|
+
"y": 280,
|
|
769
|
+
"wires": []
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"id": "834248faa510b756",
|
|
773
|
+
"type": "hb-event",
|
|
774
|
+
"z": "ddaa42d2292b69e2",
|
|
775
|
+
"name": "Backyard",
|
|
776
|
+
"Homebridge": "homebridge",
|
|
777
|
+
"Manufacturer": "Eufy",
|
|
778
|
+
"Service": "MotionSensor",
|
|
779
|
+
"device": "homebridge0E:89:A7:DA:D3:21EufyBackyard00000085",
|
|
780
|
+
"conf": "557aec8e8c47e61e",
|
|
781
|
+
"sendInitialState": false,
|
|
782
|
+
"x": 100,
|
|
783
|
+
"y": 140,
|
|
784
|
+
"wires": [
|
|
785
|
+
[]
|
|
786
|
+
]
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"id": "55f84c7bfb7c121e",
|
|
790
|
+
"type": "hb-control",
|
|
791
|
+
"z": "ddaa42d2292b69e2",
|
|
792
|
+
"name": "Backyard",
|
|
793
|
+
"Homebridge": "homebridge",
|
|
794
|
+
"Manufacturer": "Eufy",
|
|
795
|
+
"Service": "CameraRTPStreamManagement",
|
|
796
|
+
"device": "homebridge0E:89:A7:DA:D3:21EufyBackyard00000110",
|
|
797
|
+
"conf": "557aec8e8c47e61e",
|
|
798
|
+
"outputs": 0,
|
|
799
|
+
"x": 680,
|
|
800
|
+
"y": 140,
|
|
801
|
+
"wires": []
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"id": "a5a864e72e6e8864",
|
|
805
|
+
"type": "hb-event",
|
|
806
|
+
"z": "ddaa42d2292b69e2",
|
|
807
|
+
"name": "Patio Room",
|
|
808
|
+
"Homebridge": "homebridge",
|
|
809
|
+
"Manufacturer": "Hunter Fan",
|
|
810
|
+
"Service": "Lightbulb",
|
|
811
|
+
"device": "homebridge0E:F4:E9:FC:AD:D1Hunter FanPatio Room00000043",
|
|
812
|
+
"conf": "557aec8e8c47e61e",
|
|
813
|
+
"sendInitialState": true,
|
|
814
|
+
"x": 190,
|
|
815
|
+
"y": 280,
|
|
816
|
+
"wires": [
|
|
817
|
+
[
|
|
818
|
+
"81f4056eb30cf459"
|
|
819
|
+
]
|
|
820
|
+
]
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"id": "81f4056eb30cf459",
|
|
824
|
+
"type": "debug",
|
|
825
|
+
"z": "ddaa42d2292b69e2",
|
|
826
|
+
"name": "debug 8",
|
|
827
|
+
"active": true,
|
|
828
|
+
"tosidebar": true,
|
|
829
|
+
"console": false,
|
|
830
|
+
"tostatus": true,
|
|
831
|
+
"complete": "payload",
|
|
832
|
+
"targetType": "msg",
|
|
833
|
+
"statusVal": "payload",
|
|
834
|
+
"statusType": "auto",
|
|
835
|
+
"x": 540,
|
|
836
|
+
"y": 300,
|
|
837
|
+
"wires": []
|
|
838
|
+
}
|
|
839
|
+
]
|