node-red-contrib-homebridge-automation 0.2.1-beta.3 → 0.2.1-beta.5
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/package.json +1 -1
- package/src/hbConfigNode.js +4 -4
- package/src/hbEventNode.js +1 -1
- package/test/node-red/.flows.json.backup +20 -20
- package/test/node-red/flows.json +13 -13
package/package.json
CHANGED
package/src/hbConfigNode.js
CHANGED
|
@@ -78,10 +78,10 @@ class HBConfigNode {
|
|
|
78
78
|
return filterUnique(this.hbDevices)
|
|
79
79
|
.filter(service => supportedTypes.has(service.humanType))
|
|
80
80
|
.map(service => ({
|
|
81
|
-
name: service.serviceName,
|
|
82
|
-
fullName: `${service.serviceName} - ${service.
|
|
83
|
-
sortName: `${service.serviceName}:${service.type}`,
|
|
84
|
-
uniqueId: `${service.instance.name}${service.instance.username}${service.accessoryInformation.Manufacturer}${service.serviceName}${service.uuid.slice(0, 8)}`,
|
|
81
|
+
name: (service.serviceName ? service.serviceName : service.accessoryInformation.Name),
|
|
82
|
+
fullName: `${(service.serviceName ? service.serviceName : service.accessoryInformation.Name)} - ${service.humanType}`,
|
|
83
|
+
sortName: `${(service.serviceName ? service.serviceName : service.accessoryInformation.Name)}:${service.type}`,
|
|
84
|
+
uniqueId: `${service.instance.name}${service.instance.username}${service.accessoryInformation.Manufacturer}${(service.serviceName ? service.serviceName : service.accessoryInformation.Name)}${service.uuid.slice(0, 8)}`,
|
|
85
85
|
homebridge: service.instance.name,
|
|
86
86
|
service: service.type,
|
|
87
87
|
manufacturer: service.accessoryInformation.Manufacturer,
|
package/src/hbEventNode.js
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"type": "debug",
|
|
43
43
|
"z": "caef1e7b5b399e80",
|
|
44
44
|
"name": "debug 1",
|
|
45
|
-
"active":
|
|
45
|
+
"active": false,
|
|
46
46
|
"tosidebar": true,
|
|
47
47
|
"console": false,
|
|
48
48
|
"tostatus": true,
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"type": "debug",
|
|
60
60
|
"z": "caef1e7b5b399e80",
|
|
61
61
|
"name": "debug 2",
|
|
62
|
-
"active":
|
|
62
|
+
"active": false,
|
|
63
63
|
"tosidebar": true,
|
|
64
64
|
"console": false,
|
|
65
65
|
"tostatus": true,
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"type": "debug",
|
|
142
142
|
"z": "caef1e7b5b399e80",
|
|
143
143
|
"name": "debug 3",
|
|
144
|
-
"active":
|
|
144
|
+
"active": false,
|
|
145
145
|
"tosidebar": true,
|
|
146
146
|
"console": false,
|
|
147
147
|
"tostatus": true,
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"type": "debug",
|
|
445
445
|
"z": "caef1e7b5b399e80",
|
|
446
446
|
"name": "debug 4",
|
|
447
|
-
"active":
|
|
447
|
+
"active": false,
|
|
448
448
|
"tosidebar": true,
|
|
449
449
|
"console": false,
|
|
450
450
|
"tostatus": true,
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
"type": "debug",
|
|
502
502
|
"z": "caef1e7b5b399e80",
|
|
503
503
|
"name": "debug 5",
|
|
504
|
-
"active":
|
|
504
|
+
"active": false,
|
|
505
505
|
"tosidebar": true,
|
|
506
506
|
"console": false,
|
|
507
507
|
"tostatus": true,
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"type": "debug",
|
|
571
571
|
"z": "caef1e7b5b399e80",
|
|
572
572
|
"name": "debug 6",
|
|
573
|
-
"active":
|
|
573
|
+
"active": false,
|
|
574
574
|
"tosidebar": true,
|
|
575
575
|
"console": false,
|
|
576
576
|
"tostatus": true,
|
|
@@ -634,9 +634,9 @@
|
|
|
634
634
|
"z": "caef1e7b5b399e80",
|
|
635
635
|
"name": "Backyard",
|
|
636
636
|
"Homebridge": "Default Model",
|
|
637
|
-
"Manufacturer": "NRCHKB",
|
|
637
|
+
"Manufacturer": "NRCHKB - LaCrosse-TX141W",
|
|
638
638
|
"Service": "TemperatureSensor",
|
|
639
|
-
"device": "Default Model69:62:B7:AE:38:
|
|
639
|
+
"device": "Default Model69:62:B7:AE:38:D4NRCHKB - LaCrosse-TX141WBackyard0000008A",
|
|
640
640
|
"conf": "7e647d67.f33acc",
|
|
641
641
|
"sendInitialState": true,
|
|
642
642
|
"x": 160,
|
|
@@ -670,9 +670,9 @@
|
|
|
670
670
|
"z": "caef1e7b5b399e80",
|
|
671
671
|
"name": "Backyard Tree",
|
|
672
672
|
"Homebridge": "Default Model",
|
|
673
|
-
"Manufacturer": "NRCHKB",
|
|
673
|
+
"Manufacturer": "NRCHKB - LaCrosse-TX141Bv3",
|
|
674
674
|
"Service": "TemperatureSensor",
|
|
675
|
-
"device": "Default Model69:62:B7:AE:38:
|
|
675
|
+
"device": "Default Model69:62:B7:AE:38:D4NRCHKB - LaCrosse-TX141Bv3Backyard Tree0000008A",
|
|
676
676
|
"conf": "7e647d67.f33acc",
|
|
677
677
|
"x": 360,
|
|
678
678
|
"y": 800,
|
|
@@ -2250,13 +2250,13 @@
|
|
|
2250
2250
|
"id": "7ceb11204ab233ad",
|
|
2251
2251
|
"type": "hb-resume",
|
|
2252
2252
|
"z": "efb3c9c5f6bdfd6c",
|
|
2253
|
-
"name": "Bunkie
|
|
2253
|
+
"name": "Bunkie Fan",
|
|
2254
2254
|
"Homebridge": "homebridge",
|
|
2255
|
-
"Manufacturer": "
|
|
2256
|
-
"Service": "
|
|
2257
|
-
"device": "
|
|
2255
|
+
"Manufacturer": "Tasmota",
|
|
2256
|
+
"Service": "Fan",
|
|
2257
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaBunkie Fan00000040",
|
|
2258
2258
|
"conf": "7e647d67.f33acc",
|
|
2259
|
-
"x":
|
|
2259
|
+
"x": 570,
|
|
2260
2260
|
"y": 680,
|
|
2261
2261
|
"wires": [
|
|
2262
2262
|
[
|
|
@@ -2351,14 +2351,14 @@
|
|
|
2351
2351
|
"id": "2abd3edc55335405",
|
|
2352
2352
|
"type": "hb-control",
|
|
2353
2353
|
"z": "efb3c9c5f6bdfd6c",
|
|
2354
|
-
"name": "Bunkie
|
|
2354
|
+
"name": "Bunkie Fan",
|
|
2355
2355
|
"Homebridge": "homebridge",
|
|
2356
|
-
"Manufacturer": "
|
|
2357
|
-
"Service": "
|
|
2358
|
-
"device": "
|
|
2356
|
+
"Manufacturer": "Tasmota",
|
|
2357
|
+
"Service": "Fan",
|
|
2358
|
+
"device": "homebridge1C:22:3D:E3:CF:34TasmotaBunkie Fan00000040",
|
|
2359
2359
|
"conf": "7e647d67.f33acc",
|
|
2360
2360
|
"outputs": 0,
|
|
2361
|
-
"x":
|
|
2361
|
+
"x": 790,
|
|
2362
2362
|
"y": 680,
|
|
2363
2363
|
"wires": []
|
|
2364
2364
|
},
|
package/test/node-red/flows.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"type": "debug",
|
|
43
43
|
"z": "caef1e7b5b399e80",
|
|
44
44
|
"name": "debug 1",
|
|
45
|
-
"active":
|
|
45
|
+
"active": false,
|
|
46
46
|
"tosidebar": true,
|
|
47
47
|
"console": false,
|
|
48
48
|
"tostatus": true,
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"type": "debug",
|
|
60
60
|
"z": "caef1e7b5b399e80",
|
|
61
61
|
"name": "debug 2",
|
|
62
|
-
"active":
|
|
62
|
+
"active": false,
|
|
63
63
|
"tosidebar": true,
|
|
64
64
|
"console": false,
|
|
65
65
|
"tostatus": true,
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"type": "debug",
|
|
142
142
|
"z": "caef1e7b5b399e80",
|
|
143
143
|
"name": "debug 3",
|
|
144
|
-
"active":
|
|
144
|
+
"active": false,
|
|
145
145
|
"tosidebar": true,
|
|
146
146
|
"console": false,
|
|
147
147
|
"tostatus": true,
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"type": "debug",
|
|
445
445
|
"z": "caef1e7b5b399e80",
|
|
446
446
|
"name": "debug 4",
|
|
447
|
-
"active":
|
|
447
|
+
"active": false,
|
|
448
448
|
"tosidebar": true,
|
|
449
449
|
"console": false,
|
|
450
450
|
"tostatus": true,
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
"type": "debug",
|
|
502
502
|
"z": "caef1e7b5b399e80",
|
|
503
503
|
"name": "debug 5",
|
|
504
|
-
"active":
|
|
504
|
+
"active": false,
|
|
505
505
|
"tosidebar": true,
|
|
506
506
|
"console": false,
|
|
507
507
|
"tostatus": true,
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"type": "debug",
|
|
571
571
|
"z": "caef1e7b5b399e80",
|
|
572
572
|
"name": "debug 6",
|
|
573
|
-
"active":
|
|
573
|
+
"active": false,
|
|
574
574
|
"tosidebar": true,
|
|
575
575
|
"console": false,
|
|
576
576
|
"tostatus": true,
|
|
@@ -634,9 +634,9 @@
|
|
|
634
634
|
"z": "caef1e7b5b399e80",
|
|
635
635
|
"name": "Backyard",
|
|
636
636
|
"Homebridge": "Default Model",
|
|
637
|
-
"Manufacturer": "NRCHKB",
|
|
637
|
+
"Manufacturer": "NRCHKB - LaCrosse-TX141W",
|
|
638
638
|
"Service": "TemperatureSensor",
|
|
639
|
-
"device": "Default Model69:62:B7:AE:38:
|
|
639
|
+
"device": "Default Model69:62:B7:AE:38:D4NRCHKB - LaCrosse-TX141WBackyard0000008A",
|
|
640
640
|
"conf": "7e647d67.f33acc",
|
|
641
641
|
"sendInitialState": true,
|
|
642
642
|
"x": 160,
|
|
@@ -656,10 +656,10 @@
|
|
|
656
656
|
"tosidebar": true,
|
|
657
657
|
"console": false,
|
|
658
658
|
"tostatus": true,
|
|
659
|
-
"complete": "
|
|
660
|
-
"targetType": "
|
|
659
|
+
"complete": "true",
|
|
660
|
+
"targetType": "full",
|
|
661
661
|
"statusVal": "payload",
|
|
662
|
-
"statusType": "
|
|
662
|
+
"statusType": "msg",
|
|
663
663
|
"x": 620,
|
|
664
664
|
"y": 740,
|
|
665
665
|
"wires": []
|
|
@@ -670,9 +670,9 @@
|
|
|
670
670
|
"z": "caef1e7b5b399e80",
|
|
671
671
|
"name": "Backyard Tree",
|
|
672
672
|
"Homebridge": "Default Model",
|
|
673
|
-
"Manufacturer": "NRCHKB",
|
|
673
|
+
"Manufacturer": "NRCHKB - LaCrosse-TX141Bv3",
|
|
674
674
|
"Service": "TemperatureSensor",
|
|
675
|
-
"device": "Default Model69:62:B7:AE:38:
|
|
675
|
+
"device": "Default Model69:62:B7:AE:38:D4NRCHKB - LaCrosse-TX141Bv3Backyard Tree0000008A",
|
|
676
676
|
"conf": "7e647d67.f33acc",
|
|
677
677
|
"x": 360,
|
|
678
678
|
"y": 800,
|