From 49c288b75219f69ff3e19307d778323c9ff528f7 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Mon, 29 Jan 2018 16:22:34 +0000 Subject: [PATCH] PRESENCE: fix room related error messages with new addon data format git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16039 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/73_PRESENCE.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FHEM/73_PRESENCE.pm b/FHEM/73_PRESENCE.pm index 554694e83..bf943c623 100755 --- a/FHEM/73_PRESENCE.pm +++ b/FHEM/73_PRESENCE.pm @@ -604,15 +604,15 @@ PRESENCE_Read($) { readingsBulkUpdate($hash, "command_accepted", "no"); } - elsif($line =~ /socket_closed;(.+?)$/) + elsif($line =~ /socket_closed;(?:room='?)?(.+?)'?$/) { Log3 $name, 3, "PRESENCE ($name) - collectord lost connection to room $1"; } - elsif($line =~ /socket_reconnected;(.+?)$/) + elsif($line =~ /socket_reconnected;(?:room='?)?(.+?)'?$/) { Log3 $name , 3, "PRESENCE ($name) - collectord reconnected to room $1"; } - elsif($line =~ /error;(.+?)$/) + elsif($line =~ /error;(?:room='?)?(.+?)'?$/) { Log3 $name, 3, "PRESENCE ($name) - room $1 cannot execute hcitool to check device"; }