zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Linkquality above 100??

Open z4rn0x opened this issue 6 years ago • 4 comments

Bug Report

What happened

Hello I noticed since several days that one of my Aqara thermometer has a linkquality above 100... Here is the MQTT message: {"temperature":21.04,"linkquality":115,"humidity":37.73,"battery":74,"voltage":2955}

What did you expect to happen

Is it a bug? Or something that I can fix?

How to reproduce it (minimal and precise)

Debug Info

zigbee2mqtt version: 1.7.1 CC253X firmware version: 20190608

z4rn0x avatar Dec 11 '19 23:12 z4rn0x

I am under impression that linkquality is a value from 0 to 255 and 255 is the best quality.

Kryzek avatar Dec 12 '19 05:12 Kryzek

This is indeed a value between 0 and 255.

Koenkk avatar Dec 12 '19 07:12 Koenkk

Does it make sense to map this to [0,100] (percentage) for improved readability?

Together with a '%' at the end, it would not allow for any misunderstanding.

CodeFinder2 avatar Dec 21 '19 00:12 CodeFinder2

Yes, but that will be a breaking change so can not be done easily.

Koenkk avatar Dec 23 '19 19:12 Koenkk