mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_WeekdayTimer: Correction to http://forum.fhem.de/index.php/topic,40198.msg325505.html#msg325505
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9209 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ed1d3848b5
commit
082e08b3c2
@ -492,7 +492,7 @@ sub WeekdayTimer_SetTimer($) {
|
|||||||
|
|
||||||
my $isActiveTimer = WeekdayTimer_isAnActiveTimer ($hash, $tage, $para);
|
my $isActiveTimer = WeekdayTimer_isAnActiveTimer ($hash, $tage, $para);
|
||||||
readingsSingleUpdate ($hash, "state", "active", 1)
|
readingsSingleUpdate ($hash, "state", "active", 1)
|
||||||
if (!defined $hash->{SETTIMERATMIDNIGHT} && $isActiveTimer);
|
if (!defined $hash->{SETTIMERATMIDNIGHT} && $isActiveTimer);
|
||||||
|
|
||||||
if ($secondsToSwitch>-5) {
|
if ($secondsToSwitch>-5) {
|
||||||
Log3 $hash, 4, "[$name] setTimer - timer seems to be active today: ".join("",@$tage)."|$time|$para" if($isActiveTimer);
|
Log3 $hash, 4, "[$name] setTimer - timer seems to be active today: ".join("",@$tage)."|$time|$para" if($isActiveTimer);
|
||||||
@ -599,11 +599,11 @@ sub WeekdayTimer_Update($) {
|
|||||||
my ($indx, $aktTime, $aktParameter, $nextTime, $nextParameter) =
|
my ($indx, $aktTime, $aktParameter, $nextTime, $nextParameter) =
|
||||||
WeekdayTimer_searchAktNext($hash, time()+5);
|
WeekdayTimer_searchAktNext($hash, time()+5);
|
||||||
|
|
||||||
if ($newParam ne $aktParameter ) {
|
#if ($newParam ne $aktParameter ) {
|
||||||
#Log3 $hash, 3, "[$name]*Update - $newParam overwritten by $aktParameter (" . FmtDateTime($aktTime). ")";
|
# #Log3 $hash, 3, "[$name]*Update - $newParam overwritten by $aktParameter (" . FmtDateTime($aktTime). ")";
|
||||||
Log3 $hash, 3, "[$name] Update - $newParam overwritten by $aktParameter (" . FmtDateTime($aktTime). ")" if($activeTimer);
|
# Log3 $hash, 3, "[$name] Update - $newParam overwritten by $aktParameter (" . FmtDateTime($aktTime). ")" if($activeTimer);
|
||||||
$newParam = $aktParameter;
|
# $newParam = $aktParameter;
|
||||||
}
|
#}
|
||||||
|
|
||||||
# ggf. Device schalten
|
# ggf. Device schalten
|
||||||
WeekdayTimer_Device_Schalten($hash, $newParam, $tage) if($activeTimer);
|
WeekdayTimer_Device_Schalten($hash, $newParam, $tage) if($activeTimer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user