node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.1

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.
@@ -1,286 +1,258 @@
1
1
  [
2
- {
3
- "id": "b3b5156e.cdf988",
4
- "type": "group",
5
- "z": "eeb8b00c.2c18c",
6
- "name": "Air Quality with Battery: input only sensor",
7
- "style": {
8
- "stroke": "#999999",
9
- "fill": "none",
10
- "label": true,
11
- "label-position": "nw",
12
- "color": "#a4a4a4"
13
- },
14
- "nodes": [
15
- "8088a797.e1a7c",
16
- "a70b3192.dfb4f",
17
- "d5708f5.036c87",
18
- "90b692e4.b9f6c",
19
- "54bfafbc.396898",
20
- "560fc866.6de558",
21
- "61e113b2.dbb714"
22
- ],
23
- "x": 94,
24
- "y": 239,
25
- "w": 758,
26
- "h": 208,
27
- "info": "# Air Quality Sensor\n\nThis sensor will inject random values for all of the air quality metrics available in the HomeKit spec. It will also inject random values for a linked battery service.\n\nWatch the input and Home app to learn how to see how things are working."
2
+ {
3
+ "id": "b3b5156e.cdf988",
4
+ "type": "group",
5
+ "z": "eeb8b00c.2c18c",
6
+ "name": "Air Quality with Battery: input only sensor",
7
+ "style": {
8
+ "stroke": "#999999",
9
+ "fill": "none",
10
+ "label": true,
11
+ "label-position": "nw",
12
+ "color": "#a4a4a4"
28
13
  },
29
- {
30
- "id": "8088a797.e1a7c",
31
- "type": "homekit-service",
32
- "z": "eeb8b00c.2c18c",
33
- "g": "b3b5156e.cdf988",
34
- "isParent": true,
35
- "hostType": "0",
36
- "bridge": "409001a1.3e7a78",
37
- "accessoryId": "",
38
- "parentService": "",
39
- "name": "Air Quality",
40
- "serviceName": "AirQualitySensor",
41
- "topic": "",
42
- "filter": false,
43
- "manufacturer": "Quality",
44
- "model": "Battery",
45
- "serialNo": "777",
46
- "firmwareRev": "8.3",
47
- "hardwareRev": "2.1",
48
- "softwareRev": "1.0.0",
49
- "cameraConfigVideoProcessor": "ffmpeg",
50
- "cameraConfigSource": "",
51
- "cameraConfigStillImageSource": "",
52
- "cameraConfigMaxStreams": 2,
53
- "cameraConfigMaxWidth": 1280,
54
- "cameraConfigMaxHeight": 720,
55
- "cameraConfigMaxFPS": 10,
56
- "cameraConfigMaxBitrate": 300,
57
- "cameraConfigVideoCodec": "libx264",
58
- "cameraConfigAudioCodec": "libfdk_aac",
59
- "cameraConfigAudio": false,
60
- "cameraConfigPacketSize": 1316,
61
- "cameraConfigVerticalFlip": false,
62
- "cameraConfigHorizontalFlip": false,
63
- "cameraConfigMapVideo": "0:0",
64
- "cameraConfigMapAudio": "0:1",
65
- "cameraConfigVideoFilter": "scale=1280:720",
66
- "cameraConfigAdditionalCommandLine": "-tune zerolatency",
67
- "cameraConfigDebug": false,
68
- "cameraConfigSnapshotOutput": "disabled",
69
- "cameraConfigInterfaceName": "",
70
- "characteristicProperties": "{ \"AirQuality\":true, \"PM2_5Density\":true, \"PM10Density\":true}",
71
- "waitForSetupMsg": false,
72
- "outputs": 2,
73
- "x": 750,
74
- "y": 280,
75
- "wires": [
76
- [],
77
- []
78
- ]
14
+ "nodes": [
15
+ "8088a797.e1a7c",
16
+ "a70b3192.dfb4f",
17
+ "d5708f5.036c87",
18
+ "90b692e4.b9f6c",
19
+ "54bfafbc.396898",
20
+ "560fc866.6de558",
21
+ "61e113b2.dbb714"
22
+ ],
23
+ "x": 94,
24
+ "y": 239,
25
+ "w": 758,
26
+ "h": 208,
27
+ "info": "# Air Quality Sensor\n\nThis sensor will inject random values for all of the air quality metrics available in the HomeKit spec. It will also inject random values for a linked battery service.\n\nWatch the input and Home app to learn how to see how things are working."
28
+ },
29
+ {
30
+ "id": "8088a797.e1a7c",
31
+ "type": "homekit-service",
32
+ "z": "eeb8b00c.2c18c",
33
+ "g": "b3b5156e.cdf988",
34
+ "isParent": true,
35
+ "hostType": "0",
36
+ "bridge": "409001a1.3e7a78",
37
+ "accessoryId": "",
38
+ "parentService": "",
39
+ "name": "Air Quality",
40
+ "serviceName": "AirQualitySensor",
41
+ "topic": "",
42
+ "filter": false,
43
+ "manufacturer": "Quality",
44
+ "model": "Battery",
45
+ "serialNo": "777",
46
+ "firmwareRev": "8.3",
47
+ "hardwareRev": "2.1",
48
+ "softwareRev": "1.0.0",
49
+ "cameraConfigVideoProcessor": "ffmpeg",
50
+ "cameraConfigSource": "",
51
+ "cameraConfigStillImageSource": "",
52
+ "cameraConfigMaxStreams": 2,
53
+ "cameraConfigMaxWidth": 1280,
54
+ "cameraConfigMaxHeight": 720,
55
+ "cameraConfigMaxFPS": 10,
56
+ "cameraConfigMaxBitrate": 300,
57
+ "cameraConfigVideoCodec": "libx264",
58
+ "cameraConfigAudioCodec": "libfdk_aac",
59
+ "cameraConfigAudio": false,
60
+ "cameraConfigPacketSize": 1316,
61
+ "cameraConfigVerticalFlip": false,
62
+ "cameraConfigHorizontalFlip": false,
63
+ "cameraConfigMapVideo": "0:0",
64
+ "cameraConfigMapAudio": "0:1",
65
+ "cameraConfigVideoFilter": "scale=1280:720",
66
+ "cameraConfigAdditionalCommandLine": "-tune zerolatency",
67
+ "cameraConfigDebug": false,
68
+ "cameraConfigSnapshotOutput": "disabled",
69
+ "cameraConfigInterfaceName": "",
70
+ "characteristicProperties": "{ \"AirQuality\":true, \"PM2_5Density\":true, \"PM10Density\":true}",
71
+ "waitForSetupMsg": false,
72
+ "outputs": 2,
73
+ "x": 750,
74
+ "y": 280,
75
+ "wires": [[], []]
76
+ },
77
+ {
78
+ "id": "a70b3192.dfb4f",
79
+ "type": "inject",
80
+ "z": "eeb8b00c.2c18c",
81
+ "g": "b3b5156e.cdf988",
82
+ "name": "Air quality random",
83
+ "props": [
84
+ {
85
+ "p": "payload"
86
+ }
87
+ ],
88
+ "repeat": "15",
89
+ "crontab": "",
90
+ "once": true,
91
+ "onceDelay": "5",
92
+ "topic": "",
93
+ "payload": "{}",
94
+ "payloadType": "json",
95
+ "x": 230,
96
+ "y": 280,
97
+ "wires": [["560fc866.6de558"]]
98
+ },
99
+ {
100
+ "id": "d5708f5.036c87",
101
+ "type": "inject",
102
+ "z": "eeb8b00c.2c18c",
103
+ "g": "b3b5156e.cdf988",
104
+ "name": "Battery random",
105
+ "props": [
106
+ {
107
+ "p": "payload"
108
+ }
109
+ ],
110
+ "repeat": "30",
111
+ "crontab": "",
112
+ "once": true,
113
+ "onceDelay": "5",
114
+ "topic": "",
115
+ "payload": "",
116
+ "payloadType": "date",
117
+ "x": 220,
118
+ "y": 380,
119
+ "wires": [["90b692e4.b9f6c"]]
120
+ },
121
+ {
122
+ "id": "90b692e4.b9f6c",
123
+ "type": "function",
124
+ "z": "eeb8b00c.2c18c",
125
+ "g": "b3b5156e.cdf988",
126
+ "name": "Batt",
127
+ "func": "// Define random battery level\nconst level = Math.floor(Math.random() * Math.floor(100))\nvar newMsg = {\n payload: {\n \"BatteryLevel\": level\n }\n};\n\n// Show \"Low Battery\" if less than 10%\nif (level < 10)newMsg.payload.StatusLowBattery = 1;\nelse newMsg.payload.StatusLowBattery = 0;\n\n// Show \"Charging\" if greater than 60%\nif (level > 60) newMsg.payload.ChargingState = 1;\nelse newMsg.payload.ChargingState = 0;\n\nreturn newMsg;",
128
+ "outputs": 1,
129
+ "noerr": 0,
130
+ "initialize": "",
131
+ "finalize": "",
132
+ "x": 470,
133
+ "y": 380,
134
+ "wires": [["5cd5342a.cfd72c"]]
135
+ },
136
+ {
137
+ "id": "54bfafbc.396898",
138
+ "type": "inject",
139
+ "z": "eeb8b00c.2c18c",
140
+ "g": "b3b5156e.cdf988",
141
+ "name": "NO RESPONSE",
142
+ "props": [
143
+ {
144
+ "p": "payload"
145
+ }
146
+ ],
147
+ "repeat": "",
148
+ "crontab": "",
149
+ "once": false,
150
+ "onceDelay": 0.1,
151
+ "topic": "",
152
+ "payload": "{\"AirQuality\":\"NO_RESPONSE\"}",
153
+ "payloadType": "json",
154
+ "x": 500,
155
+ "y": 320,
156
+ "wires": [["8088a797.e1a7c"]]
157
+ },
158
+ {
159
+ "id": "560fc866.6de558",
160
+ "type": "function",
161
+ "z": "eeb8b00c.2c18c",
162
+ "g": "b3b5156e.cdf988",
163
+ "name": "Random values",
164
+ "func": "var newMsg = {\n \"payload\":{\n \"AirQuality\":Math.floor(Math.random() * Math.floor(5)),\n \"PM2_5Density\":Math.floor(Math.random() * Math.floor(1000)),\n \"PM10Density\":Math.floor(Math.random() * Math.floor(1000)),\n \"OzoneDensity\":Math.floor(Math.random() * Math.floor(1000)),\n \"NitrogenDioxideDensity\":Math.floor(Math.random() * Math.floor(1000)),\n \"SulphurDioxideDensity\": Math.floor(Math.random() * Math.floor(1000))\n }\n}\n\n\n\nreturn newMsg;",
165
+ "outputs": 1,
166
+ "noerr": 0,
167
+ "initialize": "",
168
+ "finalize": "",
169
+ "x": 500,
170
+ "y": 280,
171
+ "wires": [["8088a797.e1a7c"]]
172
+ },
173
+ {
174
+ "id": "61e113b2.dbb714",
175
+ "type": "group",
176
+ "z": "eeb8b00c.2c18c",
177
+ "g": "b3b5156e.cdf988",
178
+ "name": "LINKED",
179
+ "style": {
180
+ "stroke": "#0070c0",
181
+ "fill": "#bfdbef",
182
+ "label": true
79
183
  },
80
- {
81
- "id": "a70b3192.dfb4f",
82
- "type": "inject",
83
- "z": "eeb8b00c.2c18c",
84
- "g": "b3b5156e.cdf988",
85
- "name": "Air quality random",
86
- "props": [
87
- {
88
- "p": "payload"
89
- }
90
- ],
91
- "repeat": "15",
92
- "crontab": "",
93
- "once": true,
94
- "onceDelay": "5",
95
- "topic": "",
96
- "payload": "{}",
97
- "payloadType": "json",
98
- "x": 230,
99
- "y": 280,
100
- "wires": [
101
- [
102
- "560fc866.6de558"
103
- ]
104
- ]
105
- },
106
- {
107
- "id": "d5708f5.036c87",
108
- "type": "inject",
109
- "z": "eeb8b00c.2c18c",
110
- "g": "b3b5156e.cdf988",
111
- "name": "Battery random",
112
- "props": [
113
- {
114
- "p": "payload"
115
- }
116
- ],
117
- "repeat": "30",
118
- "crontab": "",
119
- "once": true,
120
- "onceDelay": "5",
121
- "topic": "",
122
- "payload": "",
123
- "payloadType": "date",
124
- "x": 220,
125
- "y": 380,
126
- "wires": [
127
- [
128
- "90b692e4.b9f6c"
129
- ]
130
- ]
131
- },
132
- {
133
- "id": "90b692e4.b9f6c",
134
- "type": "function",
135
- "z": "eeb8b00c.2c18c",
136
- "g": "b3b5156e.cdf988",
137
- "name": "Batt",
138
- "func": "// Define random battery level\nconst level = Math.floor(Math.random() * Math.floor(100))\nvar newMsg = {\n payload: {\n \"BatteryLevel\": level\n }\n};\n\n// Show \"Low Battery\" if less than 10%\nif (level < 10)newMsg.payload.StatusLowBattery = 1;\nelse newMsg.payload.StatusLowBattery = 0;\n\n// Show \"Charging\" if greater than 60%\nif (level > 60) newMsg.payload.ChargingState = 1;\nelse newMsg.payload.ChargingState = 0;\n\nreturn newMsg;",
139
- "outputs": 1,
140
- "noerr": 0,
141
- "initialize": "",
142
- "finalize": "",
143
- "x": 470,
144
- "y": 380,
145
- "wires": [
146
- [
147
- "5cd5342a.cfd72c"
148
- ]
149
- ]
150
- },
151
- {
152
- "id": "54bfafbc.396898",
153
- "type": "inject",
154
- "z": "eeb8b00c.2c18c",
155
- "g": "b3b5156e.cdf988",
156
- "name": "NO RESPONSE",
157
- "props": [
158
- {
159
- "p": "payload"
160
- }
161
- ],
162
- "repeat": "",
163
- "crontab": "",
164
- "once": false,
165
- "onceDelay": 0.1,
166
- "topic": "",
167
- "payload": "{\"AirQuality\":\"NO_RESPONSE\"}",
168
- "payloadType": "json",
169
- "x": 500,
170
- "y": 320,
171
- "wires": [
172
- [
173
- "8088a797.e1a7c"
174
- ]
175
- ]
176
- },
177
- {
178
- "id": "560fc866.6de558",
179
- "type": "function",
180
- "z": "eeb8b00c.2c18c",
181
- "g": "b3b5156e.cdf988",
182
- "name": "Random values",
183
- "func": "var newMsg = {\n \"payload\":{\n \"AirQuality\":Math.floor(Math.random() * Math.floor(5)),\n \"PM2_5Density\":Math.floor(Math.random() * Math.floor(1000)),\n \"PM10Density\":Math.floor(Math.random() * Math.floor(1000)),\n \"OzoneDensity\":Math.floor(Math.random() * Math.floor(1000)),\n \"NitrogenDioxideDensity\":Math.floor(Math.random() * Math.floor(1000)),\n \"SulphurDioxideDensity\": Math.floor(Math.random() * Math.floor(1000))\n }\n}\n\n\n\nreturn newMsg;",
184
- "outputs": 1,
185
- "noerr": 0,
186
- "initialize": "",
187
- "finalize": "",
188
- "x": 500,
189
- "y": 280,
190
- "wires": [
191
- [
192
- "8088a797.e1a7c"
193
- ]
194
- ]
195
- },
196
- {
197
- "id": "61e113b2.dbb714",
198
- "type": "group",
199
- "z": "eeb8b00c.2c18c",
200
- "g": "b3b5156e.cdf988",
201
- "name": "LINKED",
202
- "style": {
203
- "stroke": "#0070c0",
204
- "fill": "#bfdbef",
205
- "label": true
206
- },
207
- "nodes": [
208
- "5cd5342a.cfd72c"
209
- ],
210
- "x": 654,
211
- "y": 339,
212
- "w": 172,
213
- "h": 82
214
- },
215
- {
216
- "id": "5cd5342a.cfd72c",
217
- "type": "homekit-service",
218
- "z": "eeb8b00c.2c18c",
219
- "g": "61e113b2.dbb714",
220
- "isParent": false,
221
- "hostType": "0",
222
- "bridge": "",
223
- "accessoryId": "",
224
- "parentService": "8088a797.e1a7c",
225
- "name": "Battery",
226
- "serviceName": "Battery",
227
- "topic": "Air Quality",
228
- "filter": false,
229
- "manufacturer": "Default Manufacturer",
230
- "model": "Default Model",
231
- "serialNo": "Default Serial Number",
232
- "firmwareRev": "1.0.0",
233
- "hardwareRev": "1.0.0",
234
- "softwareRev": "1.0.0",
235
- "cameraConfigVideoProcessor": "ffmpeg",
236
- "cameraConfigSource": "",
237
- "cameraConfigStillImageSource": "",
238
- "cameraConfigMaxStreams": 2,
239
- "cameraConfigMaxWidth": 1280,
240
- "cameraConfigMaxHeight": 720,
241
- "cameraConfigMaxFPS": 10,
242
- "cameraConfigMaxBitrate": 300,
243
- "cameraConfigVideoCodec": "libx264",
244
- "cameraConfigAudioCodec": "libfdk_aac",
245
- "cameraConfigAudio": false,
246
- "cameraConfigPacketSize": 1316,
247
- "cameraConfigVerticalFlip": false,
248
- "cameraConfigHorizontalFlip": false,
249
- "cameraConfigMapVideo": "0:0",
250
- "cameraConfigMapAudio": "0:1",
251
- "cameraConfigVideoFilter": "scale=1280:720",
252
- "cameraConfigAdditionalCommandLine": "-tune zerolatency",
253
- "cameraConfigDebug": false,
254
- "cameraConfigSnapshotOutput": "disabled",
255
- "cameraConfigInterfaceName": "",
256
- "characteristicProperties": "{}",
257
- "waitForSetupMsg": false,
258
- "outputs": 2,
259
- "x": 740,
260
- "y": 380,
261
- "wires": [
262
- [],
263
- []
264
- ]
265
- },
266
- {
267
- "id": "409001a1.3e7a78",
268
- "type": "homekit-bridge",
269
- "bridgeName": "Demo 1",
270
- "pinCode": "153-10-538",
271
- "port": "",
272
- "allowInsecureRequest": false,
273
- "manufacturer": "NRCHKB",
274
- "model": "Demo",
275
- "serialNo": "1.1.2",
276
- "customMdnsConfig": false,
277
- "mdnsMulticast": true,
278
- "mdnsInterface": "",
279
- "mdnsPort": "",
280
- "mdnsIp": "",
281
- "mdnsTtl": "",
282
- "mdnsLoopback": true,
283
- "mdnsReuseAddr": true,
284
- "allowMessagePassthrough": true
285
- }
184
+ "nodes": ["5cd5342a.cfd72c"],
185
+ "x": 654,
186
+ "y": 339,
187
+ "w": 172,
188
+ "h": 82
189
+ },
190
+ {
191
+ "id": "5cd5342a.cfd72c",
192
+ "type": "homekit-service",
193
+ "z": "eeb8b00c.2c18c",
194
+ "g": "61e113b2.dbb714",
195
+ "isParent": false,
196
+ "hostType": "0",
197
+ "bridge": "",
198
+ "accessoryId": "",
199
+ "parentService": "8088a797.e1a7c",
200
+ "name": "Battery",
201
+ "serviceName": "Battery",
202
+ "topic": "Air Quality",
203
+ "filter": false,
204
+ "manufacturer": "Default Manufacturer",
205
+ "model": "Default Model",
206
+ "serialNo": "Default Serial Number",
207
+ "firmwareRev": "1.0.0",
208
+ "hardwareRev": "1.0.0",
209
+ "softwareRev": "1.0.0",
210
+ "cameraConfigVideoProcessor": "ffmpeg",
211
+ "cameraConfigSource": "",
212
+ "cameraConfigStillImageSource": "",
213
+ "cameraConfigMaxStreams": 2,
214
+ "cameraConfigMaxWidth": 1280,
215
+ "cameraConfigMaxHeight": 720,
216
+ "cameraConfigMaxFPS": 10,
217
+ "cameraConfigMaxBitrate": 300,
218
+ "cameraConfigVideoCodec": "libx264",
219
+ "cameraConfigAudioCodec": "libfdk_aac",
220
+ "cameraConfigAudio": false,
221
+ "cameraConfigPacketSize": 1316,
222
+ "cameraConfigVerticalFlip": false,
223
+ "cameraConfigHorizontalFlip": false,
224
+ "cameraConfigMapVideo": "0:0",
225
+ "cameraConfigMapAudio": "0:1",
226
+ "cameraConfigVideoFilter": "scale=1280:720",
227
+ "cameraConfigAdditionalCommandLine": "-tune zerolatency",
228
+ "cameraConfigDebug": false,
229
+ "cameraConfigSnapshotOutput": "disabled",
230
+ "cameraConfigInterfaceName": "",
231
+ "characteristicProperties": "{}",
232
+ "waitForSetupMsg": false,
233
+ "outputs": 2,
234
+ "x": 740,
235
+ "y": 380,
236
+ "wires": [[], []]
237
+ },
238
+ {
239
+ "id": "409001a1.3e7a78",
240
+ "type": "homekit-bridge",
241
+ "bridgeName": "Demo 1",
242
+ "pinCode": "153-10-538",
243
+ "port": "",
244
+ "allowInsecureRequest": false,
245
+ "manufacturer": "NRCHKB",
246
+ "model": "Demo",
247
+ "serialNo": "1.1.2",
248
+ "customMdnsConfig": false,
249
+ "mdnsMulticast": true,
250
+ "mdnsInterface": "",
251
+ "mdnsPort": "",
252
+ "mdnsIp": "",
253
+ "mdnsTtl": "",
254
+ "mdnsLoopback": true,
255
+ "mdnsReuseAddr": true,
256
+ "allowMessagePassthrough": true
257
+ }
286
258
  ]