matterbridge 1.3.11 → 1.3.12
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 +6 -1
- package/README.md +4 -4
- package/dist/history/export.d.ts +2 -0
- package/dist/history/export.d.ts.map +1 -0
- package/dist/history/export.js +2 -0
- package/dist/history/export.js.map +1 -0
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +42 -21
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +9 -0
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +4 -0
- package/dist/matterbridgeDevice.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.b4d28450.css +2 -0
- package/frontend/build/static/css/main.b4d28450.css.map +1 -0
- package/frontend/build/static/js/{main.c9f97470.js → main.3105733e.js} +3 -3
- package/frontend/build/static/js/{main.c9f97470.js.map → main.3105733e.js.map} +1 -1
- package/package.json +10 -7
- package/frontend/build/static/css/main.3986966b.css +0 -2
- package/frontend/build/static/css/main.3986966b.css.map +0 -1
- /package/frontend/build/static/js/{main.c9f97470.js.LICENSE.txt → main.3105733e.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,14 +4,19 @@ 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] -
|
|
7
|
+
## [1.3.12] - 2024-07-10
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
11
|
### Changed
|
|
12
12
|
|
|
13
|
+
- [frontend]: The Logs in Home page has the same filter as the Logs page.
|
|
14
|
+
- [matterbridge]: The plugins debug is now indipendent from matterbridge debug and matter.js log level. It can be set from the plugin config.
|
|
15
|
+
|
|
13
16
|
### Fixed
|
|
14
17
|
|
|
18
|
+
- [frontend]: Fix Home for mobile.
|
|
19
|
+
|
|
15
20
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
16
21
|
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
17
22
|
</a>
|
package/README.md
CHANGED
|
@@ -107,16 +107,16 @@ matterbridge -childbridge -frontend [port number]
|
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
Home page:
|
|
110
|
-

|
|
110
|
+

|
|
111
111
|
|
|
112
112
|
Devices page:
|
|
113
|
-

|
|
113
|
+

|
|
114
114
|
|
|
115
115
|
Logs page:
|
|
116
|
-

|
|
116
|
+

|
|
117
117
|
|
|
118
118
|
Config editor:
|
|
119
|
-

|
|
119
|
+

|
|
120
120
|
|
|
121
121
|
## Plugins
|
|
122
122
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/history/export.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/history/export.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -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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C;IA+B9C;;;;;;;OAOG;YACW,uBAAuB;IA2DrC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IAclC;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IA0BlC;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IASlB;;;;;OAKG;IACH,OAAO,CAAC,kCAAkC;IAM1C;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAWjC;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,eAAe,CAoCrB;IAEF;;;;;;OAMG;YACW,wBAAwB;IAwJtC;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAmB1B;;;;OAIG;YACW,sBAAsB;IA2CpC;;OAEG;YACW,UAAU;IAcxB;;;;OAIG;YACW,gBAAgB;IAY9B;;;OAGG;YACW,oBAAoB;IAYlC;;OAEG;YACW,oBAAoB;IAmKlC;;;;OAIG;YACW,4BAA4B;IAiB1C;;;;;;;;;OASG;YACW,sBAAsB;IAcpC;;;;OAIG;YACW,wBAAwB;IAgCtC;;;;;OAKG;YACW,YAAY;IA0E1B;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IActB;;;;OAIG;IACG,kBAAkB,CAAC,IAAI,SAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA0gBpD;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;CAkCjC"}
|
package/dist/matterbridge.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* limitations under the License. *
|
|
22
22
|
*/
|
|
23
23
|
import { NodeStorageManager } from 'node-persist-manager';
|
|
24
|
-
import { AnsiLogger, BRIGHT, RESET, UNDERLINE, UNDERLINEOFF, YELLOW, db, debugStringify, stringify, er, nf, rs, wr, RED, GREEN, zb } from 'node-ansi-logger';
|
|
24
|
+
import { AnsiLogger, BRIGHT, RESET, UNDERLINE, UNDERLINEOFF, YELLOW, db, debugStringify, stringify, er, nf, rs, wr, RED, GREEN, zb, hk, or, idn, BLUE } from 'node-ansi-logger';
|
|
25
25
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
26
26
|
import { promises as fs } from 'fs';
|
|
27
27
|
import { exec, spawn } from 'child_process';
|
|
@@ -39,7 +39,7 @@ import { BridgedDeviceBasicInformation, BridgedDeviceBasicInformationCluster } f
|
|
|
39
39
|
import { logInterfaces } from './utils/utils.js';
|
|
40
40
|
// @project-chip/matter-node.js
|
|
41
41
|
import { CommissioningController, CommissioningServer, MatterServer } from '@project-chip/matter-node.js';
|
|
42
|
-
import { BasicInformationCluster, ClusterServer, FixedLabelCluster, GeneralCommissioning, PowerSourceCluster, ThreadNetworkDiagnosticsCluster, getClusterNameById } from '@project-chip/matter-node.js/cluster';
|
|
42
|
+
import { BasicInformationCluster, ClusterServer, FixedLabelCluster, GeneralCommissioning, PowerSourceCluster, SwitchCluster, ThreadNetworkDiagnosticsCluster, getClusterNameById } from '@project-chip/matter-node.js/cluster';
|
|
43
43
|
import { DeviceTypeId, VendorId } from '@project-chip/matter-node.js/datatype';
|
|
44
44
|
import { Aggregator, DeviceTypes, NodeStateInformation } from '@project-chip/matter-node.js/device';
|
|
45
45
|
import { Format, Level, Logger } from '@project-chip/matter-node.js/log';
|
|
@@ -103,7 +103,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
103
103
|
bridgeMode = '';
|
|
104
104
|
restartMode = '';
|
|
105
105
|
debugEnabled = false;
|
|
106
|
-
mdnsInterface; // matter server mdnsInterface: 'eth0' or 'wlan0' or 'WiFi'
|
|
106
|
+
mdnsInterface; // matter server mdnsInterface: e.g. 'eth0' or 'wlan0' or 'WiFi'
|
|
107
107
|
port = 5540; // first commissioning server port
|
|
108
108
|
passcode; // first commissioning server passcode
|
|
109
109
|
discriminator; // first commissioning server discriminator
|
|
@@ -116,7 +116,6 @@ export class Matterbridge extends EventEmitter {
|
|
|
116
116
|
nodeStorage;
|
|
117
117
|
nodeContext;
|
|
118
118
|
expressApp;
|
|
119
|
-
// private expressServer: Server | undefined;
|
|
120
119
|
httpServer;
|
|
121
120
|
httpsServer;
|
|
122
121
|
webSocketServer;
|
|
@@ -805,21 +804,18 @@ export class Matterbridge extends EventEmitter {
|
|
|
805
804
|
*/
|
|
806
805
|
async updateProcess() {
|
|
807
806
|
await this.cleanup('updating...', false);
|
|
808
|
-
this.hasCleanupStarted = false;
|
|
809
807
|
}
|
|
810
808
|
/**
|
|
811
809
|
* Restarts the process by spawning a new process and exiting the current process.
|
|
812
810
|
*/
|
|
813
811
|
async restartProcess() {
|
|
814
812
|
await this.cleanup('restarting...', true);
|
|
815
|
-
this.hasCleanupStarted = false;
|
|
816
813
|
}
|
|
817
814
|
/**
|
|
818
815
|
* Shut down the process by exiting the current process.
|
|
819
816
|
*/
|
|
820
817
|
async shutdownProcess() {
|
|
821
818
|
await this.cleanup('shutting down...', false);
|
|
822
|
-
this.hasCleanupStarted = false;
|
|
823
819
|
}
|
|
824
820
|
/**
|
|
825
821
|
* Shut down the process and reset.
|
|
@@ -830,21 +826,18 @@ export class Matterbridge extends EventEmitter {
|
|
|
830
826
|
await this.removeAllBridgedDevices(plugin.name);
|
|
831
827
|
}
|
|
832
828
|
await this.cleanup('unregistered all devices and shutting down...', false);
|
|
833
|
-
this.hasCleanupStarted = false;
|
|
834
829
|
}
|
|
835
830
|
/**
|
|
836
831
|
* Shut down the process and reset.
|
|
837
832
|
*/
|
|
838
833
|
async shutdownProcessAndReset() {
|
|
839
834
|
await this.cleanup('shutting down with reset...', false);
|
|
840
|
-
this.hasCleanupStarted = false;
|
|
841
835
|
}
|
|
842
836
|
/**
|
|
843
837
|
* Shut down the process and factory reset.
|
|
844
838
|
*/
|
|
845
839
|
async shutdownProcessAndFactoryReset() {
|
|
846
840
|
await this.cleanup('shutting down with factory reset...', false);
|
|
847
|
-
this.hasCleanupStarted = false;
|
|
848
841
|
}
|
|
849
842
|
/**
|
|
850
843
|
* Cleans up the Matterbridge instance.
|
|
@@ -879,7 +872,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
879
872
|
}
|
|
880
873
|
}
|
|
881
874
|
else {
|
|
882
|
-
this.log.
|
|
875
|
+
this.log.debug(`Plugin ${plg}${plugin.name}${db} platform not found`);
|
|
883
876
|
}
|
|
884
877
|
}
|
|
885
878
|
// Set reachability to false
|
|
@@ -1031,6 +1024,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
1031
1024
|
Matterbridge.instance = undefined;
|
|
1032
1025
|
this.emit('shutdown');
|
|
1033
1026
|
}
|
|
1027
|
+
this.hasCleanupStarted = false;
|
|
1034
1028
|
}, 2 * 1000);
|
|
1035
1029
|
cleanupTimeout2.unref();
|
|
1036
1030
|
}, 3 * 1000);
|
|
@@ -1367,6 +1361,10 @@ export class Matterbridge extends EventEmitter {
|
|
|
1367
1361
|
/* The first time a plugin is added to the system, the config file is created with the plugin name and type "".*/
|
|
1368
1362
|
config.name = plugin.name;
|
|
1369
1363
|
config.type = plugin.type;
|
|
1364
|
+
if (config.debug === undefined)
|
|
1365
|
+
config.debug = false;
|
|
1366
|
+
if (config.unregisterOnShutdown === undefined)
|
|
1367
|
+
config.unregisterOnShutdown = false;
|
|
1370
1368
|
return config;
|
|
1371
1369
|
}
|
|
1372
1370
|
catch (err) {
|
|
@@ -1395,11 +1393,11 @@ export class Matterbridge extends EventEmitter {
|
|
|
1395
1393
|
}
|
|
1396
1394
|
else {
|
|
1397
1395
|
this.log.error(`Error accessing config file ${configFile}: ${err}`);
|
|
1398
|
-
return {};
|
|
1396
|
+
return { name: plugin.name, type: plugin.type, debug: false, unregisterOnShutdown: false };
|
|
1399
1397
|
}
|
|
1400
1398
|
}
|
|
1401
1399
|
this.log.error(`Error loading config file ${configFile}: ${err}`);
|
|
1402
|
-
return {};
|
|
1400
|
+
return { name: plugin.name, type: plugin.type, debug: false, unregisterOnShutdown: false };
|
|
1403
1401
|
}
|
|
1404
1402
|
}
|
|
1405
1403
|
/**
|
|
@@ -1565,7 +1563,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
1565
1563
|
// Call the default export function of the plugin, passing this MatterBridge instance, the log and the config
|
|
1566
1564
|
if (pluginInstance.default) {
|
|
1567
1565
|
const config = await this.loadPluginConfig(plugin);
|
|
1568
|
-
const log = new AnsiLogger({ logName: plugin.description, logTimestampFormat: 4 /* TimestampFormat.TIME_MILLIS */, logDebug:
|
|
1566
|
+
const log = new AnsiLogger({ logName: plugin.description, logTimestampFormat: 4 /* TimestampFormat.TIME_MILLIS */, logDebug: config.debug ?? false });
|
|
1569
1567
|
const platform = pluginInstance.default(this, log, config);
|
|
1570
1568
|
platform.name = packageJson.name;
|
|
1571
1569
|
platform.config = config;
|
|
@@ -1691,6 +1689,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
1691
1689
|
for (const nodeId of nodeIds) {
|
|
1692
1690
|
this.log.info(`***Connecting to commissioned node: ${nodeId}`);
|
|
1693
1691
|
const node = await this.commissioningController.connectNode(nodeId, {
|
|
1692
|
+
autoSubscribe: false,
|
|
1694
1693
|
attributeChangedCallback: (peerNodeId, { path: { nodeId, clusterId, endpointId, attributeName }, value }) => this.log.info(`***Commissioning controller attributeChangedCallback ${peerNodeId}: attribute ${nodeId}/${endpointId}/${clusterId}/${attributeName} changed to ${Logger.toJSON(value)}`),
|
|
1695
1694
|
eventTriggeredCallback: (peerNodeId, { path: { nodeId, clusterId, endpointId, eventName }, events }) => this.log.info(`***Commissioning controller eventTriggeredCallback ${peerNodeId}: Event ${nodeId}/${endpointId}/${clusterId}/${eventName} triggered with ${Logger.toJSON(events)}`),
|
|
1696
1695
|
stateInformationCallback: (peerNodeId, info) => {
|
|
@@ -1719,7 +1718,7 @@ export class Matterbridge extends EventEmitter {
|
|
|
1719
1718
|
}
|
|
1720
1719
|
},
|
|
1721
1720
|
});
|
|
1722
|
-
|
|
1721
|
+
node.logStructure();
|
|
1723
1722
|
// Get the interaction client
|
|
1724
1723
|
this.log.info('Getting the interaction client');
|
|
1725
1724
|
const interactionClient = await node.getInteractionClient();
|
|
@@ -1730,28 +1729,50 @@ export class Matterbridge extends EventEmitter {
|
|
|
1730
1729
|
attributes = await interactionClient.getMultipleAttributes({
|
|
1731
1730
|
attributes: [{ clusterId: cluster.id }],
|
|
1732
1731
|
});
|
|
1733
|
-
|
|
1732
|
+
if (attributes.length > 0)
|
|
1733
|
+
this.log.info(`Cluster: ${idn}${cluster.name}${rs}${nf} attributes:`);
|
|
1734
1734
|
attributes.forEach((attribute) => {
|
|
1735
|
-
this.log.info(`- endpoint ${attribute.path.endpointId} cluster ${getClusterNameById(attribute.path.clusterId)} (${attribute.path.clusterId}) attribute ${attribute.path.attributeName} (${attribute.path.attributeId}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1735
|
+
this.log.info(`- endpoint ${or}${attribute.path.endpointId}${nf} cluster ${hk}${getClusterNameById(attribute.path.clusterId)}${nf} (${hk}0x${attribute.path.clusterId.toString(16)}${nf}) attribute ${zb}${attribute.path.attributeName}${nf} (${zb}0x${attribute.path.attributeId.toString(16)}${nf}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1736
1736
|
});
|
|
1737
1737
|
// Log PowerSourceCluster
|
|
1738
1738
|
cluster = PowerSourceCluster;
|
|
1739
1739
|
attributes = await interactionClient.getMultipleAttributes({
|
|
1740
1740
|
attributes: [{ clusterId: cluster.id }],
|
|
1741
1741
|
});
|
|
1742
|
-
|
|
1742
|
+
if (attributes.length > 0)
|
|
1743
|
+
this.log.info(`Cluster: ${idn}${cluster.name}${rs}${nf} attributes:`);
|
|
1743
1744
|
attributes.forEach((attribute) => {
|
|
1744
|
-
this.log.info(`- endpoint ${attribute.path.endpointId} cluster ${getClusterNameById(attribute.path.clusterId)} (${attribute.path.clusterId}) attribute ${attribute.path.attributeName} (${attribute.path.attributeId}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1745
|
+
this.log.info(`- endpoint ${or}${attribute.path.endpointId}${nf} cluster ${hk}${getClusterNameById(attribute.path.clusterId)}${nf} (${hk}0x${attribute.path.clusterId.toString(16)}${nf}) attribute ${zb}${attribute.path.attributeName}${nf} (${zb}0x${attribute.path.attributeId.toString(16)}${nf}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1745
1746
|
});
|
|
1746
1747
|
// Log ThreadNetworkDiagnostics
|
|
1747
1748
|
cluster = ThreadNetworkDiagnosticsCluster;
|
|
1748
1749
|
attributes = await interactionClient.getMultipleAttributes({
|
|
1749
1750
|
attributes: [{ clusterId: cluster.id }],
|
|
1750
1751
|
});
|
|
1751
|
-
|
|
1752
|
+
if (attributes.length > 0)
|
|
1753
|
+
this.log.info(`Cluster: ${idn}${cluster.name}${rs}${nf} attributes:`);
|
|
1752
1754
|
attributes.forEach((attribute) => {
|
|
1753
|
-
this.log.info(`- endpoint ${attribute.path.endpointId} cluster ${getClusterNameById(attribute.path.clusterId)} (${attribute.path.clusterId}) attribute ${attribute.path.attributeName} (${attribute.path.attributeId}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1755
|
+
this.log.info(`- endpoint ${or}${attribute.path.endpointId}${nf} cluster ${hk}${getClusterNameById(attribute.path.clusterId)}${nf} (${hk}0x${attribute.path.clusterId.toString(16)}${nf}) attribute ${zb}${attribute.path.attributeName}${nf} (${zb}0x${attribute.path.attributeId.toString(16)}${nf}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1754
1756
|
});
|
|
1757
|
+
// Log SwitchCluster
|
|
1758
|
+
cluster = SwitchCluster;
|
|
1759
|
+
attributes = await interactionClient.getMultipleAttributes({
|
|
1760
|
+
attributes: [{ clusterId: cluster.id }],
|
|
1761
|
+
});
|
|
1762
|
+
if (attributes.length > 0)
|
|
1763
|
+
this.log.info(`Cluster: ${idn}${cluster.name}${rs}${nf} attributes:`);
|
|
1764
|
+
attributes.forEach((attribute) => {
|
|
1765
|
+
this.log.info(`- endpoint ${or}${attribute.path.endpointId}${nf} cluster ${hk}${getClusterNameById(attribute.path.clusterId)}${nf} (${hk}0x${attribute.path.clusterId.toString(16)}${nf}) attribute ${zb}${attribute.path.attributeName}${nf} (${zb}0x${attribute.path.attributeId.toString(16)}${nf}): ${typeof attribute.value === 'object' ? stringify(attribute.value) : attribute.value}`);
|
|
1766
|
+
});
|
|
1767
|
+
this.log.info('Subscribing to all attributes and events');
|
|
1768
|
+
await node.subscribeAllAttributesAndEvents({
|
|
1769
|
+
ignoreInitialTriggers: false,
|
|
1770
|
+
attributeChangedCallback: ({ path: { nodeId, clusterId, endpointId, attributeName }, version, value }) => this.log.info(`***${db}Commissioning controller attributeChangedCallback version ${version}: attribute ${BLUE}${nodeId}${db}/${or}${endpointId}${db}/${hk}${getClusterNameById(clusterId)}${db}/${zb}${attributeName}${db} changed to ${typeof value === 'object' ? debugStringify(value ?? { none: true }) : value}`),
|
|
1771
|
+
eventTriggeredCallback: ({ path: { nodeId, clusterId, endpointId, eventName }, events }) => {
|
|
1772
|
+
this.log.info(`***${db}Commissioning controller eventTriggeredCallback: event ${BLUE}${nodeId}${db}/${or}${endpointId}${db}/${hk}${getClusterNameById(clusterId)}${db}/${zb}${eventName}${db} triggered with ${debugStringify(events ?? { none: true })}`);
|
|
1773
|
+
},
|
|
1774
|
+
});
|
|
1775
|
+
this.log.info('Subscribed to all attributes and events');
|
|
1755
1776
|
}
|
|
1756
1777
|
}
|
|
1757
1778
|
/**
|