From 14edcf053efecbea1be1d239537b3f03372a3a39 Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Sat, 3 Apr 2021 10:33:26 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.28.0 git-svn-id: https://svn.fhem.de/fhem/trunk@24140 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 801726d9e..9f54b6485 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -759,10 +759,12 @@ sub _setpvCorrectionFactor { ## no critic "not used" readingsSingleUpdate($hash, $opt, $prop." (manual)", 1); + my $cfnum = (split "_", $opt)[1]; + deleteReadingspec ($hash, "pvCorrectionFactor_${cfnum}_autocalc"); + my @da; my $t = time; # aktuelle Unix-Zeit my $chour = strftime "%H", localtime($t); # aktuelle Stunde - my $fcdev = ReadingsVal($name, "currentForecastDev", ""); # aktuelles Forecast Device my $params = { hash => $hash,