76_SolarForecast - Informationen/Ideen zu Weiterentwicklung und Support

Begonnen von DS_Starter, 11 Februar 2024, 14:11:00

Vorheriges Thema - Nächstes Thema

schwatter

Meine Lösung für meine Powerflow/ Energyflow ist jetzt folgende:

    use URI::Escape;
 
    foreach my $entry (@icons) {
        my ($icon_raw, $id, $fill, $should_process) = @$entry;
        next unless $should_process && $icon_raw;
        my $raw = $icon_raw;
        my $icon;

        if ($raw =~ s/:fhem$//) {
            $icon = FW_makeImage("$raw\@$fill");
            next unless defined $icon && $icon ne '';
            if ($icon =~ /<svg[^>]*>/) {
                my $svg_tag = $&;
                $svg_tag =~ s/\bwidth\s*=\s*"[^"]*"//i;
                $svg_tag =~ s/\bheight\s*=\s*"[^"]*"//i;
                my ($x,$y,$w,$h) = (0,0,100,100);
                if ($svg_tag =~ /viewBox\s*=\s*"([\d\.\-]+)\s+([\d\.\-]+)\s+([\d\.\-]+)\s+([\d\.\-]+)"/i) {
                    ($x,$y,$w,$h) = ($1,$2,$3,$4);
                } else {
                    $svg_tag =~ s/<svg\b/<svg viewBox="0 0 100 100"/i;
                }
                my $scale = 20 / ($w > $h ? $w : $h);
                my $offset_x = (20 - $w * $scale) / 2 - $x * $scale + 2;
                my $offset_y = (20 - $h * $scale) / 2 - $y * $scale + 2;
                $svg_tag =~ s/<svg\b/<svg class="icon"/ unless $svg_tag =~ /class=/;
                $svg_tag =~ s/<svg\b/<svg width="20" height="20"/i;
                $icon =~ s{<svg[^>]*>}{$svg_tag};
                $icon =~ s{(<svg[^>]*>)}{$1<g transform="translate($offset_x,$offset_y) scale($scale)">}i;
                $icon =~ s{</svg>}{</g></svg>}i;

                # --- alle <path> einfärben ---
                $icon =~ s/<path(?![^>]*fill)/<path fill="$fill"/g;
            }
        } else {
            $icon = uri_unescape($raw);
            $icon =~ s/fill="[^"]*"/fill="$fill"/g;
            $icon =~ s/<path(?![^>]*fill)/<path fill="$fill"/g;
            next unless defined $icon;
        }

        my $inner = "";
        if ($icon =~ m{<svg[^>]*>(.*)</svg>}s) {
            $inner = $1;
        } else {
            $inner = $icon;
        }

        $svg =~ s{<g id="$id"([^>]*)>}{<g id="informId_ringSVG:$id"$1>$inner};
    }

Damit kann ich FhemSVG skalieren und einfärben, sowie SVG Data-URL verwursten.
Vielleicht hilft das. Mal sehen ob es dabei bleibt, vielleicht gibt es auch eine
Lösung einfach per CSS.

Gruß schwatter

DS_Starter

Danke dir! Schaue ich mir an wie das bei mir reinpasst.

LG
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Rave Rebel

#4187
Hallo zusammen, nach dem Update auf die aktuelle Version sind fast alle Icons in der Flow Graphic winzig klein und nahezu nicht mehr sichtbar.
Wie kann ich das beheben?

Gruß Chris

DS_Starter

Hallo Chris, @ll,

deine Icon werden wegen dem gerade diskutierten neuen "Feature" der Chromium Browser Engine nicht mehr dargestellt.

Ich habe den Vorschlag von schwatter adaptiert und in das Modul eingebaut.
Ihr könnt es aus meinem contrib ziehen, restarten und freuen.  ;)

Mit meinem Edge klappt es nun wieder und hoffe auch bei euch.

LG,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

300P

Bei mir sieht es (weiter) okay aus...

RPI-Chrome / MAC-Safari:

Gruß
300P

FHEM 6.4|RPi|SMAEM|SMAInverter|SolarForecast|DbLog|DbRep|MariaDB|Buderus-MQTT_EMS|
Fritzbox|fhempy|JsonMod|HTTPMOD|Modbus ser+TCP|ESP32-Digitizer-AI_on_the_Edge|ESP32CAM usw.

Rave Rebel

Hallo Heiko,
es funktioniert mit deiner contrib Version mit Edge und Chrome wieder wie gewohnt.
Vielen Dank für die schnelle Antwort und dein großes Engagement für das Modul!

Gruß
Chris

DS_Starter

@all,

ich habe die neue Version eingecheckt und ist morgen früh im Update.
Vielen Dank nochmal an schwatter für den Imput!

LG,
Heiko
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Parallix

Bug Report:

Im Fall loadStrategy == optPower kommt es gelegentlich zu einer SOC-Prognose, die nicht mit der Erzeugungs- und Verbrauchsprognose korreliert.

Bsp.: Aktuell wird mir für das morgige "12:00 Uhr"-Bin ein SOC von 26,4 %, eine PV-Erzeugung 1,1 kWh und ein Verbrauch von 2,3 kWh prognostiziert. Für das nachfolgende "13: Uhr"-Bin ein SOC von 26,7 %, eine PV-Erzeugung von 0,6 kWh und ein Verbrauch von 1,7 kWh. Das der SOC steigt, kann nicht sein, da Verbrauch > Erzeugung und zwar nicht nur in o.g. Bins, sondern auch davor und danach.
FHEM: Debian/Testing BananaPro - AVM: 7490 (7.60) und 7591 (8.20) - Goodwe: GW25K-ET (DSP V10 / ARM V12) - Trina TSM 405: (#East, #South, #West) = (12,16,12) - BYD: 2 x HVS 7.7 (BMS V3.31-B, BMU V3.26-B) - EnOcean - Z-Wave - FS20/HMS

DS_Starter

Moin,

unterdrückst du evtl. die Anrechnung von Verbrauch mit weightOwnUse?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Parallix

Zitat von: DS_Starter am 07 Oktober 2025, 09:48:02Moin,

unterdrückst du evtl. die Anrechnung von Verbrauch mit weightOwnUse?

Nein, bei mir ist weightOwnUse sogar explizit auf 0 gesetzt.
FHEM: Debian/Testing BananaPro - AVM: 7490 (7.60) und 7591 (8.20) - Goodwe: GW25K-ET (DSP V10 / ARM V12) - Trina TSM 405: (#East, #South, #West) = (12,16,12) - BYD: 2 x HVS 7.7 (BMS V3.31-B, BMU V3.26-B) - EnOcean - Z-Wave - FS20/HMS

DS_Starter

Dann hilft nur wie gewohnt ein ctrlDebug=batteryManagement um die Sache näher zu untersuchen.
Ich gehe davon aus du hast die aktuellste Version 1.59.0 im Einsatz?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Parallix

#4196
Zitat von: DS_Starter am 07 Oktober 2025, 10:06:20Dann hilft nur wie gewohnt ein ctrlDebug=batteryManagement um die Sache näher zu untersuchen.
Ich gehe davon aus du hast die aktuellste Version 1.59.0 im Einsatz?

Meine FHEM-Installation aktualisiere ich praktisch täglich. Nur vor längeren Reisen verweile ich gerne auf dem letzten (vermeintlich) fehlerfreien Stand ;-)

ctrlDebug=batteryManagement habe ich nach o.g. Nachricht eingeschaltet und jetzt wieder ausgeschaltet. Die Debug-Infos sind angefügt.
FHEM: Debian/Testing BananaPro - AVM: 7490 (7.60) und 7591 (8.20) - Goodwe: GW25K-ET (DSP V10 / ARM V12) - Trina TSM 405: (#East, #South, #West) = (12,16,12) - BYD: 2 x HVS 7.7 (BMS V3.31-B, BMU V3.26-B) - EnOcean - Z-Wave - FS20/HMS

DS_Starter

@Parallix,

teste mal bitte die contrib Version.

Bei mir kann ich kein Problem mehr mit der Fortschreibung feststellen:

2025.10.07 13:12:03.154 1: SolCast DEBUG> ChargeOTP - The limit for grid feed-in is 4800 W
2025.10.07 13:12:03.155 1: SolCast DEBUG> Bat 01 ChargeOTP - used safety margin: 20 %
2025.10.07 13:12:03.155 1: SolCast DEBUG> Bat 01 ChargeOTP - weighted self-consumption: 0 %
2025.10.07 13:12:03.155 1: SolCast DEBUG> Bat 01 ChargeOTP - charging target: 28416 Wh, remaining: 21880 Wh -> target likely achievable? no
2025.10.07 13:12:03.156 1: SolCast DEBUG> Bat 01 ChargeOTP 07/13 - hod: 14 / 00, lc: 1, SoC S/E: 6536 / 7521 Wh, Surplus: 537 Wh, OTP: 1037 W
2025.10.07 13:12:03.156 1: SolCast DEBUG> Bat 01 ChargeOTP 07/14 - hod: 15 / 01, lc: 1, SoC S/E: 7521 / 7700 Wh, Surplus: 188 Wh, OTP: 720 W
2025.10.07 13:12:03.157 1: SolCast DEBUG> Bat 01 ChargeOTP 07/15 - hod: 16 / 02, lc: 1, SoC S/E: 7700 / 7376 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.157 1: SolCast DEBUG> Bat 01 ChargeOTP 07/16 - hod: 17 / 03, lc: 1, SoC S/E: 7376 / 7005 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.157 1: SolCast DEBUG> Bat 01 ChargeOTP 07/17 - hod: 18 / 04, lc: 1, SoC S/E: 7005 / 6425 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.158 1: SolCast DEBUG> Bat 01 ChargeOTP 07/18 - hod: 19 / 05, lc: 1, SoC S/E: 6425 / 5807 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.158 1: SolCast DEBUG> Bat 01 ChargeOTP 07/19 - hod: 20 / 06, lc: 1, SoC S/E: 5807 / 5154 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.159 1: SolCast DEBUG> Bat 01 ChargeOTP 07/20 - hod: 21 / 07, lc: 1, SoC S/E: 5154 / 4499 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.159 1: SolCast DEBUG> Bat 01 ChargeOTP 07/21 - hod: 22 / 08, lc: 1, SoC S/E: 4499 / 3758 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.159 1: SolCast DEBUG> Bat 01 ChargeOTP 07/22 - hod: 23 / 09, lc: 1, SoC S/E: 3758 / 3027 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.160 1: SolCast DEBUG> Bat 01 ChargeOTP 07/23 - hod: 24 / 10, lc: 1, SoC S/E: 3027 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.160 1: SolCast DEBUG> Bat 01 ChargeOTP 08/00 - hod: 01 / 11, lc: 1, SoC S/E: 5683 / 5134 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.161 1: SolCast DEBUG> Bat 01 ChargeOTP 08/01 - hod: 02 / 12, lc: 1, SoC S/E: 5134 / 4619 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.161 1: SolCast DEBUG> Bat 01 ChargeOTP 08/02 - hod: 03 / 13, lc: 1, SoC S/E: 4619 / 4107 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.162 1: SolCast DEBUG> Bat 01 ChargeOTP 08/03 - hod: 04 / 14, lc: 1, SoC S/E: 4107 / 3587 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.162 1: SolCast DEBUG> Bat 01 ChargeOTP 08/04 - hod: 05 / 15, lc: 1, SoC S/E: 3587 / 3078 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.162 1: SolCast DEBUG> Bat 01 ChargeOTP 08/05 - hod: 06 / 16, lc: 1, SoC S/E: 3078 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.163 1: SolCast DEBUG> Bat 01 ChargeOTP 08/06 - hod: 07 / 17, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.163 1: SolCast DEBUG> Bat 01 ChargeOTP 08/07 - hod: 08 / 18, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.163 1: SolCast DEBUG> Bat 01 ChargeOTP 08/08 - hod: 09 / 19, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.164 1: SolCast DEBUG> Bat 01 ChargeOTP 08/09 - hod: 10 / 20, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.164 1: SolCast DEBUG> Bat 01 ChargeOTP 08/10 - hod: 11 / 21, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.165 1: SolCast DEBUG> Bat 01 ChargeOTP 08/11 - hod: 12 / 22, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.165 1: SolCast DEBUG> Bat 01 ChargeOTP 08/12 - hod: 13 / 23, lc: 1, SoC S/E: 2842 / 3514 Wh, Surplus: 707 Wh, OTP: 848 W
2025.10.07 13:12:03.166 1: SolCast DEBUG> Bat 01 ChargeOTP 08/13 - hod: 14 / 24, lc: 1, SoC S/E: 3514 / 3562 Wh, Surplus: 51 Wh, OTP: 720 W
2025.10.07 13:12:03.166 1: SolCast DEBUG> Bat 01 ChargeOTP 08/14 - hod: 15 / 25, lc: 1, SoC S/E: 3562 / 4140 Wh, Surplus: 608 Wh, OTP: 730 W
2025.10.07 13:12:03.167 1: SolCast DEBUG> Bat 01 ChargeOTP 08/15 - hod: 16 / 26, lc: 1, SoC S/E: 4140 / 4085 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.167 1: SolCast DEBUG> Bat 01 ChargeOTP 08/16 - hod: 17 / 27, lc: 1, SoC S/E: 4085 / 3959 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.168 1: SolCast DEBUG> Bat 01 ChargeOTP 08/17 - hod: 18 / 28, lc: 1, SoC S/E: 3959 / 3374 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.168 1: SolCast DEBUG> Bat 01 ChargeOTP 08/18 - hod: 19 / 29, lc: 1, SoC S/E: 3374 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.169 1: SolCast DEBUG> Bat 01 ChargeOTP 08/19 - hod: 20 / 30, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.169 1: SolCast DEBUG> Bat 01 ChargeOTP 08/20 - hod: 21 / 31, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.169 1: SolCast DEBUG> Bat 01 ChargeOTP 08/21 - hod: 22 / 32, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.170 1: SolCast DEBUG> Bat 01 ChargeOTP 08/22 - hod: 23 / 33, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.170 1: SolCast DEBUG> Bat 01 ChargeOTP 08/23 - hod: 24 / 34, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.171 1: SolCast DEBUG> Bat 01 ChargeOTP 09/00 - hod: 01 / 35, lc: 1, SoC S/E: 5683 / 5134 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.171 1: SolCast DEBUG> Bat 01 ChargeOTP 09/01 - hod: 02 / 36, lc: 1, SoC S/E: 5134 / 4619 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.172 1: SolCast DEBUG> Bat 01 ChargeOTP 09/02 - hod: 03 / 37, lc: 1, SoC S/E: 4619 / 4107 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.172 1: SolCast DEBUG> Bat 01 ChargeOTP 09/03 - hod: 04 / 38, lc: 1, SoC S/E: 4107 / 3587 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.173 1: SolCast DEBUG> Bat 01 ChargeOTP 09/04 - hod: 05 / 39, lc: 1, SoC S/E: 3587 / 3078 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.173 1: SolCast DEBUG> Bat 01 ChargeOTP 09/05 - hod: 06 / 40, lc: 1, SoC S/E: 3078 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.174 1: SolCast DEBUG> Bat 01 ChargeOTP 09/06 - hod: 07 / 41, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.174 1: SolCast DEBUG> Bat 01 ChargeOTP 09/07 - hod: 08 / 42, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.175 1: SolCast DEBUG> Bat 01 ChargeOTP 09/08 - hod: 09 / 43, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.175 1: SolCast DEBUG> Bat 01 ChargeOTP 09/09 - hod: 10 / 44, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.175 1: SolCast DEBUG> Bat 01 ChargeOTP 09/10 - hod: 11 / 45, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.176 1: SolCast DEBUG> Bat 01 ChargeOTP 09/11 - hod: 12 / 46, lc: 1, SoC S/E: 2842 / 3277 Wh, Surplus: 458 Wh, OTP: 720 W
2025.10.07 13:12:03.176 1: SolCast DEBUG> Bat 01 ChargeOTP 09/12 - hod: 13 / 47, lc: 1, SoC S/E: 3277 / 3963 Wh, Surplus: 722 Wh, OTP: 866 W
2025.10.07 13:12:03.176 1: SolCast DEBUG> Bat 01 ChargeOTP 09/13 - hod: 14 / 48, lc: 1, SoC S/E: 3963 / 4808 Wh, Surplus: 890 Wh, OTP: 1068 W
2025.10.07 13:12:03.177 1: SolCast DEBUG> Bat 01 ChargeOTP 09/14 - hod: 15 / 49, lc: 1, SoC S/E: 4808 / 5682 Wh, Surplus: 920 Wh, OTP: 1104 W
2025.10.07 13:12:03.177 1: SolCast DEBUG> Bat 01 ChargeOTP 09/15 - hod: 16 / 50, lc: 1, SoC S/E: 5682 / 5805 Wh, Surplus: 129 Wh, OTP: 720 W
2025.10.07 13:12:03.178 1: SolCast DEBUG> Bat 01 ChargeOTP 09/16 - hod: 17 / 51, lc: 1, SoC S/E: 5805 / 6284 Wh, Surplus: 504 Wh, OTP: 720 W
2025.10.07 13:12:03.178 1: SolCast DEBUG> Bat 01 ChargeOTP 09/17 - hod: 18 / 52, lc: 1, SoC S/E: 6284 / 5793 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.179 1: SolCast DEBUG> Bat 01 ChargeOTP 09/18 - hod: 19 / 53, lc: 1, SoC S/E: 5793 / 5185 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.179 1: SolCast DEBUG> Bat 01 ChargeOTP 09/19 - hod: 20 / 54, lc: 1, SoC S/E: 5185 / 4532 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.179 1: SolCast DEBUG> Bat 01 ChargeOTP 09/20 - hod: 21 / 55, lc: 1, SoC S/E: 4532 / 3877 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.180 1: SolCast DEBUG> Bat 01 ChargeOTP 09/21 - hod: 22 / 56, lc: 1, SoC S/E: 3877 / 3136 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.180 1: SolCast DEBUG> Bat 01 ChargeOTP 09/22 - hod: 23 / 57, lc: 1, SoC S/E: 3136 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W
2025.10.07 13:12:03.181 1: SolCast DEBUG> Bat 01 ChargeOTP 09/23 - hod: 24 / 58, lc: 1, SoC S/E: 2842 / 2842 Wh, Surplus: 0 Wh, OTP: 5040 W

2842 Wh sind bei mir lowSoC, darunter geht es lt.Prognose nicht.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Parallix

#4198
Zitat von: DS_Starter am 07 Oktober 2025, 13:15:52@Parallix,

teste mal bitte die contrib Version.

Bei mir kann ich kein Problem mehr mit der Fortschreibung feststellen:

2025.10.07 13:12:03.154 1: SolCast DEBUG> ChargeOTP - The limit for grid feed-in is 4800 W
2025.10.07 13:12:03.155 1: SolCast DEBUG> Bat 01 ChargeOTP - used safety margin: 20 %

Diese Werte sehen bei mir anders aus: grid feed-in: 30000 W, safety margin: 0 %

Inzwischen haben sich die DWD-Daten geändert und das Problem taucht jetzt nicht mehr mit der Release-Version auf. Insofern ist ein Testen aktuell nicht sinnvoll.

@Heiko: Konntest Du denn einen vermeintlichen Bug identifizieren? Wenn ich das richtig sehe, dann enthält der Code jetzt mehr mit Sicherheitsabfragen.

Edit: Mir ist mit der aktuellen Release-Version noch etwas aufgefallen. Aktuell übertrifft (bei mir) die Realität die Ertrags- und SOC-Prognose und in 10 Minuten ist das aktuelle Bin zu Ende. Dennoch wird für das aktuelle Bin ein viel zu niedriger SOC prognostiziert. Kann es sein, dass Du die Verbrauchsschätzung zeitlich nicht gewichtet für die SOC-Prognose verwendest?
FHEM: Debian/Testing BananaPro - AVM: 7490 (7.60) und 7591 (8.20) - Goodwe: GW25K-ET (DSP V10 / ARM V12) - Trina TSM 405: (#East, #South, #West) = (12,16,12) - BYD: 2 x HVS 7.7 (BMS V3.31-B, BMU V3.26-B) - EnOcean - Z-Wave - FS20/HMS

DS_Starter

Ich denke, die Fortschreibung über mehrere Tage ist bei OTP etwas tricki.
Muß man beobachten.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter