From 70862e57aa46cb3113453006042a7fdc924c20b1 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 11 Oct 2019 12:04:09 +0200 Subject: [PATCH] change clear glass humidity syntax --- 74_XiaomiBTLESens.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index cb3657b..97845e4 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -1112,7 +1112,7 @@ sub ClearGrassSensHandle0x1e($$) { $notification =~ s/\s+//g; $readings{'temperature'} = hex(substr( $notification, 4, 2 ) )/10; - $readings{'humidity'} = hex(substr( $notification, 8, 2 ) ); + $readings{'humidity'} = hex(substr($notification,11,1) .substr($notification,8,2))/10; $hash->{helper}{CallBattery} = 0; return \%readings; @@ -1532,7 +1532,7 @@ sub CometBlueBTLE_CmdlinePreventGrepFalsePositive($) { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.7.53", + "version": "v2.7.54", "author": [ "Marko Oldenburg " ],