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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user