1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-07 22:29:19 +00:00

git-svn-id: https://svn.fhem.de/fhem/trunk@5808 2b470e98-0d58-463d-a4d8-8e2adae1ed80

This commit is contained in:
tpoitzsch 2014-05-10 09:31:26 +00:00
parent cc4892afa1
commit 04f8f95de5

View File

@ -301,8 +301,9 @@ statistics_DoStatistics($$$)
$monReadingName = "monitoredDevices".$devType; $monReadingName = "monitoredDevices".$devType;
readingsBulkUpdate($hash,"state","Updated stats for: $devName",1); readingsBulkUpdate($hash,"state","Updated stats for: $devName",1);
} else { } else {
$monReadingName = "monitoredDevicesUnsupported"; $monReadingName = "monitoredDevicesUnsupported";
$regExp = '^$devName($devType)$|^$devName($devType),|,$devName($devType)$|,$devName($devType),'; $devName .= "#$devType";
$regExp = '^'.$devName.'$|^'.$devName.',|,'.$devName.'$|,'.$devName.',';
} }
my $monReadingValue = ReadingsVal($hashName,$monReadingName,""); my $monReadingValue = ReadingsVal($hashName,$monReadingName,"");
if ($monReadingValue !~ /$regExp/) { if ($monReadingValue !~ /$regExp/) {