diff --git a/fhem/CHANGED b/fhem/CHANGED index c22376d36..10fd8da42 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: 89_FULLY: Removed log messages - bugfix: 32_withings: fixed database write for sleepstate: light - feature: 98_WeekdayTimer: Allow flexible state values when delayed. - feature: 89_FULLY: Several new commands. Now using JSON. diff --git a/fhem/FHEM/89_FULLY.pm b/fhem/FHEM/89_FULLY.pm index 8b09adfe8..570b2daee 100755 --- a/fhem/FHEM/89_FULLY.pm +++ b/fhem/FHEM/89_FULLY.pm @@ -1,6 +1,6 @@ ############################################################################## # -# 89_FULLY.pm 2.0 +# 89_FULLY.pm 2.01 # # $Id$ # @@ -40,7 +40,7 @@ sub FULLY_Decrypt ($); sub FULLY_Ping ($$); sub FULLY_SetPolling ($$;$); -my $FULLY_VERSION = '2.0'; +my $FULLY_VERSION = '2.01'; # Timeout for Fully requests my $FULLY_TIMEOUT = 5; @@ -223,16 +223,18 @@ sub FULLY_SetPolling ($$;$) if ($mode == 0 || $interval == 0) { RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo'); - $hash->{nextUpdate} = 'off'; - FULLY_Log ($hash, 2, "Polling deactivated"); + FULLY_Log ($hash, 2, "Polling deactivated") + if (!exists($hash->{nextUpdate}) || $hash->{nextUpdate} ne 'off'); + $hash->{nextUpdate} = 'off'; } elsif ($mode == 1) { RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo'); $interval = $FULLY_POLL_RANGE[0] if ($interval < $FULLY_POLL_RANGE[0]); $interval = $FULLY_POLL_RANGE[1] if ($interval > $FULLY_POLL_RANGE[1]); + FULLY_Log ($hash, 2, "Polling activated") + if (exists($hash->{nextUpdate}) && $hash->{nextUpdate} eq 'off'); $hash->{nextUpdate} = strftime "%d.%m.%Y %H:%M:%S", localtime (time+$interval); InternalTimer (gettimeofday()+$interval, "FULLY_UpdateDeviceInfo", $hash, 0); - FULLY_Log ($hash, 2, "Polling activated"); } }