Leistungsprognose für Wechselrichter

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

Vorheriges Thema - Nächstes Thema

DS_Starter

Nicht beim reload sondern beim shutdown restart. Aber glaube nicht an ein Modulfehler, ist nur eine Logausgabe dazu gekommen und läuft bei mir.

Nochmal downloaden.
Zum Download in der FHEMWEB Kommandozeile inklusive der Ausführungszeichen angeben und danach FHEM restarten:


"wget -qO ./FHEM/76_SolarForecast.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/76_SolarForecast.pm"
ESXi@NUC+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

Mumpitz

Zitat von: DS_Starter am 22 Januar 2021, 22:50:23
Nicht beim reload sondern beim shutdown restart. Aber glaube nicht an ein Modulfehler, ist nur eine Logausgabe dazu gekommen und läuft bei mir.

Nochmal downloaden.
Zum Download in der FHEMWEB Kommandozeile inklusive der Ausführungszeichen angeben und danach FHEM restarten:


"wget -qO ./FHEM/76_SolarForecast.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/76_SolarForecast.pm"


habe ich gemacht. danach wieder die selbe Meldung. Danach habe ich die Datei 76_SolarForecast in fhem/FHEM angeschaut und festgestellt, dass sie 0 kb gross war. Habe sie nun manuell aus dem Contrib gezogen. Nun erscheinen nach dem Restart diese Meldungen:

./FHEM/76_SolarForecast.pm has too many errors.
Unknown regexp modifier "/r" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/e" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/t" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/r" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/t" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/S" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/_" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/S" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/D" at ./FHEM/76_SolarForecast.pm line 9, at end of line
2021.01.22 22:54:07 0: syntax error at ./FHEM/76_SolarForecast.pm line 8, near "<"

./FHEM/76_SolarForecast.pm has too many errors.
Unknown regexp modifier "/r" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/e" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/t" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/r" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/t" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/S" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/_" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/S" at ./FHEM/76_SolarForecast.pm line 9, at end of line
Unknown regexp modifier "/D" at ./FHEM/76_SolarForecast.pm line 9, at end of line
syntax error at ./FHEM/76_SolarForecast.pm line 8, near "<"
2021.01.22 22:54:07 1: reload: Error:Modul 76_SolarForecast deactivated:
2021.01.22 22:54:07 1: PERL WARNING: (Missing operator before SolarForecast?)
2021.01.22 22:54:07 1: PERL WARNING: Bareword found where operator expected at ./FHEM/76_SolarForecast.pm line 9, near "76_SolarForecast"

DS_Starter

Ja da hast du eine html-Seite geladen.  ;) Wenn du genau hinschaust liest du meinen Namen.
Beim manuellen Laden musst du das Speichern-Symbol verwenden.

Aber mit dem wget klappt das tagellos. Habe es grad bei mir getestet.

ESXi@NUC+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

Ich habs dir ausnahmsweise mal hier angehängt
ESXi@NUC+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

Mumpitz

über das Wget klappts bei mir nicht. es kommt nur die Datei mit 0kb. Ich habe nun die richtige Datei von deinem Contrib eingefügt und nach dem neu definieren läuft das Modul wieder...

Einträge nach dem Restart mit Verbose 5:

2021.01.22 23:09:26 5: SolarForecast - collect Meter data: device=WR_Plenticore, gcon=Home_own_consumption_from_grid (W)
2021.01.22 23:09:26 5: SolarForecast - collect Inverter data: device=WR_Plenticore, pv=Power_DC_Sum (W), etoday=Daily_yield (Wh)
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_23_ww, val=103, txt=, cc=82
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_22_ww, val=103, txt=, cc=84
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_21_ww, val=103, txt=, cc=85
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_20_ww, val=103, txt=, cc=85
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_19_ww, val=103, txt=, cc=92
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_18_ww, val=3, txt=, cc=91
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_17_ww, val=3, txt=, cc=91
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_16_ww, val=3, txt=, cc=91
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_15_ww, val=3, txt=, cc=89
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_14_ww, val=3, txt=, cc=87
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_13_ww, val=3, txt=, cc=85
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_12_ww, val=3, txt=, cc=85
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_11_ww, val=3, txt=, cc=84
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_10_ww, val=68, txt=, cc=84
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_9_ww, val=68, txt=, cc=84
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_8_ww, val=68, txt=, cc=85
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_7_ww, val=61, txt=, cc=85
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_6_ww, val=63, txt=, cc=89
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_5_ww, val=169, txt=, cc=89
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_4_ww, val=163, txt=, cc=88
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_3_ww, val=163, txt=, cc=91
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_2_ww, val=163, txt=, cc=99
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_1_ww, val=163, txt=, cc=100
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc1_0_ww, val=163, txt=, cc=100
2021.01.22 23:09:26 5: SolarForecast - collect Weather data: device=DWD_Forecast, wid=fc0_23_ww, val=163, txt=, cc=100
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 23 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_23_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 22 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_22_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 21 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_21_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 20 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_20_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 19 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_19_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 18 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_18_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 17 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_17_Rad1h, Val=50.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 16 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_16_Rad1h, Val=240.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 15 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_15_Rad1h, Val=490.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 14 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_14_Rad1h, Val=640.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 13 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_13_Rad1h, Val=680.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 12 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_12_Rad1h, Val=590.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 11 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_11_Rad1h, Val=460.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 10 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_10_Rad1h, Val=200.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 09 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_9_Rad1h, Val=40.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 08 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_8_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 07 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_7_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 06 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_6_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 05 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_5_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 04 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_4_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 03 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_3_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 02 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_2_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 01 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_1_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 00 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc1_0_Rad1h, Val=0.00
2021.01.22 23:09:26 5: SolarForecast - set PV History hour 23 -> real: 0, forecast: 0
2021.01.22 23:09:26 5: SolarForecast - calcPVforecast -> Hour: 23 ,moduleTiltAngle factor: 1.35, Cloudfactor: 1, Rainfactor: 1, pvCorrectionFactor: 1
2021.01.22 23:09:26 5: SolarForecast - collect DWD forecast data: device=DWD_Forecast, rad=fc0_23_Rad1h, Val=0.00


nach get pvHistory:
PV cache is empty.

und im Log
2021.01.22 23:11:24 5: SolarForecast - PV History content: undef

DS_Starter

erstmal prima.

Aber diese Diskrepanz:


2021.01.22 23:09:26 5: SolarForecast - set PV History hour 23 -> real: 0, forecast: 0


und


2021.01.22 23:11:24 5: SolarForecast - PV History content: undef


ist mir ein Rätsel. Das lösen wir heute auch nicht mehr.
Lass mal so laufen. Morgen schauen wir weiter. Vllt. kommt mir über Nacht eine Idee. Kann ich bei mir auch nicht nachvollziehen.

LG,
Heiko
ESXi@NUC+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

Mumpitz

Zitat von: DS_Starter am 22 Januar 2021, 23:17:04
erstmal prima.

Aber diese Diskrepanz:


2021.01.22 23:09:26 5: SolarForecast - set PV History hour 23 -> real: 0, forecast: 0


und


2021.01.22 23:11:24 5: SolarForecast - PV History content: undef


ist mir ein Rätsel. Das lösen wir heute auch nicht mehr.
Lass mal so laufen. Morgen schauen wir weiter. Vllt. kommt mir über Nacht eine Idee. Kann ich bei mir auch nicht nachvollziehen.

LG,
Heiko

Danke für deinen grossen Einsatz und gute Nacht!

ch.eick

#37
Moin zusammen,
nach einer kleinen Fehlerkorrektur ist die Funktion Solar_forecast() nun im Wiki aktiv.
Für die Anwender, die dies Funktion bereits verwenden ergibt sich keine Änderung, außer das es nun weitere readings im Wechselrichter Device gibt, die den Vergleich mit dem 76_SolarForecast.pm Modul erleichtern.

Weil Ihr so fleißig wart hier nochmals die Neuerungen

- Es werden nun 5 Ausrichtungen unterstützt, z.B. Ost, Sued, West, Schuppen, Garage, Carport, die Namen sind ja frei wählbar, wobei ich Umlaute eher meiden würde :-)
- Wenn man beim Aufruf die DbLog und das DBRep Device mit "none" angibt, wird nichts in die Datenbank geschrieben, oder auch nur bei DbRep ein "none" löscht halt nichts.
  Das ist dann für die Anwender, die keine Datenbank haben (wollen)
- Es gibt jetzt mehr readings, die in das Wechselrichter Device geschrieben werden
  - Solar_Calculation_fc[0|1]_hh   die Kalkulation für die jeweilige Stunde
  - Solar_Calculation_fc[0|1]_day   die Summe für den gesamten Tag
  - Solar_Calculation_fc0_4h    die Summe der nächsten 4 Stunden des aktuellen Tages
- Wer den Forecast nicht in seinem Wechselrichter Device haben möchte kann natürlich auch beim Aufruf jedes andere Device angeben


Einige Aufrufbeispiele

{Solar_forecast("LogDB","LogDBRep_delete_PV_Forecast","PV_Anlage_1","Solar_Calculation_fc","DWD_Forecast",0)}
{Solar_forecast("LogDB","none","PV_Anlage_1","Solar_Calculation_fc","DWD_Forecast",0)}
{Solar_forecast("none","none","PV_Anlage_1","Solar_Calculation_fc","DWD_Forecast",0)}
{Solar_forecast("LogDB","LogDBRep_delete_PV_Forecast","Ein_eigenes_Device","Ein_eigener_reading_Stamm","DWD_Forecast",0)}


Wer z.B. "Ein_eigenes_Device" verwenden möchte, der muss natürlich auch "Ein_eigenes_Device_config" als Dummy mit der Konfiguration anlegen.
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

DS_Starter

Guten Morgen,

[Modul 76_SolarForecast]

ich glaube ich habe das Problem gefunden/gefixt.
Die ungedatete V liegt in meinem contrib.

Außerdem ist in dieser V auch der Niederschlag berücksichtigt und es gibt den Setter:

  set <> reset pvHistory

Damit kann man sich die historischen Werte löschen wenn man möchte.

Bezüglich des Niederschlags habe ich den R101 Wert benutzt. Dieser Wert zeigt die Niederschlagswahrscheinlichkeit > 0,1 mm während der letzten Stunde.
Ihr müßt also in eurem DWD-Device das Attribut forecastProperties um den Wert R101 ergänzen wenn noch nicht enthalten.

In dem Attribut forecastProperties sollten dann mindestens diese Werte enthalten sein:

  Rad1h,TTT,Neff,R101,ww,SunUp,SunRise,SunSet
ESXi@NUC+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

ch.eick

#39
EDIT: Ich habe dann jetzt man noch das Diagramm angehängt, aus dem man die reale Leistung erkennen kann.
      Prognose zu realität hat bei Solar_forecast() sehr gut gepasst. Die Basis Werte von 76_SolarForecast sind momentan viel zu niedrig, da müsste die Autokorrektur extrem viel nachregeln.

Guten Morgen Heiko,
in unserem Alter kann man wohl auch Samstags nicht mehr lange schlafen :-)

Ich habe gerade das Modul aktualisiert und auch meine Funktion aufgefrischt.

Solar_function()
---------------------------------------------------------------------
Solar_Calculation_fc0_4h 2198
Solar_Calculation_fc0_day 4428

Solar_Calculation_fc0_07 0
Solar_Calculation_fc0_08 0
Solar_Calculation_fc0_09 0

Solar_Calculation_fc0_10 744
Solar_Calculation_fc0_11 768
Solar_Calculation_fc0_12 686
Solar_Calculation_fc0_13 824
Solar_Calculation_fc0_14 638
Solar_Calculation_fc0_15 512
Solar_Calculation_fc0_16 256

Solar_Calculation_fc0_17 0
Solar_Calculation_fc0_18 0
Solar_Calculation_fc0_19 0


Modul Werte ohne Autokorrektur, aber jetzt mit Regen
---------------------------------------------------------------------
Next04Hours_PV 156 Wh
RestOfDay_PV 432 Wh

Today_Hour09_PVforecast 3 Wh
Today_Hour10_PVforecast 24 Wh
Today_Hour11_PVforecast 53 Wh
Today_Hour12_PVforecast 76 Wh
Today_Hour13_PVforecast 83 Wh
Today_Hour14_PVforecast 77 Wh
Today_Hour15_PVforecast 65 Wh
Today_Hour16_PVforecast 39 Wh
Today_Hour17_PVforecast 12 Wh


Somit liegt die Basis Prognose leider weit auseinander.

VG
   Christian
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

DS_Starter

Ich habe heute einen ruhigen Tag. Bei uns schneit es und die Zellen sind jetzt zu.  ;)
ESXi@NUC+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

ch.eick

Zitat von: DS_Starter am 23 Januar 2021, 09:30:03
Ich habe heute einen ruhigen Tag. Bei uns schneit es und die Zellen sind jetzt zu.  ;)
Dann ist das der Tag der Modul Kosmetik :-)
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

ch.eick

#42
So, hier nun das Beispiel, wie Ihr mit Solar_forecast() die Vergleichswerte direkt in das Device von 76_SolarForecast.pm schreiben könnt.


DWD_Forecast_Test wäre das Device vom 76_SolarForecast.pm Modul
DWD_Forecast ist das Wetter Modul
Solar_forecast_fc ist der Basisteil vom reading

DWD_Forecast_Test_config beinhaltet die Konfiguration der Module und der Korrekturfaktoren

# Das wird in der Kommandozeile aufgerufen
{Solar_forecast("none","none","DWD_Forecast_Test","Solar_forecast_fc","DWD_Forecast",0)}      <<<< für heute
{Solar_forecast("none","none","DWD_Forecast_Test","Solar_forecast_fc","DWD_Forecast",1)}      <<<< für morgen

# Mit dem Aufruf würden die readings wieder gelöscht
deletereading DWD_Forecast_Test Solar_.*


Ein Beispiel für die Modul Konfiguration mit drei Ausrichtungen

defmod DWD_Forecast_Test_config dummy
attr DWD_Forecast_Test_config DbLogExclude .*
attr DWD_Forecast_Test_config alias DWD_Forecast_Test_config
attr DWD_Forecast_Test_config comment Version 2021.01.23 10:00\
Passworte für die Abfrage des PV_Anlage_1_API werden im storeKeyValue abgelegt:\
   {KeyValue("[read|store]","PW_<Device Name>_<Benutzer Name>","<passwort>")}\
   {KeyValue("store","PW_PV_Anlage_1_API_user","<passwort>")}\
\
Steht das reading module_*_count auf 0 wird diese Ausrichtung nicht berücksichtigt\
Passworte zu dieser Konfiguration liegen im Dateiverzeichnis ~./python/pwd_*.json\
\
Korrekturkurven:\
         Steilheit  Parallel\
                    verschiebung\
tempk      -0.39      25\
cloudk     -0.65       0\
raink      -0.30       0\
Der Slider für die Steilheit wird mit - k/100 umgerechnet. 39 ==> -0.39
attr DWD_Forecast_Test_config event-on-change-reading .*
attr DWD_Forecast_Test_config group PV Eigenverbrauch
attr DWD_Forecast_Test_config icon solar_icon
attr DWD_Forecast_Test_config readingList IP-Address_Plenticore IP-Address_BYD IP-Address_KSEM IP-Address_FHEM module_1_active module_2_active module_3_active module_1_name module_2_name module_3_name module_1_direction module_2_direction module_3_direction module_1_count module_2_count module_3_count module_1_power module_2_power module_3_power module_1_plain module_2_plain module_3_plain forecast_cloudk forecast_cloudk_base forecast_raink forecast_raink_base forecast_tempk forecast_tempk_base forecast_factor Forecast_Station Battery_Total_Power
attr DWD_Forecast_Test_config room Strom->Photovoltaik
attr DWD_Forecast_Test_config setList IP-Address_Plenticore IP-Address_BYD IP-Address_KSEM IP-Address_FHEM module_1_name:East,SouthEast,South,SouthWest,West,Garage,CarPort module_2_name:East,SouthEast,South,SouthWest,West module_3_name:East,SouthEast,South,SouthWest,West module_1_direction:slider,-90,5,+90 module_2_direction:slider,-90,5,90 module_3_direction:slider,-90,5,90 module_1_count:slider,0,1,40 module_2_count:slider,0,1,40 module_3_count:slider,0,1,40 module_1_power:slider,250,10,400 module_2_power:slider,250,10,400 module_3_power:slider,250,10,400 module_1_plain:slider,15,1,45 module_2_plain:slider,15,1,45 module_3_plain:slider,15,1,45 forecast_cloudk:slider,0,1,100 forecast_cloudk_base:slider,0,1,10 forecast_raink:slider,0,1,100 forecast_raink_base:slider,0,1,10 forecast_tempk:slider,0,1,100 forecast_tempk_base:slider,10,1,30 forecast_factor Forecast_Station Battery_Total_Power
attr DWD_Forecast_Test_config sortby 04
attr DWD_Forecast_Test_config verbose 0

setstate DWD_Forecast_Test_config 2020-09-22 10:03:21 forecast_cloudk 45
setstate DWD_Forecast_Test_config 2020-09-22 10:12:17 forecast_cloudk_base 0
setstate DWD_Forecast_Test_config 2020-12-07 15:49:18 forecast_factor 1
setstate DWD_Forecast_Test_config 2020-09-02 18:40:29 forecast_raink 20
setstate DWD_Forecast_Test_config 2020-09-01 12:52:40 forecast_raink_base 0
setstate DWD_Forecast_Test_config 2020-09-01 12:46:57 forecast_tempk 39
setstate DWD_Forecast_Test_config 2020-09-01 12:50:06 forecast_tempk_base 25
setstate DWD_Forecast_Test_config 2020-12-26 14:18:44 module_1_count 15
setstate DWD_Forecast_Test_config 2020-08-31 12:27:38 module_1_direction -90
setstate DWD_Forecast_Test_config 2020-08-31 12:27:48 module_1_name East
setstate DWD_Forecast_Test_config 2020-08-31 12:29:42 module_1_plain 40
setstate DWD_Forecast_Test_config 2020-08-31 12:31:09 module_1_power 310
setstate DWD_Forecast_Test_config 2020-12-26 14:18:52 module_2_count 6
setstate DWD_Forecast_Test_config 2020-08-31 12:33:55 module_2_direction 0
setstate DWD_Forecast_Test_config 2020-08-31 12:34:03 module_2_name South
setstate DWD_Forecast_Test_config 2020-08-31 12:34:14 module_2_plain 40
setstate DWD_Forecast_Test_config 2020-12-26 14:19:10 module_2_power 310
setstate DWD_Forecast_Test_config 2020-12-26 14:19:21 module_3_count 15
setstate DWD_Forecast_Test_config 2020-08-31 12:34:50 module_3_direction 90
setstate DWD_Forecast_Test_config 2020-08-31 12:35:00 module_3_name West
setstate DWD_Forecast_Test_config 2020-08-31 12:35:08 module_3_plain 40
setstate DWD_Forecast_Test_config 2020-08-31 12:35:16 module_3_power 310


Es ergeben sich dann folgende readings

Solar_Calculation 744
Solar_Cloud 86
Solar_Correction_Cloud 0.613
Solar_Correction_Rain 0.836
Solar_Correction_Temp 1.047
Solar_East 503
Solar_Rain 82
Solar_SolarRadiation 81
Solar_South 241
Solar_Temp 12.9
Solar_West 0
Solar_forecast_fc0_07 0
Solar_forecast_fc0_08 0
Solar_forecast_fc0_09 0
Solar_forecast_fc0_10 744
Solar_forecast_fc0_11 768
Solar_forecast_fc0_12 686
Solar_forecast_fc0_13 824
Solar_forecast_fc0_14 638
Solar_forecast_fc0_15 512
Solar_forecast_fc0_16 256
Solar_forecast_fc0_17 0
Solar_forecast_fc0_18 0
Solar_forecast_fc0_19 0
Solar_forecast_fc0_4h 3022
Solar_forecast_fc0_day 4428

Solar_forecast_fc1_07 0
Solar_forecast_fc1_08 0
Solar_forecast_fc1_09 0
Solar_forecast_fc1_10 999
Solar_forecast_fc1_11 1056
Solar_forecast_fc1_12 1118
Solar_forecast_fc1_13 1537
Solar_forecast_fc1_14 1242
Solar_forecast_fc1_15 1095
Solar_forecast_fc1_16 622
Solar_forecast_fc1_17 0
Solar_forecast_fc1_18 0
Solar_forecast_fc1_19 0
Solar_forecast_fc1_day 7669

Anhand der readings Solar_[East|South|West] erkennt man dann auch, welche Ausrichtungen gerade welchen Anteil dazusteuern.
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

ch.eick

Hi, der Prognosevergleich, von heute Morgen, ist nun mit einem Diagramm aktualisiert.
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

Herjemine

#44
ah mit der neuen geht bei mir auch die pvhistory und PVH_SolarForecast_.. ;D