Leistungsprognose für Wechselrichter

Begonnen von ch.eick, 18 Januar 2021, 08:35:46

Vorheriges Thema - Nächstes Thema

DS_Starter

#3105
Hallo Stefan,

ZitatWas ist:
my $mppt1  = 'MQTT2_cerboGX_c0619ab34e08_solarcharger_Common';              # SmartLoader Device
Ein zusätzlicher Stromabnehmer, den du raus rechnen willst, wie eine Autoladestation?
$cspc = sprintf "%.2f", ($cspc - $mppt1c);      # SmartLoader IST berücksichtigen

Naja, der Kontext ist bei dem Wiki Beispiel ein wenig anders. Hier geht es darum den Ladestrom in die Batterie möglichst gleichmäßig bis vor den Sonnenuntergang zu verteilen.
Es laden die Batterie die AC-DC-Wechselrichter und der PV->DC-Direktlader (Victron Smartloader).
Die AC-Batteriewechselrichter sollen nur dann die Batterie unterstützend laden, wenn der Smartloader es wahrscheinlich nicht schaffen wird die Batterie alleine bis zum Sunset aufzuladen.
Deswegen wird der Ladestrom des AC-DC-Wechselrichter ($loadcur im Wiki) durch SolarForecast heruntergesetzt, ggf. bis 0, um den Smarloader bestens auszunutzen.
Ist die Batterie voll, wird der Smartloader technisch bedingt heruntergeregelt, was möglichst vermieden werden soll.

Du brauchst das in deinem Kontext nicht, wenn ich es richtig sehe.
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

stefanru

Hi Heiko,

ah ok, denke jetzt ist es klar.
Im prinzip könnte ich das auch machen.
Habe einen Hybrid-Wechselrichter der direkt die Batterie lädt DC und einen der zuspeisen kann für die Batterieladung AC->DC.

Wenn ich dich richtig verstehe versuchst du AC -> DC zu vermeiden weil mehr Verluste.
Ist ne gute Idee.
Erstmal versuche ich aber die Batterie schonend zu laden und auch bei schlechten Verhältnissen abends 100% hinzubekommen so gut wie möglich.
Wenn das funktioniert überlege ich noch ob ich das erweitere.

Vielen Dank für die Erklärung.

Gruß,
Stefan

DS_Starter

#3107
ZitatWenn ich dich richtig verstehe versuchst du AC -> DC zu vermeiden weil mehr Verluste.
Einmal das und zum Anderen wird der DC-DC-Loader technisch abgeregelt wenn Bat voll. Das will ich vermeiden.
Er soll laden solange es geht. Mit dem Überschuß der dadurch nicht als AC->DC "verbraucht" wird verdiene ich Geld per Einspeisung.

Das Wiki Beispiel ist auch so gebaut, dass bei schlechten Wetter die AC->DC Inverter mit helfen die BAT voll zu laden.
Klappt bis jetzt perfekt. Ungefähr 2h vor Sonnenuntergang voll, wenn das Wetter nicht zu schlecht ist.
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

stefanru

Ok, super danke.
Ja genau, bei schlechtem Wetter und nicht so guter Vorhersage für Nachmittags habe ich jetzt am Schluss auch etwas Probleme mit meiner Logik bekommen.
Ich bastle gerade etwas am UserExit um noch eine Zeitlichen Faktor mit reinzubringen.
Also morgens mit mehr Korrekturfaktor rechnen weil Vorhersage noch unsicher und dann immer genauer schätzen.

Eine Frage habe ich noch.
Ich bin nicht gerade der Perl experte und finde auf anhieb nichts genaues im Internet.
Wie genau habe ich dieses If zu verstehen?

 if ($cpv && $solh && $whrem && $fcdiff > $whrem) {

Danke und Gruß,
Stefan

DS_Starter

Moin Stefan,

ZitatWie genau habe ich dieses If zu verstehen?

 if ($cpv && $solh && $whrem && $fcdiff > $whrem) {

Hier werden die Variablen $cpv, $solh, $whrem auf einen "true"-Wert geprüft und dann mit "UND" verknüpft.
Man könnte hier auch schreiben:

if ($cpv != 0 && $solh != 0 && $whrem != 0 && $fcdiff > $whrem) {

D.h. immer wenn die Variablen ungleich 0 sind, sind sie "wahr" und wenn alle "wahr" sind und dann noch $fcdiff größer $whrem ist, dann ist die if-Bedingung "wahr" und wird ausgeführt.

Vllt. jetzt klarer?
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

@all,

ich habe im Wiki einen Beitrag zu Backup und Wiederherstellung im SolarForecast Konext geschrieben.
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

stefanru

Ach so kurzform für Prüfung auf true.
Das hätte ich ja verstehen könne. ;-)
Danke!

DS_Starter

Habe soeben ein update eingecheckt. Die Autokorrektur "complex" wird jetzt schneller Anpassungen bzgl. der Bewölkung vornehmen.
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

SparcWolf

Hallo Heiko,

bei der Berechnung der Korrekturfaktoren ist etwas komisch.
Hier wird doppelt berechnet (complex/simple). Mal für das eine Device und dann mal für das andere Device.
Bei mir läuft die Version 1.0.2.

Hier ein Beispiel aus der fhem.log:
2023.10.07 15:00:33 3: S10E_SolarForecast - new complex correction factor for hour 15 calculated: 1.06 (old: 0.90)
2023.10.07 15:00:33 3: S10E_SolarForecast - new simple  correction factor for hour 15 calculated: 1.01 (old: 1.00)
2023.10.07 15:00:34 3: S10E_SolCast       - new complex correction factor for hour 15 calculated: 1.01 (old: 1.02)
2023.10.07 16:00:03 3: S10E_SolarForecast - new complex correction factor for hour 16 calculated: 0.93 (old: 1.12)
2023.10.07 16:00:04 3: S10E_SolCast       - new complex correction factor for hour 16 calculated: 1.08 (old: 1.04)
2023.10.07 16:00:04 3: S10E_SolCast       - new simple  correction factor for hour 16 calculated: 0.98 (old: 0.97)

Konfiguriert ist bei mir:
PVCfg_SolarForecast_S10E_SolarForecast:pvCorrectionFactor_Auto<>on_complex_ai
PVCfg_SolarForecast_S10E_SolCast:pvCorrectionFactor_Auto<>on_simple

Grüße,
  Guido.

DS_Starter

Hallo Guido,

es ist seit einer Version X schon länger normal dass _immer_ sowohl der simple und auch der complex Korrekturfaktur berechnet und gespeichert wird unabhängig welche Korrekturvariante aktuell verwendet wird.
Dadurch wird gewährleistet immer atuelle Korrekturwerte zu haben wenn man mal umschalten sollte.

Mich wundert eher, dass für S10E_SolCast um 15:00 nur complex gerechnet wurde und nicht zusätzlich simple.
Aber vllt. kam es ein bisschen vorher im Log.
Das gleiche für S10E_SolarForecast um 16:00.

Werde es mal bei mir beobachten.

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

SparcWolf

Hallo Heiko,

Immer beide berechnen - Super.  8)

Hier mal die gesamten Ausgaben von gestern ( grep correction fhem-2023-10-07.log ):
2023.10.07 09:00:32 3: S10E_SolarForecast - new complex correction factor for hour 9 calculated: 0.96 (old: 1.08)
2023.10.07 09:00:33 3: S10E_SolCast - new complex correction factor for hour 9 calculated: 1.03 (old: 1.12)
2023.10.07 10:00:03 3: S10E_SolarForecast - new correction factor calculated (limited by affectMaxDayVariance): 1.24 (old: 0.74) for hour: 10
2023.10.07 10:00:03 3: S10E_SolarForecast - new simple correction factor for hour 10 calculated: 1.12 (old: 1.11)
2023.10.07 10:00:03 3: S10E_SolCast - new complex correction factor for hour 10 calculated: 1.29 (old: 0.92)
2023.10.07 11:00:44 3: S10E_SolarForecast - new complex correction factor for hour 11 calculated: 0.99 (old: 1.42)
2023.10.07 11:00:44 3: S10E_SolarForecast - new simple correction factor for hour 11 calculated: 1.11 (old: 1.12)
2023.10.07 11:00:45 3: S10E_SolCast - new complex correction factor for hour 11 calculated: 0.80 (old: 1)
2023.10.07 11:00:45 3: S10E_SolCast - new simple correction factor for hour 11 calculated: 0.94 (old: 0.95)
2023.10.07 12:00:14 3: S10E_SolarForecast - new complex correction factor for hour 12 calculated: 1.19 (old: 1.05)
2023.10.07 12:00:14 3: S10E_SolarForecast - new simple correction factor for hour 12 calculated: 1.06 (old: 1.05)
2023.10.07 12:00:15 3: S10E_SolCast - new complex correction factor for hour 12 calculated: 0.83 (old: 0.80)
2023.10.07 13:00:55 3: S10E_SolarForecast - new complex correction factor for hour 13 calculated: 1.38 (old: 1.21)
2023.10.07 13:00:55 3: S10E_SolarForecast - new simple correction factor for hour 13 calculated: 0.95 (old: 0.94)
2023.10.07 13:00:56 3: S10E_SolCast - new complex correction factor for hour 13 calculated: 1.14 (old: 1.08)
2023.10.07 13:00:56 3: S10E_SolCast - new simple correction factor for hour 13 calculated: 0.96 (old: 0.95)

2023.10.07 14:01:02 3: S10E_SolarForecast - new complex correction factor for hour 14 calculated: 1.18 (old: 1.27)
2023.10.07 14:01:02 3: S10E_SolarForecast - new simple correction factor for hour 14 calculated: 1.06 (old: 1.05)
2023.10.07 14:01:03 3: S10E_SolCast - new complex correction factor for hour 14 calculated: 1.12 (old: 1.09)
2023.10.07 15:00:33 3: S10E_SolarForecast - new complex correction factor for hour 15 calculated: 1.06 (old: 0.90)
2023.10.07 15:00:33 3: S10E_SolarForecast - new simple correction factor for hour 15 calculated: 1.01 (old: 1.00)
2023.10.07 15:00:34 3: S10E_SolCast - new complex correction factor for hour 15 calculated: 1.01 (old: 1.02)
2023.10.07 16:00:03 3: S10E_SolarForecast - new complex correction factor for hour 16 calculated: 0.93 (old: 1.12)
2023.10.07 16:00:04 3: S10E_SolCast - new complex correction factor for hour 16 calculated: 1.08 (old: 1.04)
2023.10.07 16:00:04 3: S10E_SolCast - new simple correction factor for hour 16 calculated: 0.98 (old: 0.97)
2023.10.07 17:00:44 3: S10E_SolarForecast - new complex correction factor for hour 17 calculated: 0.77 (old: 1.06)
2023.10.07 17:00:45 3: S10E_SolCast - new complex correction factor for hour 17 calculated: 0.94 (old: 1.04)
2023.10.07 17:00:45 3: S10E_SolCast - new simple correction factor for hour 17 calculated: 0.97 (old: 0.96)
2023.10.07 18:00:14 3: S10E_SolarForecast - new complex correction factor for hour 18 calculated: 0.79 (old: 1.02)
2023.10.07 18:00:15 3: S10E_SolCast - new complex correction factor for hour 18 calculated: 0.99 (old: 0.92)
2023.10.07 19:00:55 3: S10E_SolarForecast - new complex correction factor for hour 19 calculated: 0.66 (old: 0.81)
2023.10.07 19:00:56 3: S10E_SolCast - new complex correction factor for hour 19 calculated: 1.42 (old: 1)
2023.10.07 19:00:56 3: S10E_SolCast - new simple correction factor for hour 19 calculated: 1.03 (old: 1.00)

Gegen 13:30 habe ich Dein Modul aktualisiert und FHEM neu gestartet.

VG,
  Guido. ::)

ambiman

Hallo Heiko,

glückwunsch zum offiziellen Check-In des Moduls :)
Ich nutze es bereits seit Monaten in der Testversion.

Ich habe bei meinem Consumer heute eine swoffcond hinzugefügt:

Elektrokonvektor_EG type=heater power=750 mode=can pcurr=power:W on=on off=off swstate=relay:on:off interruptable=1 swoncond=PV_Forecast:user_swon_konvektor:1 swoffcond=PV_Forecast:user_swon_konvektor:0 mintime=600

Leider schaltet das Modul den Consumer jedoch nicht ab, wenn das userReading auf 0 gesetzt wird.

event-on-change-reading ist auf .* gesetzt

Hier nochmal ein list des Geräts:

Internals:
   FUUID      634e55a4-f33f-3cef-e9f2-ddebae5e927b8e2d
   FVERSION   76_SolarForecast.pm:v1.0.1-s28024/2023-10-04
   LCACHEFILE last write time: 11:55:32 File: ./FHEM/FhemUtils/ScApi_SolarForecast_PV_Forecast
   MODE       Automatic - next Cycletime: 12:08:19
   MODEL      SolCastAPI
   NAME       PV_Forecast
   NOTIFYDEV  Elektrokonvektor_EG
   NR         302
   NTFY_ORDER 50-PV_Forecast
   STATE      updated
   TYPE       SolarForecast
   eventCount 7521
   HELPER:
     FW         WEB
     PACKAGE    FHEM::SolarForecast
     SPGDETAIL  PV_Forecast
     SPGDEV     PV_Forecast
     SPGROOM    PV
     VERSION    1.0.1
     VERSION_API unused
     VERSION_CTZ 1.0.0
     VERSION_ErrCodes unused
     VERSION_SMUtils 1.26.0
   Helper:
     DBLOG:
       AllPVforecastsToEvent:
         logdb:
           TIME       1696716033.54596
           VALUE      0
       Current_AutarkyRate:
         logdb:
           TIME       1696759419.99185
           VALUE      100
       Current_Consumption:
         logdb:
           TIME       1696759629.94242
           VALUE      973
       Current_GridConsumption:
         logdb:
           TIME       1696756010.72927
           VALUE      0
       Current_GridFeedIn:
         logdb:
           TIME       1696759629.94242
           VALUE      6011
       Current_PV:
         logdb:
           TIME       1696759629.94242
           VALUE      6984
       Current_SelfConsumption:
         logdb:
           TIME       1696759629.94242
           VALUE      973
       Current_SelfConsumptionRate:
         logdb:
           TIME       1696759629.94242
           VALUE      14
       Current_Surplus:
         logdb:
           TIME       1696759629.94242
           VALUE      6011
       LastHourGridconsumptionReal:
         logdb:
           TIME       1696759209.7514
           VALUE      64
       LastHourPVforecast:
         logdb:
           TIME       1696759209.7514
           VALUE      4703
       LastHourPVreal:
         logdb:
           TIME       1696759209.7514
           VALUE      3606
       NextHours_Sum01_PVforecast:
         logdb:
           TIME       1696759629.94242
           VALUE      6477
       NextHours_Sum02_PVforecast:
         logdb:
           TIME       1696759629.94242
           VALUE      12141
       NextHours_Sum03_PVforecast:
         logdb:
           TIME       1696759629.94242
           VALUE      15682
       NextHours_Sum04_ConsumptionForecast:
         logdb:
           TIME       1696759629.94242
           VALUE      2377
       NextHours_Sum04_PVforecast:
         logdb:
           TIME       1696759629.94242
           VALUE      19290
       RestOfDayConsumptionForecast:
         logdb:
           TIME       1696759629.94242
           VALUE      5446
       RestOfDayPVforecast:
         logdb:
           TIME       1696759629.94242
           VALUE      22920
       Today_Hour01_GridConsumption:
         logdb:
           TIME       1696719534.1195
           VALUE      198
       Today_Hour01_GridFeedIn:
         logdb:
           TIME       1696716103.58832
           VALUE      0
       Today_Hour01_PVreal:
         logdb:
           TIME       1696716033.77838
           VALUE      0
       Today_Hour02_GridConsumption:
         logdb:
           TIME       1696723174.62405
           VALUE      153
       Today_Hour02_GridFeedIn:
         logdb:
           TIME       1696719604.09518
           VALUE      0
       Today_Hour02_PVreal:
         logdb:
           TIME       1696719604.09518
           VALUE      0
       Today_Hour03_GridConsumption:
         logdb:
           TIME       1696726745.36981
           VALUE      153
       Today_Hour03_GridFeedIn:
         logdb:
           TIME       1696723244.74815
           VALUE      0
       Today_Hour03_PVreal:
         logdb:
           TIME       1696723244.74815
           VALUE      0
       Today_Hour04_GridConsumption:
         logdb:
           TIME       1696730385.87788
           VALUE      141
       Today_Hour04_GridFeedIn:
         logdb:
           TIME       1696726815.38631
           VALUE      0
       Today_Hour04_PVreal:
         logdb:
           TIME       1696726815.38631
           VALUE      0
       Today_Hour05_GridConsumption:
         logdb:
           TIME       1696733956.52215
           VALUE      156
       Today_Hour05_GridFeedIn:
         logdb:
           TIME       1696730455.91801
           VALUE      0
       Today_Hour05_PVreal:
         logdb:
           TIME       1696730455.91801
           VALUE      0
       Today_Hour06_GridConsumption:
         logdb:
           TIME       1696737597.19692
           VALUE      129
       Today_Hour06_GridFeedIn:
         logdb:
           TIME       1696734026.53915
           VALUE      0
       Today_Hour06_PVreal:
         logdb:
           TIME       1696734026.53915
           VALUE      0
       Today_Hour07_GridConsumption:
         logdb:
           TIME       1696741167.68762
           VALUE      185
       Today_Hour07_GridFeedIn:
         logdb:
           TIME       1696737667.15957
           VALUE      0
       Today_Hour07_PVreal:
         logdb:
           TIME       1696737667.15957
           VALUE      0
       Today_Hour08_GridConsumption:
         logdb:
           TIME       1696744738.45881
           VALUE      171
       Today_Hour08_GridFeedIn:
         logdb:
           TIME       1696741237.75172
           VALUE      0
       Today_Hour08_PVforecast:
         logdb:
           TIME       1696744458.37467
           VALUE      7
       Today_Hour08_PVreal:
         logdb:
           TIME       1696741237.75172
           VALUE      0
       Today_Hour09_GridConsumption:
         logdb:
           TIME       1696747398.92282
           VALUE      264
       Today_Hour09_GridFeedIn:
         logdb:
           TIME       1696748379.05394
           VALUE      159
       Today_Hour09_PVforecast:
         logdb:
           TIME       1696748099.08546
           VALUE      270
       Today_Hour09_PVreal:
         logdb:
           TIME       1696748379.05394
           VALUE      367
       Today_Hour10_GridConsumption:
         logdb:
           TIME       1696751949.83569
           VALUE      124
       Today_Hour10_GridFeedIn:
         logdb:
           TIME       1696751949.83569
           VALUE      713
       Today_Hour10_PVforecast:
         logdb:
           TIME       1696751739.70411
           VALUE      899
       Today_Hour10_PVreal:
         logdb:
           TIME       1696751949.83569
           VALUE      1148
       Today_Hour11_GridConsumption:
         logdb:
           TIME       1696755590.74385
           VALUE      258
       Today_Hour11_GridFeedIn:
         logdb:
           TIME       1696755590.74385
           VALUE      328
       Today_Hour11_PVforecast:
         logdb:
           TIME       1696755380.69432
           VALUE      2575
       Today_Hour11_PVreal:
         logdb:
           TIME       1696755590.74385
           VALUE      1284
       Today_Hour12_GridConsumption:
         logdb:
           TIME       1696756010.72927
           VALUE      64
       Today_Hour12_GridFeedIn:
         logdb:
           TIME       1696759139.93575
           VALUE      2337
       Today_Hour12_PVforecast:
         logdb:
           TIME       1696758999.95996
           VALUE      4703
       Today_Hour12_PVreal:
         logdb:
           TIME       1696759139.93575
           VALUE      3606
       Today_Hour13_GridConsumption:
         logdb:
           TIME       1696759209.95409
           VALUE      0
       Today_Hour13_GridFeedIn:
         logdb:
           TIME       1696759629.94242
           VALUE      784
       Today_Hour13_PVforecast:
         logdb:
           TIME       1696758999.95996
           VALUE      6551
       Today_Hour13_PVreal:
         logdb:
           TIME       1696759629.94242
           VALUE      787
       Today_Hour14_GridConsumption:
         logdb:
           TIME       1696676409.2778
           VALUE      0
       Today_Hour14_GridFeedIn:
         logdb:
           TIME       1696679979.38733
           VALUE      3274
       Today_Hour14_PVforecast:
         logdb:
           TIME       1696758999.95996
           VALUE      5996
       Today_Hour14_PVreal:
         logdb:
           TIME       1696679979.38733
           VALUE      4706
       Today_Hour15_GridConsumption:
         logdb:
           TIME       1696680049.41498
           VALUE      0
       Today_Hour15_GridFeedIn:
         logdb:
           TIME       1696683549.54386
           VALUE      3118
       Today_Hour15_PVforecast:
         logdb:
           TIME       1696758999.95996
           VALUE      3512
       Today_Hour15_PVreal:
         logdb:
           TIME       1696683549.54386
           VALUE      4610
       Today_Hour16_GridConsumption:
         logdb:
           TIME       1696683619.53799
           VALUE      0
       Today_Hour16_GridFeedIn:
         logdb:
           TIME       1696687189.90243
           VALUE      4034
       Today_Hour16_PVforecast:
         logdb:
           TIME       1696758999.95996
           VALUE      3728
       Today_Hour16_PVreal:
         logdb:
           TIME       1696687189.90243
           VALUE      5967
       Today_Hour17_GridConsumption:
         logdb:
           TIME       1696690620.10747
           VALUE      1
       Today_Hour17_GridFeedIn:
         logdb:
           TIME       1696690760.08025
           VALUE      2918
       Today_Hour17_PVforecast:
         logdb:
           TIME       1696757201.05073
           VALUE      2827
       Today_Hour17_PVreal:
         logdb:
           TIME       1696690760.08025
           VALUE      4720
       Today_Hour18_GridConsumption:
         logdb:
           TIME       1696694260.49868
           VALUE      57
       Today_Hour18_GridFeedIn:
         logdb:
           TIME       1696694330.58634
           VALUE      635
       Today_Hour18_PVforecast:
         logdb:
           TIME       1696757201.05073
           VALUE      1071
       Today_Hour18_PVreal:
         logdb:
           TIME       1696694330.58634
           VALUE      2130
       Today_Hour19_GridConsumption:
         logdb:
           TIME       1696697970.77595
           VALUE      209
       Today_Hour19_GridFeedIn:
         logdb:
           TIME       1696696010.72429
           VALUE      82
       Today_Hour19_PVforecast:
         logdb:
           TIME       1696757201.05073
           VALUE      109
       Today_Hour19_PVreal:
         logdb:
           TIME       1696697760.71911
           VALUE      257
       Today_Hour20_GridConsumption:
         logdb:
           TIME       1696701540.93442
           VALUE      372
       Today_Hour20_GridFeedIn:
         logdb:
           TIME       1696698040.75857
           VALUE      0
       Today_Hour20_PVreal:
         logdb:
           TIME       1696698040.75857
           VALUE      0
       Today_Hour21_GridConsumption:
         logdb:
           TIME       1696705181.73416
           VALUE      481
       Today_Hour21_GridFeedIn:
         logdb:
           TIME       1696701610.98386
           VALUE      0
       Today_Hour21_PVreal:
         logdb:
           TIME       1696701610.98386
           VALUE      0
       Today_Hour22_GridConsumption:
         logdb:
           TIME       1696708752.36857
           VALUE      296
       Today_Hour22_GridFeedIn:
         logdb:
           TIME       1696705251.79535
           VALUE      0
       Today_Hour22_PVreal:
         logdb:
           TIME       1696705251.79535
           VALUE      0
       Today_Hour23_GridConsumption:
         logdb:
           TIME       1696712392.92974
           VALUE      384
       Today_Hour23_GridFeedIn:
         logdb:
           TIME       1696708822.32934
           VALUE      0
       Today_Hour23_PVreal:
         logdb:
           TIME       1696708822.32934
           VALUE      0
       Today_Hour24_GridConsumption:
         logdb:
           TIME       1696715963.54211
           VALUE      323
       Today_Hour24_GridFeedIn:
         logdb:
           TIME       1696712462.91775
           VALUE      0
       Today_Hour24_PVreal:
         logdb:
           TIME       1696712462.91775
           VALUE      0
       Today_MaxPVforecast:
         logdb:
           TIME       1696759069.98139
           VALUE      6551
       Today_MaxPVforecastTime:
         logdb:
           TIME       1696752719.98729
           VALUE      2023-10-08 12:00:00
       Today_PVdeviation:
         logdb:
           TIME       1696697970.77595
           VALUE      -2.61
       Today_PVforecast:
         logdb:
           TIME       1696759069.98139
           VALUE      32248
       Today_PVreal:
         logdb:
           TIME       1696759629.94242
           VALUE      7017
       Today_SunRise:
         logdb:
           TIME       1696716033.54596
           VALUE      07:36
       Today_SunSet:
         logdb:
           TIME       1696716033.54596
           VALUE      18:56
       Tomorrow_ConsumptionForecast:
         logdb:
           TIME       1696716103.58832
           VALUE      8902
       Tomorrow_PVforecast:
         logdb:
           TIME       1696757201.05073
           VALUE      12114
       Tomorrow_SunRise:
         logdb:
           TIME       1696716033.54596
           VALUE      07:37
       Tomorrow_SunSet:
         logdb:
           TIME       1696716033.54596
           VALUE      18:54
       consumer01:
         logdb:
           TIME       1696755940.75366
           VALUE      name='Elektrokonvektor_EG' state='on' planningstate='continued'
       consumer01_currentPower:
         logdb:
           TIME       1696759629.94242
           VALUE      805.3
       consumer01_planned_start:
         logdb:
           TIME       1696752089.93795
           VALUE      2023-10-08 10:01:29
       consumer01_planned_stop:
         logdb:
           TIME       1696752089.93795
           VALUE      2023-10-08 20:01:29
       nextCycletime:
         logdb:
           TIME       1696759629.75061
           VALUE      12:08:19
       nextSolCastCall:
         logdb:
           TIME       1696758932.4929
           VALUE      after 2023-10-08 12:10:00
       state:
         logdb:
           TIME       1696759631.16102
           VALUE      updated
       user_restofday_pv_forecast_kwh:
         logdb:
           TIME       1696759629.94242
           VALUE      22.92
       user_swon_konvektor:
         logdb:
           TIME       1696717490.37465
           VALUE      0
       user_today_pv_forecast_kwh:
         logdb:
           TIME       1696759069.98139
           VALUE      32.25
       user_tomorrow_pv_forecast_kwh:
         logdb:
           TIME       1696757201.05073
           VALUE      12.11
   OLDREADINGS:
   READINGS:
     2023-10-08 12:07:09   Current_AutarkyRate 100 %
     2023-10-08 12:07:09   Current_Consumption 973 W
     2023-10-08 12:07:09   Current_GridConsumption 0 W
     2023-10-08 12:07:09   Current_GridFeedIn 6011 W
     2023-10-08 12:07:09   Current_PV      6984 W
     2023-10-08 12:07:09   Current_SelfConsumption 973 W
     2023-10-08 12:07:09   Current_SelfConsumptionRate 14 %
     2023-10-08 12:07:09   Current_Surplus 6011 W
     2023-10-08 12:00:00   LastHourGridconsumptionReal 64 Wh
     2023-10-08 12:00:00   LastHourPVforecast 4703 Wh
     2023-10-08 12:00:00   LastHourPVreal  3606 Wh
     2023-10-08 12:07:09   NextHours_Sum01_PVforecast 6477 Wh
     2023-10-08 12:07:09   NextHours_Sum02_PVforecast 12141 Wh
     2023-10-08 12:07:09   NextHours_Sum03_PVforecast 15682 Wh
     2023-10-08 12:07:09   NextHours_Sum04_ConsumptionForecast 2377 Wh
     2023-10-08 12:07:09   NextHours_Sum04_PVforecast 19290 Wh
     2023-10-08 12:07:09   RestOfDayConsumptionForecast 5446 Wh
     2023-10-08 12:07:09   RestOfDayPVforecast 22920 Wh
     2023-10-08 00:58:54   Today_Hour01_GridConsumption 198 Wh
     2023-10-08 00:58:54   Today_Hour01_GridFeedIn 0 Wh
     2023-10-08 00:58:54   Today_Hour01_PVreal 0 Wh
     2023-10-08 01:59:34   Today_Hour02_GridConsumption 153 Wh
     2023-10-08 01:59:34   Today_Hour02_GridFeedIn 0 Wh
     2023-10-08 01:59:34   Today_Hour02_PVreal 0 Wh
     2023-10-08 02:59:05   Today_Hour03_GridConsumption 153 Wh
     2023-10-08 02:59:05   Today_Hour03_GridFeedIn 0 Wh
     2023-10-08 02:59:05   Today_Hour03_PVreal 0 Wh
     2023-10-08 03:59:45   Today_Hour04_GridConsumption 141 Wh
     2023-10-08 03:59:45   Today_Hour04_GridFeedIn 0 Wh
     2023-10-08 03:59:45   Today_Hour04_PVreal 0 Wh
     2023-10-08 04:59:16   Today_Hour05_GridConsumption 156 Wh
     2023-10-08 04:59:16   Today_Hour05_GridFeedIn 0 Wh
     2023-10-08 04:59:16   Today_Hour05_PVreal 0 Wh
     2023-10-08 05:59:57   Today_Hour06_GridConsumption 129 Wh
     2023-10-08 05:59:57   Today_Hour06_GridFeedIn 0 Wh
     2023-10-08 05:59:57   Today_Hour06_PVreal 0 Wh
     2023-10-08 06:59:27   Today_Hour07_GridConsumption 185 Wh
     2023-10-08 06:59:27   Today_Hour07_GridFeedIn 0 Wh
     2023-10-08 06:59:27   Today_Hour07_PVreal 0 Wh
     2023-10-08 07:58:58   Today_Hour08_GridConsumption 171 Wh
     2023-10-08 07:58:58   Today_Hour08_GridFeedIn 0 Wh
     2023-10-08 07:58:58   Today_Hour08_PVforecast 7 Wh
     2023-10-08 07:58:58   Today_Hour08_PVreal 0 Wh
     2023-10-08 08:59:39   Today_Hour09_GridConsumption 264 Wh
     2023-10-08 08:59:39   Today_Hour09_GridFeedIn 159 Wh
     2023-10-08 08:59:39   Today_Hour09_PVforecast 270 Wh
     2023-10-08 08:59:39   Today_Hour09_PVreal 367 Wh
     2023-10-08 09:59:09   Today_Hour10_GridConsumption 124 Wh
     2023-10-08 09:59:09   Today_Hour10_GridFeedIn 713 Wh
     2023-10-08 09:59:09   Today_Hour10_PVforecast 899 Wh
     2023-10-08 09:59:09   Today_Hour10_PVreal 1148 Wh
     2023-10-08 10:59:50   Today_Hour11_GridConsumption 258 Wh
     2023-10-08 10:59:50   Today_Hour11_GridFeedIn 328 Wh
     2023-10-08 10:59:50   Today_Hour11_PVforecast 2575 Wh
     2023-10-08 10:59:50   Today_Hour11_PVreal 1284 Wh
     2023-10-08 11:58:59   Today_Hour12_GridConsumption 64 Wh
     2023-10-08 11:58:59   Today_Hour12_GridFeedIn 2337 Wh
     2023-10-08 11:58:59   Today_Hour12_PVforecast 4703 Wh
     2023-10-08 11:58:59   Today_Hour12_PVreal 3606 Wh
     2023-10-08 12:07:09   Today_Hour13_GridConsumption 0 Wh
     2023-10-08 12:07:09   Today_Hour13_GridFeedIn 784 Wh
     2023-10-08 12:07:09   Today_Hour13_PVforecast 6551 Wh
     2023-10-08 12:07:09   Today_Hour13_PVreal 787 Wh
     2023-10-08 12:07:09   Today_Hour14_PVforecast 5996 Wh
     2023-10-08 12:07:09   Today_Hour15_PVforecast 3512 Wh
     2023-10-08 12:07:09   Today_Hour16_PVforecast 3728 Wh
     2023-10-08 12:07:09   Today_Hour17_PVforecast 2827 Wh
     2023-10-08 12:07:09   Today_Hour18_PVforecast 1071 Wh
     2023-10-08 12:07:09   Today_Hour19_PVforecast 109 Wh
     2023-10-08 12:07:09   Today_MaxPVforecast 6551 Wh
     2023-10-08 12:07:09   Today_MaxPVforecastTime 2023-10-08 12:00:00
     2023-10-08 12:07:09   Today_PVforecast 32248 Wh
     2023-10-08 12:07:09   Today_PVreal    7017 Wh
     2023-10-08 12:07:09   Today_SunRise   07:36
     2023-10-08 12:07:09   Today_SunSet    18:56
     2023-10-08 12:07:09   Tomorrow_ConsumptionForecast 8902 Wh
     2023-10-08 12:07:09   Tomorrow_PVforecast 12114 Wh
     2023-10-08 12:07:09   Tomorrow_SunRise 07:37
     2023-10-08 12:07:09   Tomorrow_SunSet 18:54
     2023-10-08 12:07:09   consumer01      name='Elektrokonvektor_EG' state='on' planningstate='continued'
     2023-10-08 12:07:09   consumer01_currentPower 805.3 W
     2023-10-08 12:07:09   consumer01_planned_start 2023-10-08 10:01:29
     2023-10-08 12:07:09   consumer01_planned_stop 2023-10-08 20:01:29
     2023-08-09 00:11:15   currentInverterDev SMA_Wechselrichter pv=SPOT_PACTOT:W etotal=SPOT_ETOTAL:Wh capacity=10000
     2023-08-09 00:12:09   currentMeterDev SMA_SHM gcon=SMAEM3011836601_Bezug_Wirkleistung:W contotal=SMAEM3011836601_Bezug_Wirkleistung_Zaehler:kWh gfeedin=SMAEM3011836601_Einspeisung_Wirkleistung:W feedtotal=SMAEM3011836601_Einspeisung_Wirkleistung_Zaehler:kWh
     2023-10-06 15:39:59   currentRadiationAPI SolCast-API
     2023-09-06 13:39:32   currentWeatherDev Wetter_DWD
     2023-08-09 00:12:28   inverterStrings Hausdach
     2023-08-09 00:12:41   modulePeakString Hausdach=10.2
     2023-08-09 00:13:00   moduleRoofTops  Hausdach=p1
     2023-10-08 12:07:09   nextCycletime   12:08:19
     2023-10-08 11:55:32   nextSolCastCall after 2023-10-08 12:10:00
     2023-10-08 12:07:11   state           updated
     2023-10-08 12:07:11   user_restofday_pv_forecast_kwh 22.92
     2023-10-08 12:07:11   user_swon_konvektor 0
     2023-10-08 12:07:11   user_today_pv_forecast_kwh 32.25
     2023-10-08 12:07:11   user_tomorrow_pv_forecast_kwh 12.11
   hmccu:
Attributes:
   consumer01 Elektrokonvektor_EG type=heater power=750 mode=can pcurr=power:W on=on off=off swstate=relay:on:off interruptable=1 swoncond=PV_Forecast:user_swon_konvektor:1 swoffcond=PV_Forecast:user_swon_konvektor:0 mintime=600
   ctrlDebug  consumerPlanning
   ctrlSolCastAPIoptimizeReq 1
   event-on-change-reading .*
   room       PV
   userReadings user_swon_konvektor { if (ReadingsVal("HomeStatus","state","away") eq "present" && ReadingsVal("PV_Heizungsunterstuetzung","state","off") eq "on") { sprintf(1); } else { sprintf(0); }}, user_today_pv_forecast_kwh { sprintf('%.2f',ReadingsNum("PV_Forecast","Today_PVforecast",0)/1000);; }, user_tomorrow_pv_forecast_kwh { sprintf('%.2f',ReadingsNum("PV_Forecast","Tomorrow_PVforecast",0)/1000);; }, user_restofday_pv_forecast_kwh { sprintf('%.2f',ReadingsNum("PV_Forecast","RestOfDayPVforecast",0)/1000);; }

VG,

ambiman

DS_Starter

Hallo ambiman,

ich denke das ist ein Problem mit dem Vergleichsregex "0".
Im nächsten Release (heute) fixe ich das. Du kannst es einstweilen mal probieren mit dem Wert 0.0 statt 0.
Musst dann natürlich auch das userReading auf 0.0 setzen.

Grüße,
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

DS_Starter

@Guido, ich konnte auch bei mir sehen dass manchmal nur eine Berechnung simple oder complex eines der SolarForecast Devices im Log erscheint. Den Grund dafür kann ich mir momentan noch nicht erklären.
Das ist jetzt nicht problematisch, dennoch unschön.

Ich bleibe dran, muß aber wohl mal darüber schlafen ...
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

oelidoc

Hallo,
ich stehe mit dem Modul wohl noch ziemlich am Anfang, da ich zu Beginn wohl falsche Einheiten bei den Readings meiner beiden SMA Geräte eingetragen habe.
Vielleicht kann ja jemand mit den weitverbreiteten SMA Sunny Tripower und HomeManager 2.0 mal meine Einstellungen kontrollieren:
currentInverterDev
SunnyTripower6.0 pv=state:W etotal=SPOT_ETOTAL:Wh capacity=6000
currentMeterDev
SunnyHomeManager2.0 gcon=Bezug_Wirkleistung:W contotal=Bezug_Wirkleistung_Zaehler:Wh gfeedin=Einspeisung_Wirkleistung:W feedtotal=Einspeisung_Wirkleistung_Zaehler:Wh
Ich habe nämlich bei den CO Werten völlig unrealistische Werte stehen:
CO => aktuell: 301 W nächste 4h: 886082 Wh Rest heute: 1914752 Wh morgen: 1463699 Wh
Die dürften auf der ursprünglich fälschlichen Angabe W statt Wh beruhen. Aber auch mit den o.g. Einstellungen der Devices werden die Werte nicht plausibler. Muss ich jetzt einfach warten, bis sich die Vorhersagen anpassen, oder kann ich das irgendwie beschleunigen? Oder hab ich immer noch einen Fehler in der Konfiguration?

Vielen Dank

oelidoc