matterbridge-zigbee2mqtt 3.0.2-dev-20251201-d70de35 → 3.0.2-dev-20251201-f681e77

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 CHANGED
@@ -13,6 +13,7 @@ If you like this project and find it useful, please consider giving it a star on
13
13
  - [scenes]: Added await for creation.
14
14
  - [mqtt]: Added config for a fixed clientId. If not provided, a random clientId will be generated. (https://github.com/Luligu/matterbridge-zigbee2mqtt/issues/138)
15
15
  - [mqtt]: Added Unix socket: use unix://<SOCKET_PATH> for Unix socket (e.g. unix:///var/run/mqtt.sock). (https://github.com/Luligu/matterbridge-zigbee2mqtt/issues/133)
16
+ - [zigbee2mqtt]: Added frontend package detection. With the new windfront, link or bookmarks to the specific device page are not possible. (https://github.com/Luligu/matterbridge-zigbee2mqtt/issues/136)
16
17
 
17
18
  ### Changed
18
19
 
package/dist/module.js CHANGED
@@ -140,6 +140,8 @@ export class ZigbeePlatform extends MatterbridgeDynamicPlatform {
140
140
  this.log.info(`zigbee2MQTT advanced.legacy_api is ${this.z2mBridgeInfo.config.advanced.legacy_api}`);
141
141
  if (this.z2mBridgeInfo.config.advanced.legacy_availability_payload === true)
142
142
  this.log.info(`zigbee2MQTT advanced.legacy_availability_payload is ${this.z2mBridgeInfo.config.advanced.legacy_availability_payload}`);
143
+ if (this.z2mBridgeInfo.config.frontend?.package)
144
+ this.log.info(`zigbee2MQTT frontend.package is ${this.z2mBridgeInfo.config.frontend?.package}`);
143
145
  });
144
146
  this.z2m.on('bridge-devices', async (devices) => {
145
147
  if (devices === null || devices === undefined)
@@ -443,7 +445,7 @@ export class ZigbeePlatform extends MatterbridgeDynamicPlatform {
443
445
  try {
444
446
  matterDevice = await ZigbeeDevice.create(this, device);
445
447
  if (matterDevice.bridgedDevice) {
446
- matterDevice.bridgedDevice.configUrl = `${this.config.zigbeeFrontend}/#/device/${device.ieee_address}/info`;
448
+ matterDevice.bridgedDevice.configUrl = `${this.config.zigbeeFrontend}/#/device/${this.z2mBridgeInfo?.config.frontend?.package === 'zigbee2mqtt-frontend' ? '' : '0/'}${device.ieee_address}/info`;
447
449
  await this.registerDevice(matterDevice.bridgedDevice);
448
450
  this.bridgedDevices.push(matterDevice.bridgedDevice);
449
451
  this.zigbeeEntities.push(matterDevice);
@@ -467,7 +469,7 @@ export class ZigbeePlatform extends MatterbridgeDynamicPlatform {
467
469
  try {
468
470
  matterGroup = await ZigbeeGroup.create(this, group);
469
471
  if (matterGroup.bridgedDevice) {
470
- matterGroup.bridgedDevice.configUrl = `${this.config.zigbeeFrontend}/#/group/${group.id}`;
472
+ matterGroup.bridgedDevice.configUrl = `${this.config.zigbeeFrontend}/#/group/${this.z2mBridgeInfo?.config.frontend?.package === 'zigbee2mqtt-frontend' ? '' : '0/'}${group.id}`;
471
473
  await this.registerDevice(matterGroup.bridgedDevice);
472
474
  this.bridgedDevices.push(matterGroup.bridgedDevice);
473
475
  this.zigbeeEntities.push(matterGroup);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "3.0.2-dev-20251201-d70de35",
3
+ "version": "3.0.2-dev-20251201-f681e77",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-zigbee2mqtt",
9
- "version": "3.0.2-dev-20251201-d70de35",
9
+ "version": "3.0.2-dev-20251201-f681e77",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "moment": "2.30.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "3.0.2-dev-20251201-d70de35",
3
+ "version": "3.0.2-dev-20251201-f681e77",
4
4
  "description": "Matterbridge zigbee2mqtt plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",