matterbridge 1.6.6 → 1.6.7-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 +22 -4
- package/README.md +5 -3
- package/dist/cli.js +0 -26
- package/dist/cluster/export.js +0 -2
- package/dist/defaultConfigSchema.js +0 -23
- package/dist/deviceManager.js +1 -26
- package/dist/index.js +0 -30
- package/dist/logger/export.js +0 -1
- package/dist/matter/export.js +1 -1
- package/dist/matterbridge.js +66 -706
- package/dist/matterbridgeAccessoryPlatform.js +0 -33
- package/dist/matterbridgeBehaviors.js +1 -29
- package/dist/matterbridgeDevice.js +11 -947
- package/dist/matterbridgeDeviceTypes.js +12 -59
- package/dist/matterbridgeDynamicPlatform.js +0 -33
- package/dist/matterbridgeEdge.js +147 -574
- package/dist/matterbridgeEndpoint.js +13 -1061
- package/dist/matterbridgePlatform.js +5 -94
- package/dist/matterbridgeTypes.js +0 -24
- package/dist/matterbridgeWebsocket.js +0 -45
- package/dist/pluginManager.js +11 -240
- package/dist/storage/export.js +0 -1
- package/dist/utils/colorUtils.js +2 -205
- package/dist/utils/export.js +0 -1
- package/dist/utils/utils.js +7 -252
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.a742de4e.js → main.4dd7e165.js} +3 -3
- package/frontend/build/static/js/main.4dd7e165.js.map +1 -0
- package/npm-shrinkwrap.json +20 -16
- package/package.json +2 -3
- package/dist/cli.d.ts +0 -25
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cluster/export.d.ts +0 -2
- package/dist/cluster/export.d.ts.map +0 -1
- package/dist/cluster/export.js.map +0 -1
- package/dist/defaultConfigSchema.d.ts +0 -27
- package/dist/defaultConfigSchema.d.ts.map +0 -1
- package/dist/defaultConfigSchema.js.map +0 -1
- package/dist/deviceManager.d.ts +0 -46
- package/dist/deviceManager.d.ts.map +0 -1
- package/dist/deviceManager.js.map +0 -1
- package/dist/index.d.ts +0 -40
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger/export.d.ts +0 -2
- package/dist/logger/export.d.ts.map +0 -1
- package/dist/logger/export.js.map +0 -1
- package/dist/matter/export.d.ts +0 -5
- package/dist/matter/export.d.ts.map +0 -1
- package/dist/matter/export.js.map +0 -1
- package/dist/matterbridge.d.ts +0 -466
- package/dist/matterbridge.d.ts.map +0 -1
- package/dist/matterbridge.js.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +0 -39
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
- package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
- package/dist/matterbridgeBehaviors.d.ts +0 -942
- package/dist/matterbridgeBehaviors.d.ts.map +0 -1
- package/dist/matterbridgeBehaviors.js.map +0 -1
- package/dist/matterbridgeDevice.d.ts +0 -6674
- package/dist/matterbridgeDevice.d.ts.map +0 -1
- package/dist/matterbridgeDevice.js.map +0 -1
- package/dist/matterbridgeDeviceTypes.d.ts +0 -82
- package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
- package/dist/matterbridgeDeviceTypes.js.map +0 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +0 -39
- package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
- package/dist/matterbridgeDynamicPlatform.js.map +0 -1
- package/dist/matterbridgeEdge.d.ts +0 -89
- package/dist/matterbridgeEdge.d.ts.map +0 -1
- package/dist/matterbridgeEdge.js.map +0 -1
- package/dist/matterbridgeEndpoint.d.ts +0 -9774
- package/dist/matterbridgeEndpoint.d.ts.map +0 -1
- package/dist/matterbridgeEndpoint.js.map +0 -1
- package/dist/matterbridgePlatform.d.ts +0 -114
- package/dist/matterbridgePlatform.d.ts.map +0 -1
- package/dist/matterbridgePlatform.js.map +0 -1
- package/dist/matterbridgeTypes.d.ts +0 -161
- package/dist/matterbridgeTypes.d.ts.map +0 -1
- package/dist/matterbridgeTypes.js.map +0 -1
- package/dist/matterbridgeWebsocket.d.ts +0 -49
- package/dist/matterbridgeWebsocket.d.ts.map +0 -1
- package/dist/matterbridgeWebsocket.js.map +0 -1
- package/dist/pluginManager.d.ts +0 -238
- package/dist/pluginManager.d.ts.map +0 -1
- package/dist/pluginManager.js.map +0 -1
- package/dist/storage/export.d.ts +0 -2
- package/dist/storage/export.d.ts.map +0 -1
- package/dist/storage/export.js.map +0 -1
- package/dist/utils/colorUtils.d.ts +0 -61
- package/dist/utils/colorUtils.d.ts.map +0 -1
- package/dist/utils/colorUtils.js.map +0 -1
- package/dist/utils/export.d.ts +0 -3
- package/dist/utils/export.d.ts.map +0 -1
- package/dist/utils/export.js.map +0 -1
- package/dist/utils/utils.d.ts +0 -221
- package/dist/utils/utils.d.ts.map +0 -1
- package/dist/utils/utils.js.map +0 -1
- package/frontend/build/static/js/main.a742de4e.js.map +0 -1
- /package/frontend/build/static/js/{main.a742de4e.js.LICENSE.txt → main.4dd7e165.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,10 @@ 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
|
-
### Home Assistant
|
|
7
|
+
### Home Assistant
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
If you want to run Matterbridge in Home Assistant please use the official add-on https://github.com/Luligu/matterbridge-home-assistant-addon that also has Ingress and side panel. It's available
|
|
9
|
+
If you want to run Matterbridge in Home Assistant please use the official add-on https://github.com/Luligu/matterbridge-home-assistant-addon that also has Ingress and side panel.
|
|
10
|
+
It is also available the official Matterbridge Home Assistant plugin https://github.com/Luligu/matterbridge-hass.
|
|
12
11
|
|
|
13
12
|
### Discord
|
|
14
13
|
|
|
@@ -19,6 +18,25 @@ Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord
|
|
|
19
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.
|
|
20
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.
|
|
21
20
|
|
|
21
|
+
## [1.6.7-dev.1] - 2024-12-??
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- [readme]: Update README to clarify Node.js installation instructions and emphasize LTS version.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- [Docker]: Add matterbridge-hass to Dockerfile for latest and main builds.
|
|
30
|
+
- [package]: Update dependencies.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- [Device]: Fix addChildDeviceType methods to include debug parameter in MatterbridgeDevice instantiation.
|
|
35
|
+
|
|
36
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
37
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
38
|
+
</a>
|
|
39
|
+
|
|
22
40
|
## [1.6.6] - 2024-12-12
|
|
23
41
|
|
|
24
42
|
### Added
|
package/README.md
CHANGED
|
@@ -44,9 +44,11 @@ A special thank to Apollon77 for his incredible work.
|
|
|
44
44
|
|
|
45
45
|
## Prerequisites
|
|
46
46
|
|
|
47
|
-
To run Matterbridge, you need either a [Node.js](https://nodejs.org/en
|
|
47
|
+
To run Matterbridge, you need either a [Node.js](https://nodejs.org/en) environment or [Docker](https://docs.docker.com/get-started/get-docker/) installed on your system.
|
|
48
48
|
|
|
49
|
-
If you don't have Node.js already install, please use this method to install it on a debian device: https://github.com/nodesource/distributions.
|
|
49
|
+
If you don't have Node.js already install, please use this method to install it on a debian device: https://github.com/nodesource/distributions.
|
|
50
|
+
The supported versions of node are 18, 20 and 22. Please install node 22 LTS.
|
|
51
|
+
Nvm is not a good choice and should not be used for production.
|
|
50
52
|
|
|
51
53
|
If you don't have Docker already install, please use this method to install it on a debian device: https://docs.docker.com/desktop/setup/install/linux/debian/.
|
|
52
54
|
|
|
@@ -376,7 +378,7 @@ Then, from the dots menu in the frontend, download the `matterbridge.log` and `m
|
|
|
376
378
|
|
|
377
379
|
# Known general issues
|
|
378
380
|
|
|
379
|
-
## Session XYZ does not exist
|
|
381
|
+
## Session XYZ does not exist or Cannot find a session for ID XYZ
|
|
380
382
|
|
|
381
383
|
This message may appear after Matterbridge restarts, indicating that the controller is still using a session from the previous connection that has since been closed.
|
|
382
384
|
After some time, the controller will reconnect.
|
package/dist/cli.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* This file contains the CLI entry point of Matterbridge.
|
|
4
|
-
*
|
|
5
|
-
* @file cli.ts
|
|
6
|
-
* @author Luca Liguori
|
|
7
|
-
* @date 2023-12-29
|
|
8
|
-
* @version 1.0.11
|
|
9
|
-
*
|
|
10
|
-
* Copyright 2023, 2024, 2025 Luca Liguori.
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License. *
|
|
23
|
-
*/
|
|
24
|
-
/* eslint-disable no-console */
|
|
25
2
|
import { Matterbridge } from './matterbridge.js';
|
|
26
3
|
import { MatterbridgeEdge } from './matterbridgeEdge.js';
|
|
27
4
|
let instance;
|
|
@@ -64,7 +41,6 @@ async function restart() {
|
|
|
64
41
|
async function update() {
|
|
65
42
|
if (process.argv.includes('-debug'))
|
|
66
43
|
console.log(cli + 'CLI: received update event, updating...' + rs);
|
|
67
|
-
// TODO: Implement update logic outside of matterbridge
|
|
68
44
|
if (process.argv.includes('-edge'))
|
|
69
45
|
instance = await MatterbridgeEdge.loadInstance();
|
|
70
46
|
else
|
|
@@ -72,8 +48,6 @@ async function update() {
|
|
|
72
48
|
registerHandlers();
|
|
73
49
|
}
|
|
74
50
|
process.title = 'matterbridge';
|
|
75
|
-
// Run the main function
|
|
76
51
|
main().catch((error) => {
|
|
77
52
|
console.error(er + `CLI: Matterbridge.loadInstance() failed with error: ${error}` + rs);
|
|
78
53
|
});
|
|
79
|
-
//# sourceMappingURL=cli.js.map
|
package/dist/cluster/export.js
CHANGED
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the default config for the plugins.
|
|
3
|
-
*
|
|
4
|
-
* @file defaultConfigSchema.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-05-07
|
|
7
|
-
* @version 1.0.1
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024, 2025, 2026 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
1
|
export const zigbee2mqtt_config = {
|
|
24
2
|
name: 'matterbridge-zigbee2mqtt',
|
|
25
3
|
type: 'DynamicPlatform',
|
|
@@ -83,4 +61,3 @@ export const shelly_config = {
|
|
|
83
61
|
debugWs: false,
|
|
84
62
|
unregisterOnShutdown: false,
|
|
85
63
|
};
|
|
86
|
-
//# sourceMappingURL=defaultConfigSchema.js.map
|
package/dist/deviceManager.js
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the DeviceManager class.
|
|
3
|
-
*
|
|
4
|
-
* @file devices.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-07-26
|
|
7
|
-
* @version 1.0.8
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024, 2025, 2026 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
// NodeStorage and AnsiLogger modules
|
|
24
1
|
import { AnsiLogger, BLUE, er } from 'node-ansi-logger';
|
|
25
2
|
import { dev } from './matterbridgeTypes.js';
|
|
26
3
|
export class DeviceManager {
|
|
@@ -31,7 +8,7 @@ export class DeviceManager {
|
|
|
31
8
|
constructor(matterbridge, nodeContext) {
|
|
32
9
|
this.matterbridge = matterbridge;
|
|
33
10
|
this.nodeContext = nodeContext;
|
|
34
|
-
this.log = new AnsiLogger({ logName: 'DeviceManager', logTimestampFormat: 4
|
|
11
|
+
this.log = new AnsiLogger({ logName: 'DeviceManager', logTimestampFormat: 4, logLevel: matterbridge.log.logLevel });
|
|
35
12
|
this.log.debug('Matterbridge device manager starting...');
|
|
36
13
|
}
|
|
37
14
|
get length() {
|
|
@@ -77,7 +54,6 @@ export class DeviceManager {
|
|
|
77
54
|
}
|
|
78
55
|
catch (error) {
|
|
79
56
|
this.log.error(`Error processing forEach device ${dev}${device.deviceName}${er} serialNumber ${BLUE}${device.serialNumber}${er} uniqueId: ${BLUE}${device.uniqueId}${er}:`, error);
|
|
80
|
-
// throw error;
|
|
81
57
|
}
|
|
82
58
|
});
|
|
83
59
|
await Promise.all(tasks);
|
|
@@ -89,4 +65,3 @@ export class DeviceManager {
|
|
|
89
65
|
this.log.logLevel = logLevel;
|
|
90
66
|
}
|
|
91
67
|
}
|
|
92
|
-
//# sourceMappingURL=deviceManager.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the entry point of Matterbridge.
|
|
3
|
-
*
|
|
4
|
-
* @file index.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2023-12-29
|
|
7
|
-
* @version 1.0.6
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2023, 2024, 2025 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
1
|
import { Matterbridge } from './matterbridge.js';
|
|
24
2
|
import { MatterbridgeEdge } from './matterbridgeEdge.js';
|
|
25
|
-
// @matter
|
|
26
|
-
// export { Identity, AtLeastOne } from '@matter/main';
|
|
27
3
|
export * from '@matter/main/clusters';
|
|
28
4
|
export * from '@matter/main/types';
|
|
29
5
|
export { SemanticNamespace, ClosureTag, CompassDirectionTag, CompassLocationTag, DirectionTag, ElectricalMeasurementTag, LaundryTag, LevelTag, LocationTag, NumberTag, PositionTag, PowerSourceTag, RefrigeratorTag, RoomAirConditionerTag, SwitchesTag, } from '@matter/node';
|
|
30
|
-
// @project-chip
|
|
31
6
|
export * from '@project-chip/matter.js/device';
|
|
32
7
|
export * from '@project-chip/matter.js/cluster';
|
|
33
|
-
// Matterbridge
|
|
34
8
|
export * from './matterbridge.js';
|
|
35
9
|
export * from './matterbridgeTypes.js';
|
|
36
10
|
export * from './matterbridgeDevice.js';
|
|
@@ -43,19 +17,15 @@ const cli = '\u001B[32m';
|
|
|
43
17
|
const er = '\u001B[38;5;9m';
|
|
44
18
|
const rs = '\u001B[40;0m';
|
|
45
19
|
async function main() {
|
|
46
|
-
// eslint-disable-next-line no-console
|
|
47
20
|
if (process.argv.includes('-debug'))
|
|
48
21
|
console.log(cli + 'MAIN: Matterbridge.loadInstance() called' + rs);
|
|
49
22
|
if (process.argv.includes('-edge'))
|
|
50
23
|
await MatterbridgeEdge.loadInstance();
|
|
51
24
|
else
|
|
52
25
|
await Matterbridge.loadInstance();
|
|
53
|
-
// eslint-disable-next-line no-console
|
|
54
26
|
if (process.argv.includes('-debug'))
|
|
55
27
|
console.log(cli + 'MAIN: Matterbridge.loadInstance() exited' + rs);
|
|
56
28
|
}
|
|
57
29
|
main().catch((error) => {
|
|
58
|
-
// eslint-disable-next-line no-console
|
|
59
30
|
console.error(er + `MAIN: Matterbridge.loadInstance() failed with error: ${error}` + rs);
|
|
60
31
|
});
|
|
61
|
-
//# sourceMappingURL=index.js.map
|
package/dist/logger/export.js
CHANGED
package/dist/matter/export.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from '@matter/main';
|
|
2
|
+
export { AttributeElement, ClusterElement, ClusterModel, CommandElement, EventElement, FieldElement } from '@matter/main/model';
|
|
2
3
|
export * from '../matterbridgeDeviceTypes.js';
|
|
3
4
|
export * from '../matterbridgeEndpoint.js';
|
|
4
5
|
export * from '../matterbridgeBehaviors.js';
|
|
5
|
-
//# sourceMappingURL=export.js.map
|