node-red-contrib-homebridge-automation 0.3.0-beta.1 → 0.3.0-beta.11

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.
@@ -11,7 +11,7 @@
11
11
  "id": "ddaa42d2292b69e2",
12
12
  "type": "tab",
13
13
  "label": "Flow 2",
14
- "disabled": false,
14
+ "disabled": true,
15
15
  "info": "",
16
16
  "env": []
17
17
  },
@@ -35,6 +35,14 @@
35
35
  "id": "4138921fd7b9a926",
36
36
  "type": "tab",
37
37
  "label": "Flow 5",
38
+ "disabled": false,
39
+ "info": "",
40
+ "env": []
41
+ },
42
+ {
43
+ "id": "92f59d974b9c8a86",
44
+ "type": "tab",
45
+ "label": "Camera Test",
38
46
  "disabled": true,
39
47
  "info": "",
40
48
  "env": []
@@ -43,38 +51,8 @@
43
51
  "id": "7e647d67.f33acc",
44
52
  "type": "hb-conf",
45
53
  "username": "031-45-154",
46
- "macAddress": ""
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": ""
54
+ "macAddress": "",
55
+ "debug": true
78
56
  },
79
57
  {
80
58
  "id": "902c5887b6877df6",
@@ -2620,28 +2598,41 @@
2620
2598
  ]
2621
2599
  },
2622
2600
  {
2623
- "id": "5a0779448d4dcdb3",
2624
- "type": "mqtt in",
2601
+ "id": "50af5bb963e4a186",
2602
+ "type": "hb-resume",
2625
2603
  "z": "4138921fd7b9a926",
2626
- "name": "",
2627
- "topic": "home/#",
2628
- "qos": "2",
2629
- "datatype": "auto-detect",
2630
- "broker": "df5dd49178c517fa",
2631
- "nl": false,
2632
- "rap": true,
2633
- "rh": 0,
2634
- "inputs": 0,
2635
- "x": 130,
2636
- "y": 180,
2604
+ "name": "Floor Lamp One",
2605
+ "Homebridge": "homebridge",
2606
+ "Manufacturer": "Signify Netherlands B.V.",
2607
+ "Service": "Lightbulb",
2608
+ "device": "homebridgeCC:22:3D:E3:CF:33Signify Netherlands B.V.Floor Lamp One00000043",
2609
+ "conf": "7e647d67.f33acc",
2610
+ "x": 500,
2611
+ "y": 80,
2637
2612
  "wires": [
2638
2613
  [
2639
- "4510eba830da4c9d"
2614
+ "8ba7a5a4aa28dc2f",
2615
+ "29580d01ef2e651d"
2640
2616
  ]
2641
2617
  ]
2642
2618
  },
2643
2619
  {
2644
- "id": "d82488396ae950bf",
2620
+ "id": "8ba7a5a4aa28dc2f",
2621
+ "type": "hb-control",
2622
+ "z": "4138921fd7b9a926",
2623
+ "name": "Floor Lamp One",
2624
+ "Homebridge": "homebridge",
2625
+ "Manufacturer": "Signify Netherlands B.V.",
2626
+ "Service": "Lightbulb",
2627
+ "device": "homebridgeCC:22:3D:E3:CF:33Signify Netherlands B.V.Floor Lamp One00000043",
2628
+ "conf": "7e647d67.f33acc",
2629
+ "outputs": 0,
2630
+ "x": 720,
2631
+ "y": 80,
2632
+ "wires": []
2633
+ },
2634
+ {
2635
+ "id": "29580d01ef2e651d",
2645
2636
  "type": "debug",
2646
2637
  "z": "4138921fd7b9a926",
2647
2638
  "name": "debug 17",
@@ -2651,127 +2642,515 @@
2651
2642
  "tostatus": true,
2652
2643
  "complete": "payload",
2653
2644
  "targetType": "msg",
2654
- "statusVal": "device",
2655
- "statusType": "msg",
2645
+ "statusVal": "payload",
2646
+ "statusType": "auto",
2656
2647
  "x": 720,
2657
2648
  "y": 140,
2658
2649
  "wires": []
2659
2650
  },
2660
2651
  {
2661
- "id": "6f6d507ccce7460f",
2662
- "type": "switch",
2652
+ "id": "b3c8e4dcd5b62de4",
2653
+ "type": "inject",
2663
2654
  "z": "4138921fd7b9a926",
2664
2655
  "name": "",
2665
- "property": "shortTopic",
2666
- "propertyType": "msg",
2667
- "rules": [
2656
+ "props": [
2668
2657
  {
2669
- "t": "eq",
2670
- "v": "SYStoMQTT",
2671
- "vt": "str"
2658
+ "p": "payload"
2672
2659
  },
2673
2660
  {
2674
- "t": "eq",
2675
- "v": "version",
2661
+ "p": "topic",
2676
2662
  "vt": "str"
2663
+ }
2664
+ ],
2665
+ "repeat": "",
2666
+ "crontab": "",
2667
+ "once": false,
2668
+ "onceDelay": 0.1,
2669
+ "topic": "",
2670
+ "payload": "{\"On\": true}",
2671
+ "payloadType": "json",
2672
+ "x": 170,
2673
+ "y": 80,
2674
+ "wires": [
2675
+ [
2676
+ "50af5bb963e4a186"
2677
+ ]
2678
+ ]
2679
+ },
2680
+ {
2681
+ "id": "a74ef133a980c5f3",
2682
+ "type": "inject",
2683
+ "z": "4138921fd7b9a926",
2684
+ "name": "",
2685
+ "props": [
2686
+ {
2687
+ "p": "payload"
2677
2688
  },
2678
2689
  {
2679
- "t": "eq",
2680
- "v": "LWT",
2690
+ "p": "topic",
2681
2691
  "vt": "str"
2692
+ }
2693
+ ],
2694
+ "repeat": "",
2695
+ "crontab": "",
2696
+ "once": false,
2697
+ "onceDelay": 0.1,
2698
+ "topic": "",
2699
+ "payload": "{\"On\": false}",
2700
+ "payloadType": "json",
2701
+ "x": 170,
2702
+ "y": 140,
2703
+ "wires": [
2704
+ [
2705
+ "50af5bb963e4a186"
2706
+ ]
2707
+ ]
2708
+ },
2709
+ {
2710
+ "id": "1e6b8797f5279a1f",
2711
+ "type": "inject",
2712
+ "z": "4138921fd7b9a926",
2713
+ "name": "{\"Brightness\":40,\"On\":true,\"ColorTemperature\":242}",
2714
+ "props": [
2715
+ {
2716
+ "p": "payload"
2682
2717
  },
2683
2718
  {
2684
- "t": "else"
2719
+ "p": "topic",
2720
+ "vt": "str"
2685
2721
  }
2686
2722
  ],
2687
- "checkall": "false",
2688
- "repair": false,
2689
- "outputs": 4,
2690
- "x": 530,
2691
- "y": 180,
2723
+ "repeat": "",
2724
+ "crontab": "",
2725
+ "once": false,
2726
+ "onceDelay": 0.1,
2727
+ "topic": "",
2728
+ "payload": "{\"Brightness\":40,\"On\":true,\"ColorTemperature\":242}",
2729
+ "payloadType": "json",
2730
+ "x": 290,
2731
+ "y": 260,
2692
2732
  "wires": [
2693
2733
  [
2694
- "d82488396ae950bf"
2695
- ],
2696
- [],
2697
- [
2698
- "1649c3dc535b26f2"
2699
- ],
2734
+ "50af5bb963e4a186"
2735
+ ]
2736
+ ]
2737
+ },
2738
+ {
2739
+ "id": "4bb2bae9fe4ffbbb",
2740
+ "type": "hb-status",
2741
+ "z": "4138921fd7b9a926",
2742
+ "name": "Floor Lamp One",
2743
+ "Homebridge": "homebridge",
2744
+ "Manufacturer": "Signify Netherlands B.V.",
2745
+ "Service": "Lightbulb",
2746
+ "device": "homebridgeCC:22:3D:E3:CF:33Signify Netherlands B.V.Floor Lamp One00000043",
2747
+ "conf": "7e647d67.f33acc",
2748
+ "x": 300,
2749
+ "y": 440,
2750
+ "wires": [
2700
2751
  [
2701
- "d7a34617ef5e9f31"
2752
+ "96ad615138d1254e"
2702
2753
  ]
2703
2754
  ]
2704
2755
  },
2705
2756
  {
2706
- "id": "45cb1d621afc9b52",
2757
+ "id": "96ad615138d1254e",
2707
2758
  "type": "debug",
2708
2759
  "z": "4138921fd7b9a926",
2709
2760
  "name": "debug 18",
2710
- "active": false,
2761
+ "active": true,
2711
2762
  "tosidebar": true,
2712
2763
  "console": false,
2713
2764
  "tostatus": true,
2714
- "complete": "true",
2715
- "targetType": "full",
2716
- "statusVal": "topic",
2765
+ "complete": "payload",
2766
+ "targetType": "msg",
2767
+ "statusVal": "payload",
2717
2768
  "statusType": "auto",
2718
- "x": 320,
2719
- "y": 360,
2769
+ "x": 520,
2770
+ "y": 400,
2720
2771
  "wires": []
2721
2772
  },
2722
2773
  {
2723
- "id": "4510eba830da4c9d",
2724
- "type": "function",
2774
+ "id": "7b085aa32101811e",
2775
+ "type": "hb-event",
2725
2776
  "z": "4138921fd7b9a926",
2726
- "name": "function 3",
2727
- "func": "const [home, device, shortTopic] = msg.topic.split(\"/\");\nmsg.shortTopic = shortTopic;\nmsg.device = device;\nreturn msg;",
2728
- "outputs": 1,
2729
- "timeout": 0,
2730
- "noerr": 0,
2731
- "initialize": "",
2732
- "finalize": "",
2733
- "libs": [],
2734
- "x": 320,
2735
- "y": 180,
2777
+ "name": "Floor Lamp One",
2778
+ "Homebridge": "homebridge",
2779
+ "Manufacturer": "Signify Netherlands B.V.",
2780
+ "Service": "Lightbulb",
2781
+ "device": "homebridgeCC:22:3D:E3:CF:33Signify Netherlands B.V.Floor Lamp One00000043",
2782
+ "conf": "7e647d67.f33acc",
2783
+ "sendInitialState": true,
2784
+ "x": 300,
2785
+ "y": 360,
2786
+ "wires": [
2787
+ [
2788
+ "96ad615138d1254e"
2789
+ ]
2790
+ ]
2791
+ },
2792
+ {
2793
+ "id": "247bb4b9017d5ed3",
2794
+ "type": "catch",
2795
+ "z": "4138921fd7b9a926",
2796
+ "name": "",
2797
+ "scope": null,
2798
+ "uncaught": false,
2799
+ "x": 280,
2800
+ "y": 520,
2736
2801
  "wires": [
2737
2802
  [
2738
- "6f6d507ccce7460f",
2739
- "45cb1d621afc9b52"
2803
+ "ecfe37f30b4b452f"
2740
2804
  ]
2741
2805
  ]
2742
2806
  },
2743
2807
  {
2744
- "id": "d7a34617ef5e9f31",
2808
+ "id": "ecfe37f30b4b452f",
2745
2809
  "type": "debug",
2746
2810
  "z": "4138921fd7b9a926",
2747
2811
  "name": "debug 19",
2748
- "active": false,
2812
+ "active": true,
2749
2813
  "tosidebar": true,
2750
2814
  "console": false,
2751
2815
  "tostatus": true,
2752
2816
  "complete": "payload",
2753
2817
  "targetType": "msg",
2754
- "statusVal": "shortTopic",
2755
- "statusType": "msg",
2756
- "x": 720,
2757
- "y": 260,
2818
+ "statusVal": "payload",
2819
+ "statusType": "auto",
2820
+ "x": 540,
2821
+ "y": 520,
2758
2822
  "wires": []
2759
2823
  },
2760
2824
  {
2761
- "id": "1649c3dc535b26f2",
2825
+ "id": "f775ab948cea1532",
2826
+ "type": "status",
2827
+ "z": "4138921fd7b9a926",
2828
+ "name": "",
2829
+ "scope": null,
2830
+ "x": 280,
2831
+ "y": 580,
2832
+ "wires": [
2833
+ []
2834
+ ]
2835
+ },
2836
+ {
2837
+ "id": "dd3e9950ef4f1482",
2762
2838
  "type": "debug",
2763
2839
  "z": "4138921fd7b9a926",
2764
2840
  "name": "debug 20",
2765
- "active": false,
2841
+ "active": true,
2842
+ "tosidebar": true,
2843
+ "console": false,
2844
+ "tostatus": true,
2845
+ "complete": "true",
2846
+ "targetType": "full",
2847
+ "statusVal": "payload",
2848
+ "statusType": "auto",
2849
+ "x": 540,
2850
+ "y": 580,
2851
+ "wires": []
2852
+ },
2853
+ {
2854
+ "id": "64d1e3d573689b65",
2855
+ "type": "inject",
2856
+ "z": "4138921fd7b9a926",
2857
+ "name": "",
2858
+ "props": [
2859
+ {
2860
+ "p": "payload"
2861
+ },
2862
+ {
2863
+ "p": "topic",
2864
+ "vt": "str"
2865
+ }
2866
+ ],
2867
+ "repeat": "",
2868
+ "crontab": "",
2869
+ "once": false,
2870
+ "onceDelay": 0.1,
2871
+ "topic": "",
2872
+ "payload": "{\"ColorTemperature\": false}",
2873
+ "payloadType": "json",
2874
+ "x": 150,
2875
+ "y": 200,
2876
+ "wires": [
2877
+ [
2878
+ "8ba7a5a4aa28dc2f"
2879
+ ]
2880
+ ]
2881
+ },
2882
+ {
2883
+ "id": "6df154716efd4949",
2884
+ "type": "hb-event",
2885
+ "z": "92f59d974b9c8a86",
2886
+ "name": "Side door",
2887
+ "Homebridge": "homebridge",
2888
+ "Manufacturer": "Eufy",
2889
+ "Service": "MotionSensor",
2890
+ "device": "homebridge0E:89:A7:DA:D3:21EufySide door00000085",
2891
+ "conf": "7e647d67.f33acc",
2892
+ "sendInitialState": true,
2893
+ "x": 100,
2894
+ "y": 220,
2895
+ "wires": [
2896
+ [
2897
+ "d376945f7d6314f9",
2898
+ "943911317b27b4bc"
2899
+ ]
2900
+ ]
2901
+ },
2902
+ {
2903
+ "id": "d376945f7d6314f9",
2904
+ "type": "switch",
2905
+ "z": "92f59d974b9c8a86",
2906
+ "name": "",
2907
+ "property": "payload.MotionDetected",
2908
+ "propertyType": "msg",
2909
+ "rules": [
2910
+ {
2911
+ "t": "eq",
2912
+ "v": "1",
2913
+ "vt": "num"
2914
+ }
2915
+ ],
2916
+ "checkall": "true",
2917
+ "repair": false,
2918
+ "outputs": 1,
2919
+ "x": 270,
2920
+ "y": 220,
2921
+ "wires": [
2922
+ [
2923
+ "af0d07b6f7fc7582"
2924
+ ]
2925
+ ]
2926
+ },
2927
+ {
2928
+ "id": "af0d07b6f7fc7582",
2929
+ "type": "change",
2930
+ "z": "92f59d974b9c8a86",
2931
+ "name": "",
2932
+ "rules": [
2933
+ {
2934
+ "t": "set",
2935
+ "p": "payload",
2936
+ "pt": "msg",
2937
+ "to": "",
2938
+ "tot": "date"
2939
+ }
2940
+ ],
2941
+ "action": "",
2942
+ "property": "",
2943
+ "from": "",
2944
+ "to": "",
2945
+ "reg": false,
2946
+ "x": 460,
2947
+ "y": 220,
2948
+ "wires": [
2949
+ [
2950
+ "769d2de2c6bd3544"
2951
+ ]
2952
+ ]
2953
+ },
2954
+ {
2955
+ "id": "769d2de2c6bd3544",
2956
+ "type": "hb-control",
2957
+ "z": "92f59d974b9c8a86",
2958
+ "name": "Side door",
2959
+ "Homebridge": "homebridge",
2960
+ "Manufacturer": "Eufy",
2961
+ "Service": "CameraRTPStreamManagement",
2962
+ "device": "homebridge0E:89:A7:DA:D3:21EufySide door00000110",
2963
+ "conf": "7e647d67.f33acc",
2964
+ "outputs": 1,
2965
+ "x": 660,
2966
+ "y": 220,
2967
+ "wires": [
2968
+ [
2969
+ "1c18c4d5c4cd94db"
2970
+ ]
2971
+ ]
2972
+ },
2973
+ {
2974
+ "id": "1c18c4d5c4cd94db",
2975
+ "type": "debug",
2976
+ "z": "92f59d974b9c8a86",
2977
+ "name": "debug 21",
2978
+ "active": true,
2766
2979
  "tosidebar": true,
2767
2980
  "console": false,
2768
2981
  "tostatus": true,
2769
2982
  "complete": "payload",
2770
2983
  "targetType": "msg",
2771
- "statusVal": "device",
2772
- "statusType": "msg",
2773
- "x": 720,
2774
- "y": 200,
2984
+ "statusVal": "payload",
2985
+ "statusType": "auto",
2986
+ "x": 840,
2987
+ "y": 280,
2775
2988
  "wires": []
2989
+ },
2990
+ {
2991
+ "id": "0f20a38b99769b49",
2992
+ "type": "hb-event",
2993
+ "z": "92f59d974b9c8a86",
2994
+ "name": "Driveway 8E52",
2995
+ "Homebridge": "ECI-T24F2",
2996
+ "Manufacturer": "HikVision",
2997
+ "Service": "MotionSensor",
2998
+ "device": "ECI-T24F2CB:6F:94:DD:43:77HikVisionDriveway 8E5200000085",
2999
+ "conf": "7e647d67.f33acc",
3000
+ "sendInitialState": true,
3001
+ "x": 120,
3002
+ "y": 340,
3003
+ "wires": [
3004
+ [
3005
+ "6529d84b67c5459c",
3006
+ "943911317b27b4bc"
3007
+ ]
3008
+ ]
3009
+ },
3010
+ {
3011
+ "id": "6529d84b67c5459c",
3012
+ "type": "switch",
3013
+ "z": "92f59d974b9c8a86",
3014
+ "name": "",
3015
+ "property": "payload.MotionDetected",
3016
+ "propertyType": "msg",
3017
+ "rules": [
3018
+ {
3019
+ "t": "eq",
3020
+ "v": "1",
3021
+ "vt": "num"
3022
+ }
3023
+ ],
3024
+ "checkall": "true",
3025
+ "repair": false,
3026
+ "outputs": 1,
3027
+ "x": 270,
3028
+ "y": 340,
3029
+ "wires": [
3030
+ [
3031
+ "339bbd909e720f6a"
3032
+ ]
3033
+ ]
3034
+ },
3035
+ {
3036
+ "id": "339bbd909e720f6a",
3037
+ "type": "change",
3038
+ "z": "92f59d974b9c8a86",
3039
+ "name": "",
3040
+ "rules": [
3041
+ {
3042
+ "t": "set",
3043
+ "p": "payload",
3044
+ "pt": "msg",
3045
+ "to": "",
3046
+ "tot": "date"
3047
+ }
3048
+ ],
3049
+ "action": "",
3050
+ "property": "",
3051
+ "from": "",
3052
+ "to": "",
3053
+ "reg": false,
3054
+ "x": 460,
3055
+ "y": 340,
3056
+ "wires": [
3057
+ [
3058
+ "6376743020f33cad"
3059
+ ]
3060
+ ]
3061
+ },
3062
+ {
3063
+ "id": "6376743020f33cad",
3064
+ "type": "hb-control",
3065
+ "z": "92f59d974b9c8a86",
3066
+ "name": "Driveway 8E52",
3067
+ "Homebridge": "ECI-T24F2",
3068
+ "Manufacturer": "HikVision",
3069
+ "Service": "CameraRTPStreamManagement",
3070
+ "device": "ECI-T24F2CB:6F:94:DD:43:77HikVisionDriveway 8E5200000110",
3071
+ "conf": "7e647d67.f33acc",
3072
+ "outputs": 1,
3073
+ "x": 680,
3074
+ "y": 340,
3075
+ "wires": [
3076
+ [
3077
+ "1c18c4d5c4cd94db"
3078
+ ]
3079
+ ]
3080
+ },
3081
+ {
3082
+ "id": "6ffdb50055b87417",
3083
+ "type": "inject",
3084
+ "z": "92f59d974b9c8a86",
3085
+ "name": "",
3086
+ "props": [
3087
+ {
3088
+ "p": "payload"
3089
+ },
3090
+ {
3091
+ "p": "topic",
3092
+ "vt": "str"
3093
+ }
3094
+ ],
3095
+ "repeat": "",
3096
+ "crontab": "",
3097
+ "once": false,
3098
+ "onceDelay": 0.1,
3099
+ "topic": "",
3100
+ "payload": "{ \"MotionDetected\": 1 }",
3101
+ "payloadType": "json",
3102
+ "x": 180,
3103
+ "y": 500,
3104
+ "wires": [
3105
+ [
3106
+ "6529d84b67c5459c"
3107
+ ]
3108
+ ]
3109
+ },
3110
+ {
3111
+ "id": "943911317b27b4bc",
3112
+ "type": "debug",
3113
+ "z": "92f59d974b9c8a86",
3114
+ "name": "debug 22",
3115
+ "active": true,
3116
+ "tosidebar": true,
3117
+ "console": false,
3118
+ "tostatus": true,
3119
+ "complete": "payload",
3120
+ "targetType": "msg",
3121
+ "statusVal": "payload",
3122
+ "statusType": "auto",
3123
+ "x": 700,
3124
+ "y": 500,
3125
+ "wires": []
3126
+ },
3127
+ {
3128
+ "id": "ce6f12b351ca78bc",
3129
+ "type": "inject",
3130
+ "z": "92f59d974b9c8a86",
3131
+ "name": "",
3132
+ "props": [
3133
+ {
3134
+ "p": "payload"
3135
+ },
3136
+ {
3137
+ "p": "topic",
3138
+ "vt": "str"
3139
+ }
3140
+ ],
3141
+ "repeat": "",
3142
+ "crontab": "",
3143
+ "once": false,
3144
+ "onceDelay": 0.1,
3145
+ "topic": "",
3146
+ "payload": "{ \"MotionDetected\": 1 }",
3147
+ "payloadType": "json",
3148
+ "x": 160,
3149
+ "y": 60,
3150
+ "wires": [
3151
+ [
3152
+ "d376945f7d6314f9"
3153
+ ]
3154
+ ]
2776
3155
  }
2777
3156
  ]