2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

FULLY: Removed log messages

git-svn-id: https://svn.fhem.de/fhem/trunk@22994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
zap 2020-10-20 08:37:32 +00:00
parent 6ecd092f64
commit 210b268745
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # 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 - bugfix: 32_withings: fixed database write for sleepstate: light
- feature: 98_WeekdayTimer: Allow flexible state values when delayed. - feature: 98_WeekdayTimer: Allow flexible state values when delayed.
- feature: 89_FULLY: Several new commands. Now using JSON. - feature: 89_FULLY: Several new commands. Now using JSON.

View File

@ -1,6 +1,6 @@
############################################################################## ##############################################################################
# #
# 89_FULLY.pm 2.0 # 89_FULLY.pm 2.01
# #
# $Id$ # $Id$
# #
@ -40,7 +40,7 @@ sub FULLY_Decrypt ($);
sub FULLY_Ping ($$); sub FULLY_Ping ($$);
sub FULLY_SetPolling ($$;$); sub FULLY_SetPolling ($$;$);
my $FULLY_VERSION = '2.0'; my $FULLY_VERSION = '2.01';
# Timeout for Fully requests # Timeout for Fully requests
my $FULLY_TIMEOUT = 5; my $FULLY_TIMEOUT = 5;
@ -223,16 +223,18 @@ sub FULLY_SetPolling ($$;$)
if ($mode == 0 || $interval == 0) { if ($mode == 0 || $interval == 0) {
RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo'); 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) { elsif ($mode == 1) {
RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo'); RemoveInternalTimer ($hash, 'FULLY_UpdateDeviceInfo');
$interval = $FULLY_POLL_RANGE[0] if ($interval < $FULLY_POLL_RANGE[0]); $interval = $FULLY_POLL_RANGE[0] if ($interval < $FULLY_POLL_RANGE[0]);
$interval = $FULLY_POLL_RANGE[1] if ($interval > $FULLY_POLL_RANGE[1]); $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); $hash->{nextUpdate} = strftime "%d.%m.%Y %H:%M:%S", localtime (time+$interval);
InternalTimer (gettimeofday()+$interval, "FULLY_UpdateDeviceInfo", $hash, 0); InternalTimer (gettimeofday()+$interval, "FULLY_UpdateDeviceInfo", $hash, 0);
FULLY_Log ($hash, 2, "Polling activated");
} }
} }