From 71d330628f93b50cba8ea82bf1432b23754ac74c Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Wed, 10 Jan 2018 21:24:12 +0100 Subject: [PATCH] change temperatur reading --- 74_XiaomiBTLESens.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index 47710e5..359d1d5 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -47,7 +47,7 @@ use JSON; use Blocking; -my $version = "1.99.29"; +my $version = "1.99.31"; @@ -682,7 +682,7 @@ sub XiaomiBTLESens_ThermoHygroSensHandle0x10($$) { my $temp = pack('H*',join(' ',substr($notification,4,8))); # 31 37 2e 33 my $hum = pack('H*',join(' ',substr($notification,18,8))); # 35 32 2e 35 - $readings{'temperature'} = $temp/10; + $readings{'temperature'} = $temp; $readings{'humidity'} = $hum; $hash->{helper}{CallBatteryFirmware} = 0;