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
This commit is contained in:
markusbloch 2018-01-29 16:22:34 +00:00
parent 58b15e4727
commit 49c288b752

View File

@ -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";
}