matterbridge 1.6.8-dev.2 → 1.6.8-dev.21

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +23 -4
  2. package/README-DOCKER.md +8 -6
  3. package/README-EDGE.md +76 -0
  4. package/README-SERVICE.md +3 -3
  5. package/README.md +7 -4
  6. package/dist/cli.js +0 -26
  7. package/dist/cluster/export.js +0 -2
  8. package/dist/defaultConfigSchema.js +3 -24
  9. package/dist/deviceManager.js +1 -26
  10. package/dist/index.js +0 -30
  11. package/dist/logger/export.js +0 -1
  12. package/dist/matter/export.js +0 -1
  13. package/dist/matterbridge.js +315 -678
  14. package/dist/matterbridgeAccessoryPlatform.js +0 -33
  15. package/dist/matterbridgeBehaviors.js +1 -29
  16. package/dist/matterbridgeDevice.js +9 -995
  17. package/dist/matterbridgeDeviceTypes.js +11 -82
  18. package/dist/matterbridgeDynamicPlatform.js +0 -33
  19. package/dist/matterbridgeEdge.js +2 -531
  20. package/dist/matterbridgeEndpoint.js +11 -1120
  21. package/dist/matterbridgePlatform.js +69 -95
  22. package/dist/matterbridgeTypes.js +0 -24
  23. package/dist/matterbridgeWebsocket.js +0 -45
  24. package/dist/pluginManager.js +3 -238
  25. package/dist/storage/export.js +0 -1
  26. package/dist/utils/colorUtils.js +2 -205
  27. package/dist/utils/export.js +0 -1
  28. package/dist/utils/utils.js +7 -252
  29. package/frontend/build/asset-manifest.json +6 -6
  30. package/frontend/build/index.html +1 -1
  31. package/frontend/build/static/css/{main.823e08b6.css → main.fa9c13f2.css} +2 -2
  32. package/frontend/build/static/css/main.fa9c13f2.css.map +1 -0
  33. package/frontend/build/static/js/{main.4dd7e165.js → main.158c1eff.js} +15 -15
  34. package/frontend/build/static/js/main.158c1eff.js.map +1 -0
  35. package/npm-shrinkwrap.json +12 -12
  36. package/package.json +1 -1
  37. package/dist/cli.d.ts.map +0 -1
  38. package/dist/cli.js.map +0 -1
  39. package/dist/cluster/export.d.ts.map +0 -1
  40. package/dist/cluster/export.js.map +0 -1
  41. package/dist/defaultConfigSchema.d.ts.map +0 -1
  42. package/dist/defaultConfigSchema.js.map +0 -1
  43. package/dist/deviceManager.d.ts +0 -46
  44. package/dist/deviceManager.d.ts.map +0 -1
  45. package/dist/deviceManager.js.map +0 -1
  46. package/dist/index.d.ts.map +0 -1
  47. package/dist/index.js.map +0 -1
  48. package/dist/logger/export.d.ts.map +0 -1
  49. package/dist/logger/export.js.map +0 -1
  50. package/dist/matter/export.d.ts.map +0 -1
  51. package/dist/matter/export.js.map +0 -1
  52. package/dist/matterbridge.d.ts +0 -466
  53. package/dist/matterbridge.d.ts.map +0 -1
  54. package/dist/matterbridge.js.map +0 -1
  55. package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
  56. package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
  57. package/dist/matterbridgeBehaviors.d.ts +0 -116
  58. package/dist/matterbridgeBehaviors.d.ts.map +0 -1
  59. package/dist/matterbridgeBehaviors.js.map +0 -1
  60. package/dist/matterbridgeDevice.d.ts +0 -1142
  61. package/dist/matterbridgeDevice.d.ts.map +0 -1
  62. package/dist/matterbridgeDevice.js.map +0 -1
  63. package/dist/matterbridgeDeviceTypes.d.ts +0 -109
  64. package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
  65. package/dist/matterbridgeDeviceTypes.js.map +0 -1
  66. package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
  67. package/dist/matterbridgeDynamicPlatform.js.map +0 -1
  68. package/dist/matterbridgeEdge.d.ts +0 -90
  69. package/dist/matterbridgeEdge.d.ts.map +0 -1
  70. package/dist/matterbridgeEdge.js.map +0 -1
  71. package/dist/matterbridgeEndpoint.d.ts +0 -1134
  72. package/dist/matterbridgeEndpoint.d.ts.map +0 -1
  73. package/dist/matterbridgeEndpoint.js.map +0 -1
  74. package/dist/matterbridgePlatform.d.ts +0 -114
  75. package/dist/matterbridgePlatform.d.ts.map +0 -1
  76. package/dist/matterbridgePlatform.js.map +0 -1
  77. package/dist/matterbridgeTypes.d.ts.map +0 -1
  78. package/dist/matterbridgeTypes.js.map +0 -1
  79. package/dist/matterbridgeWebsocket.d.ts.map +0 -1
  80. package/dist/matterbridgeWebsocket.js.map +0 -1
  81. package/dist/pluginManager.d.ts +0 -238
  82. package/dist/pluginManager.d.ts.map +0 -1
  83. package/dist/pluginManager.js.map +0 -1
  84. package/dist/storage/export.d.ts.map +0 -1
  85. package/dist/storage/export.js.map +0 -1
  86. package/dist/utils/colorUtils.d.ts.map +0 -1
  87. package/dist/utils/colorUtils.js.map +0 -1
  88. package/dist/utils/export.d.ts.map +0 -1
  89. package/dist/utils/export.js.map +0 -1
  90. package/dist/utils/utils.d.ts +0 -221
  91. package/dist/utils/utils.d.ts.map +0 -1
  92. package/dist/utils/utils.js.map +0 -1
  93. package/frontend/build/static/css/main.823e08b6.css.map +0 -1
  94. package/frontend/build/static/js/main.4dd7e165.js.map +0 -1
  95. /package/frontend/build/static/js/{main.4dd7e165.js.LICENSE.txt → main.158c1eff.js.LICENSE.txt} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,7 +6,7 @@ If you like this project and find it useful, please consider giving it a star on
6
6
 
7
7
  ### Home Assistant
8
8
 
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.
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
10
  It is also available the official Matterbridge Home Assistant plugin https://github.com/Luligu/matterbridge-hass.
11
11
 
12
12
  ### Discord
@@ -15,14 +15,26 @@ Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord
15
15
 
16
16
  ### Breaking Changes
17
17
 
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.
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.
18
+ Matterbridge edge is now released. The default mode is still the normal mode to allow the storage conversion. See https://github.com/Luligu/matterbridge/blob/dev/README-EDGE.md to manually switch to edge mode after the conversion is done.
19
+
20
+ The frontend has a new dark and a light mode. The dark mode is now the default mode.
21
+ It is possible to change the mode (Classic, Dark or Light) in Settings, Matterbridge settings.
20
22
 
21
- ## [1.6.8-dev.2] - 2024-12-16
23
+ ## [1.6.8-dev.21] - 2024-12-31
22
24
 
23
25
  ### Added
24
26
 
27
+ - [edge]: Added guide https://github.com/Luligu/matterbridge/blob/dev/README-EDGE.md.
28
+ - [storage]: Added conversion from old matter storage to the new api format with fabrics, resumptionRecords, network, commissioning, operationalCredentials, acl and parts number. The conversion is triggered every time you shutdown or restart matterbridge till the new storage has been used with matterbridge edge.
29
+ - [storage]: Added conversion for child endpoint numbers.
30
+ - [storage]: Added conversion for childbridge mode.
25
31
  - [package]: Update README.md and README-SERVICE.md to include instructions for using SSL on port 443.
32
+ - [platform]: Added checkEndpointNumbers() to detect endpoint numbers changes.
33
+ - [frontend]: Added dark and light mode to the frontend. Dark mode is now the default mode. It is possible to change the mode in Settings, Matterbridge settings.
34
+ - [frontend]: Custom rfjsreact-jsonschema-form for the config editor.
35
+ - [unregister]: Added unregister for Matterbridge edge.
36
+ - [reset]: Added reset for Matterbridge edge.
37
+ - [factoryreset]: Added factoryreset for Matterbridge edge.
26
38
 
27
39
  ### Changed
28
40
 
@@ -31,12 +43,19 @@ It is possible that some controllers see them as new devices or need time to rea
31
43
 
32
44
  ### Fixed
33
45
 
46
+ - [frontend]: Fixed device/cluster api that was not working in Ingress.
47
+
34
48
  <a href="https://www.buymeacoffee.com/luligugithub">
35
49
  <img src="./yellow-button.png" alt="Buy me a coffee" width="120">
36
50
  </a>
37
51
 
38
52
  ## [1.6.7] - 2024-12-15
39
53
 
54
+ ### Breaking Changes
55
+
56
+ In this release some device types and the OnOff, LevelControl and ColorControl have been updated to be fully compliant with Matter 1.3 specifications.
57
+ 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.
58
+
40
59
  ### Added
41
60
 
42
61
  - [readme]: Update README to clarify Node.js installation instructions and emphasize LTS version.
package/README-DOCKER.md CHANGED
@@ -40,12 +40,14 @@ sudo groupadd docker
40
40
  sudo usermod -aG docker $USER
41
41
  ```
42
42
 
43
+ After adding your user to the docker group, you need to log out and log back in for the changes to take effect. This ensures that your current session recognizes the group membership change.
44
+
43
45
  ### Run the Docker container and start it
44
46
 
45
47
  The container must have full access to the host network (needed for mdns).
46
48
 
47
49
  ```
48
- docker run --name matterbridge \
50
+ sudo docker run --name matterbridge \
49
51
  -v ${HOME}/Matterbridge:/root/Matterbridge \
50
52
  -v ${HOME}/.matterbridge:/root/.matterbridge \
51
53
  --network host --restart always -d luligu/matterbridge:latest
@@ -61,12 +63,12 @@ The docker-compose.yml file is available in the docker directory of the package
61
63
  services:
62
64
  matterbridge:
63
65
  container_name: matterbridge
64
- image: luligu/matterbridge:latest # Matterbridge image with the latest tag
65
- network_mode: host # Ensures the Matter mdns works
66
- restart: always # Ensures the container always restarts automatically
66
+ image: luligu/matterbridge:latest # Matterbridge image with the latest tag
67
+ network_mode: host # Ensures the Matter mdns works
68
+ restart: always # Ensures the container always restarts automatically
67
69
  volumes:
68
- - "${HOME}/Matterbridge:/root/Matterbridge" # Mounts the Matterbridge plugin directory
69
- - "${HOME}/.matterbridge:/root/.matterbridge" # Mounts the Matterbridge storage directory
70
+ - "${HOME}/Matterbridge:/root/Matterbridge" # Mounts the Matterbridge plugin directory
71
+ - "${HOME}/.matterbridge:/root/.matterbridge" # Mounts the Matterbridge storage directory
70
72
  ```
71
73
 
72
74
  copy it in the home directory or edit the existing one to add the matterbridge service.
package/README-EDGE.md ADDED
@@ -0,0 +1,76 @@
1
+ # <img src="https://github.com/Luligu/matterbridge/blob/main/frontend/public/matterbridge%2064x64.png" alt="Matterbridge Logo" width="64px" height="64px">&nbsp;&nbsp;&nbsp;Matterbridge
2
+
3
+ # Matterbridge edge
4
+
5
+ Matterbridge Edge is the version of Matterbridge running with the new Matter.js API.
6
+
7
+ After months of work, the migration of Matterbridge from the old API to the new API is now complete. This includes the conversion of the entire old storage format to the new API storage format, encompassing fabrics, resumption records, network, commissioning, operational credentials, ACL, and part numbers.
8
+
9
+ A special thanks goes to Apollon for answering my countless questions and helping to resolve the many small issues that arose during this process.
10
+
11
+ I also want to express my gratitude to Tamer, who continues to test everything daily to ensure we reach a level of confidence needed to release the update with the latest tag.
12
+
13
+ ## Storage conversion
14
+
15
+ Starting from version 1.7.0 (1.6.8-dev.11 before it is published as 1.7.0 with tag latest), the conversion process is automatic and is triggered each time you shut down, restart, or update Matterbridge using the frontend.
16
+
17
+ A message is displayed to inform the user when the conversion is complete.
18
+
19
+ Once the user run Matterbridge in Edge mode for the first time, the conversion will no longer be triggered.
20
+
21
+ The conversion only creates a new storage directory in the new format. It does not modify the old storage in any way, so there is no risk in trying Edge mode before its official release. You can also revert to normal mode by simply removing the -edge parameter. After the conversion is complete, the two storages will be identical. However, once you start using Edge mode, any changes made to one storage will not be reflected in the other. Therefore, it is recommended to let the conversion complete, switch to Edge mode, and continue using it exclusively.
22
+ There is no conversion back to the old storage.
23
+
24
+ ## When it will be released
25
+
26
+ Matterbridge Edge will be officially released as version 2.0.0, as it represents a major update.
27
+
28
+ ## How to run matterbridge in edge mode
29
+
30
+ To start Matterbridge in Edge mode before its official release, you need to add the -edge parameter to the command line or Docker command.
31
+
32
+ ### When you run matterbridge from a terminal
33
+
34
+ ```
35
+ matterbridge -edge
36
+ ```
37
+
38
+ ### When you run matterbridge with systemctl
39
+
40
+ Modify your /etc/systemd/system/matterbridge.service
41
+
42
+ ```
43
+ ExecStart=matterbridge -service -edge
44
+ ```
45
+
46
+ Then run:
47
+
48
+ ```
49
+ sudo systemctl daemon-reload
50
+ sudo systemctl restart matterbridge
51
+ ```
52
+
53
+ ### When you run matterbridge with docker
54
+
55
+ ```
56
+ sudo docker run --name matterbridge \
57
+ -v ${HOME}/Matterbridge:/root/Matterbridge \
58
+ -v ${HOME}/.matterbridge:/root/.matterbridge \
59
+ --network host --restart always -d luligu/matterbridge:latest \
60
+ matterbridge -docker -edge
61
+ ```
62
+
63
+ ### When you run matterbridge with docker compose
64
+
65
+ ```
66
+ services:
67
+ matterbridge:
68
+ container_name: matterbridge
69
+ image: luligu/matterbridge:latest # Matterbridge image with the latest tag
70
+ network_mode: host # Ensures the Matter mdns works
71
+ restart: always # Ensures the container always restarts automatically
72
+ volumes:
73
+ - "${HOME}/Matterbridge:/root/Matterbridge" # Mounts the Matterbridge plugin directory
74
+ - "${HOME}/.matterbridge:/root/.matterbridge" # Mounts the Matterbridge storage directory
75
+ command: [ "matterbridge", "-docker", "-edge" ] # Override the image command adding -edge
76
+ ```
package/README-SERVICE.md CHANGED
@@ -49,14 +49,14 @@ After=network-online.target
49
49
  [Service]
50
50
  Type=simple
51
51
  ExecStart=matterbridge -service
52
- WorkingDirectory=/home/<USER>/Matterbridge # Replace <USER> with your system username
52
+ WorkingDirectory=/home/<USER>/Matterbridge
53
53
  StandardOutput=inherit
54
54
  StandardError=inherit
55
55
  Restart=always
56
56
  RestartSec=10s
57
57
  TimeoutStopSec=30s
58
- User=<USER> # Replace <USER> with your system username
59
- Group=<USER> # Replace <USER> with your system username
58
+ User=<USER>
59
+ Group=<USER>
60
60
 
61
61
  [Install]
62
62
  WantedBy=multi-user.target
package/README.md CHANGED
@@ -46,7 +46,7 @@ A special thank to Apollon77 for his incredible work.
46
46
 
47
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
50
  The supported versions of node are 18, 20 and 22. Please install node 22 LTS.
51
51
  Nvm is not a good choice and should not be used for production.
52
52
 
@@ -179,15 +179,18 @@ Features:
179
179
  - Shelly wifi battery-powered devices with sleep_mode are supported.
180
180
  - Shelly BLU devices are supported through local devices configured as ble gateway.
181
181
  - Discovered shellies are stored in local storage for quick loading on startup.
182
- - The components exposed are Light (with brightness and RGB color), Switch, Relay, Roller, Cover, PowerMeter, Temperature, Humidity and Input.
183
- - All components expose the electrical measurements with the EveHistory cluster (displayed on HA), waiting for the controllers to upgrade to the Matter 1.3 specs.
182
+ - The components exposed are Light (with brightness and RGB color), Switch, Relay, Roller, Cover, PowerMeter, Temperature, Humidity, Illuminance, Thermostat, Button and Input.
183
+ - PowerMeters expose the electrical measurements with the electricalSensor device type (suppoerted by Home Assistant and partially by SmartThings), waiting for the controllers to upgrade to the Matter 1.3 specs.
184
184
  - Shellies are controlled locally, eliminating the need for cloud or MQTT (which can both be disabled).
185
- - Shelly Gen 1 devices are controlled using the CoIoT protocol (see the note below).
185
+ - Shelly Gen 1 devices are controlled using the CoIoT protocol.
186
186
  - Shelly Gen 2 and Gen 3 devices are controlled using WebSocket.
187
187
  - The Matter device takes the name configured in the Shelly device's web page.
188
+ - Each device can be blacklisted or whitelisted using its name, id or mac address.
189
+ - Device components can be blacklisted globally or on a per-device basis.
188
190
  - If the device has a firmware update available, a message is displayed.
189
191
  - If the device's CoIoT protocol is not correctly configured, a message is displayed.
190
192
  - If the device cover/roller component is not calibrated, a message is displayed.
193
+ - If a device changes its ip address on the network, a message is displayed and the new address is stored.
191
194
  - A 10-minute timer checks if the device has reported within that time frame, and fetch un update.
192
195
 
193
196
  ### Zigbee2MQTT
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
@@ -1,3 +1 @@
1
1
  export {};
2
- // Nothing to export right now
3
- //# sourceMappingURL=export.js.map
@@ -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',
@@ -55,7 +33,7 @@ export const shelly_config = {
55
33
  type: 'DynamicPlatform',
56
34
  username: '',
57
35
  password: '',
58
- exposeSwitch: 'switch',
36
+ exposeSwitch: 'outlet',
59
37
  switchList: [],
60
38
  lightList: [],
61
39
  outletList: [],
@@ -68,6 +46,8 @@ export const shelly_config = {
68
46
  exposePowerMeter: 'matter13',
69
47
  blackList: [],
70
48
  whiteList: [],
49
+ entityBlackList: [],
50
+ deviceEntityBlackList: {},
71
51
  nocacheList: [],
72
52
  deviceIp: {},
73
53
  enableMdnsDiscover: true,
@@ -83,4 +63,3 @@ export const shelly_config = {
83
63
  debugWs: false,
84
64
  unregisterOnShutdown: false,
85
65
  };
86
- //# sourceMappingURL=defaultConfigSchema.js.map
@@ -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 /* TimestampFormat.TIME_MILLIS */, logLevel: matterbridge.log.logLevel });
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
@@ -1,2 +1 @@
1
1
  export * from 'node-ansi-logger';
2
- //# sourceMappingURL=export.js.map
@@ -8,4 +8,3 @@ export * from '../matterbridgeDeviceTypes.js';
8
8
  export * from '../matterbridgeEndpoint.js';
9
9
  export * from '../matterbridgeBehaviors.js';
10
10
  export * from '../matterbridgeEdge.js';
11
- //# sourceMappingURL=export.js.map