node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.2
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 +59 -64
- package/build/lib/HAPServiceNode.js +91 -95
- package/build/lib/HAPServiceNode2.js +93 -97
- package/build/lib/Storage.d.ts +3 -3
- package/build/lib/Storage.js +2 -2
- package/build/lib/api.js +26 -29
- package/build/lib/hap/HAPCharacteristic.d.ts +1 -1
- package/build/lib/hap/HAPService.d.ts +1 -1
- package/build/lib/hap/eve-app/EveCharacteristics.d.ts +1 -1
- package/build/lib/hap/eve-app/EveCharacteristics.js +10 -10
- package/build/lib/types/CustomCharacteristicType.d.ts +1 -1
- package/build/lib/types/HAPHostConfigType.d.ts +4 -4
- package/build/lib/types/HAPHostNodeType.d.ts +4 -4
- package/build/lib/types/HAPService2ConfigType.d.ts +2 -2
- package/build/lib/types/HAPService2NodeType.d.ts +3 -3
- package/build/lib/types/HAPServiceConfigType.d.ts +3 -3
- package/build/lib/types/HAPServiceNodeType.d.ts +10 -10
- package/build/lib/types/HAPStatusConfigType.d.ts +1 -1
- package/build/lib/types/HAPStatusNodeType.d.ts +5 -5
- package/build/lib/types/NodeType.d.ts +1 -1
- package/build/lib/types/storage/SerializedHostType.d.ts +2 -2
- package/build/lib/utils/AccessoryUtils.js +15 -15
- package/build/lib/utils/BridgeUtils.js +5 -5
- package/build/lib/utils/CharacteristicUtils.js +6 -6
- package/build/lib/utils/CharacteristicUtils2.js +6 -6
- package/build/lib/utils/NodeStatusUtils.d.ts +2 -2
- package/build/lib/utils/NodeStatusUtils.js +2 -2
- package/build/lib/utils/ServiceUtils.js +39 -38
- package/build/lib/utils/ServiceUtils2.js +39 -37
- package/build/lib/utils/index.js +2 -2
- package/build/nodes/nrchkb.js +2 -2
- package/build/nodes/status.js +15 -16
- package/examples/demo/01 - ALL Demos single import.json +64 -318
- package/examples/demo/02 - Air Purifier.json +279 -328
- package/examples/demo/03 - Air Quality sensor with Battery.json +254 -282
- package/examples/demo/04 - Dimmable Bulb.json +172 -189
- package/examples/demo/05 - Color Bulb (HSV).json +195 -216
- package/examples/demo/06 - Fan (simple, 3 speeds).json +240 -265
- package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +175 -192
- package/examples/demo/08 - CO2 detector.json +224 -255
- package/examples/demo/09 - CO (carbon monoxide) example.json +255 -290
- package/examples/demo/10 - Door window contact sensor.json +234 -265
- package/examples/demos (advanced)/01 - Television with inputs and speaker.json +541 -607
- package/examples/switch/01 - Plain Switch.json +7 -27
- package/package.json +83 -81
|
@@ -1,219 +1,198 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"nodes": [
|
|
15
|
-
"d838176b.dbaf7",
|
|
16
|
-
"7bf880d4.3cd4d",
|
|
17
|
-
"ee1452a5.08edd",
|
|
18
|
-
"c6ed2a2a.90a01",
|
|
19
|
-
"8cdfae2b.2f2ce8",
|
|
20
|
-
"1758401b.6c62e8"
|
|
21
|
-
],
|
|
22
|
-
"x": 14,
|
|
23
|
-
"y": 659,
|
|
24
|
-
"w": 752,
|
|
25
|
-
"h": 162,
|
|
26
|
-
"info": "# Color Bulb\n\nThis is a color bulb. It accepts and sends out Hue, Saturation, Value, and On/off state.\n\nHue is the color\n\nSaturation is how deep the color is\n\nValue is brightness\n\nOn is power state"
|
|
2
|
+
{
|
|
3
|
+
"id": "384e0889.1fdae",
|
|
4
|
+
"type": "group",
|
|
5
|
+
"z": "60b06629.a2ebd",
|
|
6
|
+
"name": "Color Bulb: input from device, output to device",
|
|
7
|
+
"style": {
|
|
8
|
+
"stroke": "#999999",
|
|
9
|
+
"fill": "none",
|
|
10
|
+
"label": true,
|
|
11
|
+
"label-position": "nw",
|
|
12
|
+
"color": "#a4a4a4"
|
|
27
13
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
"mdnsPort": "",
|
|
213
|
-
"mdnsIp": "",
|
|
214
|
-
"mdnsTtl": "",
|
|
215
|
-
"mdnsLoopback": true,
|
|
216
|
-
"mdnsReuseAddr": true,
|
|
217
|
-
"allowMessagePassthrough": true
|
|
218
|
-
}
|
|
14
|
+
"nodes": [
|
|
15
|
+
"d838176b.dbaf7",
|
|
16
|
+
"7bf880d4.3cd4d",
|
|
17
|
+
"ee1452a5.08edd",
|
|
18
|
+
"c6ed2a2a.90a01",
|
|
19
|
+
"8cdfae2b.2f2ce8",
|
|
20
|
+
"1758401b.6c62e8"
|
|
21
|
+
],
|
|
22
|
+
"x": 14,
|
|
23
|
+
"y": 659,
|
|
24
|
+
"w": 752,
|
|
25
|
+
"h": 162,
|
|
26
|
+
"info": "# Color Bulb\n\nThis is a color bulb. It accepts and sends out Hue, Saturation, Value, and On/off state.\n\nHue is the color\n\nSaturation is how deep the color is\n\nValue is brightness\n\nOn is power state"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "d838176b.dbaf7",
|
|
30
|
+
"type": "debug",
|
|
31
|
+
"z": "60b06629.a2ebd",
|
|
32
|
+
"g": "384e0889.1fdae",
|
|
33
|
+
"name": "Color light output",
|
|
34
|
+
"active": true,
|
|
35
|
+
"tosidebar": true,
|
|
36
|
+
"console": false,
|
|
37
|
+
"tostatus": false,
|
|
38
|
+
"complete": "payload",
|
|
39
|
+
"targetType": "msg",
|
|
40
|
+
"x": 630,
|
|
41
|
+
"y": 780,
|
|
42
|
+
"wires": []
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "7bf880d4.3cd4d",
|
|
46
|
+
"type": "homekit-service",
|
|
47
|
+
"z": "60b06629.a2ebd",
|
|
48
|
+
"g": "384e0889.1fdae",
|
|
49
|
+
"isParent": true,
|
|
50
|
+
"bridge": "409001a1.3e7a78",
|
|
51
|
+
"parentService": "",
|
|
52
|
+
"name": "Color",
|
|
53
|
+
"serviceName": "Lightbulb",
|
|
54
|
+
"topic": "",
|
|
55
|
+
"filter": false,
|
|
56
|
+
"manufacturer": "Garrett",
|
|
57
|
+
"model": "Color",
|
|
58
|
+
"serialNo": "42",
|
|
59
|
+
"firmwareRev": "1.2",
|
|
60
|
+
"hardwareRev": "1.0.0",
|
|
61
|
+
"softwareRev": "1.0.0",
|
|
62
|
+
"cameraConfigVideoProcessor": "ffmpeg",
|
|
63
|
+
"cameraConfigSource": "",
|
|
64
|
+
"cameraConfigStillImageSource": "",
|
|
65
|
+
"cameraConfigMaxStreams": 2,
|
|
66
|
+
"cameraConfigMaxWidth": 1280,
|
|
67
|
+
"cameraConfigMaxHeight": 720,
|
|
68
|
+
"cameraConfigMaxFPS": 10,
|
|
69
|
+
"cameraConfigMaxBitrate": 300,
|
|
70
|
+
"cameraConfigVideoCodec": "libx264",
|
|
71
|
+
"cameraConfigAudioCodec": "libfdk_aac",
|
|
72
|
+
"cameraConfigAudio": false,
|
|
73
|
+
"cameraConfigPacketSize": 1316,
|
|
74
|
+
"cameraConfigVerticalFlip": false,
|
|
75
|
+
"cameraConfigHorizontalFlip": false,
|
|
76
|
+
"cameraConfigMapVideo": "0:0",
|
|
77
|
+
"cameraConfigMapAudio": "0:1",
|
|
78
|
+
"cameraConfigVideoFilter": "scale=1280:720",
|
|
79
|
+
"cameraConfigAdditionalCommandLine": "-tune zerolatency",
|
|
80
|
+
"cameraConfigDebug": false,
|
|
81
|
+
"cameraConfigSnapshotOutput": "disabled",
|
|
82
|
+
"cameraConfigInterfaceName": "",
|
|
83
|
+
"characteristicProperties": "{\n \"Brightness\":true,\n \"Hue\":true,\n \"Saturation\":true\n}",
|
|
84
|
+
"outputs": 2,
|
|
85
|
+
"x": 410,
|
|
86
|
+
"y": 780,
|
|
87
|
+
"wires": [["d838176b.dbaf7"], []]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "ee1452a5.08edd",
|
|
91
|
+
"type": "inject",
|
|
92
|
+
"z": "60b06629.a2ebd",
|
|
93
|
+
"g": "384e0889.1fdae",
|
|
94
|
+
"name": "NO RESPONSE",
|
|
95
|
+
"props": [
|
|
96
|
+
{
|
|
97
|
+
"p": "payload"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"repeat": "",
|
|
101
|
+
"crontab": "",
|
|
102
|
+
"once": false,
|
|
103
|
+
"onceDelay": 0.1,
|
|
104
|
+
"topic": "",
|
|
105
|
+
"payload": "{\"On\":\"NO_RESPONSE\"}",
|
|
106
|
+
"payloadType": "json",
|
|
107
|
+
"x": 340,
|
|
108
|
+
"y": 700,
|
|
109
|
+
"wires": [["7bf880d4.3cd4d"]]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "c6ed2a2a.90a01",
|
|
113
|
+
"type": "inject",
|
|
114
|
+
"z": "60b06629.a2ebd",
|
|
115
|
+
"g": "384e0889.1fdae",
|
|
116
|
+
"name": "ON",
|
|
117
|
+
"props": [
|
|
118
|
+
{
|
|
119
|
+
"p": "payload"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"repeat": "",
|
|
123
|
+
"crontab": "",
|
|
124
|
+
"once": false,
|
|
125
|
+
"onceDelay": 0.1,
|
|
126
|
+
"topic": "",
|
|
127
|
+
"payload": "{\"On\":true}",
|
|
128
|
+
"payloadType": "json",
|
|
129
|
+
"x": 110,
|
|
130
|
+
"y": 700,
|
|
131
|
+
"wires": [["7bf880d4.3cd4d"]]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "8cdfae2b.2f2ce8",
|
|
135
|
+
"type": "inject",
|
|
136
|
+
"z": "60b06629.a2ebd",
|
|
137
|
+
"g": "384e0889.1fdae",
|
|
138
|
+
"name": "Reset HSV",
|
|
139
|
+
"props": [
|
|
140
|
+
{
|
|
141
|
+
"p": "payload"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"repeat": "",
|
|
145
|
+
"crontab": "",
|
|
146
|
+
"once": false,
|
|
147
|
+
"onceDelay": 0.1,
|
|
148
|
+
"topic": "",
|
|
149
|
+
"payload": "{\"Brightness\":50,\"Hue\":50,\"Saturation\":50}",
|
|
150
|
+
"payloadType": "json",
|
|
151
|
+
"x": 120,
|
|
152
|
+
"y": 780,
|
|
153
|
+
"wires": [["7bf880d4.3cd4d"]]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "1758401b.6c62e8",
|
|
157
|
+
"type": "inject",
|
|
158
|
+
"z": "60b06629.a2ebd",
|
|
159
|
+
"g": "384e0889.1fdae",
|
|
160
|
+
"name": "OFF",
|
|
161
|
+
"props": [
|
|
162
|
+
{
|
|
163
|
+
"p": "payload"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"repeat": "",
|
|
167
|
+
"crontab": "",
|
|
168
|
+
"once": false,
|
|
169
|
+
"onceDelay": 0.1,
|
|
170
|
+
"topic": "",
|
|
171
|
+
"payload": "{\"On\":false}",
|
|
172
|
+
"payloadType": "json",
|
|
173
|
+
"x": 110,
|
|
174
|
+
"y": 740,
|
|
175
|
+
"wires": [["7bf880d4.3cd4d"]]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "409001a1.3e7a78",
|
|
179
|
+
"type": "homekit-bridge",
|
|
180
|
+
"z": "",
|
|
181
|
+
"bridgeName": "Demo 1",
|
|
182
|
+
"pinCode": "153-10-538",
|
|
183
|
+
"port": "",
|
|
184
|
+
"allowInsecureRequest": false,
|
|
185
|
+
"manufacturer": "NRCHKB",
|
|
186
|
+
"model": "Demo",
|
|
187
|
+
"serialNo": "1.1.2",
|
|
188
|
+
"customMdnsConfig": false,
|
|
189
|
+
"mdnsMulticast": true,
|
|
190
|
+
"mdnsInterface": "",
|
|
191
|
+
"mdnsPort": "",
|
|
192
|
+
"mdnsIp": "",
|
|
193
|
+
"mdnsTtl": "",
|
|
194
|
+
"mdnsLoopback": true,
|
|
195
|
+
"mdnsReuseAddr": true,
|
|
196
|
+
"allowMessagePassthrough": true
|
|
197
|
+
}
|
|
219
198
|
]
|