matterbridge 1.6.7 → 1.6.8-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/CHANGELOG.md +17 -0
- package/README-SERVICE.md +12 -3
- package/README.md +2 -0
- package/dist/cli.js +0 -0
- package/dist/deviceManager.d.ts +1 -1
- package/dist/deviceManager.d.ts.map +1 -1
- package/dist/matter/export.d.ts.map +1 -1
- package/dist/matter/export.js +5 -0
- package/dist/matter/export.js.map +1 -1
- package/dist/matterbridge.d.ts +13 -13
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +2 -1
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeBehaviors.d.ts +24 -850
- package/dist/matterbridgeBehaviors.d.ts.map +1 -1
- package/dist/matterbridgeDevice.d.ts +64 -5985
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +24 -0
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/matterbridgeEdge.d.ts +13 -15
- package/dist/matterbridgeEdge.d.ts.map +1 -1
- package/dist/matterbridgeEdge.js +1 -3
- package/dist/matterbridgeEdge.js.map +1 -1
- package/dist/matterbridgeEndpoint.d.ts +76 -9106
- package/dist/matterbridgeEndpoint.d.ts.map +1 -1
- package/dist/matterbridgeEndpoint.js +24 -0
- package/dist/matterbridgeEndpoint.js.map +1 -1
- package/dist/matterbridgePlatform.d.ts +7 -7
- package/dist/pluginManager.d.ts +1 -1
- package/dist/pluginManager.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/npm-shrinkwrap.json +7 -71
- package/package.json +1 -2
- package/dist/cli.d.ts +0 -25
- package/dist/cluster/export.d.ts +0 -2
- package/dist/defaultConfigSchema.d.ts +0 -27
- package/dist/index.d.ts +0 -40
- package/dist/logger/export.d.ts +0 -2
- package/dist/matter/export.d.ts +0 -6
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -39
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -39
- package/dist/matterbridgeTypes.d.ts +0 -162
- package/dist/matterbridgeWebsocket.d.ts +0 -49
- package/dist/storage/export.d.ts +0 -2
- package/dist/utils/colorUtils.d.ts +0 -61
- package/dist/utils/export.d.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,23 @@ Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord
|
|
|
18
18
|
In this release some device types and the OnOff, LevelControl and ColorControl have been updated to be fully compliant with Matter 1.3 specifications.
|
|
19
19
|
It is possible that some controllers see them as new devices or need time to read the new clusters. It can be useful after the upgrade to power off the controller, wait a few minutes and power it on again.
|
|
20
20
|
|
|
21
|
+
## [1.6.8-dev.2] - 2024-12-16
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- [package]: Update README.md and README-SERVICE.md to include instructions for using SSL on port 443.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- [edge]: Fixes to edge mode.
|
|
30
|
+
- [package]: Update dependencies.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
35
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
36
|
+
</a>
|
|
37
|
+
|
|
21
38
|
## [1.6.7] - 2024-12-15
|
|
22
39
|
|
|
23
40
|
### Added
|
package/README-SERVICE.md
CHANGED
|
@@ -35,7 +35,7 @@ Create a systemctl configuration file for Matterbridge
|
|
|
35
35
|
sudo nano /etc/systemd/system/matterbridge.service
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Add the following to this file, replacing
|
|
38
|
+
Add the following to this file, replacing 3 times (!) USER with your user name (e.g. WorkingDirectory=/home/pi/Matterbridge, User=pi and Group=pi):
|
|
39
39
|
|
|
40
40
|
You may need to adapt the configuration to your setup:
|
|
41
41
|
|
|
@@ -49,18 +49,27 @@ After=network-online.target
|
|
|
49
49
|
[Service]
|
|
50
50
|
Type=simple
|
|
51
51
|
ExecStart=matterbridge -service
|
|
52
|
-
WorkingDirectory=/home/<USER>/Matterbridge
|
|
52
|
+
WorkingDirectory=/home/<USER>/Matterbridge # Replace <USER> with your system username
|
|
53
53
|
StandardOutput=inherit
|
|
54
54
|
StandardError=inherit
|
|
55
55
|
Restart=always
|
|
56
56
|
RestartSec=10s
|
|
57
57
|
TimeoutStopSec=30s
|
|
58
|
-
User=<USER>
|
|
58
|
+
User=<USER> # Replace <USER> with your system username
|
|
59
|
+
Group=<USER> # Replace <USER> with your system username
|
|
59
60
|
|
|
60
61
|
[Install]
|
|
61
62
|
WantedBy=multi-user.target
|
|
62
63
|
```
|
|
63
64
|
|
|
65
|
+
If you use the frontend with -ssl -frontend 443 and get an error message: "Port 443 requires elevated privileges",
|
|
66
|
+
add this:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
[Service]
|
|
70
|
+
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
71
|
+
```
|
|
72
|
+
|
|
64
73
|
If you modify it after, then run:
|
|
65
74
|
|
|
66
75
|
```
|
package/README.md
CHANGED
|
@@ -116,6 +116,8 @@ Here's how to specify a different port number:
|
|
|
116
116
|
matterbridge -frontend [port number]
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
+
To use the frontend with ssl place the certificates in the .matterbridge/certs directory: cert.pem, key.pem and ca.pem (optional).
|
|
120
|
+
|
|
119
121
|
From the frontend you can do all operations in an easy way.
|
|
120
122
|
|
|
121
123
|
Home page:
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/deviceManager.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { NodeStorage } from 'node-persist-manager';
|
|
|
25
25
|
import { Matterbridge } from './matterbridge.js';
|
|
26
26
|
import { MatterbridgeDevice } from './matterbridgeDevice.js';
|
|
27
27
|
export declare class DeviceManager {
|
|
28
|
+
[x: number]: () => any;
|
|
28
29
|
private readonly _devices;
|
|
29
30
|
private readonly matterbridge;
|
|
30
31
|
private readonly nodeContext;
|
|
@@ -38,7 +39,6 @@ export declare class DeviceManager {
|
|
|
38
39
|
remove(device: MatterbridgeDevice): boolean;
|
|
39
40
|
clear(): void;
|
|
40
41
|
array(): MatterbridgeDevice[];
|
|
41
|
-
[Symbol.iterator](): MapIterator<MatterbridgeDevice>;
|
|
42
42
|
forEach(callback: (device: MatterbridgeDevice) => Promise<void>): Promise<void>;
|
|
43
43
|
get logLevel(): LogLevel;
|
|
44
44
|
set logLevel(logLevel: LogLevel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAwB,QAAQ,EAAmB,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,qBAAa,aAAa
|
|
1
|
+
{"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAwB,QAAQ,EAAmB,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,qBAAa,aAAa;;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyC;IAClE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;gBAErB,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW;IAOhE,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAI9B,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIrD,GAAG,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB;IAOnD,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO;IAM3C,KAAK,IAAI,IAAI;IAIb,KAAK,IAAI,kBAAkB,EAAE;IAQvB,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAYrF,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,IAAI,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAE9B;CAgCF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/matter/export.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChI,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/matter/export.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxG,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChI,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC"}
|
package/dist/matter/export.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export * from '@matter/main';
|
|
2
|
+
export { AggregatorEndpoint } from '@matter/main/endpoints';
|
|
3
|
+
export * from '@matter/main/devices';
|
|
4
|
+
export * from '@matter/main/behaviors';
|
|
5
|
+
export { FabricAction, MdnsService, PaseClient } from '@matter/main/protocol';
|
|
2
6
|
export { AttributeElement, ClusterElement, ClusterModel, CommandElement, EventElement, FieldElement } from '@matter/main/model';
|
|
3
7
|
export * from '../matterbridgeDeviceTypes.js';
|
|
4
8
|
export * from '../matterbridgeEndpoint.js';
|
|
5
9
|
export * from '../matterbridgeBehaviors.js';
|
|
10
|
+
export * from '../matterbridgeEdge.js';
|
|
6
11
|
//# sourceMappingURL=export.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/matter/export.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChI,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/matter/export.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAA4B,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxG,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChI,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC"}
|
package/dist/matterbridge.d.ts
CHANGED
|
@@ -108,13 +108,13 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
108
108
|
* @param initialize - Whether to initialize the Matterbridge instance after loading.
|
|
109
109
|
* @returns The loaded Matterbridge instance.
|
|
110
110
|
*/
|
|
111
|
-
static loadInstance(initialize?: boolean):
|
|
111
|
+
static loadInstance(initialize?: boolean): unknown;
|
|
112
112
|
/**
|
|
113
113
|
* Call cleanup().
|
|
114
114
|
* @deprecated This method is deprecated and is only used for jest tests.
|
|
115
115
|
*
|
|
116
116
|
*/
|
|
117
|
-
destroyInstance():
|
|
117
|
+
destroyInstance(): any;
|
|
118
118
|
/**
|
|
119
119
|
* Initializes the Matterbridge application.
|
|
120
120
|
*
|
|
@@ -125,7 +125,7 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
125
125
|
*
|
|
126
126
|
* @returns A Promise that resolves when the initialization is complete.
|
|
127
127
|
*/
|
|
128
|
-
initialize():
|
|
128
|
+
initialize(): any;
|
|
129
129
|
/**
|
|
130
130
|
* Parses the command line arguments and performs the corresponding actions.
|
|
131
131
|
* @private
|
|
@@ -199,15 +199,15 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
199
199
|
/**
|
|
200
200
|
* Update matterbridge and cleanup.
|
|
201
201
|
*/
|
|
202
|
-
protected updateProcess():
|
|
202
|
+
protected updateProcess(): any;
|
|
203
203
|
/**
|
|
204
204
|
* Restarts the process by spawning a new process and exiting the current process.
|
|
205
205
|
*/
|
|
206
|
-
protected restartProcess():
|
|
206
|
+
protected restartProcess(): any;
|
|
207
207
|
/**
|
|
208
208
|
* Shut down the process by exiting the current process.
|
|
209
209
|
*/
|
|
210
|
-
protected shutdownProcess():
|
|
210
|
+
protected shutdownProcess(): any;
|
|
211
211
|
/**
|
|
212
212
|
* Shut down the process and reset.
|
|
213
213
|
*/
|
|
@@ -226,7 +226,7 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
226
226
|
* @param restart - Indicates whether to restart the instance after cleanup. Default is `false`.
|
|
227
227
|
* @returns A promise that resolves when the cleanup is completed.
|
|
228
228
|
*/
|
|
229
|
-
protected cleanup(message: string, restart?: boolean):
|
|
229
|
+
protected cleanup(message: string, restart?: boolean): any;
|
|
230
230
|
addBridgedEndpoint(pluginName: string, device: MatterbridgeEndpoint): Promise<void>;
|
|
231
231
|
removeBridgedEndpoint(pluginName: string, device: MatterbridgeEndpoint): Promise<void>;
|
|
232
232
|
removeAllBridgedEndpoints(pluginName: string): Promise<void>;
|
|
@@ -308,11 +308,11 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
308
308
|
* Starts the Matter server.
|
|
309
309
|
* If the Matter server is not initialized, it logs an error and performs cleanup.
|
|
310
310
|
*/
|
|
311
|
-
protected startMatterServer():
|
|
311
|
+
protected startMatterServer(): any;
|
|
312
312
|
/**
|
|
313
313
|
* Stops the Matter server, commissioningServer and commissioningController.
|
|
314
314
|
*/
|
|
315
|
-
protected stopMatterServer():
|
|
315
|
+
protected stopMatterServer(): any;
|
|
316
316
|
/**
|
|
317
317
|
* Creates a Matter Aggregator.
|
|
318
318
|
* @param {StorageContext} context - The storage context.
|
|
@@ -362,21 +362,21 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
362
362
|
* @param {string} pluginName - The name of the plugin of Matterbridge in bridge mode.
|
|
363
363
|
* @returns {Promise<void>} - A promise that resolves when the QR code is shown.
|
|
364
364
|
*/
|
|
365
|
-
protected showCommissioningQRCode(commissioningServer: CommissioningServer | undefined, storageContext: StorageContext | undefined, nodeContext: NodeStorage | undefined, pluginName: string):
|
|
365
|
+
protected showCommissioningQRCode(commissioningServer: CommissioningServer | undefined, storageContext: StorageContext | undefined, nodeContext: NodeStorage | undefined, pluginName: string): any;
|
|
366
366
|
/**
|
|
367
367
|
* Sanitizes the fabric information by converting bigint properties to string cause res.json doesn't know bigint.
|
|
368
368
|
*
|
|
369
369
|
* @param fabricInfo - The array of exposed fabric information objects.
|
|
370
370
|
* @returns An array of sanitized exposed fabric information objects.
|
|
371
371
|
*/
|
|
372
|
-
protected sanitizeFabricInformations(fabricInfo: ExposedFabricInformation[]):
|
|
372
|
+
protected sanitizeFabricInformations(fabricInfo: ExposedFabricInformation[]): any;
|
|
373
373
|
/**
|
|
374
374
|
* Sanitizes the session information by converting bigint properties to string.
|
|
375
375
|
*
|
|
376
376
|
* @param sessionInfo - The array of session information objects.
|
|
377
377
|
* @returns An array of sanitized session information objects.
|
|
378
378
|
*/
|
|
379
|
-
protected sanitizeSessionInformation(sessionInfo: SessionInformation[]):
|
|
379
|
+
protected sanitizeSessionInformation(sessionInfo: SessionInformation[]): any;
|
|
380
380
|
/**
|
|
381
381
|
* Sets the reachability of a commissioning server and trigger.
|
|
382
382
|
*
|
|
@@ -454,7 +454,7 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
454
454
|
*
|
|
455
455
|
* @returns A Promise that resolves when the initialization is complete.
|
|
456
456
|
*/
|
|
457
|
-
stopExtension():
|
|
457
|
+
stopExtension(): any;
|
|
458
458
|
/**
|
|
459
459
|
* Checks if the extension is commissioned.
|
|
460
460
|
* @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src/matterbridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH,OAAO,YAAY,MAAM,QAAQ,CAAC;AAQlC,OAAO,SAA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,EAAE,SAAS,EAAE,OAAO;IAM9E,OAAO,CAAC,eAAe,CAuCrB;IAEF;;;OAGG;cACa,wBAAwB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAgC3E;;;;;OAKG;cACa,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAqFpF;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAuCtB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;;;OAIG;IACG,kBAAkB,CAAC,IAAI,SAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAkwBpD;;;;OAIG;IACH,SAAS,CAAC,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM;IA2DtE;;;;;OAKG;IACU,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,SAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAsEtG;;;;;OAKG;IACU,aAAa;IAa1B;;;;;OAKG;IACI,uBAAuB,IAAI,OAAO;CAI1C"}
|
package/dist/matterbridge.js
CHANGED
|
@@ -51,6 +51,7 @@ import { StorageBackendDisk, StorageBackendJsonFile } from '@matter/nodejs';
|
|
|
51
51
|
// @project-chip
|
|
52
52
|
import { CommissioningController, CommissioningServer, MatterServer } from '@project-chip/matter.js';
|
|
53
53
|
import { Aggregator, DeviceTypes, NodeStateInformation } from '@project-chip/matter.js/device';
|
|
54
|
+
import { aggregator } from './matterbridgeDeviceTypes.js';
|
|
54
55
|
// Default colors
|
|
55
56
|
const plg = '\u001B[38;5;33m';
|
|
56
57
|
const dev = '\u001B[38;5;79m';
|
|
@@ -1852,7 +1853,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
1852
1853
|
}
|
|
1853
1854
|
}
|
|
1854
1855
|
this.log.debug(`Creating commissioning server context for ${plg}Matterbridge${db}`);
|
|
1855
|
-
this.matterbridgeContext = await this.createCommissioningServerContext('Matterbridge', 'Matterbridge',
|
|
1856
|
+
this.matterbridgeContext = await this.createCommissioningServerContext('Matterbridge', 'Matterbridge', aggregator.code, 0xfff1, 'Matterbridge', 0x8000, 'Matterbridge aggregator');
|
|
1856
1857
|
}
|
|
1857
1858
|
/**
|
|
1858
1859
|
* Makes a backup copy of the specified matter JSON storage file.
|