From 72bd471ed48786e1a0821b9145abe8bb49dd5fb4 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Tue, 7 Aug 2018 07:40:20 +0000 Subject: [PATCH] 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 --- fhem/FHEM/SetExtensions.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/SetExtensions.pm b/fhem/FHEM/SetExtensions.pm index 1bd64d6cd..840e87f91 100644 --- a/fhem/FHEM/SetExtensions.pm +++ b/fhem/FHEM/SetExtensions.pm @@ -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 ""; } }