mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
33ac5b8eec
commit
0138e6a85e
@ -1,6 +1,8 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
- SVN
|
- 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)
|
- 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
|
- changed: 00_TCM/10_EnOcean: learning mode (teach-in / teach-out) changed and extended
|
||||||
- added: new module 10_UNIRoll.pm (c-herrmann)
|
- added: new module 10_UNIRoll.pm (c-herrmann)
|
||||||
|
@ -550,7 +550,7 @@ PRESENCE_DoLocalPingScan($)
|
|||||||
if($temp ne "")
|
if($temp ne "")
|
||||||
{
|
{
|
||||||
Log3 $name, 5, "PRESENCE ($name) - ping command returned with output:\n$temp";
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user