From f5504a5855fa33fc55bec98760d0d1691d1f7682 Mon Sep 17 00:00:00 2001 From: nasseeder1 <nasseeder1@users.noreply.github.com> Date: Fri, 2 Jun 2023 18:12:12 +0000 Subject: [PATCH] 76_SolarForecast: contrib 0.80.2 git-svn-id: https://svn.fhem.de/fhem/trunk@27646 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index e300f7515..cd77a7818 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -136,7 +136,7 @@ BEGIN { # Versions History intern my %vNotesIntern = ( - "0.80.2" => "01.06.2023 new ctrlDebug keys epiecesCalc ", + "0.80.2" => "01.06.2023 new ctrlDebug keys epiecesCalc, change selfconsumption ", "0.80.1" => "31.05.2023 adapt _calcCAQfromAPIPercentil to calculate corrfactor like _calcCAQfromDWDcloudcover ", "0.80.0" => "28.05.2023 Support for Forecast.Solar-API (https://doc.forecast.solar/api), rename Getter solCastData to solApiData ". "rename ctrlDebug keys: solcastProcess -> apiProcess, solcastAPIcall -> apiCall ". @@ -6713,7 +6713,7 @@ sub _createSummaries { my $batout = CurrentVal ($hash, "powerbatout", 0); # aktuelle Batterieentladung my $consumption = int ($pvgen - $gfeedin + $gcon - $batin + $batout); - my $selfconsumption = int ($pvgen - $gfeedin - $batin + $batout); + my $selfconsumption = int ($pvgen - $gfeedin - $batin); $selfconsumption = $selfconsumption < 0 ? 0 : $selfconsumption; my $surplus = int ($pvgen - $consumption); # aktueller Überschuß