mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
SetExtensions.pm: no on-till if the time is tomorrow (Forum #89985)
git-svn-id: https://svn.fhem.de/fhem/trunk@17100 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8105d3581c
commit
7a48c452cd
@ -115,7 +115,11 @@ SetExtensions($$@)
|
||||
my $hms_now = sprintf("%02d:%02d:%02d", $lt[2], $lt[1], $lt[0]);
|
||||
if($hms_now ge $hms_till) {
|
||||
Log3 $hash, 4,
|
||||
"$cmd: won't switch as now ($hms_now) is later than $hms_till";
|
||||
"$name $cmd: won't switch as now ($hms_now) is later than $hms_till";
|
||||
return "";
|
||||
}
|
||||
if($hms_till ge "24") { # sunrise, #89985
|
||||
Log3 $hash, 4, "$name $cmd: won't switch as $hms_till is tomorrow";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user