matterbridge 1.2.18 → 1.2.20

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/matterbridge.d.ts +0 -7
  3. package/dist/matterbridge.d.ts.map +1 -1
  4. package/dist/matterbridge.js +211 -199
  5. package/dist/matterbridge.js.map +1 -1
  6. package/dist/matterbridgeAccessoryPlatform.d.ts +0 -36
  7. package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -1
  8. package/dist/matterbridgeAccessoryPlatform.js +0 -48
  9. package/dist/matterbridgeAccessoryPlatform.js.map +1 -1
  10. package/dist/matterbridgeDevice.d.ts +169 -0
  11. package/dist/matterbridgeDevice.d.ts.map +1 -1
  12. package/dist/matterbridgeDevice.js +51 -21
  13. package/dist/matterbridgeDevice.js.map +1 -1
  14. package/dist/matterbridgeDeviceV8.d.ts +44 -0
  15. package/dist/matterbridgeDeviceV8.d.ts.map +1 -0
  16. package/dist/matterbridgeDeviceV8.js +75 -0
  17. package/dist/matterbridgeDeviceV8.js.map +1 -0
  18. package/dist/matterbridgeDynamicPlatform.d.ts +0 -36
  19. package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -1
  20. package/dist/matterbridgeDynamicPlatform.js +0 -48
  21. package/dist/matterbridgeDynamicPlatform.js.map +1 -1
  22. package/dist/matterbridgePlatform.d.ts +36 -0
  23. package/dist/matterbridgePlatform.d.ts.map +1 -1
  24. package/dist/matterbridgePlatform.js +48 -0
  25. package/dist/matterbridgePlatform.js.map +1 -1
  26. package/dist/matterbridgeV8.d.ts +78 -0
  27. package/dist/matterbridgeV8.d.ts.map +1 -0
  28. package/dist/matterbridgeV8.js +318 -0
  29. package/dist/matterbridgeV8.js.map +1 -0
  30. package/dist/utils.d.ts +2 -1
  31. package/dist/utils.d.ts.map +1 -1
  32. package/dist/utils.js +29 -1
  33. package/dist/utils.js.map +1 -1
  34. package/frontend/build/asset-manifest.json +3 -3
  35. package/frontend/build/index.html +1 -1
  36. package/frontend/build/static/js/{main.5e82a930.js → main.23829a0f.js} +3 -3
  37. package/frontend/build/static/js/{main.5e82a930.js.map → main.23829a0f.js.map} +1 -1
  38. package/package.json +5 -5
  39. /package/frontend/build/static/js/{main.5e82a930.js.LICENSE.txt → main.23829a0f.js.LICENSE.txt} +0 -0
@@ -0,0 +1,78 @@
1
+ /**
2
+ * This file contains the class NewMatterbridge. Test of new matter.js api
3
+ *
4
+ * @file matterbridgeNewApi.ts
5
+ * @author Luca Liguori
6
+ * @date 2024-06-01
7
+ * @version 1.0.0
8
+ *
9
+ * Copyright 2024 Luca Liguori.
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License. *
22
+ */
23
+ /// <reference types="node" resolution-mode="require"/>
24
+ /**
25
+ * Import needed modules from @project-chip/matter-node.js
26
+ */
27
+ import '@project-chip/matter-node.js';
28
+ import { Logger } from '@project-chip/matter-node.js/log';
29
+ import { StorageContext, StorageManager } from '@project-chip/matter-node.js/storage';
30
+ import { StorageService } from '@project-chip/matter.js/environment';
31
+ import { ServerNode } from '@project-chip/matter.js/node';
32
+ import EventEmitter from 'events';
33
+ /**
34
+ * Represents the Matterbridge application.
35
+ */
36
+ export declare class MatterbridgeV8 extends EventEmitter {
37
+ private environment;
38
+ matterbridgeVersion: string;
39
+ osVersion: string;
40
+ matterbridgeDirectory: string;
41
+ matterbridgePluginDirectory: string;
42
+ globalModulesDirectory: string;
43
+ matterStorageService?: StorageService;
44
+ matterStorageManager?: StorageManager;
45
+ matterStorageContext?: StorageContext;
46
+ matterServerNode?: ServerNode<ServerNode.RootEndpoint>;
47
+ matterLogger?: Logger;
48
+ private constructor();
49
+ static create(): Promise<MatterbridgeV8>;
50
+ initialize(): Promise<void>;
51
+ private setupMatterVars;
52
+ private setupMatterStorage;
53
+ private deleteMatterLogfile;
54
+ private setupMatterFileLogger;
55
+ /**
56
+ * Creates a commissioning server storage context.
57
+ *
58
+ * @param pluginName - The name of the plugin.
59
+ * @param deviceName - The name of the device.
60
+ * @param deviceType - The type of the device.
61
+ * @param vendorId - The vendor ID.
62
+ * @param vendorName - The vendor name.
63
+ * @param productId - The product ID.
64
+ * @param productName - The product name.
65
+ * @param serialNumber - The serial number of the device (optional).
66
+ * @param uniqueId - The unique ID of the device (optional).
67
+ * @param softwareVersion - The software version of the device (optional).
68
+ * @param softwareVersionString - The software version string of the device (optional).
69
+ * @param hardwareVersion - The hardware version of the device (optional).
70
+ * @param hardwareVersionString - The hardware version string of the device (optional).
71
+ * @returns The storage context for the commissioning server.
72
+ */
73
+ private createServerNodeContext;
74
+ startServerNode(port?: number, passcode?: number, discriminator?: number): Promise<void>;
75
+ showServerNodeQR(): void;
76
+ stopServerNode(): Promise<void>;
77
+ }
78
+ //# sourceMappingURL=matterbridgeV8.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matterbridgeV8.d.ts","sourceRoot":"","sources":["../src/matterbridgeV8.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAEH;;GAEG;AAEH,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAiB,MAAM,EAAoB,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAe,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAW1D,OAAO,YAAY,MAAM,QAAQ,CAAC;AAKlC;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,CAAC,WAAW,CAAuB;IAEnC,mBAAmB,SAAW;IAC9B,SAAS,SAAgB;IACzB,qBAAqB,SAAM;IAC3B,2BAA2B,SAAM;IACjC,sBAAsB,SAAM;IAE5B,oBAAoB,CAAC,EAAE,cAAc,CAAC;IACtC,oBAAoB,CAAC,EAAE,cAAc,CAAC;IACtC,oBAAoB,CAAC,EAAE,cAAc,CAAC;IAEtC,gBAAgB,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAEvD,YAAY,CAAC,EAAE,MAAM,CAAC;IAE7B,OAAO;WAIM,MAAM;IAMb,UAAU;IAehB,OAAO,CAAC,eAAe;YAMT,kBAAkB;YAWlB,mBAAmB;YAOnB,qBAAqB;IAOnC;;;;;;;;;;;;;;;;;OAiBG;YACW,uBAAuB;IAmC/B,eAAe,CAAC,IAAI,SAAO,EAAE,QAAQ,SAAW,EAAE,aAAa,SAAO;IAsJ5E,gBAAgB;IAkBV,cAAc;CAIrB"}
@@ -0,0 +1,318 @@
1
+ /* eslint-disable no-console */
2
+ /* eslint-disable @typescript-eslint/no-unused-vars */
3
+ /**
4
+ * This file contains the class NewMatterbridge. Test of new matter.js api
5
+ *
6
+ * @file matterbridgeNewApi.ts
7
+ * @author Luca Liguori
8
+ * @date 2024-06-01
9
+ * @version 1.0.0
10
+ *
11
+ * Copyright 2024 Luca Liguori.
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License. *
24
+ */
25
+ /**
26
+ * Import needed modules from @project-chip/matter-node.js
27
+ */
28
+ // Include this first to auto-register Crypto, Network and Time Node.js implementations
29
+ import '@project-chip/matter-node.js';
30
+ import { CryptoNode } from '@project-chip/matter-node.js/crypto';
31
+ import { DeviceTypeId, FabricIndex, VendorId } from '@project-chip/matter-node.js/datatype';
32
+ import { Format, Level, Logger, createFileLogger } from '@project-chip/matter-node.js/log';
33
+ import { Environment, StorageService } from '@project-chip/matter.js/environment';
34
+ import { ServerNode } from '@project-chip/matter.js/node';
35
+ import { OnOffLightDevice } from '@project-chip/matter.js/devices/OnOffLightDevice';
36
+ import { Endpoint, EndpointServer } from '@project-chip/matter.js/endpoint';
37
+ import { logEndpoint } from '@project-chip/matter-node.js/device';
38
+ import { QrCode } from '@project-chip/matter-node.js/schema';
39
+ import { FabricAction } from '@project-chip/matter-node.js/fabric';
40
+ import { AggregatorEndpoint } from '@project-chip/matter.js/endpoints/AggregatorEndpoint';
41
+ import EventEmitter from 'events';
42
+ import path from 'path';
43
+ import { promises as fs } from 'fs';
44
+ /**
45
+ * Represents the Matterbridge application.
46
+ */
47
+ export class MatterbridgeV8 extends EventEmitter {
48
+ environment = Environment.default;
49
+ matterbridgeVersion = '2.0.0';
50
+ osVersion = '10.0.22631';
51
+ matterbridgeDirectory = '';
52
+ matterbridgePluginDirectory = '';
53
+ globalModulesDirectory = '';
54
+ matterStorageService;
55
+ matterStorageManager;
56
+ matterStorageContext;
57
+ matterServerNode;
58
+ matterLogger;
59
+ constructor() {
60
+ super();
61
+ }
62
+ static async create() {
63
+ const matterbridge = new MatterbridgeV8();
64
+ await matterbridge.initialize();
65
+ return matterbridge;
66
+ }
67
+ async initialize() {
68
+ this.matterLogger = Logger.get('Matterbridge');
69
+ this.matterbridgeDirectory = 'C:\\Users\\lligu\\.matterbridge';
70
+ this.matterbridgePluginDirectory = 'C:\\Users\\lligu\\Matterbridge';
71
+ await this.deleteMatterLogfile('matterbridge.log');
72
+ this.setupMatterVars(Level.DEBUG, Format.ANSI);
73
+ await this.setupMatterStorage();
74
+ await this.setupMatterFileLogger('matterbridge.log');
75
+ }
76
+ setupMatterVars(level, format) {
77
+ this.environment.vars.set('log.level', level);
78
+ this.environment.vars.set('log.format', format);
79
+ this.environment.vars.set('path.root', path.join(this.matterbridgeDirectory, 'matterstorage'));
80
+ }
81
+ async setupMatterStorage() {
82
+ this.matterStorageService = this.environment.get(StorageService);
83
+ this.matterLogger?.notice(`Storage service created: ${this.matterStorageService.location}`);
84
+ this.matterStorageManager = await this.matterStorageService.open('Matterbridge');
85
+ this.matterLogger?.notice('Storage manager created');
86
+ this.matterStorageContext = this.matterStorageManager.createContext('persist');
87
+ this.matterLogger?.notice('Storage context created');
88
+ }
89
+ async deleteMatterLogfile(filename) {
90
+ try {
91
+ await fs.unlink(path.join(this.matterbridgeDirectory, filename));
92
+ }
93
+ catch (err) {
94
+ console.error(`Error deleting old log file: ${err}`);
95
+ }
96
+ }
97
+ async setupMatterFileLogger(filename) {
98
+ Logger.addLogger('filelogger', await createFileLogger(path.join(this.matterbridgeDirectory, filename)), {
99
+ defaultLogLevel: Level.DEBUG,
100
+ });
101
+ this.matterLogger?.notice('File logger created: ' + path.join(this.matterbridgeDirectory, filename));
102
+ }
103
+ /**
104
+ * Creates a commissioning server storage context.
105
+ *
106
+ * @param pluginName - The name of the plugin.
107
+ * @param deviceName - The name of the device.
108
+ * @param deviceType - The type of the device.
109
+ * @param vendorId - The vendor ID.
110
+ * @param vendorName - The vendor name.
111
+ * @param productId - The product ID.
112
+ * @param productName - The product name.
113
+ * @param serialNumber - The serial number of the device (optional).
114
+ * @param uniqueId - The unique ID of the device (optional).
115
+ * @param softwareVersion - The software version of the device (optional).
116
+ * @param softwareVersionString - The software version string of the device (optional).
117
+ * @param hardwareVersion - The hardware version of the device (optional).
118
+ * @param hardwareVersionString - The hardware version string of the device (optional).
119
+ * @returns The storage context for the commissioning server.
120
+ */
121
+ async createServerNodeContext(pluginName, deviceName, deviceType, vendorId, vendorName, productId, productName) {
122
+ if (!this.matterLogger)
123
+ return;
124
+ const log = this.matterLogger;
125
+ if (!this.matterStorageService || !this.matterStorageManager) {
126
+ log.error('No storage manager initialized');
127
+ return;
128
+ }
129
+ log.debug(`Creating commissioning server storage context for ${pluginName}...`);
130
+ const storageContext = this.matterStorageManager.createContext('persist');
131
+ const random = 'CS' + CryptoNode.getRandomData(8).toHex();
132
+ await storageContext.set('storeId', pluginName);
133
+ await storageContext.set('deviceName', deviceName);
134
+ await storageContext.set('deviceType', deviceType);
135
+ await storageContext.set('vendorId', vendorId);
136
+ await storageContext.set('vendorName', vendorName.slice(0, 32));
137
+ await storageContext.set('productId', productId);
138
+ await storageContext.set('productName', productName.slice(0, 32));
139
+ await storageContext.set('nodeLabel', productName.slice(0, 32));
140
+ await storageContext.set('productLabel', productName.slice(0, 32));
141
+ await storageContext.set('serialNumber', await storageContext.get('serialNumber', random));
142
+ await storageContext.set('uniqueId', await storageContext.get('uniqueId', random));
143
+ await storageContext.set('softwareVersion', this.matterbridgeVersion && this.matterbridgeVersion.includes('.') ? parseInt(this.matterbridgeVersion.split('.')[0], 10) : 1);
144
+ await storageContext.set('softwareVersionString', this.matterbridgeVersion ?? '1.0.0');
145
+ await storageContext.set('hardwareVersion', this.osVersion && this.osVersion.includes('.') ? parseInt(this.osVersion.split('.')[0], 10) : 1);
146
+ await storageContext.set('hardwareVersionString', this.osVersion ?? '1.0.0');
147
+ log.debug(`Created commissioning server storage context for ${pluginName}:`);
148
+ log.debug(`- deviceName: ${await storageContext.get('deviceName')} deviceType: ${await storageContext.get('deviceType')}(0x${(await storageContext.get('deviceType'))?.toString(16).padStart(4, '0')})`);
149
+ log.debug(`- serialNumber: ${await storageContext.get('serialNumber')} uniqueId: ${await storageContext.get('uniqueId')}`);
150
+ log.debug(`- softwareVersion: ${await storageContext.get('softwareVersion')} softwareVersionString: ${await storageContext.get('softwareVersionString')}`);
151
+ log.debug(`- hardwareVersion: ${await storageContext.get('hardwareVersion')} hardwareVersionString: ${await storageContext.get('hardwareVersionString')}`);
152
+ log.notice(`Created commissioning server storage context for ${pluginName}`);
153
+ return storageContext;
154
+ }
155
+ async startServerNode(port = 5080, passcode = 20202021, discriminator = 3840) {
156
+ if (!this.matterLogger)
157
+ return;
158
+ const log = this.matterLogger;
159
+ log.notice('Starting Matterbridge');
160
+ this.matterStorageContext = await this.createServerNodeContext('Matterbridge', 'Matterbridge', AggregatorEndpoint.deviceType, 0xfff1, 'Matterbridge', 0x8000, 'Matterbridge Aggregator');
161
+ if (!this.matterStorageContext) {
162
+ log.error('Error creating storage context for Matterbridge');
163
+ return;
164
+ }
165
+ /**
166
+ * Create a Matter ServerNode, which contains the Root Endpoint and all relevant data and configuration
167
+ */
168
+ this.matterServerNode = await ServerNode.create({
169
+ // Required: Give the Node a unique ID which is used to store the state of this node
170
+ id: await this.matterStorageContext.get('storeId'),
171
+ // Provide Network relevant configuration like the port
172
+ // Optional when operating only one device on a host, Default port is 5540
173
+ network: {
174
+ port,
175
+ },
176
+ // Provide Commissioning relevant settings
177
+ // Optional for development/testing purposes
178
+ commissioning: {
179
+ passcode,
180
+ discriminator,
181
+ },
182
+ // Provide Node announcement settings
183
+ // Optional: If Ommitted some development defaults are used
184
+ productDescription: {
185
+ name: await this.matterStorageContext.get('deviceName'),
186
+ deviceType: DeviceTypeId(await this.matterStorageContext.get('deviceType')),
187
+ },
188
+ // Provide defaults for the BasicInformation cluster on the Root endpoint
189
+ // Optional: If Omitted some development defaults are used
190
+ basicInformation: {
191
+ vendorId: VendorId(await this.matterStorageContext.get('vendorId')),
192
+ vendorName: await this.matterStorageContext.get('vendorName'),
193
+ productId: await this.matterStorageContext.get('productId'),
194
+ productName: await this.matterStorageContext.get('productName'),
195
+ productLabel: await this.matterStorageContext.get('productName'),
196
+ nodeLabel: await this.matterStorageContext.get('productName'),
197
+ serialNumber: await this.matterStorageContext.get('serialNumber'),
198
+ uniqueId: await this.matterStorageContext.get('uniqueId'),
199
+ softwareVersion: await this.matterStorageContext.get('softwareVersion'),
200
+ softwareVersionString: await this.matterStorageContext.get('softwareVersionString'),
201
+ hardwareVersion: await this.matterStorageContext.get('hardwareVersion'),
202
+ hardwareVersionString: await this.matterStorageContext.get('hardwareVersionString'),
203
+ },
204
+ });
205
+ /**
206
+ * Matter Nodes are a composition of endpoints. Create and add a single endpoint to the node. This example uses the
207
+ * OnOffLightDevice or OnOffPlugInUnitDevice depending on the value of the type parameter. It also assigns this Part a
208
+ * unique ID to store the endpoint number for it in the storage to restore the device on restart.
209
+ * In this case we directly use the default command implementation from matter.js. Check out the DeviceNodeFull example
210
+ * to see how to customize the command handlers.
211
+ */
212
+ const endpoint = new Endpoint(OnOffLightDevice, { id: 'onoff' });
213
+ // await this.matterServerNode.add(endpoint);
214
+ // const mbV8 = new MatterbridgeDeviceV8(DeviceTypes.OnOffLight);
215
+ // const endpoint = mbV8.getBridgedNodeEndpointV8();
216
+ const aggregator = new Endpoint(AggregatorEndpoint, { id: 'aggregator' });
217
+ await this.matterServerNode.add(aggregator);
218
+ await aggregator.add(endpoint);
219
+ /**
220
+ * Register state change handlers and events of the node for identify and onoff states to react to the commands.
221
+ * If the code in these change handlers fail then the change is also rolled back and not executed and an error is
222
+ * reported back to the controller.
223
+ */
224
+ /*
225
+ endpoint.events.identify.startIdentifying.on(() => log.notice('Run identify logic, ideally blink a light every 0.5s ...'));
226
+
227
+ endpoint.events.identify.stopIdentifying.on(() => log.notice('Stop identify logic ...'));
228
+
229
+ endpoint.events.onOff.onOff$Changed.on((value) => log.notice(`OnOff is now ${value ? 'ON' : 'OFF'}`));
230
+ */
231
+ /**
232
+ * Log the endpoint structure for debugging reasons and to allow to verify anything is correct
233
+ */
234
+ logEndpoint(EndpointServer.forEndpoint(this.matterServerNode));
235
+ /**
236
+ * This event is triggered when the device is initially commissioned successfully.
237
+ * This means: It is added to the first fabric.
238
+ */
239
+ this.matterServerNode.lifecycle.commissioned.on(() => log.notice('Server was initially commissioned successfully!'));
240
+ /** This event is triggered when all fabrics are removed from the device, usually it also does a factory reset then. */
241
+ this.matterServerNode.lifecycle.decommissioned.on(() => log.notice('Server was fully decommissioned successfully!'));
242
+ /** This event is triggered when the device went online. This means that it is discoverable in the network. */
243
+ this.matterServerNode.lifecycle.online.on(() => log.notice('Server is online'));
244
+ /** This event is triggered when the device went offline. it is not longer discoverable or connectable in the network. */
245
+ this.matterServerNode.lifecycle.offline.on(() => log.notice('Server is offline'));
246
+ /**
247
+ * This event is triggered when a fabric is added, removed or updated on the device. Use this if more granular
248
+ * information is needed.
249
+ */
250
+ this.matterServerNode.events.commissioning.fabricsChanged.on((fabricIndex, fabricAction) => {
251
+ let action = '';
252
+ switch (fabricAction) {
253
+ case FabricAction.Added:
254
+ action = 'added';
255
+ break;
256
+ case FabricAction.Removed:
257
+ action = 'removed';
258
+ break;
259
+ case FabricAction.Updated:
260
+ action = 'updated';
261
+ break;
262
+ }
263
+ log.notice(`Commissioned Fabrics changed event (${action}) for ${fabricIndex} triggered`);
264
+ log.notice(this.matterServerNode?.state.commissioning.fabrics[fabricIndex]);
265
+ });
266
+ /**
267
+ * This event is triggered when an operative new session was opened by a Controller.
268
+ * It is not triggered for the initial commissioning process, just afterwards for real connections.
269
+ */
270
+ this.matterServerNode.events.sessions.opened.on((session) => log.notice('Session opened', session));
271
+ /**
272
+ * This event is triggered when an operative session is closed by a Controller or because the Device goes offline.
273
+ */
274
+ this.matterServerNode.events.sessions.closed.on((session) => log.notice('Session closed', session));
275
+ /** This event is triggered when a subscription gets added or removed on an operative session. */
276
+ this.matterServerNode.events.sessions.subscriptionsChanged.on((session) => {
277
+ log.notice('Session subscriptions changed', session);
278
+ log.notice('Status of all sessions', this.matterServerNode?.state.sessions.sessions);
279
+ });
280
+ await this.matterServerNode.bringOnline();
281
+ }
282
+ showServerNodeQR() {
283
+ if (!this.matterServerNode || !this.matterLogger)
284
+ return;
285
+ const log = this.matterLogger;
286
+ if (!this.matterServerNode.lifecycle.isCommissioned) {
287
+ const { qrPairingCode, manualPairingCode } = this.matterServerNode.state.commissioning.pairingCodes;
288
+ console.log(QrCode.get(qrPairingCode));
289
+ log.notice(`QR Code URL: https://project-chip.github.io/connectedhomeip/qrcode.html?data=${qrPairingCode}`);
290
+ log.notice(`Manual pairing code: ${manualPairingCode}`);
291
+ }
292
+ else {
293
+ log.notice('Device is already commissioned. Waiting for controllers to connect ...');
294
+ log.notice('Fabrics:', this.matterServerNode.state.commissioning.fabrics);
295
+ for (const key in this.matterServerNode.state.commissioning.fabrics) {
296
+ const fabric = this.matterServerNode.state.commissioning.fabrics[FabricIndex(Number(key))];
297
+ log.notice(`- index ${fabric.fabricIndex} id ${fabric.fabricId} nodeId ${fabric.nodeId} rootVendor ${fabric.rootVendorId} rootNodeId ${fabric.rootNodeId}`);
298
+ }
299
+ }
300
+ }
301
+ async stopServerNode() {
302
+ if (!this.matterServerNode)
303
+ return;
304
+ await this.matterServerNode.close();
305
+ }
306
+ }
307
+ // node dist/matterbridgeV8.js MatterbridgeV8
308
+ if (process.argv.includes('MatterbridgeV8')) {
309
+ const matterbridge = await MatterbridgeV8.create();
310
+ await matterbridge.startServerNode(5070, 20242025, 3950);
311
+ matterbridge.showServerNodeQR();
312
+ process.on('SIGINT', async function () {
313
+ console.log('Caught interrupt signal');
314
+ await matterbridge.stopServerNode();
315
+ // process.exit();
316
+ });
317
+ }
318
+ //# sourceMappingURL=matterbridgeV8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matterbridgeV8.js","sourceRoot":"","sources":["../src/matterbridgeV8.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,sDAAsD;AACtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;GAEG;AACH,uFAAuF;AACvF,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MA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C,cAAc;QAClB,IAAI,CAAC,IAAI,CAAC,gBAAgB;YAAE,OAAO;QACnC,MAAM,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;IACtC,CAAC;CACF;AAED,6CAA6C;AAC7C,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,CAAC;IACnD,MAAM,YAAY,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzD,YAAY,CAAC,gBAAgB,EAAE,CAAC;IAEhC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK;QACxB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACvC,MAAM,YAAY,CAAC,cAAc,EAAE,CAAC;QACpC,kBAAkB;IACpB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/dist/utils.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * @file utils.ts
5
5
  * @author Luca Liguori
6
6
  * @date 2024-02-17
7
- * @version 1.2.3
7
+ * @version 1.2.4
8
8
  *
9
9
  * Copyright 2024 Luca Liguori.
10
10
  *
@@ -68,4 +68,5 @@ export declare function getIpv4InterfaceAddress(): string | undefined;
68
68
  * @returns {string | undefined} The IPv4 address of the selected network interface, or undefined if not found.
69
69
  */
70
70
  export declare function getIpv6InterfaceAddress(): string | undefined;
71
+ export declare function waiter(name: string, check: () => boolean, exitWithReject?: boolean, resolveTimeout?: number, resolveInterval?: number, debug?: boolean): Promise<boolean>;
71
72
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,iBAAiB,GAAE,MAAM,EAAO,GAAG,OAAO,CA6EnF;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAuCvC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,SAAS,CAmB5D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,SAAS,CAmB5D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,iBAAiB,GAAE,MAAM,EAAO,GAAG,OAAO,CA6EnF;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAuCvC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,SAAS,CAmB5D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,SAAS,CAmB5D;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,OAAO,EAAE,cAAc,UAAQ,EAAE,cAAc,SAAO,EAAE,eAAe,SAAM,EAAE,KAAK,UAAQ,oBAuBnJ"}
package/dist/utils.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * @file utils.ts
5
5
  * @author Luca Liguori
6
6
  * @date 2024-02-17
7
- * @version 1.2.3
7
+ * @version 1.2.4
8
8
  *
9
9
  * Copyright 2024 Luca Liguori.
10
10
  *
@@ -219,4 +219,32 @@ export function getIpv6InterfaceAddress() {
219
219
  // console.log('Selected Network Interfaces:', ipv6Address);
220
220
  return ipv6Address;
221
221
  }
222
+ export async function waiter(name, check, exitWithReject = false, resolveTimeout = 5000, resolveInterval = 500, debug = false) {
223
+ // eslint-disable-next-line no-console
224
+ if (debug)
225
+ console.log(`**Waiter ${name} started...`);
226
+ return new Promise((resolve, reject) => {
227
+ const timeoutId = setTimeout(() => {
228
+ // eslint-disable-next-line no-console
229
+ if (debug)
230
+ console.log(`****Waiter ${name} exited for timeout...`);
231
+ clearTimeout(timeoutId);
232
+ clearInterval(intervalId);
233
+ if (exitWithReject)
234
+ reject(new Error(`Waiter ${name} exited due to timeout`));
235
+ else
236
+ resolve(false);
237
+ }, resolveTimeout);
238
+ const intervalId = setInterval(() => {
239
+ if (check()) {
240
+ // eslint-disable-next-line no-console
241
+ if (debug)
242
+ console.log(`**Waiter ${name} exited for true condition...`);
243
+ clearTimeout(timeoutId);
244
+ clearInterval(intervalId);
245
+ resolve(true);
246
+ }
247
+ }, resolveInterval);
248
+ });
249
+ }
222
250
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,8DAA8D;AAC9D,MAAM,UAAU,SAAS,CAAC,CAAM,EAAE,CAAM,EAAE,oBAA8B,EAAE;IACxE,oCAAoC;IACpC,MAAM,KAAK,GAAG,KAAK,CAAC;IAEpB,0CAA0C;IAC1C,8DAA8D;IAC9D,MAAM,QAAQ,GAAG,CAAC,GAAG,QAAe,EAAE,EAAE;QACtC,IAAI,KAAK,EAAE,CAAC;YACV,sCAAsC;YACtC,OAAO,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC;IAEF,6FAA6F;IAC7F,IAAI,CAAC,KAAK,C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AG,EAAE;YAClC,IAAI,KAAK,EAAE,EAAE,CAAC;gBACZ,sCAAsC;gBACtC,IAAI,KAAK;oBAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,+BAA+B,CAAC,CAAC;gBACxE,YAAY,CAAC,SAAS,CAAC,CAAC;gBACxB,aAAa,CAAC,UAAU,CAAC,CAAC;gBAC1B,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC;QACH,CAAC,EAAE,eAAe,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/css/main.57bd18a9.css",
4
- "main.js": "/static/js/main.5e82a930.js",
4
+ "main.js": "/static/js/main.23829a0f.js",
5
5
  "static/js/453.d855a71b.chunk.js": "/static/js/453.d855a71b.chunk.js",
6
6
  "index.html": "/index.html",
7
7
  "main.57bd18a9.css.map": "/static/css/main.57bd18a9.css.map",
8
- "main.5e82a930.js.map": "/static/js/main.5e82a930.js.map",
8
+ "main.23829a0f.js.map": "/static/js/main.23829a0f.js.map",
9
9
  "453.d855a71b.chunk.js.map": "/static/js/453.d855a71b.chunk.js.map"
10
10
  },
11
11
  "entrypoints": [
12
12
  "static/css/main.57bd18a9.css",
13
- "static/js/main.5e82a930.js"
13
+ "static/js/main.23829a0f.js"
14
14
  ]
15
15
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.5e82a930.js"></script><link href="/static/css/main.57bd18a9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.23829a0f.js"></script><link href="/static/css/main.57bd18a9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>