mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
docu
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5985 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eb3ef4240e
commit
c2327bf434
@ -1049,7 +1049,7 @@ JSONMETER_doStatisticDeltaSingle ($$$$$$)
|
|||||||
<ul>
|
<ul>
|
||||||
<li><code>activeTariff < 0 - 9 ></code>
|
<li><code>activeTariff < 0 - 9 ></code>
|
||||||
<br>
|
<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>
|
Dieser Wert muss entsprechend des vorhandenen oder geplanten Tarifes zum jeweiligen Zeitpunkt z.B. durch den FHEM-Befehl "at" gesetzt werden.<br>
|
||||||
0 = tariflos
|
0 = tariflos
|
||||||
</li><br>
|
</li><br>
|
||||||
@ -1059,7 +1059,7 @@ JSONMETER_doStatisticDeltaSingle ($$$$$$)
|
|||||||
</li><br>
|
</li><br>
|
||||||
<li><code>resetStatistics <all|statElectricityConsumed...|statElectricityConsumedTariff...|statElectricityPower...></code>
|
<li><code>resetStatistics <all|statElectricityConsumed...|statElectricityConsumedTariff...|statElectricityPower...></code>
|
||||||
<br>
|
<br>
|
||||||
Löscht die ausgewählten statisischen Werte.
|
Löscht die ausgewählten statisischen Werte.
|
||||||
</li><br>
|
</li><br>
|
||||||
<li><code>restartJsonAnalysis</code>
|
<li><code>restartJsonAnalysis</code>
|
||||||
<br>
|
<br>
|
||||||
|
@ -63,9 +63,9 @@ sub statistics_FormatDuration($);
|
|||||||
,["energy_current", 1, 1]
|
,["energy_current", 1, 1]
|
||||||
,["energy_total", 2, 3]
|
,["energy_total", 2, 3]
|
||||||
,["humidity", 1, 0]
|
,["humidity", 1, 0]
|
||||||
,["lightsensor", 3, 1]
|
,["lightsensor", 3]
|
||||||
,["lock", 3, 1]
|
,["lock", 3]
|
||||||
,["motion", 3, 1]
|
,["motion", 3]
|
||||||
,["power", 1, 1]
|
,["power", 1, 1]
|
||||||
,["rain", 2, 1]
|
,["rain", 2, 1]
|
||||||
,["rain_rate", 1, 1]
|
,["rain_rate", 1, 1]
|
||||||
@ -76,8 +76,8 @@ sub statistics_FormatDuration($);
|
|||||||
,["wind", 1, 0]
|
,["wind", 1, 0]
|
||||||
,["wind_speed", 1, 1]
|
,["wind_speed", 1, 1]
|
||||||
,["windSpeed", 1, 0]
|
,["windSpeed", 1, 0]
|
||||||
,["Window", 3, 1]
|
,["Window", 3]
|
||||||
,["window", 3, 1]
|
,["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)
|
# 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];
|
$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] )"; }
|
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);
|
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 ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user