matterbridge-zigbee2mqtt 3.2.0-dev-20260717-87bd309 → 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/dist/entity.js +2 -2
- package/dist/module.js +1 -1
- package/dist/zigbee2mqtt.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/entity.js
CHANGED
|
@@ -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.
|
|
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) => {
|
|
@@ -1302,7 +1302,7 @@ export class ZigbeeDevice extends ZigbeeEntity {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
zigbeeDevice.bridgedDevice.addClusterServers(mainEndpoint.clusterServersIds);
|
|
1305
|
-
zigbeeDevice.bridgedDevice.
|
|
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;
|
package/dist/zigbee2mqtt.js
CHANGED
|
@@ -562,7 +562,7 @@ export class Zigbee2MQTT extends EventEmitter {
|
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
handleDeviceMessage(device, entity, service, payload) {
|
|
565
|
-
if (payload
|
|
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
|
|
598
|
+
if (!payload || payload.length === 0) {
|
|
599
599
|
return;
|
|
600
600
|
}
|
|
601
601
|
const payloadString = payload.toString();
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-zigbee2mqtt",
|
|
3
|
-
"version": "3.2.0
|
|
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
|
|
9
|
+
"version": "3.2.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"moment": "2.30.1",
|