99_msg: consider state “asleep” for recipient

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9387 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2015-10-06 15:43:40 +00:00
parent 7a61accc47
commit 5adc00e15d

View File

@@ -1674,12 +1674,19 @@ s/^[\s\t]*\|([\w\süöäß^°!"§$%&\/\\()<>=?´`"+\[\]#*@€]+)\|[\s\t]+//
{
$routeStatus = "USER_ABSENT";
}
elsif ($type[$i] ne "push"
&& $type[$i] ne "mail"
&& $residentDevState eq "asleep" )
{
$routeStatus = "USER_ASLEEP";
}
# enforce by user request
if (
(
$routeStatus eq "USER_DISABLED"
|| $routeStatus eq "USER_ABSENT"
|| $routeStatus eq "USER_ASLEEP"
)
&& ( $forceType == 1 || $forceDevice == 1 )
)
@@ -1692,6 +1699,7 @@ s/^[\s\t]*\|([\w\süöäß^°!"§$%&\/\\()<>=?´`"+\[\]#*@€]+)\|[\s\t]+//
(
$routeStatus eq "USER_DISABLED"
|| $routeStatus eq "USER_ABSENT"
|| $routeStatus eq "USER_ASLEEP"
)
&& $loopPriority >= $prioThresGwEmg
)