diff --git a/fhem/CHANGED b/fhem/CHANGED index 97d379e3d..d84af34eb 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 74_XiaomiFlowerSens: fix disableForInterval Bug - bugfix: 88_HMCCU.pm: fixed attribute substexcl - update: 88_HMCCU.pm: new version 3.7 - bugfix: contrib/Widgets/DateTimePicker/fhemweb_datetime.js: diff --git a/fhem/FHEM/74_XiaomiFlowerSens.pm b/fhem/FHEM/74_XiaomiFlowerSens.pm index a399107f6..ea4e23125 100644 --- a/fhem/FHEM/74_XiaomiFlowerSens.pm +++ b/fhem/FHEM/74_XiaomiFlowerSens.pm @@ -2,7 +2,7 @@ # # Developed with Kate # -# (c) 2016 Copyright: Marko Oldenburg (leongaultier at gmail dot com) +# (c) 2016-2017 Copyright: Marko Oldenburg (leongaultier at gmail dot com) # All rights reserved # # This script is free software; you can redistribute it and/or modify @@ -35,7 +35,7 @@ use POSIX; use JSON; use Blocking; -my $version = "0.2.10"; +my $version = "0.2.11"; @@ -129,7 +129,6 @@ sub XiaomiFlowerSens_Attr(@) { elsif( $cmd eq "del" ) { readingsSingleUpdate ( $hash, "state", "active", 1 ); - InternalTimer( gettimeofday()+int(rand(30)), "XiaomiFlowerSens_stateRequestTimer", $hash, 1 ); Log3 $name, 3, "Sub XiaomiFlowerSens ($name) - enabled"; } } @@ -142,7 +141,6 @@ sub XiaomiFlowerSens_Attr(@) { elsif( $cmd eq "del" ) { readingsSingleUpdate ( $hash, "state", "active", 1 ); - InternalTimer( gettimeofday()+int(rand(30)), "XiaomiFlowerSens_stateRequestTimer", $hash, 1 ); Log3 $name, 3, "Sub XiaomiFlowerSens ($name) - enabled"; } } @@ -200,12 +198,12 @@ sub XiaomiFlowerSens_stateRequestTimer($) { XiaomiFlowerSens($hash); - InternalTimer( gettimeofday()+$hash->{INTERVAL}+int(rand(300)), "XiaomiFlowerSens_stateRequestTimer", $hash, 1 ); - } else { readingsSingleUpdate ( $hash, "state", "disabled", 1 ); } + InternalTimer( gettimeofday()+$hash->{INTERVAL}+int(rand(300)), "XiaomiFlowerSens_stateRequestTimer", $hash, 1 ); + Log3 $name, 5, "Sub XiaomiFlowerSens ($name) - Request Timer wird aufgerufen"; }