2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

PRESENCE: fixing wrong presence state for mode lan-ping when device is unreachable

git-svn-id: https://svn.fhem.de/fhem/trunk@5434 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2014-04-04 15:43:23 +00:00
parent 33ac5b8eec
commit 0138e6a85e
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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
{