mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
74_XiaomiBTLESens: Backslash found where operator expected
git-svn-id: https://svn.fhem.de/fhem/trunk@16444 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7732a1eda7
commit
7d89d30be2
@ -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: Backslash found where operator expected
|
||||
- bugfix: 98_TRAFFIC: v1.3.7, fixed special characters and updateschedule
|
||||
- change: 10_OWServer: autoselecting OWNet module
|
||||
- bugfix: 72_FB_CALLLIST: allow newlines in mapping attributes values
|
||||
|
@ -50,7 +50,7 @@ eval "use Blocking;1" or $missingModul .= "Blocking ";
|
||||
#use Data::Dumper; only for Debugging
|
||||
|
||||
|
||||
my $version = "2.0.10";
|
||||
my $version = "2.0.11";
|
||||
|
||||
|
||||
|
||||
@ -655,7 +655,7 @@ sub XiaomiBTLESens_FlowerSensHandle0x38($$) {
|
||||
my @dataBatFw = split(" ",$notification);
|
||||
|
||||
$readings{'batteryLevel'} = hex("0x".$dataBatFw[0]);
|
||||
$readings{'battery'} = (hex("0x".$dataBatFw[0]) > 19 ? "ok" : "low");
|
||||
$readings{'battery'} = (hex("0x".$dataBatFw[0]) > 15 ? "ok" : "low");
|
||||
$readings{'firmware'} = ($dataBatFw[2]-30).".".($dataBatFw[4]-30).".".($dataBatFw[6]-30);
|
||||
|
||||
$hash->{helper}{CallBattery} = 1;
|
||||
@ -849,7 +849,7 @@ sub XiaomiBTLESens_encodeJSON($) {
|
||||
'gtResult' => $gtResult
|
||||
);
|
||||
|
||||
return encode_json \%response;
|
||||
return encode_json(\%response);
|
||||
}
|
||||
|
||||
## Routinen damit Firmware und Batterie nur alle X male statt immer aufgerufen wird
|
||||
|
Loading…
Reference in New Issue
Block a user