node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.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/build/lib/HAPHostNode.js +185 -148
- package/build/lib/HAPServiceNode.js +200 -177
- package/build/lib/HAPServiceNode2.js +208 -177
- package/build/lib/NRCHKBError.js +23 -2
- package/build/lib/PairingQRCode.js +62 -0
- package/build/lib/Storage.js +152 -90
- package/build/lib/api.js +654 -291
- package/build/lib/camera/CameraControl.js +125 -0
- package/build/lib/camera/CameraDelegate.js +507 -0
- package/build/lib/camera/MP4StreamingServer.js +159 -0
- package/build/lib/hap/HAPCharacteristic.js +25 -4
- package/build/lib/hap/HAPService.js +25 -4
- package/build/lib/hap/eve-app/EveCharacteristics.js +124 -81
- package/build/lib/hap/eve-app/EveServices.js +50 -17
- package/build/lib/hap/hap-nodejs.js +32 -0
- package/build/lib/migration/HomeKitService2Migration.js +34 -0
- package/build/lib/migration/NodeMigration.js +75 -0
- package/build/lib/types/AccessoryInformationType.js +15 -1
- package/build/lib/types/CameraConfigType.js +15 -1
- package/build/lib/types/CustomCharacteristicType.js +15 -1
- package/build/lib/types/HAPHostConfigType.js +15 -1
- package/build/lib/types/HAPHostNodeType.js +15 -1
- package/build/lib/types/HAPService2ConfigType.js +15 -1
- package/build/lib/types/HAPService2NodeType.js +15 -1
- package/build/lib/types/HAPServiceConfigType.js +15 -1
- package/build/lib/types/HAPServiceNodeType.js +15 -1
- package/build/lib/types/HAPStatusConfigType.js +15 -1
- package/build/lib/types/HAPStatusNodeType.js +15 -1
- package/build/lib/types/HostType.js +28 -7
- package/build/lib/types/NodeType.js +15 -1
- package/build/lib/types/PublishTimersType.js +15 -1
- package/build/lib/types/UniFiControllerConfigType.js +16 -0
- package/build/lib/types/hap-nodejs/HapAdaptiveLightingControllerMode.js +28 -7
- package/build/lib/types/hap-nodejs/HapCategories.js +64 -43
- package/build/lib/types/storage/SerializedHostType.js +15 -1
- package/build/lib/types/storage/StorageType.js +34 -10
- package/build/lib/unifi/ProtectDiscovery.js +80 -0
- package/build/lib/utils/AccessoryUtils.js +152 -110
- package/build/lib/utils/BridgeUtils.js +95 -39
- package/build/lib/utils/CharacteristicUtils.js +5 -49
- package/build/lib/utils/CharacteristicUtils2.js +5 -49
- package/build/lib/utils/CharacteristicUtilsBase.js +81 -0
- package/build/lib/utils/NodeStatusUtils.js +89 -40
- package/build/lib/utils/ServiceUtils.js +433 -371
- package/build/lib/utils/ServiceUtils2.js +519 -305
- package/build/lib/utils/index.js +11 -12
- package/build/nodes/bridge.html +206 -168
- package/build/nodes/bridge.js +27 -9
- package/build/nodes/locales/en-US/node-red-contrib-homekit-bridged.json +22 -0
- package/build/nodes/nrchkb.html +1753 -117
- package/build/nodes/nrchkb.js +66 -88
- package/build/nodes/plugin-instance.html +509 -0
- package/build/nodes/plugin-instance.js +46 -0
- package/build/nodes/service.html +557 -306
- package/build/nodes/service.js +5 -6
- package/build/nodes/service2.html +1735 -455
- package/build/nodes/service2.js +5 -8
- package/build/nodes/standalone.html +208 -176
- package/build/nodes/standalone.js +27 -9
- package/build/nodes/status.html +51 -18
- package/build/nodes/status.js +47 -41
- package/build/nodes/unifi-controller.html +92 -0
- package/build/nodes/unifi-controller.js +20 -0
- package/build/plugins/embedded/homebridge-camera-ffmpeg/index.js +479 -0
- package/build/plugins/embedded/homebridge-unifi-protect/index.js +521 -0
- package/build/plugins/embedded/index.js +58 -0
- package/build/plugins/nrchkb-homekit-plugins.js +17 -0
- package/build/plugins/registry/index.js +203 -0
- package/build/plugins/registry/types.js +16 -0
- package/build/scripts/migrate-homekit-service-flows.js +47 -0
- package/examples/demo/01 - ALL Demos single import.json +1885 -2139
- package/examples/demo/02 - Air Purifier.json +12 -61
- package/examples/demo/03 - Air Quality sensor with Battery.json +8 -36
- package/examples/demo/04 - Dimmable Bulb.json +4 -21
- package/examples/demo/05 - Color Bulb (HSV).json +5 -26
- package/examples/demo/06 - Fan (simple, 3 speeds).json +6 -31
- package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +4 -21
- package/examples/demo/08 - CO2 detector.json +8 -39
- package/examples/demo/09 - CO (carbon monoxide) example.json +9 -44
- package/examples/demo/10 - Door window contact sensor.json +8 -39
- package/examples/demos (advanced)/01 - Television with inputs and speaker.json +19 -85
- package/examples/switch/01 - Plain Switch.json +179 -199
- package/package.json +48 -34
- package/build/lib/HAPHostNode.d.ts +0 -1
- package/build/lib/HAPServiceNode.d.ts +0 -1
- package/build/lib/HAPServiceNode2.d.ts +0 -1
- package/build/lib/NRCHKBError.d.ts +0 -3
- package/build/lib/Storage.d.ts +0 -30
- package/build/lib/api.d.ts +0 -1
- package/build/lib/hap/HAPCharacteristic.d.ts +0 -9
- package/build/lib/hap/HAPService.d.ts +0 -6
- package/build/lib/hap/eve-app/EveCharacteristics.d.ts +0 -20
- package/build/lib/hap/eve-app/EveServices.d.ts +0 -5
- package/build/lib/types/AccessoryInformationType.d.ts +0 -11
- package/build/lib/types/CameraConfigType.d.ts +0 -24
- package/build/lib/types/CustomCharacteristicType.d.ts +0 -6
- package/build/lib/types/HAPHostConfigType.d.ts +0 -22
- package/build/lib/types/HAPHostNodeType.d.ts +0 -14
- package/build/lib/types/HAPService2ConfigType.d.ts +0 -6
- package/build/lib/types/HAPService2NodeType.d.ts +0 -7
- package/build/lib/types/HAPServiceConfigType.d.ts +0 -26
- package/build/lib/types/HAPServiceNodeType.d.ts +0 -38
- package/build/lib/types/HAPStatusConfigType.d.ts +0 -5
- package/build/lib/types/HAPStatusNodeType.d.ts +0 -12
- package/build/lib/types/HostType.d.ts +0 -5
- package/build/lib/types/NodeType.d.ts +0 -3
- package/build/lib/types/PublishTimersType.d.ts +0 -4
- package/build/lib/types/hap-nodejs/HapAdaptiveLightingControllerMode.d.ts +0 -5
- package/build/lib/types/hap-nodejs/HapCategories.d.ts +0 -41
- package/build/lib/types/storage/SerializedHostType.d.ts +0 -5
- package/build/lib/types/storage/StorageType.d.ts +0 -8
- package/build/lib/utils/AccessoryUtils.d.ts +0 -1
- package/build/lib/utils/BridgeUtils.d.ts +0 -1
- package/build/lib/utils/CharacteristicUtils.d.ts +0 -1
- package/build/lib/utils/CharacteristicUtils2.d.ts +0 -1
- package/build/lib/utils/NodeStatusUtils.d.ts +0 -17
- package/build/lib/utils/ServiceUtils.d.ts +0 -1
- package/build/lib/utils/ServiceUtils2.d.ts +0 -1
- package/build/lib/utils/index.d.ts +0 -1
- package/build/nodes/bridge.d.ts +0 -1
- package/build/nodes/nrchkb.d.ts +0 -1
- package/build/nodes/service.d.ts +0 -1
- package/build/nodes/service2.d.ts +0 -1
- package/build/nodes/standalone.d.ts +0 -1
- package/build/nodes/status.d.ts +0 -1
|
@@ -1,203 +1,183 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"id": "38688705.a04688",
|
|
11
|
-
"type": "group",
|
|
12
|
-
"z": "fd58cee.fbdb73",
|
|
13
|
-
"name": "Output debug",
|
|
14
|
-
"style": {
|
|
15
|
-
"label": true
|
|
2
|
+
{
|
|
3
|
+
"id": "fd58cee.fbdb73",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "Switch Example",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": ""
|
|
16
8
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"style": {
|
|
31
|
-
"stroke": "#ffC000",
|
|
32
|
-
"label": true
|
|
9
|
+
{
|
|
10
|
+
"id": "38688705.a04688",
|
|
11
|
+
"type": "group",
|
|
12
|
+
"z": "fd58cee.fbdb73",
|
|
13
|
+
"name": "Output debug",
|
|
14
|
+
"style": {
|
|
15
|
+
"label": true
|
|
16
|
+
},
|
|
17
|
+
"nodes": ["d6f9e9ce.b3af8"],
|
|
18
|
+
"x": 434,
|
|
19
|
+
"y": 79,
|
|
20
|
+
"w": 212,
|
|
21
|
+
"h": 82
|
|
33
22
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"label": true
|
|
23
|
+
{
|
|
24
|
+
"id": "d1632249.c45458",
|
|
25
|
+
"type": "group",
|
|
26
|
+
"z": "fd58cee.fbdb73",
|
|
27
|
+
"name": "HomeKit Switch Accessory",
|
|
28
|
+
"style": {
|
|
29
|
+
"stroke": "#ffC000",
|
|
30
|
+
"label": true
|
|
31
|
+
},
|
|
32
|
+
"nodes": ["4ea13695.19871"],
|
|
33
|
+
"x": 234,
|
|
34
|
+
"y": 79,
|
|
35
|
+
"w": 192,
|
|
36
|
+
"h": 82
|
|
49
37
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"mdnsPort": "",
|
|
197
|
-
"mdnsIp": "",
|
|
198
|
-
"mdnsTtl": "",
|
|
199
|
-
"mdnsLoopback": true,
|
|
200
|
-
"mdnsReuseAddr": true,
|
|
201
|
-
"allowMessagePassthrough": true
|
|
202
|
-
}
|
|
203
|
-
]
|
|
38
|
+
{
|
|
39
|
+
"id": "d3163811.ca7aa8",
|
|
40
|
+
"type": "group",
|
|
41
|
+
"z": "fd58cee.fbdb73",
|
|
42
|
+
"name": "Controls",
|
|
43
|
+
"style": {
|
|
44
|
+
"label": true
|
|
45
|
+
},
|
|
46
|
+
"nodes": ["e02112b7.b761d", "e9073d2c.84e64"],
|
|
47
|
+
"x": 54,
|
|
48
|
+
"y": 59,
|
|
49
|
+
"w": 172,
|
|
50
|
+
"h": 122
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "4ea13695.19871",
|
|
54
|
+
"type": "homekit-service",
|
|
55
|
+
"z": "fd58cee.fbdb73",
|
|
56
|
+
"g": "d1632249.c45458",
|
|
57
|
+
"isParent": true,
|
|
58
|
+
"bridge": "3dcda60a.e5ff12",
|
|
59
|
+
"parentService": "",
|
|
60
|
+
"name": "My Switch",
|
|
61
|
+
"serviceName": "Switch",
|
|
62
|
+
"topic": "",
|
|
63
|
+
"filter": false,
|
|
64
|
+
"manufacturer": "NRCHKB",
|
|
65
|
+
"model": "0.120.5",
|
|
66
|
+
"serialNo": "Default Serial Number",
|
|
67
|
+
"firmwareRev": "0.120.5",
|
|
68
|
+
"hardwareRev": "0.120.5",
|
|
69
|
+
"softwareRev": "0.120.5",
|
|
70
|
+
"cameraConfigVideoProcessor": "ffmpeg",
|
|
71
|
+
"cameraConfigSource": "",
|
|
72
|
+
"cameraConfigStillImageSource": "",
|
|
73
|
+
"cameraConfigMaxStreams": 2,
|
|
74
|
+
"cameraConfigMaxWidth": 1280,
|
|
75
|
+
"cameraConfigMaxHeight": 720,
|
|
76
|
+
"cameraConfigMaxFPS": 10,
|
|
77
|
+
"cameraConfigMaxBitrate": 300,
|
|
78
|
+
"cameraConfigVideoCodec": "libx264",
|
|
79
|
+
"cameraConfigAudioCodec": "libfdk_aac",
|
|
80
|
+
"cameraConfigAudio": false,
|
|
81
|
+
"cameraConfigPacketSize": 1316,
|
|
82
|
+
"cameraConfigVerticalFlip": false,
|
|
83
|
+
"cameraConfigHorizontalFlip": false,
|
|
84
|
+
"cameraConfigMapVideo": "0:0",
|
|
85
|
+
"cameraConfigMapAudio": "0:1",
|
|
86
|
+
"cameraConfigVideoFilter": "scale=1280:720",
|
|
87
|
+
"cameraConfigAdditionalCommandLine": "-tune zerolatency",
|
|
88
|
+
"cameraConfigDebug": false,
|
|
89
|
+
"cameraConfigSnapshotOutput": "disabled",
|
|
90
|
+
"cameraConfigInterfaceName": "",
|
|
91
|
+
"characteristicProperties": "{}",
|
|
92
|
+
"outputs": 2,
|
|
93
|
+
"x": 330,
|
|
94
|
+
"y": 120,
|
|
95
|
+
"wires": [["d6f9e9ce.b3af8"], []]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "d6f9e9ce.b3af8",
|
|
99
|
+
"type": "debug",
|
|
100
|
+
"z": "fd58cee.fbdb73",
|
|
101
|
+
"g": "38688705.a04688",
|
|
102
|
+
"name": "",
|
|
103
|
+
"active": true,
|
|
104
|
+
"tosidebar": true,
|
|
105
|
+
"console": false,
|
|
106
|
+
"tostatus": false,
|
|
107
|
+
"complete": "payload",
|
|
108
|
+
"targetType": "msg",
|
|
109
|
+
"statusVal": "",
|
|
110
|
+
"statusType": "auto",
|
|
111
|
+
"x": 530,
|
|
112
|
+
"y": 120,
|
|
113
|
+
"wires": []
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "e02112b7.b761d",
|
|
117
|
+
"type": "inject",
|
|
118
|
+
"z": "fd58cee.fbdb73",
|
|
119
|
+
"g": "d3163811.ca7aa8",
|
|
120
|
+
"name": "On",
|
|
121
|
+
"props": [
|
|
122
|
+
{
|
|
123
|
+
"p": "payload"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"repeat": "",
|
|
127
|
+
"crontab": "",
|
|
128
|
+
"once": false,
|
|
129
|
+
"onceDelay": 0.1,
|
|
130
|
+
"topic": "",
|
|
131
|
+
"payload": "{\"On\":true}",
|
|
132
|
+
"payloadType": "json",
|
|
133
|
+
"x": 150,
|
|
134
|
+
"y": 100,
|
|
135
|
+
"wires": [["4ea13695.19871"]]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "e9073d2c.84e64",
|
|
139
|
+
"type": "inject",
|
|
140
|
+
"z": "fd58cee.fbdb73",
|
|
141
|
+
"g": "d3163811.ca7aa8",
|
|
142
|
+
"name": "Off",
|
|
143
|
+
"props": [
|
|
144
|
+
{
|
|
145
|
+
"p": "payload"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"repeat": "",
|
|
149
|
+
"crontab": "",
|
|
150
|
+
"once": false,
|
|
151
|
+
"onceDelay": 0.1,
|
|
152
|
+
"topic": "",
|
|
153
|
+
"payload": "{\"On\":false}",
|
|
154
|
+
"payloadType": "json",
|
|
155
|
+
"x": 150,
|
|
156
|
+
"y": 140,
|
|
157
|
+
"wires": [["4ea13695.19871"]]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "3dcda60a.e5ff12",
|
|
161
|
+
"type": "homekit-bridge",
|
|
162
|
+
"z": "",
|
|
163
|
+
"bridgeName": "My Bridge",
|
|
164
|
+
"pinCode": "111-11-111",
|
|
165
|
+
"port": "",
|
|
166
|
+
"allowInsecureRequest": false,
|
|
167
|
+
"manufacturer": "NRCHKB",
|
|
168
|
+
"model": "0.120.5",
|
|
169
|
+
"serialNo": "Default Serial Number",
|
|
170
|
+
"firmwareRev": "0.120.5",
|
|
171
|
+
"hardwareRev": "0.120.5",
|
|
172
|
+
"softwareRev": "0.120.5",
|
|
173
|
+
"customMdnsConfig": false,
|
|
174
|
+
"mdnsMulticast": true,
|
|
175
|
+
"mdnsInterface": "",
|
|
176
|
+
"mdnsPort": "",
|
|
177
|
+
"mdnsIp": "",
|
|
178
|
+
"mdnsTtl": "",
|
|
179
|
+
"mdnsLoopback": true,
|
|
180
|
+
"mdnsReuseAddr": true,
|
|
181
|
+
"allowMessagePassthrough": true
|
|
182
|
+
}
|
|
183
|
+
]
|
package/package.json
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-homekit-bridged",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.10",
|
|
4
4
|
"description": "Node-RED nodes to simulate Apple HomeKit devices.",
|
|
5
5
|
"main": "build/nodes/nrchkb.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "npm run clean && tsc",
|
|
8
7
|
"clean": "del-cli \"build/lib\" \"build/**/*.js\"",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
8
|
+
"build": "npm run clean && node esbuild.config.js",
|
|
9
|
+
"watch:ts": "node esbuild.config.js --watch",
|
|
10
|
+
"watch:nodered": "nodemon --watch build -e js,html --exec node-red",
|
|
11
|
+
"dev": "concurrently \"npm run watch:ts\" \"npm run watch:nodered\"",
|
|
12
|
+
"test": "vitest run",
|
|
13
|
+
"test:ci": "vitest run --no-file-parallelism",
|
|
14
|
+
"test:watch": "vitest",
|
|
15
|
+
"migrate:service2": "node build/scripts/migrate-homekit-service-flows.js",
|
|
16
|
+
"format": "biome format --write",
|
|
17
|
+
"lint": "biome check",
|
|
18
|
+
"prepare": "husky || true"
|
|
13
19
|
},
|
|
14
20
|
"repository": {
|
|
15
21
|
"type": "git",
|
|
@@ -31,9 +37,14 @@
|
|
|
31
37
|
"standalone": "build/nodes/standalone.js",
|
|
32
38
|
"service": "build/nodes/service.js",
|
|
33
39
|
"service2": "build/nodes/service2.js",
|
|
34
|
-
"status": "build/nodes/status.js"
|
|
40
|
+
"status": "build/nodes/status.js",
|
|
41
|
+
"unifi-controller": "build/nodes/unifi-controller.js",
|
|
42
|
+
"plugin-instance": "build/nodes/plugin-instance.js"
|
|
35
43
|
},
|
|
36
|
-
"
|
|
44
|
+
"plugins": {
|
|
45
|
+
"nrchkb-homekit-plugins": "build/plugins/nrchkb-homekit-plugins.js"
|
|
46
|
+
},
|
|
47
|
+
"version": ">=5.0.0"
|
|
37
48
|
},
|
|
38
49
|
"author": "Tadeusz Wyrzykowski <shaquu@icloud.com> (https://github.com/Shaquu)",
|
|
39
50
|
"license": "Apache-2.0",
|
|
@@ -42,43 +53,46 @@
|
|
|
42
53
|
},
|
|
43
54
|
"homepage": "https://github.com/NRCHKB/node-red-contrib-homekit-bridged#readme",
|
|
44
55
|
"dependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@homebridge/hap-nodejs": "2.
|
|
56
|
+
"@homebridge-plugins/homebridge-camera-ffmpeg": "^4.1.0",
|
|
57
|
+
"@homebridge/hap-nodejs": "2.1.7",
|
|
58
|
+
"@nrchkb/logger": "~3.2.1",
|
|
59
|
+
"homebridge-unifi-protect": "^7.29.0",
|
|
60
|
+
"homekit-code": "^1.2.13",
|
|
47
61
|
"node-persist": "^3.1.3",
|
|
48
|
-
"semver": "~7.
|
|
49
|
-
"uuid": "~
|
|
62
|
+
"semver": "~7.8.4",
|
|
63
|
+
"uuid": "~14.0.0"
|
|
50
64
|
},
|
|
51
65
|
"devDependencies": {
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@types/node": "^
|
|
66
|
+
"@biomejs/biome": "2.5.0",
|
|
67
|
+
"@homebridge/ciao": "~1.3.9",
|
|
68
|
+
"@node-red/registry": "^5.0.0",
|
|
69
|
+
"@types/node": "^24.0.0",
|
|
56
70
|
"@types/node-persist": "^3.1.8",
|
|
57
71
|
"@types/node-red": "^1.3.5",
|
|
58
72
|
"@types/node-red-node-test-helper": "^0.3.5",
|
|
59
73
|
"@types/semver": "^7.7.1",
|
|
60
74
|
"@types/uuid": "^10.0.0",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"eslint": "^8",
|
|
66
|
-
"eslint-config-prettier": "^9.1.0",
|
|
67
|
-
"eslint-plugin-prettier": "^5.5.4",
|
|
68
|
-
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
75
|
+
"concurrently": "^9.2.1",
|
|
76
|
+
"del-cli": "^7.0.0",
|
|
77
|
+
"esbuild": "^0.28.1",
|
|
78
|
+
"glob": "^13.0.6",
|
|
69
79
|
"husky": "^9.1.7",
|
|
70
|
-
"
|
|
71
|
-
"node-red": "^
|
|
72
|
-
"
|
|
73
|
-
"prettier": "^3.6.2",
|
|
80
|
+
"node-red": "^5.0.0",
|
|
81
|
+
"node-red-node-test-helper": "^0.3.6",
|
|
82
|
+
"nodemon": "^3.1.14",
|
|
74
83
|
"ts-node": "^10.9.2",
|
|
75
|
-
"typescript": "^
|
|
84
|
+
"typescript": "^6.0.3",
|
|
85
|
+
"vitest": "^4.1.9"
|
|
86
|
+
},
|
|
87
|
+
"vitest": {
|
|
88
|
+
"test": {
|
|
89
|
+
"environment": "node",
|
|
90
|
+
"testTimeout": 30000,
|
|
91
|
+
"include": ["src/**/*.test.ts"]
|
|
92
|
+
}
|
|
76
93
|
},
|
|
77
94
|
"engines": {
|
|
78
|
-
"node": "
|
|
95
|
+
"node": ">=22.9.0"
|
|
79
96
|
},
|
|
80
|
-
"files": [
|
|
81
|
-
"/build",
|
|
82
|
-
"/examples"
|
|
83
|
-
]
|
|
97
|
+
"files": ["/build", "/examples"]
|
|
84
98
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/lib/Storage.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CharacteristicEventTypes, SerializedAccessory, SerializedService } from '@homebridge/hap-nodejs';
|
|
2
|
-
import storage, { InitOptions } from 'node-persist';
|
|
3
|
-
import { SerializedHostType } from './types/storage/SerializedHostType';
|
|
4
|
-
import { StorageType } from './types/storage/StorageType';
|
|
5
|
-
type EventCallback = {
|
|
6
|
-
event: CharacteristicEventTypes;
|
|
7
|
-
callback: (value?: any) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare class Storage {
|
|
10
|
-
private static customStoragePath;
|
|
11
|
-
private static storageInitialized;
|
|
12
|
-
private static memoryStorage;
|
|
13
|
-
private static log;
|
|
14
|
-
static storagePath(): string;
|
|
15
|
-
static init(...storagePathSegments: string[]): Promise<InitOptions>;
|
|
16
|
-
static save(type: StorageType, key: string | undefined, value: unknown): Promise<storage.WriteFileResult>;
|
|
17
|
-
static saveCallback(eventCallback: EventCallback, ttl?: number): string;
|
|
18
|
-
static saveCustomCharacteristics(value: unknown): Promise<storage.WriteFileResult>;
|
|
19
|
-
static saveService(key: string, value: unknown): Promise<storage.WriteFileResult>;
|
|
20
|
-
static saveAccessory(key: string, value: unknown): Promise<storage.WriteFileResult>;
|
|
21
|
-
static saveHost(key: string, serializedHost: SerializedHostType): Promise<storage.WriteFileResult>;
|
|
22
|
-
static load(type: StorageType, key?: string): Promise<any>;
|
|
23
|
-
static loadCallback(key: string): EventCallback | undefined;
|
|
24
|
-
static loadCustomCharacteristics(): Promise<any>;
|
|
25
|
-
static loadService(key: string): Promise<SerializedService>;
|
|
26
|
-
static loadAccessory(key: string): Promise<SerializedAccessory>;
|
|
27
|
-
static loadHost(key: string): Promise<SerializedHostType>;
|
|
28
|
-
static uuid4Validate(uuid: string): boolean;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
package/build/lib/api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Characteristic } from '@homebridge/hap-nodejs';
|
|
2
|
-
import { EveS2R1, EveS2R2, EveS2W1, EveS2W2 } from './eve-app/EveCharacteristics';
|
|
3
|
-
declare class HAPCharacteristic extends Characteristic {
|
|
4
|
-
static EveS2R1: typeof EveS2R1;
|
|
5
|
-
static EveS2R2: typeof EveS2R2;
|
|
6
|
-
static EveS2W1: typeof EveS2W1;
|
|
7
|
-
static EveS2W2: typeof EveS2W2;
|
|
8
|
-
}
|
|
9
|
-
export default HAPCharacteristic;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import CustomCharacteristicType from '../../types/CustomCharacteristicType';
|
|
2
|
-
import HAPCharacteristic from '../HAPCharacteristic';
|
|
3
|
-
declare const EveCharacteristics: CustomCharacteristicType[];
|
|
4
|
-
export declare class EveS2R1 extends HAPCharacteristic {
|
|
5
|
-
static readonly UUID: string;
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
8
|
-
export declare class EveS2R2 extends HAPCharacteristic {
|
|
9
|
-
static readonly UUID: string;
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
12
|
-
export declare class EveS2W1 extends HAPCharacteristic {
|
|
13
|
-
static readonly UUID: string;
|
|
14
|
-
constructor();
|
|
15
|
-
}
|
|
16
|
-
export declare class EveS2W2 extends HAPCharacteristic {
|
|
17
|
-
static readonly UUID: string;
|
|
18
|
-
constructor();
|
|
19
|
-
}
|
|
20
|
-
export default EveCharacteristics;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type CameraConfigType = {
|
|
2
|
-
cameraConfigVideoProcessor: string;
|
|
3
|
-
cameraConfigSource: string;
|
|
4
|
-
cameraConfigStillImageSource?: string;
|
|
5
|
-
cameraConfigMaxStreams: number;
|
|
6
|
-
cameraConfigMaxWidth: number;
|
|
7
|
-
cameraConfigMaxHeight: number;
|
|
8
|
-
cameraConfigMaxFPS: number;
|
|
9
|
-
cameraConfigMaxBitrate: number;
|
|
10
|
-
cameraConfigVideoCodec: string;
|
|
11
|
-
cameraConfigAudioCodec: string;
|
|
12
|
-
cameraConfigAudio: string;
|
|
13
|
-
cameraConfigPacketSize: number;
|
|
14
|
-
cameraConfigVerticalFlip: boolean;
|
|
15
|
-
cameraConfigHorizontalFlip: boolean;
|
|
16
|
-
cameraConfigMapVideo: string;
|
|
17
|
-
cameraConfigMapAudio: string;
|
|
18
|
-
cameraConfigVideoFilter: string;
|
|
19
|
-
cameraConfigAdditionalCommandLine: string;
|
|
20
|
-
cameraConfigDebug: boolean;
|
|
21
|
-
cameraConfigSnapshotOutput: string;
|
|
22
|
-
cameraConfigInterfaceName: string;
|
|
23
|
-
};
|
|
24
|
-
export default CameraConfigType;
|