diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 43200e6e7..bfabebcca 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -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