mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Fix readRsp spamming no converter available messages. https://github.com/Koenkk/zigbee2mqtt/issues/1064
This commit is contained in:
@@ -73,7 +73,10 @@ class DeviceReceive {
|
||||
const cmdId = message.data.cmdId;
|
||||
const converters = mappedDevice.fromZigbee.filter((c) => {
|
||||
if (cid) {
|
||||
return c.cid === cid && c.type === message.type;
|
||||
// readRsp messages have the same structure as attReport messages.
|
||||
// search for attReport converters on readRsp.
|
||||
const search = message.type === 'readRsp' ? 'attReport' : message.type;
|
||||
return c.cid === cid && c.type === search;
|
||||
} else if (cmdId) {
|
||||
return c.cmd === cmdId;
|
||||
}
|
||||
@@ -84,6 +87,11 @@ class DeviceReceive {
|
||||
// Check if there is an available converter
|
||||
if (!converters.length) {
|
||||
if (cid) {
|
||||
// Don't log readRsp messages, they are not interesting most of the time.
|
||||
if (message.type === 'readRsp') {
|
||||
return;
|
||||
}
|
||||
|
||||
logger.warn(
|
||||
`No converter available for '${mappedDevice.model}' with cid '${cid}', ` +
|
||||
`type '${message.type}' and data '${JSON.stringify(message.data)}'`
|
||||
|
||||
Generated
+2
-2
@@ -6109,8 +6109,8 @@
|
||||
}
|
||||
},
|
||||
"zigbee-shepherd": {
|
||||
"version": "git+https://github.com/Koenkk/zigbee-shepherd.git#4de4613dd80f7f2b17eefe7848d116b85586a26d",
|
||||
"from": "git+https://github.com/Koenkk/zigbee-shepherd.git#4de4613dd80f7f2b17eefe7848d116b85586a26d",
|
||||
"version": "git+https://github.com/Koenkk/zigbee-shepherd.git#ce12cdd9c7aa11ac9f7464839db6215d05926207",
|
||||
"from": "git+https://github.com/Koenkk/zigbee-shepherd.git#ce12cdd9c7aa11ac9f7464839db6215d05926207",
|
||||
"requires": {
|
||||
"areq": "^0.2.0",
|
||||
"busyman": "^0.3.0",
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
"semver": "*",
|
||||
"winston": "2.4.2",
|
||||
"ziee": "*",
|
||||
"zigbee-shepherd": "git+https://github.com/Koenkk/zigbee-shepherd.git#4de4613dd80f7f2b17eefe7848d116b85586a26d",
|
||||
"zigbee-shepherd": "git+https://github.com/Koenkk/zigbee-shepherd.git#ce12cdd9c7aa11ac9f7464839db6215d05926207",
|
||||
"zigbee-shepherd-converters": "7.2.4",
|
||||
"zive": "*"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user