WebThingsIO / zigbee-adapter

Zigbee adapter add-on for WebThings Gateway
Mozilla Public License 2.0
46 stars 29 forks source link

quieten error message and remove ambiguity #253

Closed chas-iot closed 3 years ago

chas-iot commented 3 years ago

current 2020-11-22 18:54:30.117 ERROR : zigbee-adapter: Confirm Status: 233: unknown addr: 14b457fffe278acf 3a9f

becomes 2020-11-22 18:54:30.117 ERROR : zigbee-adapter: Confirm Status: 233: MAC_NO_ACK, addr: 14b457fffe278acf 3a9f

and the remaining frame log will be removed 2020-11-22 18:54:30.118 ERROR : zigbee-adapter: { response: true, 2020-11-22 18:54:30.121 ERROR : zigbee-adapter: type: 4, 2020-11-22 18:54:30.122 ERROR : zigbee-adapter: seqNum: 223, 2020-11-22 18:54:30.122 ERROR : zigbee-adapter: status: 0, 2020-11-22 18:54:30.123 ERROR : zigbee-adapter: payloadLen: 12, 2020-11-22 18:54:30.123 ERROR : zigbee-adapter: deviceState: 34, 2020-11-22 18:54:30.124 ERROR : zigbee-adapter: networkState: 2, 2020-11-22 18:54:30.125 ERROR : zigbee-adapter: dataConfirm: false, 2020-11-22 18:54:30.125 ERROR : zigbee-adapter: dataIndication: false, 2020-11-22 18:54:30.126 ERROR : zigbee-adapter: configChanged: false, 2020-11-22 18:54:30.127 ERROR : zigbee-adapter: dataRequest: true, 2020-11-22 18:54:30.127 ERROR : zigbee-adapter: id: 234, 2020-11-22 18:54:30.128 ERROR : zigbee-adapter: dstAddrMode: 2, 2020-11-22 18:54:30.128 ERROR : zigbee-adapter: destination16: '3a9f', 2020-11-22 18:54:30.129 ERROR : zigbee-adapter: destinationEndpoint: '01', 2020-11-22 18:54:30.130 ERROR : zigbee-adapter: sourceEndpoint: '00', 2020-11-22 18:54:30.130 ERROR : zigbee-adapter: confirmStatus: 233 }

chas-iot commented 3 years ago

I have one further suppress-error change in progress, which will experimentally add the batteryPercentageRemaining attribute as a property, hidden behind a configuration flag. This change is basically working and is in test on my main RPI. Likely, I will want to change the configuration description to note the quirks of this attribute/property before submitting as a PR. One quirk that is not yet described is that the battery devices send this attribute infrequently, maybe as little as once per day.