76_SolarForecast - Informationen/Ideen zu Weiterentwicklung und Support

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

Vorheriges Thema - Nächstes Thema

heramol

An die Statistiker.

Bekommt jemand von Euch hier etwas angezeigt, d.h. aufsummiert?


Parallix

#1801
Bei mir gibt's auch kein Problem mit der (in den weiter oben beschriebenen Beiträgen bzgl.) Darstellung. Meines Test erfolgten via Firefox und Chromium.
FHEM: Debian/Testing BananaPro - AVM: 7490 (7.59) und 7591 (8.02) - Goodwe: GW25K-ET (DSP V10 / ARM V12) - BYD: 2 x HVS 5.1 (BMS V3.29-A, BMU V3.23-A) - EnOcean - Z-Wave - FS20/HMS

DS_Starter

ZitatAn die Statistiker.

Bekommt jemand von Euch hier etwas angezeigt, d.h. aufsummiert?
Ja, siehe Anhang.

Schau mal die Batteriedaten mit "get ... pvCircular 99". In der Ausgabe sind relevant diese Schlüssel:

      initdaybatintot01: 4037357.42363898, initdaybatintot02: -, initdaybatintot03: -
      initdaybatouttot01: 3894141.18091429, initdaybatouttot02: -, initdaybatouttot03: -
      batintot01: 4039417.22014438, batintot02: -, batintot03: -
      batouttot01: 3895321.82043407, batouttot02: -, batouttot03: -
initdaybatintotXX, initdaybatouttotXX sollte gesetzt und fest sein. 
batintotXX und batouttotXX sollten hochzählen je nachdem ob etwas in die Batterie geladen oder entladen wird.
Wenn die Bat im Standby bleibt (weder rein noch raus) bewegt sich an der Stelle nichts.

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

So - jetzt hab ich keinen Fehler mehr mit der jetzigen Version aus dem Conrib.


und auch das Log dazu


PS: werde auch noch ein weblink Device anlegen und mitteilen  ;D



FHEM 6.3|RaspberryPi|SMAEM|SMAInverter|SolarForecast|DbLog|DbRep|MariaDB|QNAP|
JsonMod|HTTPMOD|Modbus ser+TCP|ESP32-Digitizer-AI_on_the_edge|ESP32CAM

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

hab erst einmal das "loggen" gestoppt"

          Log3 ($name, 5, "$name - Test orig title: $title");
FHEM 6.3|RaspberryPi|SMAEM|SMAInverter|SolarForecast|DbLog|DbRep|MariaDB|QNAP|
JsonMod|HTTPMOD|Modbus ser+TCP|ESP32-Digitizer-AI_on_the_edge|ESP32CAM

DS_Starter

Oder einfach:

 # Log3 ($name, 4, "$name - Test orig title: $title");
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

heramol

Zitat von: DS_Starter am 26 Januar 2025, 10:54:48
ZitatAn die Statistiker.

Bekommt jemand von Euch hier etwas angezeigt, d.h. aufsummiert?
Ja, siehe Anhang.

Schau mal die Batteriedaten mit "get ... pvCircular 99". In der Ausgabe sind relevant diese Schlüssel:

      initdaybatintot01: 4037357.42363898, initdaybatintot02: -, initdaybatintot03: -
      initdaybatouttot01: 3894141.18091429, initdaybatouttot02: -, initdaybatouttot03: -
      batintot01: 4039417.22014438, batintot02: -, batintot03: -
      batouttot01: 3895321.82043407, batouttot02: -, batouttot03: -
initdaybatintotXX, initdaybatouttotXX sollte gesetzt und fest sein. 
batintotXX und batouttotXX sollten hochzählen je nachdem ob etwas in die Batterie geladen oder entladen wird.
Wenn die Bat im Standby bleibt (weder rein noch raus) bewegt sich an der Stelle nichts.



Ist "initdaybatintoXX" ein Wert, der aus dem Speicher per Modbus oder wie auch immer ausgelesen wird? Ein fortlaufender Absolutwert des Speichers quasi?

Bei mir sieht es leider so aus. Ich greife nicht via Modbus auf den Speicher zu, sondern mit den Daten über das Fronius-Modul 98_fronius.pm



DS_Starter

ZitatIst "initdaybatintoXX" ein Wert, der aus dem Speicher per Modbus oder wie auch immer ausgelesen wird? Ein fortlaufender Absolutwert des Speichers quasi?

Bei mir sieht es leider so aus. Ich greife nicht via Modbus auf den Speicher zu, sondern mit den Daten über das Fronius-Modul 98_fronius.pm
Woher die Daten kommen ist egal. Wichtig ist nur das Setup stimmt, d.h. die Angaben im Attr setupBatteryDevXX.
Hier genau lesen was in der Hilfe zu der Bedeutung der einzelnen Schlüssel geschrieben steht.

Zeig uns doch bitte mal das Attr.
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

heramol

So sieht mein "Fronius"-Eintrag aus:

Zitat"Fronius_WR pout=PowerFlow_Site_P_Akku:W pin=-pout:W charge=Storage_0_Controller_StateOfCharge_Relative cap=7680 icon=measure_battery_50@#262626:@yellow:measure_battery_100@red"

Absolutwerte habe ich nicht angelegt, da ich angenommen habe, dass um Mitternacht sowieso die Zählerei von Null beginnt. Über das Froniusmodul kann kein BYD-Absolutwert abgegriffen werden, wenn ich richtig informiert bin.

DS_Starter

@heramol,
bei deinem Attr fehlen die Angaben:

intotal    Reading welches die totale Batterieladung als fortlaufenden Zähler liefert (optional)
outtotal    Reading welches die totale Batterieentladung als fortlaufenden Zähler liefert (optional)

Sie sind zwar optional, aber für die von dir gewünschte Statistik wichtig und werden benötigt.
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

@300P,

in meinem contrib gibt es wieder eine V zum Problemtest.

Die Ausgabe ist etwas länger im Log:

2025.01.26 11:52:56.414 4: SolCast5 - Test title nach Subst 8: Batterie 01: Batterie 1
SoC am Ende der Stunde: 50 %
2025.01.26 11:52:56.416 4: SolCast5 - Test title Addon 8:
2025.01.26 11:52:56.418 4: SolCast5 - Test title Zusammengesetzt 8: Batterie 01: Batterie 1
SoC am Ende der Stunde: 50 %
2025.01.26 11:52:56.420 4: SolCast5 - Test Return komplett 8: <tr class='odd'><td class='solarfc'></td><td title='Batterie 01: Batterie 1
SoC am Ende der Stunde: 50 %' class='solarfc' width='20' style='margin:1px; vertical-align:middle align:center; padding-bottom:1px;'><svg class=" measure_battery_50 grey" data-txt="measure_battery_50@grey"    xmlns:dc="http://purl.org/dc/elements/1.1/"    xmlns:cc="http://creativecommons.org/ns#"    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"    xmlns:svg="http://www.w3.org/2000/svg"    xmlns="http://www.w3.org/2000/svg"    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"    version="1.1"    x="0px"    y="0px"    width="361px"    height="361px"    viewBox="0 0 361 361"    style="enable-background:new 0 0 361 361;"    xml:space="preserve"    id="svg2"    inkscape:version="0.48.5 r10040"    sodipodi:docname="measure_battery_50.svg"><metadata    id="metadata34"><rdf:RDF><cc:Work        rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type          rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs    id="defs32" /><sodipodi:namedview    pagecolor="#ffffff"    bordercolor="#666666"    borderopacity="1"    objecttolerance="10"    gridtolerance="10"    guidetolerance="10"    inkscape:pageopacity="0"    inkscape:pageshadow="2"    inkscape:window-width="779"    inkscape:window-height="480"    id="namedview30"    showgrid="false"    inkscape:zoom="0.65373961"    inkscape:cx="302.06678"    inkscape:cy="180.5"    inkscape:window-x="0"    inkscape:window-y="0"    inkscape:window-maximized="0"    inkscape:current-layer="measure_x5F_battery_x5F_50" /> <g    id="measure_x5F_battery_x5F_50"    style="stroke:#000000;stroke-opacity:1"> <g    id="g5"    style="stroke:#000000;stroke-opacity:1"    transform="matrix(1.6146267,0,0,1.6146267,-112.50812,-110.12429)"> <path    style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:grey;fill-opacity:1;stroke:none;stroke-width:10;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"    d="m 134.65625,89.15625 c -6.01649,0 -11,4.983509 -11,11 l 0,180 c 0,6.01649 4.98351,11 11,11 l 95.5,0 c 6.01631,0 11,-4.9825 11,-11 l 0,-180 c 0,-6.016491 -4.98351,-11 -11,-11 l -95.5,0 z m 0,10 95.5,0 c 0.60951,0 1,0.390491 1,1 l 0,180 c 0,0.6085 -0.39231,1 -1,1 l -95.5,0 c -0.60951,0 -1,-0.39049 -1,-1 l 0,-180 c 0,-0.609509 0.39049,-1 1,-1 z"    id="path7"    inkscape:connector-curvature="0" /> <path    style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:grey;fill-opacity:1;stroke:none;stroke-width:10;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"    d="m 169.625,69.65625 c -6.01649,0 -11,4.983509 -11,11 l 0,14 10,0 0,-14 c 0,-0.609509 0.39049,-1 1,-1 l 25.5,0 c 0.60951,0 1,0.390491 1,1 l 0,14 10,0 0,-14 c 0,-6.016491 -4.98351,-11 -11,-11 l -25.5,0 z"    id="path9"    inkscape:connector-curvature="0" /> </g> <g    style="display:none;stroke:#000000;stroke-opacity:1"    id="g11"> <path    style="display:inline;fill:none;stroke:#000000;stroke-width:10;stroke-opacity:1"    d="M221.141,266.334c0,3.313-2.688,6-6,6h-65.5    c-3.313,0-6-2.688-6-6v-6c0-3.314,2.687-6,6-6l65.5-20c3.313,0,6,2.686,6,6V266.334z"    id="path13" /> <path    style="display:inline;fill:none;stroke:#000000;stroke-width:10;stroke-opacity:1"    d="M221.141,166.667c0,3.313-2.688,6-6,6l-65.5,20    c-3.313,0-6-2.687-6-6v-20c0-3.313,2.687-6,6-6l65.5-20c3.313,0,6,2.687,6,6V166.667z"    id="path15" /> <path    style="display:inline;fill:none;stroke:#000000;stroke-width:10;stroke-opacity:1"    d="M221.141,120c0,3.313-2.688,6-6,6l-65.5,20    c-3.313,0-6-2.687-6-6v-26c0-3.313,2.687-6,6-6h65.5c3.313,0,6,2.687,6,6V120z"    id="path17" /> <path    style="display:inline;fill:none;stroke:#000000;stroke-width:10;stroke-opacity:1"    d="M221.141,213.667c0,3.313-2.688,6-6,6l-65.5,20    c-3.313,0-6-2.687-6-6v-20c0-3.313,2.687-6,6-6l65.5-20c3.313,0,6,2.687,6,6V213.667z"    id="path19" /> </g> <path    style="fill:grey;fill-opacity:1;stroke:none"    d="m 244.55206,319.90573 c 0,5.34925 -4.34011,9.68775 -9.68776,9.68775 H 129.10625 c -5.34926,0 -9.68776,-4.34012 -9.68776,-9.68775 v -9.68777 c 0,-5.35087 4.3385,-9.68776 9.68776,-9.68776 L 234.8643,268.23766 c 5.34926,0 9.68776,4.33689 9.68776,9.68777 v 41.9803 z"    id="path21"    inkscape:connector-curvature="0" /> <path    style="display:none;fill:#FFFFFF;stroke:#000000;stroke-width:3;stroke-opacity:1"    d="M221.141,166.667c0,3.313-2.688,6-6,6l-65.5,20   c-3.313,0-6-2.687-6-6v-20c0-3.313,2.687-6,6-6l65.5-20c3.313,0,6,2.687,6,6V166.667z"    id="path23" /> <path    style="display:none;fill:#FFFFFF;stroke:#000000;stroke-width:3;stroke-opacity:1"    d="M221.141,120c0,3.313-2.688,6-6,6l-65.5,20   c-3.313,0-6-2.687-6-6v-26c0-3.313,2.687-6,6-6h65.5c3.313,0,6,2.687,6,6V120z"    id="path25" /> <path    style="fill:grey;fill-opacity:1;stroke:none"    d="m 244.55206,234.86817 c 0,5.34926 -4.34011,9.68776 -9.68776,9.68776 l -105.75805,32.29254 c -5.34926,0 -9.68776,-4.3385 -9.68776,-9.68776 v -32.29254 c 0,-5.34926 4.3385,-9.68775 9.68776,-9.68775 L 234.8643,192.88788 c 5.34926,0 9.68776,4.3385 9.68776,9.68776 v 32.29253 z"    id="path27"    inkscape:connector-curvature="0" /> </g> <g    id="Ebene_1"    style="stroke:#000000;stroke-opacity:1"> </g> </svg></td>

Aber zum nächsten Eintrag gibt es eine Leerzeile zur besseren Separation.
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

heramol

#1812
Zitat von: DS_Starter am 26 Januar 2025, 11:32:18@heramol,
bei deinem Attr fehlen die Angaben:

intotal    Reading welches die totale Batterieladung als fortlaufenden Zähler liefert (optional)
outtotal    Reading welches die totale Batterieentladung als fortlaufenden Zähler liefert (optional)

Sie sind zwar optional, aber für die von dir gewünschte Statistik wichtig und werden benötigt.

Danke, habs vermutet.

Falls jemand ebenfalls das Problem hatte mit einem BYD ohne Absolutwertausgabe über das 98_Fronius.pm Modul:
https://forum.fhem.de/index.php?msg=1233760

jetzt funzt es :)

300P

#1813
Zitat von: DS_Starter am 26 Januar 2025, 11:55:51@300P,

in meinem contrib gibt es wieder eine V zum Problemtest.

Die Ausgabe ist etwas länger im Log:

Hier das Ergebnis dieser Version als Log-Datei nach dem Restart/Einschalten + verbose 4
(um 15:56:45 hab ich get .... both gestartet)

Leider jetzt wieder mit dem "Fehler" in der Anzeige (Screenshot)

Gruß
300P

FHEM 6.3|RaspberryPi|SMAEM|SMAInverter|SolarForecast|DbLog|DbRep|MariaDB|QNAP|
JsonMod|HTTPMOD|Modbus ser+TCP|ESP32-Digitizer-AI_on_the_edge|ESP32CAM

DS_Starter

Danke.

ZitatLeider jetzt wieder mit dem "Fehler" in der Anzeige (Screenshot)
Ja, das ist ok. Ich will ja ergründen wo es herkommt.
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