2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +00:00

RESIDENTStk wakeuptimer: add missing file for set command "end"

git-svn-id: https://svn.fhem.de/fhem/trunk@8615 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2015-05-21 09:45:42 +00:00
parent 920304cca2
commit 9e63361be4

View File

@ -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