node-red-contrib-homebridge-automation 0.3.0-beta.0 → 0.3.0-beta.10
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/README.md +11 -2
- package/package.json +2 -2
- package/src/HAP-NodeRed.html +18 -1
- package/src/hbConfigNode.js +12 -8
- package/src/hbConfigNode.test.js +80 -19
- package/src/hbControlNode.js +0 -1
- package/test/homebridge-automation-endpoints.json +18815 -0
- package/test/homebridge-automation-hbDevices-v2.json +1244 -0
- package/test/homebridge-automation-hbDevices-v3.json +965 -0
- package/test/node-red/flows.json +285 -2
package/test/node-red/flows.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"id": "ddaa42d2292b69e2",
|
|
12
12
|
"type": "tab",
|
|
13
13
|
"label": "Flow 2",
|
|
14
|
-
"disabled":
|
|
14
|
+
"disabled": true,
|
|
15
15
|
"info": "",
|
|
16
16
|
"env": []
|
|
17
17
|
},
|
|
@@ -39,11 +39,20 @@
|
|
|
39
39
|
"info": "",
|
|
40
40
|
"env": []
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"id": "92f59d974b9c8a86",
|
|
44
|
+
"type": "tab",
|
|
45
|
+
"label": "Camera Test",
|
|
46
|
+
"disabled": false,
|
|
47
|
+
"info": "",
|
|
48
|
+
"env": []
|
|
49
|
+
},
|
|
42
50
|
{
|
|
43
51
|
"id": "7e647d67.f33acc",
|
|
44
52
|
"type": "hb-conf",
|
|
45
53
|
"username": "031-45-154",
|
|
46
|
-
"macAddress": ""
|
|
54
|
+
"macAddress": "",
|
|
55
|
+
"debug": true
|
|
47
56
|
},
|
|
48
57
|
{
|
|
49
58
|
"id": "df5dd49178c517fa",
|
|
@@ -2773,5 +2782,279 @@
|
|
|
2773
2782
|
"x": 720,
|
|
2774
2783
|
"y": 200,
|
|
2775
2784
|
"wires": []
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"id": "6df154716efd4949",
|
|
2788
|
+
"type": "hb-event",
|
|
2789
|
+
"z": "92f59d974b9c8a86",
|
|
2790
|
+
"name": "Side door",
|
|
2791
|
+
"Homebridge": "homebridge",
|
|
2792
|
+
"Manufacturer": "Eufy",
|
|
2793
|
+
"Service": "MotionSensor",
|
|
2794
|
+
"device": "homebridge0E:89:A7:DA:D3:21EufySide door00000085",
|
|
2795
|
+
"conf": "7e647d67.f33acc",
|
|
2796
|
+
"sendInitialState": true,
|
|
2797
|
+
"x": 100,
|
|
2798
|
+
"y": 220,
|
|
2799
|
+
"wires": [
|
|
2800
|
+
[
|
|
2801
|
+
"d376945f7d6314f9",
|
|
2802
|
+
"943911317b27b4bc"
|
|
2803
|
+
]
|
|
2804
|
+
]
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
"id": "d376945f7d6314f9",
|
|
2808
|
+
"type": "switch",
|
|
2809
|
+
"z": "92f59d974b9c8a86",
|
|
2810
|
+
"name": "",
|
|
2811
|
+
"property": "payload.MotionDetected",
|
|
2812
|
+
"propertyType": "msg",
|
|
2813
|
+
"rules": [
|
|
2814
|
+
{
|
|
2815
|
+
"t": "eq",
|
|
2816
|
+
"v": "1",
|
|
2817
|
+
"vt": "num"
|
|
2818
|
+
}
|
|
2819
|
+
],
|
|
2820
|
+
"checkall": "true",
|
|
2821
|
+
"repair": false,
|
|
2822
|
+
"outputs": 1,
|
|
2823
|
+
"x": 270,
|
|
2824
|
+
"y": 220,
|
|
2825
|
+
"wires": [
|
|
2826
|
+
[
|
|
2827
|
+
"af0d07b6f7fc7582"
|
|
2828
|
+
]
|
|
2829
|
+
]
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
"id": "af0d07b6f7fc7582",
|
|
2833
|
+
"type": "change",
|
|
2834
|
+
"z": "92f59d974b9c8a86",
|
|
2835
|
+
"name": "",
|
|
2836
|
+
"rules": [
|
|
2837
|
+
{
|
|
2838
|
+
"t": "set",
|
|
2839
|
+
"p": "payload",
|
|
2840
|
+
"pt": "msg",
|
|
2841
|
+
"to": "",
|
|
2842
|
+
"tot": "date"
|
|
2843
|
+
}
|
|
2844
|
+
],
|
|
2845
|
+
"action": "",
|
|
2846
|
+
"property": "",
|
|
2847
|
+
"from": "",
|
|
2848
|
+
"to": "",
|
|
2849
|
+
"reg": false,
|
|
2850
|
+
"x": 460,
|
|
2851
|
+
"y": 220,
|
|
2852
|
+
"wires": [
|
|
2853
|
+
[
|
|
2854
|
+
"769d2de2c6bd3544"
|
|
2855
|
+
]
|
|
2856
|
+
]
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"id": "769d2de2c6bd3544",
|
|
2860
|
+
"type": "hb-control",
|
|
2861
|
+
"z": "92f59d974b9c8a86",
|
|
2862
|
+
"name": "Side door",
|
|
2863
|
+
"Homebridge": "homebridge",
|
|
2864
|
+
"Manufacturer": "Eufy",
|
|
2865
|
+
"Service": "CameraRTPStreamManagement",
|
|
2866
|
+
"device": "homebridge0E:89:A7:DA:D3:21EufySide door00000110",
|
|
2867
|
+
"conf": "7e647d67.f33acc",
|
|
2868
|
+
"outputs": 1,
|
|
2869
|
+
"x": 660,
|
|
2870
|
+
"y": 220,
|
|
2871
|
+
"wires": [
|
|
2872
|
+
[
|
|
2873
|
+
"1c18c4d5c4cd94db"
|
|
2874
|
+
]
|
|
2875
|
+
]
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
"id": "1c18c4d5c4cd94db",
|
|
2879
|
+
"type": "debug",
|
|
2880
|
+
"z": "92f59d974b9c8a86",
|
|
2881
|
+
"name": "debug 21",
|
|
2882
|
+
"active": true,
|
|
2883
|
+
"tosidebar": true,
|
|
2884
|
+
"console": false,
|
|
2885
|
+
"tostatus": true,
|
|
2886
|
+
"complete": "payload",
|
|
2887
|
+
"targetType": "msg",
|
|
2888
|
+
"statusVal": "payload",
|
|
2889
|
+
"statusType": "auto",
|
|
2890
|
+
"x": 840,
|
|
2891
|
+
"y": 280,
|
|
2892
|
+
"wires": []
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"id": "0f20a38b99769b49",
|
|
2896
|
+
"type": "hb-event",
|
|
2897
|
+
"z": "92f59d974b9c8a86",
|
|
2898
|
+
"name": "Driveway 8E52",
|
|
2899
|
+
"Homebridge": "ECI-T24F2",
|
|
2900
|
+
"Manufacturer": "HikVision",
|
|
2901
|
+
"Service": "MotionSensor",
|
|
2902
|
+
"device": "ECI-T24F2CB:6F:94:DD:43:77HikVisionDriveway 8E5200000085",
|
|
2903
|
+
"conf": "7e647d67.f33acc",
|
|
2904
|
+
"sendInitialState": true,
|
|
2905
|
+
"x": 120,
|
|
2906
|
+
"y": 340,
|
|
2907
|
+
"wires": [
|
|
2908
|
+
[
|
|
2909
|
+
"6529d84b67c5459c",
|
|
2910
|
+
"943911317b27b4bc"
|
|
2911
|
+
]
|
|
2912
|
+
]
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
"id": "6529d84b67c5459c",
|
|
2916
|
+
"type": "switch",
|
|
2917
|
+
"z": "92f59d974b9c8a86",
|
|
2918
|
+
"name": "",
|
|
2919
|
+
"property": "payload.MotionDetected",
|
|
2920
|
+
"propertyType": "msg",
|
|
2921
|
+
"rules": [
|
|
2922
|
+
{
|
|
2923
|
+
"t": "eq",
|
|
2924
|
+
"v": "1",
|
|
2925
|
+
"vt": "num"
|
|
2926
|
+
}
|
|
2927
|
+
],
|
|
2928
|
+
"checkall": "true",
|
|
2929
|
+
"repair": false,
|
|
2930
|
+
"outputs": 1,
|
|
2931
|
+
"x": 270,
|
|
2932
|
+
"y": 340,
|
|
2933
|
+
"wires": [
|
|
2934
|
+
[
|
|
2935
|
+
"339bbd909e720f6a"
|
|
2936
|
+
]
|
|
2937
|
+
]
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
"id": "339bbd909e720f6a",
|
|
2941
|
+
"type": "change",
|
|
2942
|
+
"z": "92f59d974b9c8a86",
|
|
2943
|
+
"name": "",
|
|
2944
|
+
"rules": [
|
|
2945
|
+
{
|
|
2946
|
+
"t": "set",
|
|
2947
|
+
"p": "payload",
|
|
2948
|
+
"pt": "msg",
|
|
2949
|
+
"to": "",
|
|
2950
|
+
"tot": "date"
|
|
2951
|
+
}
|
|
2952
|
+
],
|
|
2953
|
+
"action": "",
|
|
2954
|
+
"property": "",
|
|
2955
|
+
"from": "",
|
|
2956
|
+
"to": "",
|
|
2957
|
+
"reg": false,
|
|
2958
|
+
"x": 460,
|
|
2959
|
+
"y": 340,
|
|
2960
|
+
"wires": [
|
|
2961
|
+
[
|
|
2962
|
+
"6376743020f33cad"
|
|
2963
|
+
]
|
|
2964
|
+
]
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"id": "6376743020f33cad",
|
|
2968
|
+
"type": "hb-control",
|
|
2969
|
+
"z": "92f59d974b9c8a86",
|
|
2970
|
+
"name": "Driveway 8E52",
|
|
2971
|
+
"Homebridge": "ECI-T24F2",
|
|
2972
|
+
"Manufacturer": "HikVision",
|
|
2973
|
+
"Service": "CameraRTPStreamManagement",
|
|
2974
|
+
"device": "ECI-T24F2CB:6F:94:DD:43:77HikVisionDriveway 8E5200000110",
|
|
2975
|
+
"conf": "7e647d67.f33acc",
|
|
2976
|
+
"outputs": 1,
|
|
2977
|
+
"x": 680,
|
|
2978
|
+
"y": 340,
|
|
2979
|
+
"wires": [
|
|
2980
|
+
[
|
|
2981
|
+
"1c18c4d5c4cd94db"
|
|
2982
|
+
]
|
|
2983
|
+
]
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"id": "6ffdb50055b87417",
|
|
2987
|
+
"type": "inject",
|
|
2988
|
+
"z": "92f59d974b9c8a86",
|
|
2989
|
+
"name": "",
|
|
2990
|
+
"props": [
|
|
2991
|
+
{
|
|
2992
|
+
"p": "payload"
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
"p": "topic",
|
|
2996
|
+
"vt": "str"
|
|
2997
|
+
}
|
|
2998
|
+
],
|
|
2999
|
+
"repeat": "",
|
|
3000
|
+
"crontab": "",
|
|
3001
|
+
"once": false,
|
|
3002
|
+
"onceDelay": 0.1,
|
|
3003
|
+
"topic": "",
|
|
3004
|
+
"payload": "{ \"MotionDetected\": 1 }",
|
|
3005
|
+
"payloadType": "json",
|
|
3006
|
+
"x": 180,
|
|
3007
|
+
"y": 500,
|
|
3008
|
+
"wires": [
|
|
3009
|
+
[
|
|
3010
|
+
"6529d84b67c5459c"
|
|
3011
|
+
]
|
|
3012
|
+
]
|
|
3013
|
+
},
|
|
3014
|
+
{
|
|
3015
|
+
"id": "943911317b27b4bc",
|
|
3016
|
+
"type": "debug",
|
|
3017
|
+
"z": "92f59d974b9c8a86",
|
|
3018
|
+
"name": "debug 22",
|
|
3019
|
+
"active": true,
|
|
3020
|
+
"tosidebar": true,
|
|
3021
|
+
"console": false,
|
|
3022
|
+
"tostatus": true,
|
|
3023
|
+
"complete": "payload",
|
|
3024
|
+
"targetType": "msg",
|
|
3025
|
+
"statusVal": "payload",
|
|
3026
|
+
"statusType": "auto",
|
|
3027
|
+
"x": 700,
|
|
3028
|
+
"y": 500,
|
|
3029
|
+
"wires": []
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"id": "ce6f12b351ca78bc",
|
|
3033
|
+
"type": "inject",
|
|
3034
|
+
"z": "92f59d974b9c8a86",
|
|
3035
|
+
"name": "",
|
|
3036
|
+
"props": [
|
|
3037
|
+
{
|
|
3038
|
+
"p": "payload"
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
"p": "topic",
|
|
3042
|
+
"vt": "str"
|
|
3043
|
+
}
|
|
3044
|
+
],
|
|
3045
|
+
"repeat": "",
|
|
3046
|
+
"crontab": "",
|
|
3047
|
+
"once": false,
|
|
3048
|
+
"onceDelay": 0.1,
|
|
3049
|
+
"topic": "",
|
|
3050
|
+
"payload": "{ \"MotionDetected\": 1 }",
|
|
3051
|
+
"payloadType": "json",
|
|
3052
|
+
"x": 160,
|
|
3053
|
+
"y": 60,
|
|
3054
|
+
"wires": [
|
|
3055
|
+
[
|
|
3056
|
+
"d376945f7d6314f9"
|
|
3057
|
+
]
|
|
3058
|
+
]
|
|
2776
3059
|
}
|
|
2777
3060
|
]
|