2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

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 b7415b42b3
commit cc4892afa1

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