From 9e63361be4a6e008ed66e7d347964d381c5e829f Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Thu, 21 May 2015 09:45:42 +0000 Subject: [PATCH] RESIDENTStk wakeuptimer: add missing file for set command "end" git-svn-id: https://svn.fhem.de/fhem/trunk@8615 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/RESIDENTStk.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/RESIDENTStk.pm b/fhem/FHEM/RESIDENTStk.pm index 9a445a854..574a00769 100644 --- a/fhem/FHEM/RESIDENTStk.pm +++ b/fhem/FHEM/RESIDENTStk.pm @@ -47,7 +47,8 @@ sub RESIDENTStk_wakeupSet($$) { my @notify = split / /, $notifyValue; if ( lc( $notify[0] ) !~ - /^(off|nextrun|trigger|start|stop|reset|auto|([0-9]{2}:[0-9]{2}))$/ ) + /^(off|nextrun|trigger|start|stop|end|reset|auto|([0-9]{2}:[0-9]{2}))$/ + ) { Log3 $NAME, 5, "RESIDENTStk $NAME: received unspecified notify '" @@ -694,9 +695,9 @@ if (\$EVTPART0 eq \"stop\") {\ RESIDENTStk_wakeupRun($NAME); } - # stop + # stop | end # - elsif ( $VALUE eq "stop" && $running ) { + elsif ( ( $VALUE eq "stop" || $VALUE eq "end" ) && $running ) { Log3 $NAME, 4, "RESIDENTStk $NAME: stopping wake-up program"; fhem "setreading $NAME running 0"; fhem "set $NAME nextRun $nextRun"; @@ -728,7 +729,7 @@ if (\$EVTPART0 eq \"stop\") {\ $wakeupEnforced = 0; } - if ( defined( $notify[1] ) ) { + if ( defined( $notify[1] ) || $VALUE eq "end" ) { Log3 $NAME, 4, "RESIDENTStk $NAME: trigger $wakeupMacro stop $lastRun $wakeupOffset $wakeupEnforced $wakeupUserdevice"; fhem