From dbb420ac3768115b2ecbd39859baba9c8d0f11d3 Mon Sep 17 00:00:00 2001 From: tpoitzsch <> Date: Sat, 10 May 2014 09:12:25 +0000 Subject: [PATCH] git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5807 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_statistics.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FHEM/98_statistics.pm b/FHEM/98_statistics.pm index 867ee4d4d..8ba78924c 100644 --- a/FHEM/98_statistics.pm +++ b/FHEM/98_statistics.pm @@ -103,7 +103,7 @@ statistics_Define($$) return "Bad regexp: $@" if($@); $hash->{DEV_REGEXP} = $devName; - $hash->{STATE} = "wating for notifications"; + $hash->{STATE} = "Waiting for notifications"; RemoveInternalTimer($hash); @@ -297,11 +297,12 @@ statistics_DoStatistics($$$) # Record device as monitored my $monReadingName; - if ($statisticDone ==1) { + if ($statisticDone == 1) { $monReadingName = "monitoredDevices".$devType; readingsBulkUpdate($hash,"state","Updated stats for: $devName",1); } else { - $monReadingName = "monitoredDevicesUnsupported"; $devName .= "($devType)", + $monReadingName = "monitoredDevicesUnsupported"; + $regExp = '^$devName($devType)$|^$devName($devType),|,$devName($devType)$|,$devName($devType),'; } my $monReadingValue = ReadingsVal($hashName,$monReadingName,""); if ($monReadingValue !~ /$regExp/) {