From aa1c11711fcd4dea7e47634cb05b10a1dbc5f107 Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Mon, 24 Feb 2025 17:53:57 +0000 Subject: [PATCH] 76_SolarForecast: contrib 1.46.4 git-svn-id: https://svn.fhem.de/fhem/trunk@29698 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 2c58ee2f2..720c00d50 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -15722,7 +15722,7 @@ sub _flowGraphic { my $node2bat = $batin; if ($batin) { # Batterie wird geladen - my $home2bat = $batin - ($pv2node + $pv2bat); + my $home2bat = $batin - ($ppall + $pv2node + $pv2bat); # V 1.46.4: add $ppall if ($home2bat > 1) { # Batterieladung wird anteilig aus Hausnetz geladen $node2bat -= $home2bat; @@ -15763,7 +15763,8 @@ sub _flowGraphic { ###################################################### my $pnodesum = __normDecPlaces ($ppall + $pv2node); # Erzeugung Summe im Knoten $node2bat -= $pv2bat; # Knoten-Bat -> abzüglich Direktladung (pv2bat) - $pnodesum -= $node2bat if($node2bat < 0); # V 1.46.4 - Batterie ist voll und SolarLader liefert an Knoten + #Log3 ($name, 1, "$name - pv2bat: $pv2bat, node2bat:$node2bat "); + $pnodesum += $node2bat < 0 ? abs $node2bat : - $node2bat; # V 1.46.4 - Batterie ist voll und SolarLader liefert an Knoten #my $node2home = __normDecPlaces ($cself + $ppall); # Energiefluß vom Knoten zum Haus: Selbstverbrauch + alle Producer (Batterie-In/Solar-Ladegeräte sind nicht in SelfConsumtion enthalten) my $node2home = __normDecPlaces ($pnodesum - $node2grid); # V 1.46.4 - Energiefluß vom Knoten zum Haus