matterbridge 1.2.8 → 1.2.10
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 +25 -1
- package/README.md +4 -1
- package/dist/matterbridge.d.ts +43 -20
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +222 -165
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +25 -11
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +19 -3
- package/dist/matterbridgeDevice.js.map +1 -1
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.90cbbf6e.js → main.cf64bc64.js} +3 -3
- package/frontend/build/static/js/main.cf64bc64.js.map +1 -0
- package/package.json +7 -7
- package/TODO.md +0 -3
- package/frontend/build/static/js/main.90cbbf6e.js.map +0 -1
- package/matterbridge.service +0 -17
- /package/frontend/build/static/js/{main.90cbbf6e.js.LICENSE.txt → main.cf64bc64.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.10] - 2024-04-22
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- [extension]: Finalized implementation of zigbee2MQTT internal extension v. 1.0.0.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## [1.2.9] - 2024-04-19
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- [Matterbridge]: Added call to set reachability at start.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- [Matterbridge]: Added call to set reachability at start.
|
|
21
|
+
- [frontend]: Added filter for log level and search criteria in the Logs page.
|
|
22
|
+
- [frontend]: Added colors to the logs in the Home page and in the Logs page.
|
|
23
|
+
- [frontend]: Frontend updated to 0.8.7.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- [logs]: Fixed wss for some browser that didn't connect to wss.
|
|
28
|
+
|
|
5
29
|
## [1.2.8] - 2024-04-16
|
|
6
30
|
|
|
7
31
|
### Changed
|
|
@@ -10,7 +34,7 @@ All notable changes to this project will be documented in this file.
|
|
|
10
34
|
### Added
|
|
11
35
|
|
|
12
36
|
- [frontend]: Added logs in the Home page and in the Log page.
|
|
13
|
-
- [frontend]: Frontend got updated to 0.8.
|
|
37
|
+
- [frontend]: Frontend got updated to 0.8.6.
|
|
14
38
|
- [frontend]: Added log for update and plugin install.
|
|
15
39
|
- [extension]: Started implementation of zigbee2MQTT internal extension.
|
|
16
40
|
|
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ matterbridge -help
|
|
|
85
85
|
|
|
86
86
|
## Frontend
|
|
87
87
|
|
|
88
|
-
Matterbridge has a frontend available on http://localhost:
|
|
88
|
+
Matterbridge has a frontend available on http://localhost:8283
|
|
89
89
|
|
|
90
90
|
You can change the default port by adding the frontend parameter when you launch it.
|
|
91
91
|
|
|
@@ -104,6 +104,9 @@ Home page:
|
|
|
104
104
|
Devices page:
|
|
105
105
|

|
|
106
106
|
|
|
107
|
+
Logs page:
|
|
108
|
+

|
|
109
|
+
|
|
107
110
|
## Plugins
|
|
108
111
|
|
|
109
112
|
### Accessory platform example
|
package/dist/matterbridge.d.ts
CHANGED
|
@@ -40,22 +40,23 @@ interface SystemInformation {
|
|
|
40
40
|
freeMemory: string;
|
|
41
41
|
systemUptime: string;
|
|
42
42
|
}
|
|
43
|
+
interface MatterbridgeInformation {
|
|
44
|
+
homeDirectory: string;
|
|
45
|
+
rootDirectory: string;
|
|
46
|
+
matterbridgeDirectory: string;
|
|
47
|
+
matterbridgePluginDirectory: string;
|
|
48
|
+
globalModulesDirectory: string;
|
|
49
|
+
matterbridgeVersion: string;
|
|
50
|
+
matterbridgeLatestVersion: string;
|
|
51
|
+
bridgeMode: string;
|
|
52
|
+
debugEnabled: boolean;
|
|
53
|
+
}
|
|
43
54
|
/**
|
|
44
55
|
* Represents the Matterbridge application.
|
|
45
56
|
*/
|
|
46
57
|
export declare class Matterbridge extends EventEmitter {
|
|
47
58
|
systemInformation: SystemInformation;
|
|
48
|
-
matterbridgeInformation:
|
|
49
|
-
homeDirectory: string;
|
|
50
|
-
rootDirectory: string;
|
|
51
|
-
matterbridgeDirectory: string;
|
|
52
|
-
matterbridgePluginDirectory: string;
|
|
53
|
-
globalModulesDirectory: string;
|
|
54
|
-
matterbridgeVersion: string;
|
|
55
|
-
matterbridgeLatestVersion: string;
|
|
56
|
-
bridgeMode: string;
|
|
57
|
-
debugEnabled: boolean;
|
|
58
|
-
};
|
|
59
|
+
matterbridgeInformation: MatterbridgeInformation;
|
|
59
60
|
homeDirectory: string;
|
|
60
61
|
rootDirectory: string;
|
|
61
62
|
matterbridgeDirectory: string;
|
|
@@ -64,6 +65,7 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
64
65
|
matterbridgeVersion: string;
|
|
65
66
|
matterbridgeLatestVersion: string;
|
|
66
67
|
bridgeMode: 'bridge' | 'childbridge' | 'controller' | '';
|
|
68
|
+
restartMode: 'service' | 'docker' | '';
|
|
67
69
|
debugEnabled: boolean;
|
|
68
70
|
private port;
|
|
69
71
|
private log;
|
|
@@ -97,13 +99,14 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
97
99
|
*
|
|
98
100
|
* @returns A Promise that resolves when the initialization is complete.
|
|
99
101
|
*/
|
|
100
|
-
|
|
102
|
+
startExtension(dataPath: string, debugEnabled: boolean, extensionVersion: string, port?: number): Promise<boolean>;
|
|
101
103
|
/**
|
|
102
104
|
* Close the Matterbridge instance as extension for zigbee2mqtt.
|
|
103
105
|
*
|
|
104
106
|
* @returns A Promise that resolves when the initialization is complete.
|
|
105
107
|
*/
|
|
106
|
-
|
|
108
|
+
stopExtension(): Promise<void>;
|
|
109
|
+
isExtensionCommissioned(): boolean;
|
|
107
110
|
/**
|
|
108
111
|
* Initializes the Matterbridge application.
|
|
109
112
|
*
|
|
@@ -158,13 +161,6 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
158
161
|
* @returns A promise that resolves when the cleanup is completed.
|
|
159
162
|
*/
|
|
160
163
|
private cleanup;
|
|
161
|
-
/**
|
|
162
|
-
* Sets the reachable attribute of a device.
|
|
163
|
-
*
|
|
164
|
-
* @param device - The device for which to set the reachable attribute.
|
|
165
|
-
* @param reachable - The value to set for the reachable attribute.
|
|
166
|
-
*/
|
|
167
|
-
private setReachableAttribute;
|
|
168
164
|
/**
|
|
169
165
|
* Adds a device to the Matterbridge.
|
|
170
166
|
* @param pluginName - The name of the plugin.
|
|
@@ -327,6 +323,26 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
327
323
|
* @returns The found plugin, or undefined if not found.
|
|
328
324
|
*/
|
|
329
325
|
private findPlugin;
|
|
326
|
+
/**
|
|
327
|
+
* Sets the reachability of a commissioning server and trigger.
|
|
328
|
+
*
|
|
329
|
+
* @param {CommissioningServer} commissioningServer - The commissioning server to set the reachability for.
|
|
330
|
+
* @param {boolean} reachable - The new reachability status.
|
|
331
|
+
*/
|
|
332
|
+
private setCommissioningServerReachability;
|
|
333
|
+
/**
|
|
334
|
+
* Sets the reachability of the specified matter aggregator and its bridged devices and trigger.
|
|
335
|
+
* @param {Aggregator} matterAggregator - The matter aggregator to set the reachability for.
|
|
336
|
+
* @param {boolean} reachable - A boolean indicating the reachability status to set.
|
|
337
|
+
*/
|
|
338
|
+
private setAggregatorReachability;
|
|
339
|
+
/**
|
|
340
|
+
* Sets the reachability of a device and trigger.
|
|
341
|
+
*
|
|
342
|
+
* @param {MatterbridgeDevice} device - The device to set the reachability for.
|
|
343
|
+
* @param {boolean} reachable - The new reachability status of the device.
|
|
344
|
+
*/
|
|
345
|
+
private setDeviceReachability;
|
|
330
346
|
/**
|
|
331
347
|
* Creates a matter commissioning server.
|
|
332
348
|
*
|
|
@@ -384,6 +400,13 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
384
400
|
* @returns A promise that resolves when the child process exits successfully, or rejects if there is an error.
|
|
385
401
|
*/
|
|
386
402
|
private spawnCommand;
|
|
403
|
+
/**
|
|
404
|
+
* Sends a WebSocket message to all connected clients.
|
|
405
|
+
*
|
|
406
|
+
* @param {string} type - The type of the message: Matterbridge, Plugin, Device, ...
|
|
407
|
+
* @param {string} subType - The subtype of the message: debug info warn error ....
|
|
408
|
+
* @param {string} message - The content of the message.
|
|
409
|
+
*/
|
|
387
410
|
private wssSendMessage;
|
|
388
411
|
/**
|
|
389
412
|
* Initializes the frontend of Matterbridge.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src/matterbridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAEH,OAAO,EAAE,kBAAkB,EAAgC,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src/matterbridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAEH,OAAO,EAAE,kBAAkB,EAAgC,MAAM,yBAAyB,CAAC;AAS3F,OAAO,YAAY,MAAM,QAAQ,CAAC;AA2ClC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAEjG,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;CACpC,CAAC;AA0CF,UAAU,iBAAiB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;I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