From 6432d343dd4efe213ae85240fa5cc02cb91c7d86 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 16 Jan 2018 13:58:33 +0100 Subject: [PATCH] add Readings information --- 74_XiaomiBTLESens.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index 989acc5..2dc3353 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -607,7 +607,7 @@ sub XiaomiBTLESens_ProcessingNotification($@) { ### Thermo/Hygro Sens - Read and Write Devicename Log3 $name, 4, "XiaomiBTLESens ($name) - ProcessingNotification: handle 0x3"; - return unless($gattCmd eq 'read'); + return readingsSingleUpdate($hash,"state","active",1) unless($gattCmd eq 'read'); $readings = XiaomiBTLESens_ThermoHygroSensHandle0x3($hash,$notification) } }