matterbridge-zigbee2mqtt 3.2.0-dev-20260713-b4409d8 → 3.2.0

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
@@ -30,7 +30,7 @@ If you like this project and find it useful, please consider giving it a star on
30
30
 
31
31
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
32
32
 
33
- ## [3.2.0] - Dev branch
33
+ ## [3.2.0] - 2026-07-17
34
34
 
35
35
  ### Breaking changes
36
36
 
package/dist/entity.js CHANGED
@@ -3,7 +3,7 @@ import fs from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import { airQualitySensor, bridgedNode, colorDimmerSwitch, colorTemperatureLight, contactSensor, dimmableLight, dimmablePlugInUnit, dimmerSwitch, doorLock, electricalSensor, extendedColorLight, genericSwitch, humiditySensor, lightSensor, MatterbridgeEndpoint, occupancySensor, onOffLight, onOffLightSwitch, onOffPlugInUnit, powerSource, pressureSensor, rainSensor, smokeCoAlarm, temperatureSensor, thermostat, waterLeakDetector, windowCovering, } from 'matterbridge';
5
5
  import { AnsiLogger, CYAN, db, debugStringify, dn, gn, hk, idn, ign, nf, or, rs, YELLOW, zb } from 'matterbridge/logger';
6
- import { NumberTag, SwitchesTag } from 'matterbridge/matter';
6
+ import { CommonNumberTag, SwitchesTag } from 'matterbridge/matter';
7
7
  import { AirQuality, BooleanState, BridgedDeviceBasicInformation, CarbonDioxideConcentrationMeasurement, CarbonMonoxideConcentrationMeasurement, ColorControl, DoorLock, ElectricalEnergyMeasurement, ElectricalPowerMeasurement, FormaldehydeConcentrationMeasurement, Identify, IlluminanceMeasurement, LevelControl, OccupancySensing, OnOff, Pm1ConcentrationMeasurement, Pm10ConcentrationMeasurement, Pm25ConcentrationMeasurement, PowerSource, PressureMeasurement, RelativeHumidityMeasurement, SmokeCoAlarm, TemperatureMeasurement, Thermostat, TotalVolatileOrganicCompoundsConcentrationMeasurement, WindowCovering, } from 'matterbridge/matter/clusters';
8
8
  import { ClusterId, getClusterNameById } from 'matterbridge/matter/types';
9
9
  import { deepCopy, deepEqual, fireAndForget, isValidArray, isValidNumber, isValidObject, kelvinToRGB, miredToKelvin, xyColorToRgbColor, xyToHsl } from 'matterbridge/utils';
@@ -940,7 +940,7 @@ export class ZigbeeDevice extends ZigbeeEntity {
940
940
  zigbeeDevice.bridgedDevice = new MatterbridgeEndpoint([doorLock, bridgedNode, powerSource], { id: device.friendly_name }, zigbeeDevice.log.logLevel === "debug");
941
941
  zigbeeDevice.addBridgedDeviceBasicInformation();
942
942
  zigbeeDevice.addPowerSource();
943
- zigbeeDevice.bridgedDevice.addRequiredClusterServers();
943
+ zigbeeDevice.bridgedDevice.addRequiredClusters();
944
944
  await zigbeeDevice.bridgedDevice.addFixedLabel('type', 'lock');
945
945
  zigbeeDevice.verifyMutableDevice(zigbeeDevice.bridgedDevice);
946
946
  zigbeeDevice.bridgedDevice.addCommandHandler('identify', (data) => {
@@ -1097,17 +1097,17 @@ export class ZigbeeDevice extends ZigbeeEntity {
1097
1097
  else {
1098
1098
  const tagList = [];
1099
1099
  if (endpoint === 'l1')
1100
- tagList.push({ mfgCode: null, namespaceId: NumberTag.One.namespaceId, tag: NumberTag.One.tag, label: 'endpoint ' + endpoint });
1100
+ tagList.push({ mfgCode: null, namespaceId: CommonNumberTag.One.namespaceId, tag: CommonNumberTag.One.tag, label: 'endpoint ' + endpoint });
1101
1101
  if (endpoint === 'l2')
1102
- tagList.push({ mfgCode: null, namespaceId: NumberTag.Two.namespaceId, tag: NumberTag.Two.tag, label: 'endpoint ' + endpoint });
1102
+ tagList.push({ mfgCode: null, namespaceId: CommonNumberTag.Two.namespaceId, tag: CommonNumberTag.Two.tag, label: 'endpoint ' + endpoint });
1103
1103
  if (endpoint === 'l3')
1104
- tagList.push({ mfgCode: null, namespaceId: NumberTag.Three.namespaceId, tag: NumberTag.Three.tag, label: 'endpoint ' + endpoint });
1104
+ tagList.push({ mfgCode: null, namespaceId: CommonNumberTag.Three.namespaceId, tag: CommonNumberTag.Three.tag, label: 'endpoint ' + endpoint });
1105
1105
  if (endpoint === 'l4')
1106
- tagList.push({ mfgCode: null, namespaceId: NumberTag.Four.namespaceId, tag: NumberTag.Four.tag, label: 'endpoint ' + endpoint });
1106
+ tagList.push({ mfgCode: null, namespaceId: CommonNumberTag.Four.namespaceId, tag: CommonNumberTag.Four.tag, label: 'endpoint ' + endpoint });
1107
1107
  if (endpoint === 'l5')
1108
- tagList.push({ mfgCode: null, namespaceId: NumberTag.Five.namespaceId, tag: NumberTag.Five.tag, label: 'endpoint ' + endpoint });
1108
+ tagList.push({ mfgCode: null, namespaceId: CommonNumberTag.Five.namespaceId, tag: CommonNumberTag.Five.tag, label: 'endpoint ' + endpoint });
1109
1109
  if (endpoint === 'l6')
1110
- tagList.push({ mfgCode: null, namespaceId: NumberTag.Six.namespaceId, tag: NumberTag.Six.tag, label: 'endpoint ' + endpoint });
1110
+ tagList.push({ mfgCode: null, namespaceId: CommonNumberTag.Six.namespaceId, tag: CommonNumberTag.Six.tag, label: 'endpoint ' + endpoint });
1111
1111
  tagList.push({ mfgCode: null, namespaceId: SwitchesTag.Custom.namespaceId, tag: SwitchesTag.Custom.tag, label: 'endpoint ' + endpoint });
1112
1112
  if (zigbeeDevice.mutableDevice.has(endpoint)) {
1113
1113
  zigbeeDevice.mutableDevice.get(endpoint)?.deviceTypes.push(z2m.deviceType);
@@ -1302,7 +1302,7 @@ export class ZigbeeDevice extends ZigbeeEntity {
1302
1302
  }
1303
1303
  }
1304
1304
  zigbeeDevice.bridgedDevice.addClusterServers(mainEndpoint.clusterServersIds);
1305
- zigbeeDevice.bridgedDevice.addRequiredClusterServers();
1305
+ zigbeeDevice.bridgedDevice.addRequiredClusters();
1306
1306
  if (zigbeeDevice.composedType !== '')
1307
1307
  await zigbeeDevice.bridgedDevice.addFixedLabel('composed', zigbeeDevice.composedType);
1308
1308
  for (const [endpoint, device] of zigbeeDevice.mutableDevice) {
package/dist/module.js CHANGED
@@ -42,7 +42,7 @@ export class ZigbeePlatform extends MatterbridgeDynamicPlatform {
42
42
  super(matterbridge, log, config);
43
43
  this.config = config;
44
44
  if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.9.0')) {
45
- throw new Error(`This plugin requires Matterbridge version >= "3.9.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend."`);
45
+ throw new Error(`This plugin requires Matterbridge version >= "3.9.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
46
46
  }
47
47
  this.shouldStart = false;
48
48
  this.shouldConfigure = false;
@@ -562,7 +562,7 @@ export class Zigbee2MQTT extends EventEmitter {
562
562
  }
563
563
  }
564
564
  handleDeviceMessage(device, entity, service, payload) {
565
- if (payload.length === 0 || payload === null) {
565
+ if (!payload || payload.length === 0) {
566
566
  return;
567
567
  }
568
568
  const payloadString = payload.toString();
@@ -595,7 +595,7 @@ export class Zigbee2MQTT extends EventEmitter {
595
595
  }
596
596
  }
597
597
  handleGroupMessage(group, entity, service, payload) {
598
- if (payload.length === 0 || payload === null) {
598
+ if (!payload || payload.length === 0) {
599
599
  return;
600
600
  }
601
601
  const payloadString = payload.toString();
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "3.2.0-dev-20260713-b4409d8",
3
+ "version": "3.2.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-zigbee2mqtt",
9
- "version": "3.2.0-dev-20260713-b4409d8",
9
+ "version": "3.2.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "moment": "2.30.1",
@@ -602,9 +602,9 @@
602
602
  }
603
603
  },
604
604
  "node_modules/ws": {
605
- "version": "8.21.0",
606
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
607
- "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
605
+ "version": "8.21.1",
606
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.1.tgz",
607
+ "integrity": "sha512-+0NTnW77fFN/DjQi6k/Sq/Yvk4Sgajw7urW8V+asjXnRgDs9gyGkdb7EzgfhA4goXsRIZKE28fzIXBHEzhuiWw==",
608
608
  "license": "MIT",
609
609
  "engines": {
610
610
  "node": ">=10.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "3.2.0-dev-20260713-b4409d8",
3
+ "version": "3.2.0",
4
4
  "description": "Matterbridge zigbee2mqtt plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",