mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
docu
git-svn-id: https://svn.fhem.de/fhem/trunk@5985 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0038e01747
commit
74b3820ca4
@ -1049,7 +1049,7 @@ JSONMETER_doStatisticDeltaSingle ($$$$$$)
|
||||
<ul>
|
||||
<li><code>activeTariff < 0 - 9 ></code>
|
||||
<br>
|
||||
Erlaubt die gezielte, separate Erfassung der statistischen Verbrauchswerte (doStatistics = 1) für verschiedene Tarife (Doppelstromzähler), wenn der Stromzähler dies selbst nicht unterscheiden kann (z.B. LS110) oder wenn geprüft werden soll, ob ein zeitabhängiger Tarif preiswerter wäre.<br>
|
||||
Erlaubt die gezielte, separate Erfassung der statistischen Verbrauchswerte (doStatistics = 1) für verschiedene Tarife (Doppelstromzähler), wenn der Stromzähler dies selbst nicht unterscheiden kann (z.B. LS110) oder wenn geprüft werden soll, ob ein zeitabhängiger Tarif preiswerter wäre.<br>
|
||||
Dieser Wert muss entsprechend des vorhandenen oder geplanten Tarifes zum jeweiligen Zeitpunkt z.B. durch den FHEM-Befehl "at" gesetzt werden.<br>
|
||||
0 = tariflos
|
||||
</li><br>
|
||||
@ -1059,7 +1059,7 @@ JSONMETER_doStatisticDeltaSingle ($$$$$$)
|
||||
</li><br>
|
||||
<li><code>resetStatistics <all|statElectricityConsumed...|statElectricityConsumedTariff...|statElectricityPower...></code>
|
||||
<br>
|
||||
Löscht die ausgewählten statisischen Werte.
|
||||
Löscht die ausgewählten statisischen Werte.
|
||||
</li><br>
|
||||
<li><code>restartJsonAnalysis</code>
|
||||
<br>
|
||||
|
@ -63,9 +63,9 @@ sub statistics_FormatDuration($);
|
||||
,["energy_current", 1, 1]
|
||||
,["energy_total", 2, 3]
|
||||
,["humidity", 1, 0]
|
||||
,["lightsensor", 3, 1]
|
||||
,["lock", 3, 1]
|
||||
,["motion", 3, 1]
|
||||
,["lightsensor", 3]
|
||||
,["lock", 3]
|
||||
,["motion", 3]
|
||||
,["power", 1, 1]
|
||||
,["rain", 2, 1]
|
||||
,["rain_rate", 1, 1]
|
||||
@ -76,8 +76,8 @@ sub statistics_FormatDuration($);
|
||||
,["wind", 1, 0]
|
||||
,["wind_speed", 1, 1]
|
||||
,["windSpeed", 1, 0]
|
||||
,["Window", 3, 1]
|
||||
,["window", 3, 1]
|
||||
,["Window", 3]
|
||||
,["window", 3]
|
||||
);
|
||||
##############################################################
|
||||
|
||||
@ -645,6 +645,11 @@ statistics_doStatisticDelta ($$$$$)
|
||||
}
|
||||
}
|
||||
|
||||
# Store hidden reading
|
||||
$result = "LastValue: $value ShowDate: $showDate ";
|
||||
readingsSingleUpdate($hash, $hiddenReadingName, $result, 0);
|
||||
Log3 $name,5,"$name: Set '$hiddenReadingName'='$result'";
|
||||
|
||||
# Store visible statistic readings (delta values)
|
||||
$result = sprintf "Hour: %.".$decPlaces."f Day: %.".$decPlaces."f Month: %.".$decPlaces."f Year: %.".$decPlaces."f", $stat[1], $stat[3], $stat[5], $stat[7];
|
||||
if ( $showDate >=2 ) { $result .= " (since: $stat[9] )"; }
|
||||
@ -673,11 +678,6 @@ statistics_doStatisticDelta ($$$$$)
|
||||
statistics_storeSingularReadings ($name,$singularReadings,$dev,$statReadingName,$readingName,"Delta","Year",$statValue,$last[7],$periodSwitch >= 4);
|
||||
}
|
||||
|
||||
# Store hidden reading
|
||||
$result = "LastValue: $value ShowDate: $showDate ";
|
||||
readingsSingleUpdate($hash, $hiddenReadingName, $result, 0);
|
||||
Log3 $name,5,"$name: Set '$hiddenReadingName'='$result'";
|
||||
|
||||
return ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user