RESIDENTStk wakeuptimer: fix state reset in case resident is absent

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8865 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2015-07-01 13:16:01 +00:00
parent 9eece17c0e
commit 558aa85ca0

View File

@@ -1187,7 +1187,7 @@ sub RESIDENTStk_wakeupRun($;$) {
Log3 $NAME, 4,
"RESIDENTStk $NAME: Resetting based on wakeupDefaultTime";
fhem
"set $NAME:FILTER=nextRun!=$wakeupDefaultTime nextRun $wakeupDefaultTime";
"set $NAME:FILTER=state!=$wakeupDefaultTime nextRun $wakeupDefaultTime";
}
elsif ( !$running ) {
fhem "setreading $NAME:FILTER=state!=$nextRun state $nextRun";