matterbridge 3.0.0-edge.6 → 3.0.0-edge.7
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/dist/matterbridge.js
CHANGED
|
@@ -15,8 +15,8 @@ import { Frontend } from './frontend.js';
|
|
|
15
15
|
import { DeviceTypeId, Endpoint as EndpointNode, Logger, LogLevel as MatterLogLevel, LogFormat as MatterLogFormat, VendorId, StorageService, Environment, ServerNode } from '@matter/main';
|
|
16
16
|
import { DeviceCommissioner, FabricAction, MdnsService, PaseClient } from '@matter/main/protocol';
|
|
17
17
|
import { AggregatorEndpoint } from '@matter/main/endpoints';
|
|
18
|
-
import { BridgedDeviceBasicInformationServer } from '@matter/main/behaviors/bridged-device-basic-information';
|
|
19
18
|
import { BasicInformationServer } from '@matter/main/behaviors/basic-information';
|
|
19
|
+
import { BridgedDeviceBasicInformationServer } from '@matter/main/behaviors/bridged-device-basic-information';
|
|
20
20
|
const plg = '\u001B[38;5;33m';
|
|
21
21
|
const dev = '\u001B[38;5;79m';
|
|
22
22
|
const typ = '\u001B[38;5;207m';
|
|
@@ -122,7 +122,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
122
122
|
matterStorageService;
|
|
123
123
|
matterStorageManager;
|
|
124
124
|
matterbridgeContext;
|
|
125
|
-
|
|
125
|
+
controllerContext;
|
|
126
126
|
mdnsInterface;
|
|
127
127
|
ipv4address;
|
|
128
128
|
ipv6address;
|
|
@@ -1337,6 +1337,19 @@ export class Matterbridge extends EventEmitter {
|
|
|
1337
1337
|
}, 1000);
|
|
1338
1338
|
}
|
|
1339
1339
|
async startController() {
|
|
1340
|
+
if (!this.matterStorageManager) {
|
|
1341
|
+
this.log.error('No storage manager initialized');
|
|
1342
|
+
await this.cleanup('No storage manager initialized');
|
|
1343
|
+
return;
|
|
1344
|
+
}
|
|
1345
|
+
this.log.info('Creating context: mattercontrollerContext');
|
|
1346
|
+
this.controllerContext = this.matterStorageManager.createContext('mattercontrollerContext');
|
|
1347
|
+
if (!this.controllerContext) {
|
|
1348
|
+
this.log.error('No storage context mattercontrollerContext initialized');
|
|
1349
|
+
await this.cleanup('No storage context mattercontrollerContext initialized');
|
|
1350
|
+
return;
|
|
1351
|
+
}
|
|
1352
|
+
this.log.debug('Starting matterbridge in mode', this.bridgeMode);
|
|
1340
1353
|
}
|
|
1341
1354
|
async startMatterStorage() {
|
|
1342
1355
|
this.log.info(`Starting matter node storage...`);
|
|
@@ -168,7 +168,7 @@ export const dimmableOutlet = DeviceTypeDefinition({
|
|
|
168
168
|
optionalServerClusters: [],
|
|
169
169
|
});
|
|
170
170
|
export const onOffMountedSwitch = DeviceTypeDefinition({
|
|
171
|
-
name: 'MA-
|
|
171
|
+
name: 'MA-onoffmountedswitch',
|
|
172
172
|
code: 0x010f,
|
|
173
173
|
deviceClass: DeviceClasses.Simple,
|
|
174
174
|
revision: 1,
|
|
@@ -176,7 +176,7 @@ export const onOffMountedSwitch = DeviceTypeDefinition({
|
|
|
176
176
|
optionalServerClusters: [LevelControl.Cluster.id],
|
|
177
177
|
});
|
|
178
178
|
export const dimmableMountedSwitch = DeviceTypeDefinition({
|
|
179
|
-
name: 'MA-
|
|
179
|
+
name: 'MA-dimmablemountedswitch',
|
|
180
180
|
code: 0x0110,
|
|
181
181
|
deviceClass: DeviceClasses.Simple,
|
|
182
182
|
revision: 1,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.0.0-edge.
|
|
3
|
+
"version": "3.0.0-edge.7",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.0.0-edge.
|
|
9
|
+
"version": "3.0.0-edge.7",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.13.0-alpha.0-20250412-5fad64e7b",
|