76_SolarForecast - Informationen/Ideen zu Weiterentwicklung und Support

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

Vorheriges Thema - Nächstes Thema

SouzA

Hallo,

zunächst einmal vielen Dank für dieses tolle Modul. Ich find's klasse! :D

Seit dem letzten Update wird mir die Batterieladung in der Grafik allerdings immer mit 0% angezeigt.
Die Readings zeigen einen anderen Wert.
Was und wo muss man etwas anpassen?

Vielen Dank für eine kurze Rückmeldung.

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

DS_Starter

#2146
Moin,

@SouzA,
freut mich, vielen Dank. :)
im setupBatteryDevXX das cap richtig! (Hilfetext genau lesen) angeben. Dann klappts auch wieder mit der Darstellung.

@Peter,
ZitatDabei ist mir die Frage aufgekommen, ob ich irgendwo angeben kann, mit welcher maximalen Leistung die Batterie(n) geladen und/oder entladen werden können.
wie 300P geschrieben hat, ist jede Batterieanlage spezifisch. Bei meiner Victron kann ich das auch nicht "direkt" steuern , sondern nur über den Umweg Grid Setpoint, d.h. über die Angabe dass X zwangseingespeist wird und der Rest verbraucht bzw. in der Bat gespeichert. Durch eine dynamische Berechnung kann der Grid Setpoint geschickt so gesetzt werden, dass die gewünschte Steuerung umgesetzt wird. Habe ich im Wiki beschrieben.

Bzgl. der SoC-Prognose kann man sich ctrlDebug=batteryManagement setzen. Dann bekommt man eijne Ausgabe welche die Berechnungsschritte der Prognose zeigt. Daran sollte man erkennen weshalb dieser Wert prognostiziert wird. Sieht etwa so aus:

...
2025.03.04 08:45:28.024 1: SolCast DEBUG> Bat 01 relLoad 04 08 -> 0 (currsoc: 70 %, SoCfc: 67.7 %, soc: 19233 Wh, pvfc: 412, confc: 592, Surp Day: 29833 Wh, Curr PV: 1693 W, Curr Consumption: 512 W, Limit: 7080 W)
2025.03.04 08:45:28.024 1: SolCast DEBUG> Bat 01 relLoad 04 09 -> 0 (SoCfc: 65.6 %, soc: 18632 Wh, pvfc: 2777, confc: 541, Surp Day: 27597 Wh)
2025.03.04 08:45:28.024 1: SolCast DEBUG> Bat 01 relLoad 04 10 -> 0 (SoCfc: 62.7 %, soc: 17813 Wh, pvfc: 5115, confc: 737, Surp Day: 23219 Wh)
2025.03.04 08:45:28.025 1: SolCast DEBUG> Bat 01 relLoad 04 11 -> 0 (SoCfc: 56.8 %, soc: 16127 Wh, pvfc: 5747, confc: 1517, Surp Day: 18989 Wh)
2025.03.04 08:45:28.025 1: SolCast DEBUG> Bat 01 relLoad 04 12 -> 1 (SoCfc: 70.4 %, soc: 19992 Wh, pvfc: 5527, confc: 1232, Surp Day: 14694 Wh)
2025.03.04 08:45:28.025 1: SolCast DEBUG> Bat 01 relLoad 04 13 -> 1 (SoCfc: 86.2 %, soc: 24484 Wh, pvfc: 6063, confc: 1072, Surp Day: 9703 Wh)
2025.03.04 08:45:28.026 1: SolCast DEBUG> Bat 01 relLoad 04 14 -> 0 (SoCfc: 82.5 %, soc: 23443 Wh, pvfc: 5115, confc: 937, Surp Day: 5525 Wh)
2025.03.04 08:45:28.026 1: SolCast DEBUG> Bat 01 relLoad 04 15 -> 1 (SoCfc: 92.9 %, soc: 26401 Wh, pvfc: 3933, confc: 646, Surp Day: 2238 Wh)
2025.03.04 08:45:28.026 1: SolCast DEBUG> Bat 01 relLoad 04 16 -> 1 (SoCfc: 99.1 %, soc: 28174 Wh, pvfc: 2666, confc: 696, Surp Day: 268 Wh)
2025.03.04 08:45:28.027 1: SolCast DEBUG> Bat 01 relLoad 04 17 -> 1 (SoCfc: 99.1 %, soc: 28160 Wh, pvfc: 577, confc: 592, Surp Day: 0 Wh)
2025.03.04 08:45:28.027 1: SolCast DEBUG> Bat 01 relLoad 04 18 -> 1 (SoCfc: 96.7 %, soc: 27474 Wh, pvfc: 0, confc: 762, Surp Day: 0 Wh)
2025.03.04 08:45:28.027 1: SolCast DEBUG> Bat 01 relLoad 04 19 -> 1 (SoCfc: 93.3 %, soc: 26504 Wh, pvfc: 0, confc: 1078, Surp Day: 0 Wh)
2025.03.04 08:45:28.028 1: SolCast DEBUG> Bat 01 relLoad 04 20 -> 1 (SoCfc: 91.1 %, soc: 25882 Wh, pvfc: 0, confc: 691, Surp Day: 0 Wh)
2025.03.04 08:45:28.028 1: SolCast DEBUG> Bat 01 relLoad 04 21 -> 1 (SoCfc: 88.9 %, soc: 25251 Wh, pvfc: 0, confc: 701, Surp Day: 0 Wh)
2025.03.04 08:45:28.028 1: SolCast DEBUG> Bat 01 relLoad 04 22 -> 1 (SoCfc: 86.8 %, soc: 24655 Wh, pvfc: 0, confc: 662, Surp Day: 0 Wh)
2025.03.04 08:45:28.028 1: SolCast DEBUG> Bat 01 relLoad 04 23 -> 1 (SoCfc: 84.9 %, soc: 24123 Wh, pvfc: 0, confc: 591, Surp Day: 0 Wh)
2025.03.04 08:45:28.029 1: SolCast DEBUG> Bat 01 relLoad 05 00 -> 1 (SoCfc: 83.1 %, soc: 23610 Wh, pvfc: 0, confc: 570, Surp Day: 0 Wh)
2025.03.04 08:45:28.029 1: SolCast DEBUG> Bat 01 relLoad 05 01 -> 1 (SoCfc: 81.6 %, soc: 23177 Wh, pvfc: 0, confc: 481, Surp Day: 0 Wh)
2025.03.04 08:45:28.029 1: SolCast DEBUG> Bat 01 relLoad 05 02 -> 1 (SoCfc: 80.0 %, soc: 22729 Wh, pvfc: 0, confc: 498, Surp Day: 0 Wh)
2025.03.04 08:45:28.030 1: SolCast DEBUG> Bat 01 relLoad 05 03 -> 1 (SoCfc: 78.4 %, soc: 22289 Wh, pvfc: 0, confc: 489, Surp Day: 0 Wh)
2025.03.04 08:45:28.030 1: SolCast DEBUG> Bat 01 relLoad 05 04 -> 1 (SoCfc: 76.9 %, soc: 21860 Wh, pvfc: 0, confc: 477, Surp Day: 0 Wh)
2025.03.04 08:45:28.030 1: SolCast DEBUG> Bat 01 relLoad 05 05 -> 1 (SoCfc: 75.4 %, soc: 21426 Wh, pvfc: 0, confc: 482, Surp Day: 0 Wh)
2025.03.04 08:45:28.031 1: SolCast DEBUG> Bat 01 relLoad 05 06 -> 1 (SoCfc: 75.4 %, soc: 21416 Wh, pvfc: 0, confc: 11, Surp Day: 0 Wh)
2025.03.04 08:45:28.031 1: SolCast DEBUG> Bat 01 relLoad 05 07 -> 0 (SoCfc: 73.2 %, soc: 20802 Wh, pvfc: 1143, confc: 553, Surp Day: 26667
...

Die Ausgaben mit "relLoad" sind die relevanten (es gibt auch andere). SoCfc ist der SoC Forecast (%) in dem Schritt. Die Daten dahinter sind die Werte die die Prognose beeinflussen, pvfc - PV Forecast, confc - Verbrauchsvorhersage, Surp Day - vorr. PV Überschuß für den Resttag

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

SouzA

Zitat von: DS_Starter am 04 März 2025, 08:53:55Moin,

@SouzA,
freut mich, vielen Dank. :)
im setupBatteryDevXX das cap richtig! (Hilfetext genau lesen) angeben. Dann klappts auch wieder mit der Darstellung.

Ja, das war's. Vielen Dank für den Support!
Ich hätte da jetzt nicht mehr gesucht, weil es ja schon lief (>1 Jahr)...

Thx & bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

peterboeckmann

Hallo Heiko und 300P,

ich danke Euch für die schnellen Antworten.

Das Beispiel im Wiki habe ich mir angesehen, aber nicht komplett durchdrungen. Vielleicht deshalb, weil ich meine Batterieladung ohnehin nicht (so richtig gar nicht, auch nicht indirekt) steuern kann.
Ich hatte nur gehofft, die modulinterne SoC-Prognose mit der Angabe der max. Ent-/Ladeleistung unterstützen zu können.


Zitat von: DS_Starter am 04 März 2025, 08:53:55Die Ausgaben mit "relLoad" sind die relevanten (es gibt auch andere). SoCfc ist der SoC Forecast (%) in dem Schritt. Die Daten dahinter sind die Werte die die Prognose beeinflussen, pvfc - PV Forecast, confc - Verbrauchsvorhersage, Surp Day - vorr. PV Überschuß für den Resttag

Das sieht bei mir so aus:
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 09 -> 0 (currsoc: 15 %, SoCfc: 5.0 %, soc: 350 Wh, pvfc: 2622, confc: 792, Surp Day: 15528 Wh, Curr PV: 2291 W, Curr Consumption: 2709 W, Limit: 10000 W)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 10 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 3473, confc: 1055, Surp Day: 13110 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 11 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 3908, confc: 1284, Surp Day: 10486 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 12 -> 1 (SoCfc: 47.7 %, soc: 3339 Wh, pvfc: 4849, confc: 1528, Surp Day: 7165 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 13 -> 1 (SoCfc: 87.7 %, soc: 6142 Wh, pvfc: 4543, confc: 1429, Surp Day: 4051 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 14 -> 0 (SoCfc: 70.9 %, soc: 4964 Wh, pvfc: 3002, confc: 1060, Surp Day: 2109 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 15 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 4111, confc: 1073, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 16 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 1389, confc: 700, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 17 -> 1 (SoCfc: 94.3 %, soc: 6601 Wh, pvfc: 257, confc: 700, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 18 -> 1 (SoCfc: 84.4 %, soc: 5908 Wh, pvfc: 0, confc: 770, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 19 -> 1 (SoCfc: 76.4 %, soc: 5348 Wh, pvfc: 0, confc: 622, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 20 -> 1 (SoCfc: 68.0 %, soc: 4763 Wh, pvfc: 0, confc: 650, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 21 -> 1 (SoCfc: 60.5 %, soc: 4232 Wh, pvfc: 0, confc: 590, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 22 -> 1 (SoCfc: 53.5 %, soc: 3742 Wh, pvfc: 0, confc: 545, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 23 -> 1 (SoCfc: 46.7 %, soc: 3270 Wh, pvfc: 0, confc: 525, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 00 -> 1 (SoCfc: 40.6 %, soc: 2839 Wh, pvfc: 0, confc: 479, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 01 -> 1 (SoCfc: 34.0 %, soc: 2382 Wh, pvfc: 0, confc: 508, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 02 -> 1 (SoCfc: 26.8 %, soc: 1875 Wh, pvfc: 0, confc: 563, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 03 -> 1 (SoCfc: 20.4 %, soc: 1428 Wh, pvfc: 0, confc: 497, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 04 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 466, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 05 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 463, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 06 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 13, confc: 648, Surp Day: 27777 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 07 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 386, confc: 649, Surp Day: 27391 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 08 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 1198, confc: 938, Surp Day: 26193 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 09 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 2830, confc: 792, Surp Day: 23363 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 10 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 4316, confc: 1055, Surp Day: 19047 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 11 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 1889, confc: 1284, Surp Day: 17158 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 12 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 4260, confc: 1528, Surp Day: 12898 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 13 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 4220, confc: 1429, Surp Day: 8678 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 14 -> 1 (SoCfc: 40.0 %, soc: 2803 Wh, pvfc: 3786, confc: 1060, Surp Day: 4892 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 15 -> 1 (SoCfc: 61.3 %, soc: 4291 Wh, pvfc: 2726, confc: 1073, Surp Day: 2166 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 16 -> 1 (SoCfc: 76.0 %, soc: 5319 Wh, pvfc: 1842, confc: 700, Surp Day: 324 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 17 -> 1 (SoCfc: 71.2 %, soc: 4981 Wh, pvfc: 324, confc: 700, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 18 -> 1 (SoCfc: 61.3 %, soc: 4288 Wh, pvfc: 0, confc: 770, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 19 -> 1 (SoCfc: 53.3 %, soc: 3728 Wh, pvfc: 0, confc: 622, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 20 -> 1 (SoCfc: 44.9 %, soc: 3143 Wh, pvfc: 0, confc: 650, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 21 -> 1 (SoCfc: 37.3 %, soc: 2612 Wh, pvfc: 0, confc: 590, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 22 -> 1 (SoCfc: 30.3 %, soc: 2122 Wh, pvfc: 0, confc: 545, Surp Day: 0 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 05 23 -> 1 (SoCfc: 23.6 %, soc: 1650 Wh, pvfc: 0, confc: 525, Surp Day: 0 Wh)

Lese ich das alles richtig?
Für die 10-Uhr-Stunde wird da 3473Wh Erzeugung und 1055Wh Verbrauch prognostiziert, oder?
Demnach müssten doch ca. 2400 Wh in die Batterie geladen werden, trotzdem ist der SoCfc um 11 gleich dem um 10 Uhr.

Abgesehen davon sollte doch der SoCfc für die 10-Uhr-Stunde über dem currsoc der 9-Uhr-Stunde liegen.

Und von 11-12 Uhr "springt" der SoCfc dann hoch auf 47,7%, also um über 3000Wh. Und genau das ist bei meinem Speicher nicht realistisch möglich, da die max. Ent-/Ladeleistung nur 2580W beträgt.

In der 9-Uhr-Zeile steht ganz hinten "Limit: 10000 W". Das ist wohl die Nennleistung des Wechselrichters. Bei mir kann die Batterie leider deutlich weniger.

Ich hoffe, ich hab jetzt nicht zu viel "wirres Zeug" geschrieben. Vielleicht erklärt das, woher mein Gedanke kommt, die Ladeleistung noch anzugeben.


Bitte versteht das nicht als Angriff. Ich möchte hauptsächlich verstehen und ggf. Anregungen zur Optimierung geben.

Danke und Grüße,
Peter

300P

Na dann zeig uns mal dein Batterie-Device.
Vielleicht erkennt man daran was. 😉
Gruß
300P
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.

DS_Starter

#2150
Hallo Peter,

ZitatLese ich das alles richtig?
Für die 10-Uhr-Stunde wird da 3473Wh Erzeugung und 1055Wh Verbrauch prognostiziert, oder?
Demnach müssten doch ca. 2400 Wh in die Batterie geladen werden, trotzdem ist der SoCfc um 11 gleich dem um 10 Uhr.

Die Sichtweise wäre völlig richtig wenn es für diese Zeit eine Ladefreigabe gäbe. Die ist aber nicht gegeben. Das sieht man an "relLoad XX XX -> 0" (relLoad = release Load).
D.h. das Modul geht davon aus, dass deswegen keine Aufladung erfolgt, also Standby oder Entladung.

Allerdings muß ich die Stelle nochmal prüfen unter dem Gesichtspunkt, dass in der Stunde ein effektiver Überschuß vorhanden ist und demnach die Bat im Standby verbleiben sollte und effektiv kein Entladen erfährt.

2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 09 -> 0 (currsoc: 15 %, SoCfc: 5.0 %, soc: 350 Wh, pvfc: 2622, confc: 792, Surp Day: 15528 Wh, Curr PV: 2291 W, Curr Consumption: 2709 W, Limit: 10000 W)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 10 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 3473, confc: 1055, Surp Day: 13110 Wh)
2025.03.04 09:44:21 1: SolarForecast DEBUG> Bat 01 relLoad 04 11 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 3908, confc: 1284, Surp Day: 10486 Wh)

ZitatAbgesehen davon sollte doch der SoCfc für die 10-Uhr-Stunde über dem currsoc der 9-Uhr-Stunde liegen.
Wie oben. Weil keine Aufladung freigegeben ist, bleibt der SoCfc der Stunde 10 bei der Prognose von Stunde 09.

ZitatIn der 9-Uhr-Zeile steht ganz hinten "Limit: 10000 W". Das ist wohl die Nennleistung des Wechselrichters. Bei mir kann die Batterie leider deutlich weniger.
Das ist kein Problem. Diese Angabe ist für die Berechnung der Lade-Freigabe unter Berücksichtigung eines Limits (70% Regel, 60% Regel, VNB-Limit ...) relevant.

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

DS_Starter

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

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.

peterboeckmann

#2153
Zitat von: 300P am 04 März 2025, 11:19:48Na dann zeig uns mal dein Batterie-Device.
Vielleicht erkennt man daran was. 😉
Gruß
300P

Das sieht so aus:
attr SolarForecast setupBatteryDev01 Enphase pin=StorageFeedIn:W intotal=StorageWhCharged:Wh pout=StorageConsumption:W outtotal=StorageWhDischarged:Wh charge=StorageFullPercent cap=7000 intotal=StorageWhCharged:Wh outtotal=StorageWhDischarged:Wh show=1 asynchron=1
attr Solarforecast ctrlBatSocManagement01 lowSoc=5 upSoC=50

Grüße,
Peter

300P

Hallo Peter,

da ist etwas doppelt darin eingerichtet, kann sein das es daran liegt: (zu viele Parameter  :o )

attr SolarForecast setupBatteryDev01 Enphase pin=StorageFeedIn:W intotal=StorageWhCharged:Wh pout=StorageConsumption:W outtotal=StorageWhDischarged:Wh charge=StorageFullPercent cap=7000 intotal=StorageWhCharged:Wh outtotal=StorageWhDischarged:Wh show=1 asynchron=1
attr Solarforecast ctrlBatSocManagement01 lowSoc=5 upSoC=50

Und Dein lowSoc ist evtl. auch etwas zu klein gewählt - geht auf die Batterielebensdauer  ;) 

Bitte mal wie folgt anpassen:
attr SolarForecast setupBatteryDev01 Enphase pin=StorageFeedIn:W pout=StorageConsumption:W intotal=StorageWhCharged:Wh outtotal=StorageWhDischarged:Wh charge=StorageFullPercent cap=7000 show=1 asynchron=1
attr Solarforecast ctrlBatSocManagement01 lowSoc=10 upSoC=50 maxSoC=95 careCycle=20
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.

DS_Starter

@Peter,

ich habe auch etwas gemacht:

ZitatAllerdings muß ich die Stelle nochmal prüfen unter dem Gesichtspunkt, dass in der Stunde ein effektiver Überschuß vorhanden ist und demnach die Bat im Standby verbleiben sollte und effektiv kein Entladen erfährt.

Das habe ich gemacht und ein Updaqte in mein contrib geladen.
Zieh dir bitte die Version, starte FHEM neu und erstelle nochmal das Debuglog. Sollte besser aussehen bzgl. Standby vs. Entladen.

@300P, kannst du auch gerne testen.

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

peterboeckmann

#2156
Hallo 300P,

danke für die Kontrolle und Deine Anmerkungen.

Zitat von: 300P am 04 März 2025, 12:53:13da ist etwas doppelt darin eingerichtet, kann sein das es daran liegt: (zu viele Parameter  :o )
-> korrigiert. Vielen Dank!

Zitat von: 300P am 04 März 2025, 12:53:13Und Dein lowSoc ist evtl. auch etwas zu klein gewählt - geht auf die Batterielebensdauer  ;) 
--> Darauf habe ich leider keinen Einfluss. Das steuert das Enphase Gateway selbst.
Ich habe ihn nur gesetzt, damit die Anzeige in fhem realistischer ist. Tatsächlich wird der SoC sogar häufig bis 3% runter gefahren.

Zitat von: DS_Starter am 04 März 2025, 12:55:42Zieh dir bitte die Version, starte FHEM neu und erstelle nochmal das Debuglog. Sollte besser aussehen bzgl. Standby vs. Entladen.
-> Auch Dir vielen Dank für den immer wieder schnellen Service! Ich habe die Datei gezogen und neu gestartet. Ich werde es nachher mal genauer ansehen.

Danke und Grüße,
Peter

Edit: Hier der aktuelle Log-Auszug. Sieht aus, als wäre die Ladefreigabe jetzt immer an?
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 13 -> 1 (currsoc: 99 %, SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 4543, confc: 1429, Surp Day: 3574 Wh, Curr PV: 3794 W, Curr Consumption: 3378 W, Limit: 10000 W)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 14 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 3571, confc: 1060, Surp Day: 1063 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 15 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 2538, confc: 1073, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 16 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 1252, confc: 700, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 17 -> 1 (SoCfc: 93.4 %, soc: 6540 Wh, pvfc: 286, confc: 700, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 18 -> 1 (SoCfc: 81.2 %, soc: 5684 Wh, pvfc: 0, confc: 770, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 19 -> 1 (SoCfc: 71.3 %, soc: 4993 Wh, pvfc: 0, confc: 622, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 20 -> 1 (SoCfc: 61.0 %, soc: 4271 Wh, pvfc: 0, confc: 650, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 21 -> 1 (SoCfc: 51.6 %, soc: 3615 Wh, pvfc: 0, confc: 590, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 22 -> 1 (SoCfc: 43.0 %, soc: 3009 Wh, pvfc: 0, confc: 545, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 04 23 -> 1 (SoCfc: 34.7 %, soc: 2426 Wh, pvfc: 0, confc: 525, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 00 -> 1 (SoCfc: 27.1 %, soc: 1894 Wh, pvfc: 0, confc: 479, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 01 -> 1 (SoCfc: 19.0 %, soc: 1330 Wh, pvfc: 0, confc: 508, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 02 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 563, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 03 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 497, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 04 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 466, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 05 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 463, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 06 -> 1 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 0, confc: 648, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 07 -> 1 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 356, confc: 649, Surp Day: 27093 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 08 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 1212, confc: 938, Surp Day: 25881 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 09 -> 1 (SoCfc: 40.5 %, soc: 2835 Wh, pvfc: 2798, confc: 815, Surp Day: 23083 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 10 -> 1 (SoCfc: 83.7 %, soc: 5857 Wh, pvfc: 4359, confc: 1001, Surp Day: 18724 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 11 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 4810, confc: 819, Surp Day: 13914 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 12 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 1826, confc: 1481, Surp Day: 12088 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 13 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 4342, confc: 1429, Surp Day: 7746 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 14 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 3880, confc: 1060, Surp Day: 3866 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 15 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 2817, confc: 1073, Surp Day: 1049 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 16 -> 1 (SoCfc: 100.0 %, soc: 6998 Wh, pvfc: 698, confc: 700, Surp Day: 351 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 17 -> 1 (SoCfc: 94.4 %, soc: 6610 Wh, pvfc: 351, confc: 700, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 18 -> 1 (SoCfc: 82.2 %, soc: 5754 Wh, pvfc: 0, confc: 770, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 19 -> 1 (SoCfc: 72.3 %, soc: 5063 Wh, pvfc: 0, confc: 622, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 20 -> 1 (SoCfc: 62.0 %, soc: 4341 Wh, pvfc: 0, confc: 650, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 21 -> 1 (SoCfc: 52.6 %, soc: 3685 Wh, pvfc: 0, confc: 590, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 22 -> 1 (SoCfc: 44.0 %, soc: 3079 Wh, pvfc: 0, confc: 545, Surp Day: 0 Wh)
2025.03.04 13:25:17 1: SolarForecast DEBUG> Bat 01 relLoad 05 23 -> 1 (SoCfc: 35.7 %, soc: 2496 Wh, pvfc: 0, confc: 525, Surp Day: 0 Wh)

DS_Starter

ZitatSieht aus, als wäre die Ladefreigabe jetzt immer an?
Das täuscht weil wir jetzt schon über den Zenit bzw. Max-Value sind.
Aber damit es um diese Zeit für den kommenden Tag transparenter aussieht habe ich noch etwas angepasst.
Liegt im contrib.
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

DS_Starter

Übrigens zeigt der KI Umbau Wirkung. Es gibt deutlich mehr KI Treffer bei mir.
Ein Mouse-Over über den KI-Status zeigt nun auch die benötigte Zeit für eine KI-Anfrage durch das Modul.
Im "get .. valDecTree aiRuleStrings" sieht man die Zeit jetzt auch.
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

peterboeckmann

Hallo Heiko,

ich habe die neue Version gezogen. Jetzt ist die Ladeempfehlung nicht immer an:

2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 13 -> 1 (currsoc: 100 %, SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 4543, confc: 1429, Surp Day: 2450 Wh, Curr PV: 4478 W, Curr Consumption: 3665 W, Limit: 10000 W)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 14 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 3604, confc: 1060, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 15 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 3804, confc: 1073, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 16 -> 1 (SoCfc: 100.0 %, soc: 7000 Wh, pvfc: 1252, confc: 700, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 17 -> 1 (SoCfc: 93.4 %, soc: 6540 Wh, pvfc: 286, confc: 700, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 18 -> 1 (SoCfc: 81.2 %, soc: 5684 Wh, pvfc: 0, confc: 770, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 19 -> 1 (SoCfc: 71.3 %, soc: 4993 Wh, pvfc: 0, confc: 622, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 20 -> 1 (SoCfc: 61.0 %, soc: 4271 Wh, pvfc: 0, confc: 650, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 21 -> 1 (SoCfc: 51.6 %, soc: 3615 Wh, pvfc: 0, confc: 590, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 22 -> 1 (SoCfc: 43.0 %, soc: 3009 Wh, pvfc: 0, confc: 545, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 04 23 -> 1 (SoCfc: 34.7 %, soc: 2426 Wh, pvfc: 0, confc: 525, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 00 -> 1 (SoCfc: 27.1 %, soc: 1894 Wh, pvfc: 0, confc: 479, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 01 -> 1 (SoCfc: 19.0 %, soc: 1330 Wh, pvfc: 0, confc: 508, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 02 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 563, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 03 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 497, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 04 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 466, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 05 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 463, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 06 -> 1 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 0, confc: 648, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 07 -> 0 (SoCfc: 5.0 %, soc: 350 Wh, pvfc: 356, confc: 649, Surp Day: 29301 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 08 -> 0 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 1212, confc: 938, Surp Day: 28089 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 09 -> 0 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 2798, confc: 815, Surp Day: 25291 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 10 -> 0 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 4395, confc: 1001, Surp Day: 20896 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 11 -> 0 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 4916, confc: 819, Surp Day: 15980 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 12 -> 0 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 3892, confc: 1481, Surp Day: 12088 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 13 -> 0 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 4342, confc: 1429, Surp Day: 7746 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 14 -> 1 (SoCfc: 51.3 %, soc: 3588 Wh, pvfc: 3880, confc: 1060, Surp Day: 3866 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 15 -> 1 (SoCfc: 73.7 %, soc: 5158 Wh, pvfc: 2817, confc: 1073, Surp Day: 1049 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 16 -> 1 (SoCfc: 73.7 %, soc: 5156 Wh, pvfc: 698, confc: 700, Surp Day: 351 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 17 -> 1 (SoCfc: 68.1 %, soc: 4768 Wh, pvfc: 351, confc: 700, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 18 -> 1 (SoCfc: 55.9 %, soc: 3912 Wh, pvfc: 0, confc: 770, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 19 -> 1 (SoCfc: 46.0 %, soc: 3221 Wh, pvfc: 0, confc: 622, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 20 -> 1 (SoCfc: 35.7 %, soc: 2499 Wh, pvfc: 0, confc: 650, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 21 -> 1 (SoCfc: 26.3 %, soc: 1843 Wh, pvfc: 0, confc: 590, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 22 -> 1 (SoCfc: 17.7 %, soc: 1237 Wh, pvfc: 0, confc: 545, Surp Day: 0 Wh)
2025.03.04 13:57:37 1: SolarForecast DEBUG> Bat 01 relLoad 05 23 -> 1 (SoCfc: 15.0 %, soc: 1050 Wh, pvfc: 0, confc: 525, Surp Day: 0 Wh)

Aber die Ladeempfehlung ist nach Sonnenuntergang - also mit pvfc=0 - noch an. (Das ist doch die 0 oder 1 rechts von dem Pfeil?)
Ist das ratsam? Oder kann das das an meiner Konfiguration liegen?

Was ich noch nicht ganz verstehe, sind die Zusammenhänge zwischen soc, pvfx und confc. Das sind scheinbar nicht einfach nur Summen und Differenzen? Steckt da noch mehr dahinter?

Viele Grüße,
Peter