20_ROOMMATE,20_GUEST: only one of many r*_presenceDevices may already trigger state change -> home

git-svn-id: https://svn.fhem.de/fhem/trunk@13439 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2017-02-18 21:10:08 +00:00
parent 205f61cab6
commit d61094ca48
2 changed files with 2 additions and 2 deletions

View File

@@ -313,7 +313,7 @@ sub GUEST_Notify($$) {
"GUEST $hashName: Syncing status with $devName = absent"; "GUEST $hashName: Syncing status with $devName = absent";
fhem "set $hashName:FILTER=presence=present absent"; fhem "set $hashName:FILTER=presence=present absent";
} }
elsif ( !$counter->{absent} && $counter->{present} ) { elsif ( $counter->{present} ) {
Log3 $hashName, 4, Log3 $hashName, 4,
"GUEST $hashName: Syncing status with $devName = present"; "GUEST $hashName: Syncing status with $devName = present";
fhem "set $hashName:FILTER=presence=absent home"; fhem "set $hashName:FILTER=presence=absent home";

View File

@@ -319,7 +319,7 @@ sub ROOMMATE_Notify($$) {
. "Syncing status with $devName = absent"; . "Syncing status with $devName = absent";
fhem "set $hashName:FILTER=presence=present absent"; fhem "set $hashName:FILTER=presence=present absent";
} }
elsif ( !$counter->{absent} && $counter->{present} ) { elsif ( $counter->{present} ) {
Log3 $hashName, 4, Log3 $hashName, 4,
"ROOMMATE $hashName: " "ROOMMATE $hashName: "
. "Syncing status with $devName = present"; . "Syncing status with $devName = present";