2
0
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:
rudolfkoenig 2018-08-07 07:40:20 +00:00
parent 8105d3581c
commit 7a48c452cd

View File

@ -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 "";
}
}