From de90d6fb6bd4382e0fcc961014eb143824ce258c Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 20 Nov 2017 23:45:06 +0100 Subject: [PATCH] fix InternalTimer change interval --- 74_XiaomiFlowerSens.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/74_XiaomiFlowerSens.pm b/74_XiaomiFlowerSens.pm index 48b87ed..b554bc5 100644 --- a/74_XiaomiFlowerSens.pm +++ b/74_XiaomiFlowerSens.pm @@ -47,7 +47,7 @@ use JSON; use Blocking; -my $version = "1.2.2"; +my $version = "1.2.3"; my %CallBatteryFirmwareAge = ( '8h' => 28800, '16h' => 57600, '24h' => 86400, @@ -248,6 +248,8 @@ sub XiaomiFlowerSens_Notify($$) { XiaomiFlowerSens_stateRequestTimer($hash) if( grep /^INITIALIZED$/,@{$events} or grep /^DELETEATTR.$name.disable$/,@{$events} + or grep /^DELETEATTR.$name.interval$/,@{$events} + or grep /^ATTR.$name.interval.[0-9]+/,@{$events} or (grep /^DEFINED.$name$/,@{$events} and $init_done) ); return; }