mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-27 20:34:52 +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
fhem
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- bugfix: 98_TRAFFIC: v1.3.7, fixed special characters and updateschedule
|
||||||
- change: 10_OWServer: autoselecting OWNet module
|
- change: 10_OWServer: autoselecting OWNet module
|
||||||
- bugfix: 72_FB_CALLLIST: allow newlines in mapping attributes values
|
- 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
|
#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);
|
my @dataBatFw = split(" ",$notification);
|
||||||
|
|
||||||
$readings{'batteryLevel'} = hex("0x".$dataBatFw[0]);
|
$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);
|
$readings{'firmware'} = ($dataBatFw[2]-30).".".($dataBatFw[4]-30).".".($dataBatFw[6]-30);
|
||||||
|
|
||||||
$hash->{helper}{CallBattery} = 1;
|
$hash->{helper}{CallBattery} = 1;
|
||||||
@ -848,8 +848,8 @@ sub XiaomiBTLESens_encodeJSON($) {
|
|||||||
my %response = (
|
my %response = (
|
||||||
'gtResult' => $gtResult
|
'gtResult' => $gtResult
|
||||||
);
|
);
|
||||||
|
|
||||||
return encode_json \%response;
|
return encode_json(\%response);
|
||||||
}
|
}
|
||||||
|
|
||||||
## Routinen damit Firmware und Batterie nur alle X male statt immer aufgerufen wird
|
## Routinen damit Firmware und Batterie nur alle X male statt immer aufgerufen wird
|
||||||
|
Loading…
x
Reference in New Issue
Block a user