RESIDENTStk: always reset wakeup state in ROOMMATE/GUEST when ending wakeup program

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13846 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-03-29 18:52:06 +00:00
parent 9d83914c97
commit 97df310d8d

View File

@ -93,7 +93,7 @@ m/^(off|nextrun|trigger|start|stop|end|reset|auto|[\+\-][1-9]*[0-9]*|[\+\-]?[0-9
AttrVal( $NAME, "wakeupUserdevice", "" ),
AttrVal(
AttrVal( $NAME, "wakeupUserdevice", "" ), "rr_realname",
"group"
"alias"
),
$wakeupUserdeviceRealname
);
@ -774,13 +774,14 @@ if (\$EVTPART0 eq \"stop\") {\
fhem "set $wakeupUserdevice:FILTER=state=asleep awoken";
}
fhem "setreading $wakeupUserdevice:FILTER=wakeup=1 wakeup 0";
my $wakeupStopAtdevice = $wakeupAtdevice . "_stop";
if ( defined( $defs{$wakeupStopAtdevice} ) ) {
fhem "delete $wakeupStopAtdevice";
}
}
fhem "setreading $wakeupUserdevice:FILTER=wakeup=1 wakeup 0";
return;
}