mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
74_XiaomiBTLESens: delete old batteryreadings, more debug messages
git-svn-id: https://svn.fhem.de/fhem/trunk@16993 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9caa7a5088
commit
08899301d5
@ -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
|
||||
|
@ -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");
|
||||
@ -695,6 +693,8 @@ sub XiaomiBTLESens_FlowerSensHandle0x35($$) {
|
||||
$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;
|
||||
}
|
||||
@ -711,8 +711,6 @@ sub XiaomiBTLESens_ThermoHygroSensHandle0x18($$) {
|
||||
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user