diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index c9727596c..81500a7dc 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -511,7 +511,7 @@ PRESENCE_DoLocalFritzBoxScan($) chomp $status; - return ($status == 0 ? "$name|$local|absent|$number" : "$name|$local|present|$number"); + return ($status == 0 ? "$name|$local|absent" : "$name|$local|present").($number <= $max ? "|$number" : ""); } sub @@ -589,6 +589,10 @@ PRESENCE_ProcessLocalScan($) { $hash->{helper}{cachednr} = $a[3] if(($a[2] eq "present") || ($a[2] eq "absent")); } + elsif($hash->{MODE} eq "fritzbox" and defined($hash->{helper}{cachednr})) + { + delete($hash->{helper}{cachednr}); + } readingsBeginUpdate($hash); if($a[2] eq "present")