mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
76_SolarForecast.pm: contrib 0.56.10
git-svn-id: https://svn.fhem.de/fhem/trunk@25225 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c5ff4f29be
commit
2ba143f43c
@ -2681,15 +2681,15 @@ sub _manageConsumerData {
|
||||
|
||||
push @$daref, "consumer${c}_currentPower<>". $pcurr." W";
|
||||
}
|
||||
else {
|
||||
deleteReadingspec ($hash, "consumer${c}_currentPower") if(!$enread);
|
||||
}
|
||||
#else {
|
||||
# deleteReadingspec ($hash, "consumer${c}_currentPower") if(!$enread);
|
||||
#}
|
||||
|
||||
if(defined $ehist && $etot >= $ehist && ($etot - $ehist) >= $pthreshold) {
|
||||
my $consumerco = $etot - $ehist;
|
||||
$consumerco += HistoryVal ($hash, $day, sprintf("%02d",$nhour), "csme${c}", 0);
|
||||
|
||||
$paref->{consumerco} = $consumerco; # Verbrauch des Consumers aktuelle Stunde
|
||||
$paref->{consumerco} = $consumerco; # Verbrauch des Consumers aktuelle Stunde
|
||||
$paref->{histname} = "csme${c}";
|
||||
setPVhistory ($paref);
|
||||
delete $paref->{histname};
|
||||
@ -2701,6 +2701,8 @@ sub _manageConsumerData {
|
||||
delete $paref->{histname};
|
||||
}
|
||||
|
||||
deleteReadingspec ($hash, "consumer${c}_currentPower") if(!$enread && !$paread);
|
||||
|
||||
## Verbraucher - Laufzeit und Zyklen pro Tag ermitteln
|
||||
## Laufzeit (in Minuten) wird pro Stunde erfasst
|
||||
## bei Tageswechsel Rücksetzen in _specialActivities
|
||||
|
Loading…
Reference in New Issue
Block a user