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

This commit is contained in:
tpoitzsch
2014-05-10 09:12:25 +00:00
parent 7c06654b14
commit 0e75f0b5b7

View File

@@ -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/) {