From e1792c64a79abb8924f1dfb1dcd52dc72b7a383e Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 16 Jan 2018 13:03:53 +0100 Subject: [PATCH] handle read devicename after read firmware --- 74_XiaomiBTLESens.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index 5c35594..8a01baf 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -305,6 +305,7 @@ sub XiaomiBTLESens_stateRequest($) { XiaomiBTLESens_CreateParamGatttool($hash,'read',$XiaomiModels{$attr{$name}{model}}{firmware}); #InternalTimer( gettimeofday() + 120, "XiaomiBTLESens_ReadDeviceName", $hash ) if( AttrVal($name,'model','thermoHygroSens') eq 'thermoHygroSens' ); # hier muss ich noch mal schauen wegen der Umstellung + InternalTimer( gettimeofday() + 120, "XiaomiBTLESens_CreateParamGatttool", $hash.',read,'.$XiaomiModels{$attr{$name}{model}}{devicename} ) if( AttrVal($name,'model','thermoHygroSens') eq 'thermoHygroSens' ); } } else {