node-red-contrib-homebridge-automation 0.2.1-beta.4 → 0.2.1-beta.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homebridge-automation",
3
- "version": "0.2.1-beta.4",
3
+ "version": "0.2.1-beta.6",
4
4
  "description": "NodeRED Automation for HomeBridge",
5
5
  "main": "src/HAP-NodeRed.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@ class HbEventNode extends hbBaseNode {
27
27
  shape: 'dot',
28
28
  fill: 'green',
29
29
  });
30
- this.send({ payload: service.values });
30
+ this.send({ ...this.createMessage(service) });
31
31
  }
32
32
  }
33
33
 
@@ -19,7 +19,7 @@
19
19
  "id": "75c3fcfcb21ddc3a",
20
20
  "type": "tab",
21
21
  "label": "Flow 3",
22
- "disabled": false,
22
+ "disabled": true,
23
23
  "info": "",
24
24
  "env": []
25
25
  },
@@ -31,12 +31,51 @@
31
31
  "info": "",
32
32
  "env": []
33
33
  },
34
+ {
35
+ "id": "4138921fd7b9a926",
36
+ "type": "tab",
37
+ "label": "Flow 5",
38
+ "disabled": false,
39
+ "info": "",
40
+ "env": []
41
+ },
34
42
  {
35
43
  "id": "7e647d67.f33acc",
36
44
  "type": "hb-conf",
37
45
  "username": "031-45-154",
38
46
  "macAddress": ""
39
47
  },
48
+ {
49
+ "id": "df5dd49178c517fa",
50
+ "type": "mqtt-broker",
51
+ "name": "",
52
+ "broker": "mqtt.local",
53
+ "port": "1883",
54
+ "clientid": "",
55
+ "autoConnect": true,
56
+ "usetls": false,
57
+ "protocolVersion": "4",
58
+ "keepalive": "60",
59
+ "cleansession": true,
60
+ "autoUnsubscribe": true,
61
+ "birthTopic": "",
62
+ "birthQos": "0",
63
+ "birthRetain": "false",
64
+ "birthPayload": "",
65
+ "birthMsg": {},
66
+ "closeTopic": "",
67
+ "closeQos": "0",
68
+ "closeRetain": "false",
69
+ "closePayload": "",
70
+ "closeMsg": {},
71
+ "willTopic": "",
72
+ "willQos": "0",
73
+ "willRetain": "false",
74
+ "willPayload": "",
75
+ "willMsg": {},
76
+ "userProps": "",
77
+ "sessionExpiry": ""
78
+ },
40
79
  {
41
80
  "id": "902c5887b6877df6",
42
81
  "type": "debug",
@@ -677,9 +716,7 @@
677
716
  "x": 360,
678
717
  "y": 800,
679
718
  "wires": [
680
- [
681
- "c68bef6563c5d07e"
682
- ]
719
+ []
683
720
  ]
684
721
  },
685
722
  {
@@ -740,7 +777,7 @@
740
777
  "type": "debug",
741
778
  "z": "caef1e7b5b399e80",
742
779
  "name": "Status",
743
- "active": true,
780
+ "active": false,
744
781
  "tosidebar": true,
745
782
  "console": false,
746
783
  "tostatus": true,
@@ -772,7 +809,7 @@
772
809
  "type": "debug",
773
810
  "z": "caef1e7b5b399e80",
774
811
  "name": "Catch",
775
- "active": true,
812
+ "active": false,
776
813
  "tosidebar": true,
777
814
  "console": false,
778
815
  "tostatus": true,
@@ -2449,5 +2486,160 @@
2449
2486
  "e7671cdf7ca08bdb"
2450
2487
  ]
2451
2488
  ]
2489
+ },
2490
+ {
2491
+ "id": "5a0779448d4dcdb3",
2492
+ "type": "mqtt in",
2493
+ "z": "4138921fd7b9a926",
2494
+ "name": "",
2495
+ "topic": "home/#",
2496
+ "qos": "2",
2497
+ "datatype": "auto-detect",
2498
+ "broker": "df5dd49178c517fa",
2499
+ "nl": false,
2500
+ "rap": true,
2501
+ "rh": 0,
2502
+ "inputs": 0,
2503
+ "x": 130,
2504
+ "y": 180,
2505
+ "wires": [
2506
+ [
2507
+ "4510eba830da4c9d"
2508
+ ]
2509
+ ]
2510
+ },
2511
+ {
2512
+ "id": "d82488396ae950bf",
2513
+ "type": "debug",
2514
+ "z": "4138921fd7b9a926",
2515
+ "name": "debug 17",
2516
+ "active": true,
2517
+ "tosidebar": true,
2518
+ "console": false,
2519
+ "tostatus": true,
2520
+ "complete": "payload",
2521
+ "targetType": "msg",
2522
+ "statusVal": "device",
2523
+ "statusType": "msg",
2524
+ "x": 720,
2525
+ "y": 140,
2526
+ "wires": []
2527
+ },
2528
+ {
2529
+ "id": "6f6d507ccce7460f",
2530
+ "type": "switch",
2531
+ "z": "4138921fd7b9a926",
2532
+ "name": "",
2533
+ "property": "shortTopic",
2534
+ "propertyType": "msg",
2535
+ "rules": [
2536
+ {
2537
+ "t": "eq",
2538
+ "v": "SYStoMQTT",
2539
+ "vt": "str"
2540
+ },
2541
+ {
2542
+ "t": "eq",
2543
+ "v": "version",
2544
+ "vt": "str"
2545
+ },
2546
+ {
2547
+ "t": "eq",
2548
+ "v": "LWT",
2549
+ "vt": "str"
2550
+ },
2551
+ {
2552
+ "t": "else"
2553
+ }
2554
+ ],
2555
+ "checkall": "false",
2556
+ "repair": false,
2557
+ "outputs": 4,
2558
+ "x": 530,
2559
+ "y": 180,
2560
+ "wires": [
2561
+ [
2562
+ "d82488396ae950bf"
2563
+ ],
2564
+ [],
2565
+ [
2566
+ "1649c3dc535b26f2"
2567
+ ],
2568
+ [
2569
+ "d7a34617ef5e9f31"
2570
+ ]
2571
+ ]
2572
+ },
2573
+ {
2574
+ "id": "45cb1d621afc9b52",
2575
+ "type": "debug",
2576
+ "z": "4138921fd7b9a926",
2577
+ "name": "debug 18",
2578
+ "active": false,
2579
+ "tosidebar": true,
2580
+ "console": false,
2581
+ "tostatus": true,
2582
+ "complete": "true",
2583
+ "targetType": "full",
2584
+ "statusVal": "topic",
2585
+ "statusType": "auto",
2586
+ "x": 320,
2587
+ "y": 360,
2588
+ "wires": []
2589
+ },
2590
+ {
2591
+ "id": "4510eba830da4c9d",
2592
+ "type": "function",
2593
+ "z": "4138921fd7b9a926",
2594
+ "name": "function 3",
2595
+ "func": "const [home, device, shortTopic] = msg.topic.split(\"/\");\nmsg.shortTopic = shortTopic;\nmsg.device = device;\nreturn msg;",
2596
+ "outputs": 1,
2597
+ "timeout": 0,
2598
+ "noerr": 0,
2599
+ "initialize": "",
2600
+ "finalize": "",
2601
+ "libs": [],
2602
+ "x": 320,
2603
+ "y": 180,
2604
+ "wires": [
2605
+ [
2606
+ "6f6d507ccce7460f",
2607
+ "45cb1d621afc9b52"
2608
+ ]
2609
+ ]
2610
+ },
2611
+ {
2612
+ "id": "d7a34617ef5e9f31",
2613
+ "type": "debug",
2614
+ "z": "4138921fd7b9a926",
2615
+ "name": "debug 19",
2616
+ "active": false,
2617
+ "tosidebar": true,
2618
+ "console": false,
2619
+ "tostatus": true,
2620
+ "complete": "payload",
2621
+ "targetType": "msg",
2622
+ "statusVal": "shortTopic",
2623
+ "statusType": "msg",
2624
+ "x": 720,
2625
+ "y": 260,
2626
+ "wires": []
2627
+ },
2628
+ {
2629
+ "id": "1649c3dc535b26f2",
2630
+ "type": "debug",
2631
+ "z": "4138921fd7b9a926",
2632
+ "name": "debug 20",
2633
+ "active": false,
2634
+ "tosidebar": true,
2635
+ "console": false,
2636
+ "tostatus": true,
2637
+ "complete": "payload",
2638
+ "targetType": "msg",
2639
+ "statusVal": "device",
2640
+ "statusType": "msg",
2641
+ "x": 720,
2642
+ "y": 200,
2643
+ "wires": []
2452
2644
  }
2453
2645
  ]
@@ -0,0 +1,3 @@
1
+ {
2
+ "$": "4608d6ceb4b69637921bb4f59e20a4684/mH88CDr3gPDxF4Iyp9VGhCXgzwGz8="
3
+ }