matterbridge 1.3.10 → 1.3.11
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 +28 -0
- package/dist/matterbridge.d.ts +2 -2
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +38 -33
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +146 -15
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +239 -35
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/matterbridgePlatform.js +1 -1
- package/dist/matterbridgePlatform.js.map +1 -1
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.js +5 -5
- package/dist/utils/utils.js.map +1 -1
- package/frontend/build/asset-manifest.json +6 -6
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/css/main.3986966b.css +2 -0
- package/frontend/build/static/css/main.3986966b.css.map +1 -0
- package/frontend/build/static/js/{main.cf22e7af.js → main.c9f97470.js} +3 -3
- package/frontend/build/static/js/{main.cf22e7af.js.map → main.c9f97470.js.map} +1 -1
- package/package.json +7 -4
- package/frontend/build/static/css/main.8e9f022b.css +0 -2
- package/frontend/build/static/css/main.8e9f022b.css.map +0 -1
- /package/frontend/build/static/js/{main.cf22e7af.js.LICENSE.txt → main.c9f97470.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge and sponsoring it.
|
|
6
6
|
|
|
7
|
+
## [1.3.12] - Not planned
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
16
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
17
|
+
</a>
|
|
18
|
+
|
|
19
|
+
## [1.3.11] - 2024-07-08
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- [device]: Added addRequiredClusterServers and addOptionalClusterServers methods.
|
|
23
|
+
- [frontend]: Added separated settings for the two logging systems (Matterbridge and Matter.js).
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- [device]: Refactor contructor and loadInstance to accept DeviceTypeDefinition | AtLeastOne<DeviceTypeDefinition>.
|
|
28
|
+
- [frontend]: Update to 1.2.0 (initial optimization for mobile)
|
|
29
|
+
- [dependencies]: Update dependencies.
|
|
30
|
+
|
|
31
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
32
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
33
|
+
</a>
|
|
34
|
+
|
|
7
35
|
## [1.3.10] - 2024-07-05
|
|
8
36
|
|
|
9
37
|
### Added
|
package/dist/matterbridge.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ interface MatterbridgeInformation {
|
|
|
92
92
|
bridgeMode: string;
|
|
93
93
|
restartMode: string;
|
|
94
94
|
debugEnabled: boolean;
|
|
95
|
+
matterLoggerLevel: number;
|
|
95
96
|
}
|
|
96
97
|
interface SanitizedExposedFabricInformation {
|
|
97
98
|
fabricIndex: FabricIndex;
|
|
@@ -145,7 +146,6 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
145
146
|
private nodeStorage;
|
|
146
147
|
private nodeContext;
|
|
147
148
|
private expressApp;
|
|
148
|
-
private expressServer;
|
|
149
149
|
private httpServer;
|
|
150
150
|
private httpsServer;
|
|
151
151
|
private webSocketServer;
|
|
@@ -207,7 +207,7 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
207
207
|
/**
|
|
208
208
|
* Parses the command line arguments and performs the corresponding actions.
|
|
209
209
|
* @private
|
|
210
|
-
* @returns {Promise<void>} A promise that resolves when the command line arguments have been processed.
|
|
210
|
+
* @returns {Promise<void>} A promise that resolves when the command line arguments have been processed, or the process exits.
|
|
211
211
|
*/
|
|
212
212
|
private parseCommandLine;
|
|
213
213
|
private savePluginsToStorage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src/matterbridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAsB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQvE,OAAO,YAAY,MAAM,QAAQ,CAAC;AAOlC,OAAO,EAAE,kBAAkB,EAAgC,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMjG,OAAO,EAA2B,mBAAmB,EAA0C,MAAM,8BAA8B,CAAC;AAEpI,OAAO,EAAgC,WAAW,EAAU,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACpH,OAAO,EAAE,UAAU,EAA+C,MAAM,qCAAqC,CAAC;AAG9G,OAAO,EAA8C,cAAc,EAAkB,MAAM,sCAAsC,CAAC;AAOlI,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAGD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IAC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: '',
|
|
88
88
|
debugEnabled: false,
|
|
89
|
+
matterLoggerLevel: Level.INFO,
|
|
89
90
|
};
|
|
90
91
|
homeDirectory = '';
|
|
91
92
|
rootDirectory = '';
|
|
@@ -115,7 +116,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
115
116
|
nodeStorage;
|
|
116
117
|
nodeContext;
|
|
117
118
|
expressApp;
|
|
118
|
-
expressServer;
|
|
119
|
+
// private expressServer: Server | undefined;
|
|
119
120
|
httpServer;
|
|
120
121
|
httpsServer;
|
|
121
122
|
webSocketServer;
|
|
@@ -300,11 +301,11 @@ export class Matterbridge extends EventEmitter {
|
|
|
300
301
|
}
|
|
301
302
|
// Set the interface to use for the matter server mdnsInterface
|
|
302
303
|
this.mdnsInterface = getParameter('mdnsinterface');
|
|
303
|
-
// Set the first port to use for the commissioning server
|
|
304
|
+
// Set the first port to use for the commissioning server (will be incremented in childbridge mode)
|
|
304
305
|
this.port = getIntParameter('port') ?? 5540;
|
|
305
|
-
// Set the first passcode to use for the commissioning server
|
|
306
|
+
// Set the first passcode to use for the commissioning server (will be incremented in childbridge mode)
|
|
306
307
|
this.passcode = getIntParameter('passcode');
|
|
307
|
-
// Set the first discriminator to use for the commissioning server
|
|
308
|
+
// Set the first discriminator to use for the commissioning server (will be incremented in childbridge mode)
|
|
308
309
|
this.discriminator = getIntParameter('discriminator');
|
|
309
310
|
// Set the restart mode
|
|
310
311
|
if (hasParameter('service'))
|
|
@@ -395,12 +396,12 @@ export class Matterbridge extends EventEmitter {
|
|
|
395
396
|
}
|
|
396
397
|
Logger.format = Format.ANSI;
|
|
397
398
|
// Parse command line
|
|
398
|
-
this.parseCommandLine();
|
|
399
|
+
await this.parseCommandLine();
|
|
399
400
|
}
|
|
400
401
|
/**
|
|
401
402
|
* Parses the command line arguments and performs the corresponding actions.
|
|
402
403
|
* @private
|
|
403
|
-
* @returns {Promise<void>} A promise that resolves when the command line arguments have been processed.
|
|
404
|
+
* @returns {Promise<void>} A promise that resolves when the command line arguments have been processed, or the process exits.
|
|
404
405
|
*/
|
|
405
406
|
async parseCommandLine() {
|
|
406
407
|
if (hasParameter('list')) {
|
|
@@ -520,7 +521,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
520
521
|
if (hasParameter('test')) {
|
|
521
522
|
this.bridgeMode = 'childbridge';
|
|
522
523
|
MatterbridgeDevice.bridgeMode = 'childbridge';
|
|
523
|
-
await this.testStartMatterBridge();
|
|
524
|
+
await this.testStartMatterBridge();
|
|
524
525
|
return;
|
|
525
526
|
}
|
|
526
527
|
if (hasParameter('controller')) {
|
|
@@ -791,6 +792,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
791
792
|
* When either of these signals are received, the cleanup method is called with an appropriate message.
|
|
792
793
|
*/
|
|
793
794
|
async registerSignalHandlers() {
|
|
795
|
+
this.log.debug(`Registering SIGINT and SIGTERM signal handlers...`);
|
|
794
796
|
process.once('SIGINT', async () => {
|
|
795
797
|
await this.cleanup('SIGINT received, cleaning up...');
|
|
796
798
|
});
|
|
@@ -854,11 +856,14 @@ export class Matterbridge extends EventEmitter {
|
|
|
854
856
|
if (!this.hasCleanupStarted) {
|
|
855
857
|
this.hasCleanupStarted = true;
|
|
856
858
|
this.log.info(message);
|
|
857
|
-
process
|
|
858
|
-
process.removeAllListeners(
|
|
859
|
+
// Remove all listeners from the process
|
|
860
|
+
process.removeAllListeners();
|
|
859
861
|
this.log.debug('All listeners removed');
|
|
860
|
-
|
|
862
|
+
// Clear the update interval
|
|
863
|
+
if (this.checkUpdateInterval)
|
|
864
|
+
clearInterval(this.checkUpdateInterval);
|
|
861
865
|
this.checkUpdateInterval = undefined;
|
|
866
|
+
this.log.debug('Update interval cleared');
|
|
862
867
|
// Calling the shutdown method of each plugin
|
|
863
868
|
for (const plugin of this.registeredPlugins) {
|
|
864
869
|
if (!plugin.enabled || plugin.error)
|
|
@@ -916,12 +921,14 @@ export class Matterbridge extends EventEmitter {
|
|
|
916
921
|
}
|
|
917
922
|
*/
|
|
918
923
|
// Close the express server
|
|
924
|
+
/*
|
|
919
925
|
if (this.expressServer) {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
926
|
+
this.expressServer.close();
|
|
927
|
+
this.expressServer.removeAllListeners();
|
|
928
|
+
this.expressServer = undefined;
|
|
929
|
+
this.log.debug('Express server closed successfully');
|
|
924
930
|
}
|
|
931
|
+
*/
|
|
925
932
|
// Close the http server
|
|
926
933
|
if (this.httpServer) {
|
|
927
934
|
this.httpServer.close();
|
|
@@ -960,7 +967,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
960
967
|
});
|
|
961
968
|
this.webSocketServer = undefined;
|
|
962
969
|
}
|
|
963
|
-
const
|
|
970
|
+
const cleanupTimeout1 = setTimeout(async () => {
|
|
964
971
|
// Closing matter
|
|
965
972
|
await this.stopMatter();
|
|
966
973
|
// Closing storage
|
|
@@ -991,7 +998,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
991
998
|
this.registeredPlugins = [];
|
|
992
999
|
this.registeredDevices = [];
|
|
993
1000
|
this.log.info('Waiting for matter to deliver last messages...');
|
|
994
|
-
const
|
|
1001
|
+
const cleanupTimeout2 = setTimeout(async () => {
|
|
995
1002
|
if (restart) {
|
|
996
1003
|
if (message === 'updating...') {
|
|
997
1004
|
this.log.info('Cleanup completed. Updating...');
|
|
@@ -1025,9 +1032,9 @@ export class Matterbridge extends EventEmitter {
|
|
|
1025
1032
|
this.emit('shutdown');
|
|
1026
1033
|
}
|
|
1027
1034
|
}, 2 * 1000);
|
|
1028
|
-
|
|
1035
|
+
cleanupTimeout2.unref();
|
|
1029
1036
|
}, 3 * 1000);
|
|
1030
|
-
|
|
1037
|
+
cleanupTimeout1.unref();
|
|
1031
1038
|
}
|
|
1032
1039
|
}
|
|
1033
1040
|
/**
|
|
@@ -2969,6 +2976,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
2969
2976
|
this.matterbridgeInformation.bridgeMode = this.bridgeMode;
|
|
2970
2977
|
this.matterbridgeInformation.restartMode = this.restartMode;
|
|
2971
2978
|
this.matterbridgeInformation.debugEnabled = this.debugEnabled;
|
|
2979
|
+
this.matterbridgeInformation.matterLoggerLevel = Logger.defaultLogLevel;
|
|
2972
2980
|
this.matterbridgeInformation.matterbridgePaired = this.matterbridgePaired;
|
|
2973
2981
|
this.matterbridgeInformation.matterbridgeConnected = this.matterbridgeConnected;
|
|
2974
2982
|
this.matterbridgeInformation.matterbridgeFabricInformations = this.matterbridgeFabricInformations;
|
|
@@ -3103,42 +3111,39 @@ export class Matterbridge extends EventEmitter {
|
|
|
3103
3111
|
this.log.debug('setpassword', param, password);
|
|
3104
3112
|
await this.nodeContext?.set('password', password);
|
|
3105
3113
|
}
|
|
3106
|
-
// Handle the command
|
|
3107
|
-
if (command === '
|
|
3108
|
-
this.log.debug('
|
|
3114
|
+
// Handle the command setmbloglevel from Settings
|
|
3115
|
+
if (command === 'setmbloglevel') {
|
|
3116
|
+
this.log.debug('Matterbridge log level:', param);
|
|
3109
3117
|
if (param === 'Debug') {
|
|
3110
3118
|
this.log.setLogDebug(true);
|
|
3111
3119
|
this.debugEnabled = true;
|
|
3112
|
-
Logger.defaultLogLevel = Level.DEBUG;
|
|
3113
3120
|
}
|
|
3114
3121
|
else if (param === 'Info') {
|
|
3115
3122
|
this.log.setLogDebug(false);
|
|
3116
3123
|
this.debugEnabled = false;
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
// Handle the command setmbloglevel from Settings
|
|
3127
|
+
if (command === 'setmjloglevel') {
|
|
3128
|
+
this.log.debug('Matter.js log level::', param);
|
|
3129
|
+
if (param === 'Debug') {
|
|
3130
|
+
Logger.defaultLogLevel = Level.DEBUG;
|
|
3131
|
+
}
|
|
3132
|
+
else if (param === 'Info') {
|
|
3117
3133
|
Logger.defaultLogLevel = Level.INFO;
|
|
3118
3134
|
}
|
|
3119
3135
|
else if (param === 'Notice') {
|
|
3120
|
-
this.log.setLogDebug(false);
|
|
3121
|
-
this.debugEnabled = false;
|
|
3122
3136
|
Logger.defaultLogLevel = Level.NOTICE;
|
|
3123
3137
|
}
|
|
3124
3138
|
else if (param === 'Warn') {
|
|
3125
|
-
this.log.setLogDebug(false);
|
|
3126
|
-
this.debugEnabled = false;
|
|
3127
3139
|
Logger.defaultLogLevel = Level.WARN;
|
|
3128
3140
|
}
|
|
3129
3141
|
else if (param === 'Error') {
|
|
3130
|
-
this.log.setLogDebug(false);
|
|
3131
|
-
this.debugEnabled = false;
|
|
3132
3142
|
Logger.defaultLogLevel = Level.ERROR;
|
|
3133
3143
|
}
|
|
3134
3144
|
else if (param === 'Fatal') {
|
|
3135
|
-
this.log.setLogDebug(false);
|
|
3136
|
-
this.debugEnabled = false;
|
|
3137
3145
|
Logger.defaultLogLevel = Level.FATAL;
|
|
3138
3146
|
}
|
|
3139
|
-
this.registeredPlugins.forEach((plugin) => {
|
|
3140
|
-
plugin.platform?.log.setLogDebug(this.debugEnabled);
|
|
3141
|
-
});
|
|
3142
3147
|
}
|
|
3143
3148
|
// Handle the command unregister from Settings
|
|
3144
3149
|
if (command === 'unregister') {
|