diff --git a/fhem/CHANGED b/fhem/CHANGED index 8b6a3089f..10d183cf7 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. + - change: 74_XiaomiBTLESens: more debug messages, delete old batteryreadings - change: 83_IOhomecontrol, 84_IOhomecontrolDevice: complete rewrite and extended features - feature: 42_AptToDate: add Attribut upgradeListReading for Reading in JSON diff --git a/fhem/FHEM/74_XiaomiBTLESens.pm b/fhem/FHEM/74_XiaomiBTLESens.pm index 49ae9e682..47ccb947b 100644 --- a/fhem/FHEM/74_XiaomiBTLESens.pm +++ b/fhem/FHEM/74_XiaomiBTLESens.pm @@ -50,7 +50,7 @@ eval "use Blocking;1" or $missingModul .= "Blocking "; #use Data::Dumper; only for Debugging -my $version = "2.0.14"; +my $version = "2.2.0"; @@ -656,8 +656,6 @@ sub XiaomiBTLESens_FlowerSensHandle0x38($$) { my @dataBatFw = split(" ",$notification); - #$readings{'batteryLevel'} = hex("0x".$dataBatFw[0]); - #$readings{'battery'} = (hex("0x".$dataBatFw[0]) > 15 ? "ok" : "low"); ### neue Vereinheitlichung für Batteriereadings Forum #800017 $readings{'batteryPercent'} = hex("0x".$dataBatFw[0]); $readings{'batteryState'} = (hex("0x".$dataBatFw[0]) > 15 ? "ok" : "low"); @@ -694,6 +692,8 @@ sub XiaomiBTLESens_FlowerSensHandle0x35($$) { $readings{'lux'} = hex("0x".$dataSensor[4].$dataSensor[3]); $readings{'moisture'} = hex("0x".$dataSensor[7]); $readings{'fertility'} = hex("0x".$dataSensor[9].$dataSensor[8]); + + Log3 $name, 4, "XiaomiBTLESens ($name) - FlowerSens Handle0x35 - lux: " . $readings{lux} . ", moisture: " . $readings{moisture} . ", fertility: " . $readings{fertility} ; $hash->{helper}{CallBattery} = 0; return \%readings; @@ -710,9 +710,7 @@ sub XiaomiBTLESens_ThermoHygroSensHandle0x18($$) { Log3 $name, 4, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18"; chomp($notification); - - #$readings{'batteryLevel'} = hex("0x".$notification); - #$readings{'battery'} = (hex("0x".$notification) > 15 ? "ok" : "low"); + ### neue Vereinheitlichung für Batteriereadings Forum #800017 $readings{'batteryPercent'} = hex("0x".$notification); $readings{'batteryState'} = (hex("0x".$notification) > 15 ? "ok" : "low");