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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user