From 139b9fa2631317dcd0ac4b2204502e3f369dd61a Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Tue, 6 Oct 2015 15:43:40 +0000 Subject: [PATCH] =?UTF-8?q?99=5Fmsg:=20consider=20state=20=E2=80=9Casleep?= =?UTF-8?q?=E2=80=9D=20for=20recipient?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.fhem.de/fhem/trunk@9387 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/99_msg.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fhem/contrib/99_msg.pm b/fhem/contrib/99_msg.pm index 9a1885103..0154c741c 100644 --- a/fhem/contrib/99_msg.pm +++ b/fhem/contrib/99_msg.pm @@ -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 )