76_SolarForecast.pm: contrib 0.56.4

git-svn-id: https://svn.fhem.de/fhem/trunk@24986 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
DS_Starter
2021-09-16 19:36:26 +00:00
parent 30ec55d0a9
commit ad3d3374a9

View File

@@ -2874,6 +2874,19 @@ return;
###################################################################
# Verbraucherspezifische Energiestück Ermittlung
#
# epiecHistCounts = x gibt an wie viele Zyklen betrachtet werden
# sollen
# epiecHist => x ist der Index des Speicherbereichs der aktuell
# benutzt wird.
#
# epiecHist_x => 1=x 2=x 3=x 4=x epieces eines Index
# epiecHist_x_hours => x Stunden des Durchlauf bzw. wie viele
# Einträge epiecHist_x hat
# epiecAVG => 1=x 2=x und epiecAVG_hours => x enthalten die
# durchschnittlichen Werte der in epiecHistCounts
# vorgegebenen Durchläufe.
#
###################################################################
sub ___csmSpecificEpieces {
my $paref = shift;
@@ -2902,7 +2915,7 @@ sub ___csmSpecificEpieces {
if(ConsumerVal ($hash, $c, "epiecHour", 0) != $epiecHour) {
my $epiecHour_last = $epiecHour - 1;
$data{$type}{$name}{consumers}{$c}{$epiecHist}{$epiecHour_last} = $etot - ConsumerVal ($hash, $c, "epiecEstart", 0) if($epiecHour > 1);
$data{$type}{$name}{consumers}{$c}{epiecEstart} = $etot;
}