diff --git a/fhem/CHANGED b/fhem/CHANGED index 4acdbd582..4adcc462b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,6 +1,8 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. - SVN + - bugfix: PRESENCE: fixing wrong presence state fÃor mode lan-ping + when device is unreachable - feature: 10_EnOcean: new EEP profiles: D2-01-00 - D2-01-11 (VLD) - changed: 00_TCM/10_EnOcean: learning mode (teach-in / teach-out) changed and extended - added: new module 10_UNIRoll.pm (c-herrmann) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 8f05f61e4..7b8d7852b 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -550,7 +550,7 @@ PRESENCE_DoLocalPingScan($) if($temp ne "") { Log3 $name, 5, "PRESENCE ($name) - ping command returned with output:\n$temp"; - $return = "$name|$local|".($temp =~ /\d+ [Bb]ytes (from|von)/ ? "present" : "absent"); + $return = "$name|$local|".(($temp =~ /\d+ [Bb]ytes (from|von)/ and not $temp =~ /unreachable/i) ? "present" : "absent"); } else {