diff --git a/fhem/CHANGED b/fhem/CHANGED index bca55f7df..eb4df3465 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 74_XiaomiBTLESens: fix Illegal hexadecimal digit ' ' ignored - change: 74_XiaomiBTLESens: better timer logic - feature: 20_FRM_AD: analog resolution now depending on device capability - change: 93_DbLog: V3.6.5, avoid shutdown problem if database is too slow, diff --git a/fhem/FHEM/74_XiaomiBTLESens.pm b/fhem/FHEM/74_XiaomiBTLESens.pm index 69f430e91..f019f6dd7 100644 --- a/fhem/FHEM/74_XiaomiBTLESens.pm +++ b/fhem/FHEM/74_XiaomiBTLESens.pm @@ -47,7 +47,7 @@ use JSON; use Blocking; -my $version = "2.0.4"; +my $version = "2.0.5"; @@ -676,6 +676,8 @@ sub XiaomiBTLESens_ThermoHygroSensHandle0x18($$) { Log3 $name, 5, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18"; + + chomp($notification)); $readings{'batteryLevel'} = hex("0x".$notification); $readings{'battery'} = (hex("0x".$notification) > 20?"ok":"low");