Leistungsprognose für Wechselrichter

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

Vorheriges Thema - Nächstes Thema

DS_Starter

Moin,

die KI Implemetierung ist in der V erstmal nur vorbereitend, Daten werden gesammelt und verarbeitet, aber noch nicht in die Vorhersage importiert.
Das kommt noch. Ich will erstmal sehen wie es in der Breite so läuft.
Ein logisches Problem habe ich schon festgestellt.
Eine Lösung habe ich auch schon und gebe euch ein Update wenn ich getestet habe.

LG
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

tobi01001

Hi,

danke für diese tolle Modul. Habe es jetzt seit ein paar Tagen im einsatz und funktioniert wunderbar.
Kleinigkeiten die mir aufgefallen sind - ich hoffe ich wärme damit keine Uraltthemen auf:
  • Wenn man DWD alse currentRadiationDev nimmt und das DWD Device auch frisch ist, liefert der erste Abruf die Vorhersage, nicht aber die vergangenen Stunden. Das führte bei mir dazu, dass erstmal keinerlei Prognose gezeigt wurde. Im Log (mit ctrlDebug) war dann eine entsprechende Fehlermeldung zu sehen. Ich hatte die fehlenden Readings im DWD dann von Hand gesetzt und die Prognose funktonierte direkt. Es hätte auch genügt bis zum nächsten Tag zu warten. Aber wer hat schon soviel Geduld. ;-)
  • Zum Vergleichen der Prognosen habe ich mir ein zweites SolarForecast Device mit ForecastSolar-API angelegt - ohne schaltbare Consumer... Die Vorhersage kann man auch gut damit verlgeichen und das aktuell sehr konstante sonnige Wetter scheint auch gut geeignet. Aber ir ist aufgefallen, dass die Realen Werte zwischen beiden Devices voneinander abweichen, was mir bei gleicher Datenquelle doch seltsam vorkommt? Siehe Screenshot Stunde 13 und 15-18. Habe das aber an mehreren Tagen beobachten können.

Beim Tagesendwert stimmt die Summe überein:

Today_PVdeviation-4.52 %
Today_PVforecast27429 Wh
Today_PVreal28727 Wh

vs.

Today_PVdeviation-7.71 %
Today_PVforecast26511 Wh
Today_PVreal28727 Wh

Aber:
Beim ersten Device (mySolarForecast) ergibt die Summe der stündlichen Readings lediglich 24737 Wh.
Beim zweiten Device (mySolarForecastTest) ergibt die Summe der stündlichen Readings 24410 Wh.
Beide Summen weiche recht stark von Today_PVreal ab.

Eventuell hat das eine einfache logische Erklärung.
Jetzt habe ich erstmal die neue Verson geladen und trainiere die KI.

Danke und Gruß,
Tobias

Du darfst diesen Dateianhang nicht ansehen.
FHEM@UbuntuServer on Lenovo ThinkCentre M900 [i5-6500T / 8GB RAM] MySQL-DbLog, Grafana, FTUI3 / HmIP incl. CCU3 / LGESS / Wärempumpe über TA CMI und CANoE / Shellies u.v.m.

DS_Starter

Guten Morgen,

willkommen Tobias.
Ich habe mir soeben ein Device vom Model DWD neu definiert um einen Vergleich zu haben.

ZitatWenn man DWD alse currentRadiationDev nimmt und das DWD Device auch frisch ist, liefert der erste Abruf die Vorhersage, nicht aber die vergangenen Stunden. Das führte bei mir dazu, dass erstmal keinerlei Prognose gezeigt wurde.
Das kann ich bei mir nicht nachvollziehen. Vergangene Stunden gibt es natürlich nicht. Aber dennoch gibt es eine PV Prognose für die Zukunft. Vllt. meinst du etwas bestimmtes was ich übersehen habe? Welches ctrlDebug wirft denn welche Fehler im Log?

ZitatAber ir ist aufgefallen, dass die Realen Werte zwischen beiden Devices voneinander abweichen, was mir bei gleicher Datenquelle doch seltsam vorkommt? Siehe Screenshot Stunde 13 und 15-18. Habe das aber an mehreren Tagen beobachten können.
Kann ich ebenfalls bei mir nicht nachvollziehen. Ich habe vier Devices zum Vergleich parallel laufen. Die PVReal stimmen mit kleinen Abweichungen überall überein. die kleinen Abweichungen kommen von unterschiedlichen ctrlInterval, sodass am Stundenende Differenzen untereinander auftreten können. Es ist bei allen Devices darauf zu achten, dass currentInverterDev identisch gesetzt ist.

ZitatAber:
Beim ersten Device (mySolarForecast) ergibt die Summe der stündlichen Readings lediglich 24737 Wh.
Beim zweiten Device (mySolarForecastTest) ergibt die Summe der stündlichen Readings 24410 Wh.
Beide Summen weiche recht stark von Today_PVreal ab.
Sowohl Today_PVforecast als auch Today_PVreal werden durch einfache Summenbildung der Einzelreadings im Perl gebildet. Wenn diese Summen im Vergleich zu einer manuellen Aufsummierung bei dir nicht stimmen, rechnet dein Perl falsch. ;)

Du könntest ein List deiner Devices posten, dann kann man genauer hinschauen.

LG 
 
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

tobi01001

Guten Morgen und danke für die schnelle Rückmeldung...

DWD-Radiation:
Hab das mit DWD device gerade nochmal nachgestellt (neuste Version [v0.82.0-s27929/2023-09-04 TESTING] und zur Sicherheit fhem kürzlich neu gestartet).
Raw definition:
defmod myDWD_Test DWD_OpenData
attr myDWD_Test DbLogExclude .*
attr myDWD_Test event-on-change-reading .*
attr myDWD_Test forecastDays 2
attr myDWD_Test forecastProperties SunUp, SunRise, SunSet, Rad1h, R101, TTT, Tx, Tn, Tg, DD, FX1, RR6c, R600, RRhc, Rh00, ww, wwd, Neff
attr myDWD_Test forecastResolution 1
attr myDWD_Test forecastStation 10763
attr myDWD_Test forecastWW2Text 1
attr myDWD_Test icon rc_WEB
attr myDWD_Test room Solar,Wetter
attr myDWD_Test stateFormat Tomorrow Tmax fc1_Tx °C on fc1_date
attr myDWD_Test verbose 2

defmod mySolarForeCastTest2 SolarForecast
attr mySolarForeCastTest2 DbLogExclude .*
attr mySolarForeCastTest2 ctrlAutoRefreshFW WEB
attr mySolarForeCastTest2 ctrlDebug none,aiProcess,aiData,apiCall,apiProcess,collectData,notifyHandling,pvCorrection,radiationProcess
attr mySolarForeCastTest2 ctrlInterval 20
attr mySolarForeCastTest2 event-on-change-reading .*
attr mySolarForeCastTest2 flowGraphicAnimate 1
attr mySolarForeCastTest2 graphicHistoryHour 8
attr mySolarForeCastTest2 room Solar

set mySolarForeCastTest2 currentBatteryDev myLGESS pin=-pout:W pout=battPower.av:W intotal=totalBattCharge:Wh outtotal=totalBattDisCharge:Wh charge=/essinfo/common/BATT/soc
set mySolarForeCastTest2 currentInverterDev myLGESS pv=/essinfo/home/statistics/pcs_pv_total_power:W etotal=totalPVGenSum:Wh capacity=10000
set mySolarForeCastTest2 currentMeterDev myLGESS gcon=gridBuy:W contotal=totalGridBuy:Wh gfeedin=gridSell:W feedtotal=totalGridSell:Wh
set mySolarForeCastTest2 currentRadiationDev myDWD_Test
set mySolarForeCastTest2 currentWeatherDev myDWD_Test
set mySolarForeCastTest2 inverterStrings PV1,PV2
set mySolarForeCastTest2 moduleDirection PV1=-37 PV2=143
set mySolarForeCastTest2 modulePeakString PV1=4.32 PV2=2.16
set mySolarForeCastTest2 moduleTiltAngle PV1=55 PV2=55

Das Ergebnis ist bei mir:
Du darfst diesen Dateianhang nicht ansehen.

Debug-Meldung dazu ist:
2023.09.08 09:04:41 1: mySolarForeCastTest2 DEBUG> DWD API - collect DWD Radiation data with start >2023-09-08 00:00:00<- device: myDWD_Test =>
2023.09.08 09:04:41 1: mySolarForeCastTest2 DEBUG> DWD API - ERROR - got no data of starttime: 2023-09-08 00:00:00. The reading >fc0_1_Rad1h< doesn't exist. Check the device myDWD_Test !
Und im DWD Device gehen halt die Vorhersagen erst mit Stunde 10 los, da der Rest Vergangenheit ist.


Abweichung Today_Hourxx_pvReal:
Ja, ich hatte vermutet, dass das einfach eine Aufsummierung der Readings ist. Nachdem der Tagesendwert aber von der Summe abwich, hatte ich mal nachgerechnet - aus den Readings heraus...
Das sind die Werte vom gestrigen Post:
ReadingpvReal1pvReal2Delta
Today_Hour01_PVreal   000
Today_Hour02_PVreal   000
Today_Hour03_PVreal   000
Today_Hour04_PVreal   000
Today_Hour05_PVreal   000
Today_Hour06_PVreal   000
Today_Hour07_PVreal   330
Today_Hour08_PVreal   68680
Today_Hour09_PVreal   177117710
Today_Hour10_PVreal   316731670
Today_Hour11_PVreal   278527850
Today_Hour12_PVreal   288428840
Today_Hour13_PVreal   282728270
Today_Hour14_PVreal   34542544910
Today_Hour15_PVreal   295329530
Today_Hour16_PVreal   16692318649
Today_Hour17_PVreal   10341482448
Today_Hour18_PVreal   1022760262
Today_Hour19_PVreal   910660250
Today_Hour20_PVreal   1841840
Today_Hour21_PVreal   642
Today_Hour22_PVreal   000
Summe Readings   2473724410327
Today_Pvreal   28727287270
28,67 kWh ist laut LG der gestrige Ertrag. Das "Tagesreading" passt demnach und lediglich die Stundenwerte haben Abweichungen.

Ich werde heute nochmal mit der aktuellen Version beobachten...

Danke und Gruß,
Tobias

Lists der beiden Devices:
define mySolarForeCast SolarForecast
attr mySolarForeCast DbLogExclude .*
attr mySolarForeCast consumer01 SW_AU_Poolpumpe_2 type=other power=200 mode=must icon=sani_pump mintime=SunPath:100:-100 on=on off=off notbefore=7 notafter=20 locktime=120:300 interruptable=1 pcurr=pCurr:W auto=pvAuto
attr mySolarForeCast consumer02 STKD_UG_Luftentfeuchter_2 type=other power=220 mode=can icon=humidity mintime=SunPath:100:0 on=on off=off locktime=600:300 interruptable=1 pcurr=pCurr:W auto=pvAuto
attr mySolarForeCast consumer03 HT_WP_EnergyMeter power=0 type=noSchedule icon=sani_heating_heatpump pcurr=power_sum:W:100 etotal=energy_total:Wh swstate=wp_Active:1:0
attr mySolarForeCast consumer04 STKD_EG_Flur_Tablet_2 type=other power=20 mode=can icon=measure_battery_100 mintime=180 on=on swstate=state:on:off auto=pvAuto swoncond=di_Tablet_Charge:canCharge:1
attr mySolarForeCast ctrlAutoRefreshFW WEB
attr mySolarForeCast ctrlDebug none
attr mySolarForeCast ctrlInterval 20
attr mySolarForeCast event-on-change-reading .*
attr mySolarForeCast flowGraphicAnimate 1
attr mySolarForeCast graphicHistoryHour 8
attr mySolarForeCast room Solar
#   FUUID      64e49843-f33f-bc77-7094-15af996111265637
#   FVERSION   76_SolarForecast.pm:v0.82.0-s27929/2023-09-04 TESTING
#   LCACHEFILE last write time: 09:21:59 File: ./FHEM/FhemUtils/PVCsm_SolarForecast_mySolarForeCast
#   MODE       Automatic - next Cycletime: 09:24:58
#   MODEL      DWD
#   NAME       mySolarForeCast
#   NOTIFYDEV  SW_AU_Poolpumpe_2,STKD_UG_Luftentfeuchter_2,HT_WP_EnergyMeter,STKD_EG_Flur_Tablet_2
#   NR         441
#   NTFY_ORDER 50-mySolarForeCast
#   STATE      updated
#   TYPE       SolarForecast
#   eventCount 659
#   HELPER:
#     FW         WEB
#     PACKAGE    FHEM::SolarForecast
#     SPGDETAIL 
#     SPGDEV     mySolarForeCast
#     SPGROOM   
#     VERSION    0.82.0
#     VERSION_API unused
#     VERSION_CTZ 1.0.0
#     VERSION_ErrCodes unused
#     VERSION_SMUtils 1.26.0
#   READINGS:
#     2023-09-08 23:59:59   AllPVforecastsToEvent 0 Wh
#     2023-09-08 09:24:39   Current_AutarkyRate 100 %
#     2023-09-08 09:24:39   Current_BatCharge 49.7 %
#     2023-09-08 09:24:39   Current_Consumption 4277 W
#     2023-09-08 09:24:39   Current_GridConsumption 0 W
#     2023-09-08 09:24:39   Current_GridFeedIn 0 W
#     2023-09-08 09:24:39   Current_PV      3233 W
#     2023-09-08 09:24:39   Current_PowerBatIn 0 W
#     2023-09-08 09:24:39   Current_PowerBatOut 1044 W
#     2023-09-08 09:24:39   Current_SelfConsumption 3233 W
#     2023-09-08 09:24:39   Current_SelfConsumptionRate 100 %
#     2023-09-08 09:24:39   Current_Surplus 0 W
#     2023-09-08 09:00:00   LastHourGridconsumptionReal 41 Wh
#     2023-09-08 09:00:00   LastHourPVforecast 943 Wh
#     2023-09-08 09:00:00   LastHourPVreal  1735 Wh
#     2023-09-08 09:24:39   NextHours_Sum01_PVforecast 2048 Wh
#     2023-09-08 09:24:39   NextHours_Sum02_PVforecast 4760 Wh
#     2023-09-08 09:24:39   NextHours_Sum03_PVforecast 8029 Wh
#     2023-09-08 09:24:39   NextHours_Sum04_ConsumptionForecast 4323 Wh
#     2023-09-08 09:24:39   NextHours_Sum04_PVforecast 11625 Wh
#     2023-09-08 09:24:39   RestOfDayConsumptionForecast 11135 Wh
#     2023-09-08 09:24:39   RestOfDayPVforecast 23459 Wh
#     2023-09-08 00:59:51   Today_Hour01_BatIn 0 Wh
#     2023-09-08 00:59:51   Today_Hour01_BatOut 440 Wh
#     2023-09-08 00:59:51   Today_Hour01_GridConsumption 7 Wh
#     2023-09-08 00:59:51   Today_Hour01_GridFeedIn 0 Wh
#     2023-09-08 00:59:51   Today_Hour01_PVreal 0 Wh
#     2023-09-08 01:59:53   Today_Hour02_BatIn 0 Wh
#     2023-09-08 01:59:53   Today_Hour02_BatOut 317 Wh
#     2023-09-08 01:59:53   Today_Hour02_GridConsumption 6 Wh
#     2023-09-08 01:59:53   Today_Hour02_GridFeedIn 0 Wh
#     2023-09-08 01:59:53   Today_Hour02_PVreal 0 Wh
#     2023-09-08 02:59:51   Today_Hour03_BatIn 0 Wh
#     2023-09-08 02:59:51   Today_Hour03_BatOut 187 Wh
#     2023-09-08 02:59:51   Today_Hour03_GridConsumption 3 Wh
#     2023-09-08 02:59:51   Today_Hour03_GridFeedIn 0 Wh
#     2023-09-08 02:59:51   Today_Hour03_PVreal 0 Wh
#     2023-09-08 03:59:53   Today_Hour04_BatIn 0 Wh
#     2023-09-08 03:59:53   Today_Hour04_BatOut 212 Wh
#     2023-09-08 03:59:53   Today_Hour04_GridConsumption 4 Wh
#     2023-09-08 03:59:53   Today_Hour04_GridFeedIn 0 Wh
#     2023-09-08 03:59:53   Today_Hour04_PVreal 0 Wh
#     2023-09-08 04:59:50   Today_Hour05_BatIn 0 Wh
#     2023-09-08 04:59:50   Today_Hour05_BatOut 213 Wh
#     2023-09-08 04:59:50   Today_Hour05_GridConsumption 4 Wh
#     2023-09-08 04:59:50   Today_Hour05_GridFeedIn 0 Wh
#     2023-09-08 04:59:50   Today_Hour05_PVreal 0 Wh
#     2023-09-08 05:59:52   Today_Hour06_BatIn 0 Wh
#     2023-09-08 05:59:52   Today_Hour06_BatOut 266 Wh
#     2023-09-08 05:59:52   Today_Hour06_GridConsumption 1 Wh
#     2023-09-08 05:59:52   Today_Hour06_GridFeedIn 0 Wh
#     2023-09-08 05:59:52   Today_Hour06_PVreal 0 Wh
#     2023-09-08 06:59:53   Today_Hour07_BatIn 0 Wh
#     2023-09-08 06:59:53   Today_Hour07_BatOut 292 Wh
#     2023-09-08 06:59:53   Today_Hour07_GridConsumption 14 Wh
#     2023-09-08 06:59:53   Today_Hour07_GridFeedIn 0 Wh
#     2023-09-08 06:59:53   Today_Hour07_PVforecast 4 Wh
#     2023-09-08 06:59:53   Today_Hour07_PVreal 3 Wh
#     2023-09-08 07:59:54   Today_Hour08_BatIn 0 Wh
#     2023-09-08 07:59:54   Today_Hour08_BatOut 314 Wh
#     2023-09-08 07:59:54   Today_Hour08_GridConsumption 13 Wh
#     2023-09-08 07:59:54   Today_Hour08_GridFeedIn 11 Wh
#     2023-09-08 07:59:54   Today_Hour08_PVforecast 273 Wh
#     2023-09-08 07:59:54   Today_Hour08_PVreal 57 Wh
#     2023-09-08 08:59:56   Today_Hour09_BatIn 915 Wh
#     2023-09-08 08:59:56   Today_Hour09_BatOut 73 Wh
#     2023-09-08 08:59:56   Today_Hour09_GridConsumption 41 Wh
#     2023-09-08 08:59:56   Today_Hour09_GridFeedIn 40 Wh
#     2023-09-08 08:59:56   Today_Hour09_PVforecast 943 Wh
#     2023-09-08 08:59:56   Today_Hour09_PVreal 1735 Wh
#     2023-09-08 09:24:39   Today_Hour10_BatIn 38 Wh
#     2023-09-08 09:24:39   Today_Hour10_BatOut 0 Wh
#     2023-09-08 09:24:39   Today_Hour10_GridConsumption 11 Wh
#     2023-09-08 09:24:39   Today_Hour10_GridFeedIn 13 Wh
#     2023-09-08 09:24:39   Today_Hour10_PVforecast 1735 Wh
#     2023-09-08 09:24:39   Today_Hour10_PVreal 761 Wh
#     2023-09-08 09:24:39   Today_Hour11_PVforecast 2487 Wh
#     2023-09-08 09:24:39   Today_Hour12_PVforecast 3027 Wh
#     2023-09-08 09:24:39   Today_Hour13_PVforecast 3608 Wh
#     2023-09-08 09:24:39   Today_Hour14_PVforecast 3579 Wh
#     2023-09-08 09:24:39   Today_Hour15_PVforecast 2875 Wh
#     2023-09-08 09:24:39   Today_Hour16_PVforecast 3198 Wh
#     2023-09-08 09:24:39   Today_Hour17_PVforecast 1232 Wh
#     2023-09-08 09:24:39   Today_Hour18_PVforecast 1371 Wh
#     2023-09-08 09:24:39   Today_Hour19_PVforecast 889 Wh
#     2023-09-08 09:24:39   Today_Hour20_PVforecast 181 Wh
#     2023-09-08 09:24:39   Today_MaxPVforecast 3608 Wh
#     2023-09-08 09:24:39   Today_MaxPVforecastTime 2023-09-08 12:00:00
#     2023-09-08 09:24:39   Today_PVforecast 25402 Wh
#     2023-09-08 09:15:37   Today_PVreal    2556 Wh
#     2023-09-08 09:24:38   Today_SunRise   06:37
#     2023-09-08 09:24:38   Today_SunSet    19:50
#     2023-09-08 09:24:39   Tomorrow_ConsumptionForecast 15120 Wh
#     2023-09-08 09:24:39   Tomorrow_PVforecast 29673 Wh
#     2023-09-08 09:24:38   Tomorrow_SunRise 06:38
#     2023-09-08 09:24:38   Tomorrow_SunSet 19:48
#     2023-09-08 09:24:39   consumer01      name='SW_AU_Poolpumpe_2' state='off' planningstate='interrupted'
#     2023-09-08 09:24:39   consumer01_currentPower 0 W
#     2023-09-08 09:24:39   consumer01_planned_start 08.09.2023 08:17:31
#     2023-09-08 09:24:39   consumer01_planned_stop 08.09.2023 18:10:00
#     2023-09-08 09:24:39   consumer02      name='STKD_UG_Luftentfeuchter_2' state='off' planningstate='interrupted'
#     2023-09-08 09:24:39   consumer02_currentPower 0 W
#     2023-09-08 09:24:39   consumer02_planned_start 08.09.2023 08:17:31
#     2023-09-08 09:24:39   consumer02_planned_stop 08.09.2023 19:50:00
#     2023-09-08 09:24:39   consumer03      name='HT_WP_EnergyMeter' state='on' planningstate='noSchedule'
#     2023-09-08 09:24:39   consumer03_currentPower 1661.67 W
#     2023-09-08 09:24:39   consumer04      name='STKD_EG_Flur_Tablet_2' state='on' planningstate='started'
#     2023-09-08 09:24:39   consumer04_planned_start 08.09.2023 08:16:51
#     2023-09-08 09:24:39   consumer04_planned_stop 08.09.2023 11:16:51
#     2023-08-22 22:03:33   currentBatteryDev myLGESS pin=-pout:W pout=battPower.av:W intotal=totalBattCharge:Wh outtotal=totalBattDisCharge:Wh charge=/essinfo/common/BATT/soc
#     2023-08-22 22:06:10   currentInverterDev myLGESS pv=/essinfo/home/statistics/pcs_pv_total_power:W etotal=totalPVGenSum:Wh capacity=10000
#     2023-08-22 22:07:32   currentMeterDev myLGESS gcon=gridBuy:W contotal=totalGridBuy:Wh gfeedin=gridSell:W feedtotal=totalGridSell:Wh
#     2023-08-24 13:12:22   currentRadiationDev myDWD_Nbg_FH
#     2023-09-07 20:53:45   currentWeatherDev myDWD_Nbg_FH
#     2023-08-22 13:28:42   inverterStrings PV1,PV2
#     2023-08-23 12:43:42   moduleDirection PV1=-37 PV2=143
#     2023-08-22 13:29:41   modulePeakString PV1=4.32 PV2=2.16
#     2023-08-22 13:34:38   moduleTiltAngle PV1=55 PV2=55
#     2023-09-08 09:24:38   nextCycletime   09:24:58
#     2023-09-08 07:00:14   pvCorrectionFactor_07 0.36 (automatic - old factor: 0.29, cloudiness range: 0, days in range: 3)
#     2023-09-08 07:00:14   pvCorrectionFactor_07_autocalc done
#     2023-09-08 08:00:15   pvCorrectionFactor_08 0.60 (automatic - old factor: 1, cloudiness range: 0, days in range: 1)
#     2023-09-08 08:00:15   pvCorrectionFactor_08_autocalc done
#     2023-09-08 09:00:17   pvCorrectionFactor_09 1.42 (automatic - old factor: 1, cloudiness range: 1, days in range: 1)
#     2023-09-08 09:00:17   pvCorrectionFactor_09_autocalc done
#     2023-09-08 09:24:39   pvCorrectionFactor_Auto on_complex
#     2023-09-08 09:24:40   state           updated
#
setstate mySolarForeCast updated
setstate mySolarForeCast 2023-09-08 08:15:39 .associatedWith SW_AU_Poolpumpe_2 STKD_UG_Luftentfeuchter_2 HT_WP_EnergyMeter STKD_EG_Flur_Tablet_2 myDWD_Nbg_FH myLGESS myLGESS myLGESS
setstate mySolarForeCast 2023-09-08 09:24:39 .lastupdateForecastValues 1694157878
setstate mySolarForeCast 2023-09-08 07:00:14 .pvCorrectionFactor_07_apipercentil done
setstate mySolarForeCast 2023-09-08 07:00:14 .pvCorrectionFactor_07_cloudcover done
setstate mySolarForeCast 2023-09-08 08:00:15 .pvCorrectionFactor_08_apipercentil done
setstate mySolarForeCast 2023-09-08 08:00:15 .pvCorrectionFactor_08_cloudcover done
setstate mySolarForeCast 2023-09-08 09:00:17 .pvCorrectionFactor_09_apipercentil done
setstate mySolarForeCast 2023-09-08 09:00:17 .pvCorrectionFactor_09_cloudcover done
setstate mySolarForeCast 2023-09-08 09:24:39 .pvCorrectionFactor_Auto_Soll on_complex
setstate mySolarForeCast 2023-09-08 01:00:12 .signaldone_01 done
setstate mySolarForeCast 2023-09-08 02:00:13 .signaldone_02 done
setstate mySolarForeCast 2023-09-08 03:00:12 .signaldone_03 done
setstate mySolarForeCast 2023-09-08 04:00:14 .signaldone_04 done
setstate mySolarForeCast 2023-09-08 05:00:11 .signaldone_05 done
setstate mySolarForeCast 2023-09-08 06:00:13 .signaldone_06 done
setstate mySolarForeCast 2023-09-08 07:00:14 .signaldone_07 done
setstate mySolarForeCast 2023-09-08 08:00:15 .signaldone_08 done
setstate mySolarForeCast 2023-09-08 09:00:17 .signaldone_09 done
setstate mySolarForeCast 2023-09-08 23:59:59 AllPVforecastsToEvent 0 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Current_AutarkyRate 100 %
setstate mySolarForeCast 2023-09-08 09:24:39 Current_BatCharge 49.7 %
setstate mySolarForeCast 2023-09-08 09:24:39 Current_Consumption 4277 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_GridConsumption 0 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_GridFeedIn 0 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_PV 3233 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_PowerBatIn 0 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_PowerBatOut 1044 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_SelfConsumption 3233 W
setstate mySolarForeCast 2023-09-08 09:24:39 Current_SelfConsumptionRate 100 %
setstate mySolarForeCast 2023-09-08 09:24:39 Current_Surplus 0 W
setstate mySolarForeCast 2023-09-08 09:00:00 LastHourGridconsumptionReal 41 Wh
setstate mySolarForeCast 2023-09-08 09:00:00 LastHourPVforecast 943 Wh
setstate mySolarForeCast 2023-09-08 09:00:00 LastHourPVreal 1735 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 NextHours_Sum01_PVforecast 2048 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 NextHours_Sum02_PVforecast 4760 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 NextHours_Sum03_PVforecast 8029 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 NextHours_Sum04_ConsumptionForecast 4323 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 NextHours_Sum04_PVforecast 11625 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 RestOfDayConsumptionForecast 11135 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 RestOfDayPVforecast 23459 Wh
setstate mySolarForeCast 2023-09-08 00:59:51 Today_Hour01_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 00:59:51 Today_Hour01_BatOut 440 Wh
setstate mySolarForeCast 2023-09-08 00:59:51 Today_Hour01_GridConsumption 7 Wh
setstate mySolarForeCast 2023-09-08 00:59:51 Today_Hour01_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 00:59:51 Today_Hour01_PVreal 0 Wh
setstate mySolarForeCast 2023-09-08 01:59:53 Today_Hour02_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 01:59:53 Today_Hour02_BatOut 317 Wh
setstate mySolarForeCast 2023-09-08 01:59:53 Today_Hour02_GridConsumption 6 Wh
setstate mySolarForeCast 2023-09-08 01:59:53 Today_Hour02_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 01:59:53 Today_Hour02_PVreal 0 Wh
setstate mySolarForeCast 2023-09-08 02:59:51 Today_Hour03_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 02:59:51 Today_Hour03_BatOut 187 Wh
setstate mySolarForeCast 2023-09-08 02:59:51 Today_Hour03_GridConsumption 3 Wh
setstate mySolarForeCast 2023-09-08 02:59:51 Today_Hour03_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 02:59:51 Today_Hour03_PVreal 0 Wh
setstate mySolarForeCast 2023-09-08 03:59:53 Today_Hour04_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 03:59:53 Today_Hour04_BatOut 212 Wh
setstate mySolarForeCast 2023-09-08 03:59:53 Today_Hour04_GridConsumption 4 Wh
setstate mySolarForeCast 2023-09-08 03:59:53 Today_Hour04_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 03:59:53 Today_Hour04_PVreal 0 Wh
setstate mySolarForeCast 2023-09-08 04:59:50 Today_Hour05_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 04:59:50 Today_Hour05_BatOut 213 Wh
setstate mySolarForeCast 2023-09-08 04:59:50 Today_Hour05_GridConsumption 4 Wh
setstate mySolarForeCast 2023-09-08 04:59:50 Today_Hour05_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 04:59:50 Today_Hour05_PVreal 0 Wh
setstate mySolarForeCast 2023-09-08 05:59:52 Today_Hour06_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 05:59:52 Today_Hour06_BatOut 266 Wh
setstate mySolarForeCast 2023-09-08 05:59:52 Today_Hour06_GridConsumption 1 Wh
setstate mySolarForeCast 2023-09-08 05:59:52 Today_Hour06_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 05:59:52 Today_Hour06_PVreal 0 Wh
setstate mySolarForeCast 2023-09-08 06:59:53 Today_Hour07_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 06:59:53 Today_Hour07_BatOut 292 Wh
setstate mySolarForeCast 2023-09-08 06:59:53 Today_Hour07_GridConsumption 14 Wh
setstate mySolarForeCast 2023-09-08 06:59:53 Today_Hour07_GridFeedIn 0 Wh
setstate mySolarForeCast 2023-09-08 06:59:53 Today_Hour07_PVforecast 4 Wh
setstate mySolarForeCast 2023-09-08 06:59:53 Today_Hour07_PVreal 3 Wh
setstate mySolarForeCast 2023-09-08 07:59:54 Today_Hour08_BatIn 0 Wh
setstate mySolarForeCast 2023-09-08 07:59:54 Today_Hour08_BatOut 314 Wh
setstate mySolarForeCast 2023-09-08 07:59:54 Today_Hour08_GridConsumption 13 Wh
setstate mySolarForeCast 2023-09-08 07:59:54 Today_Hour08_GridFeedIn 11 Wh
setstate mySolarForeCast 2023-09-08 07:59:54 Today_Hour08_PVforecast 273 Wh
setstate mySolarForeCast 2023-09-08 07:59:54 Today_Hour08_PVreal 57 Wh
setstate mySolarForeCast 2023-09-08 08:59:56 Today_Hour09_BatIn 915 Wh
setstate mySolarForeCast 2023-09-08 08:59:56 Today_Hour09_BatOut 73 Wh
setstate mySolarForeCast 2023-09-08 08:59:56 Today_Hour09_GridConsumption 41 Wh
setstate mySolarForeCast 2023-09-08 08:59:56 Today_Hour09_GridFeedIn 40 Wh
setstate mySolarForeCast 2023-09-08 08:59:56 Today_Hour09_PVforecast 943 Wh
setstate mySolarForeCast 2023-09-08 08:59:56 Today_Hour09_PVreal 1735 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour10_BatIn 38 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour10_BatOut 0 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour10_GridConsumption 11 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour10_GridFeedIn 13 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour10_PVforecast 1735 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour10_PVreal 761 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour11_PVforecast 2487 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour12_PVforecast 3027 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour13_PVforecast 3608 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour14_PVforecast 3579 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour15_PVforecast 2875 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour16_PVforecast 3198 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour17_PVforecast 1232 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour18_PVforecast 1371 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour19_PVforecast 889 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_Hour20_PVforecast 181 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_MaxPVforecast 3608 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Today_MaxPVforecastTime 2023-09-08 12:00:00
setstate mySolarForeCast 2023-09-08 09:24:39 Today_PVforecast 25402 Wh
setstate mySolarForeCast 2023-09-08 09:15:37 Today_PVreal 2556 Wh
setstate mySolarForeCast 2023-09-08 09:24:38 Today_SunRise 06:37
setstate mySolarForeCast 2023-09-08 09:24:38 Today_SunSet 19:50
setstate mySolarForeCast 2023-09-08 09:24:39 Tomorrow_ConsumptionForecast 15120 Wh
setstate mySolarForeCast 2023-09-08 09:24:39 Tomorrow_PVforecast 29673 Wh
setstate mySolarForeCast 2023-09-08 09:24:38 Tomorrow_SunRise 06:38
setstate mySolarForeCast 2023-09-08 09:24:38 Tomorrow_SunSet 19:48
setstate mySolarForeCast 2023-09-08 09:24:39 consumer01 name='SW_AU_Poolpumpe_2' state='off' planningstate='interrupted'
setstate mySolarForeCast 2023-09-08 09:24:39 consumer01_currentPower 0 W
setstate mySolarForeCast 2023-09-08 09:24:39 consumer01_planned_start 08.09.2023 08:17:31
setstate mySolarForeCast 2023-09-08 09:24:39 consumer01_planned_stop 08.09.2023 18:10:00
setstate mySolarForeCast 2023-09-08 09:24:39 consumer02 name='STKD_UG_Luftentfeuchter_2' state='off' planningstate='interrupted'
setstate mySolarForeCast 2023-09-08 09:24:39 consumer02_currentPower 0 W
setstate mySolarForeCast 2023-09-08 09:24:39 consumer02_planned_start 08.09.2023 08:17:31
setstate mySolarForeCast 2023-09-08 09:24:39 consumer02_planned_stop 08.09.2023 19:50:00
setstate mySolarForeCast 2023-09-08 09:24:39 consumer03 name='HT_WP_EnergyMeter' state='on' planningstate='noSchedule'
setstate mySolarForeCast 2023-09-08 09:24:39 consumer03_currentPower 1661.67 W
setstate mySolarForeCast 2023-09-08 09:24:39 consumer04 name='STKD_EG_Flur_Tablet_2' state='on' planningstate='started'
setstate mySolarForeCast 2023-09-08 09:24:39 consumer04_planned_start 08.09.2023 08:16:51
setstate mySolarForeCast 2023-09-08 09:24:39 consumer04_planned_stop 08.09.2023 11:16:51
setstate mySolarForeCast 2023-08-22 22:03:33 currentBatteryDev myLGESS pin=-pout:W pout=battPower.av:W intotal=totalBattCharge:Wh outtotal=totalBattDisCharge:Wh charge=/essinfo/common/BATT/soc
setstate mySolarForeCast 2023-08-22 22:06:10 currentInverterDev myLGESS pv=/essinfo/home/statistics/pcs_pv_total_power:W etotal=totalPVGenSum:Wh capacity=10000
setstate mySolarForeCast 2023-08-22 22:07:32 currentMeterDev myLGESS gcon=gridBuy:W contotal=totalGridBuy:Wh gfeedin=gridSell:W feedtotal=totalGridSell:Wh
setstate mySolarForeCast 2023-08-24 13:12:22 currentRadiationDev myDWD_Nbg_FH
setstate mySolarForeCast 2023-09-07 20:53:45 currentWeatherDev myDWD_Nbg_FH
setstate mySolarForeCast 2023-08-22 13:28:42 inverterStrings PV1,PV2
setstate mySolarForeCast 2023-08-23 12:43:42 moduleDirection PV1=-37 PV2=143
setstate mySolarForeCast 2023-08-22 13:29:41 modulePeakString PV1=4.32 PV2=2.16
setstate mySolarForeCast 2023-08-22 13:34:38 moduleTiltAngle PV1=55 PV2=55
setstate mySolarForeCast 2023-09-08 09:24:38 nextCycletime 09:24:58
setstate mySolarForeCast 2023-09-08 07:00:14 pvCorrectionFactor_07 0.36 (automatic - old factor: 0.29, cloudiness range: 0, days in range: 3)
setstate mySolarForeCast 2023-09-08 07:00:14 pvCorrectionFactor_07_autocalc done
setstate mySolarForeCast 2023-09-08 08:00:15 pvCorrectionFactor_08 0.60 (automatic - old factor: 1, cloudiness range: 0, days in range: 1)
setstate mySolarForeCast 2023-09-08 08:00:15 pvCorrectionFactor_08_autocalc done
setstate mySolarForeCast 2023-09-08 09:00:17 pvCorrectionFactor_09 1.42 (automatic - old factor: 1, cloudiness range: 1, days in range: 1)
setstate mySolarForeCast 2023-09-08 09:00:17 pvCorrectionFactor_09_autocalc done
setstate mySolarForeCast 2023-09-08 09:24:39 pvCorrectionFactor_Auto on_complex
setstate mySolarForeCast 2023-09-08 09:24:40 state updated



define mySolarForeCastTest SolarForecast
attr mySolarForeCastTest DbLogExclude .*
attr mySolarForeCastTest consumer03 HT_WP_EnergyMeter power=0 type=noSchedule icon=sani_heating_heatpump pcurr=power_sum:W:100 etotal=energy_total:Wh
attr mySolarForeCastTest ctrlAutoRefreshFW WEB
attr mySolarForeCastTest ctrlDebug none
attr mySolarForeCastTest ctrlInterval 20
attr mySolarForeCastTest event-on-change-reading .*
attr mySolarForeCastTest flowGraphicAnimate 1
attr mySolarForeCastTest graphicHistoryHour 8
attr mySolarForeCastTest room Solar
#   FUUID      64eda93c-f33f-bc77-737b-380c6a5f3f3e1ad7
#   FVERSION   76_SolarForecast.pm:v0.82.0-s27929/2023-09-04 TESTING
#   LCACHEFILE last write time: 09:25:05 File: ./FHEM/FhemUtils/ScApi_SolarForecast_mySolarForeCastTest
#   MODE       Automatic - next Cycletime: 09:28:24
#   MODEL      ForecastSolarAPI
#   NAME       mySolarForeCastTest
#   NOTIFYDEV  HT_WP_EnergyMeter
#   NR         453
#   NTFY_ORDER 50-mySolarForeCastTest
#   STATE      updated
#   TYPE       SolarForecast
#   eventCount 669
#   HELPER:
#     FW         WEB
#     PACKAGE    FHEM::SolarForecast
#     SPGDETAIL 
#     SPGDEV     mySolarForeCastTest
#     SPGROOM   
#     VERSION    0.82.0
#     VERSION_API unused
#     VERSION_CTZ 1.0.0
#     VERSION_ErrCodes unused
#     VERSION_SMUtils 1.26.0
#   READINGS:
#     2023-09-08 23:59:59   AllPVforecastsToEvent 0 Wh
#     2023-09-08 09:28:05   Current_AutarkyRate 100 %
#     2023-09-08 09:28:05   Current_BatCharge 49.0 %
#     2023-09-08 09:28:05   Current_Consumption 4269 W
#     2023-09-08 09:28:05   Current_GridConsumption 0 W
#     2023-09-08 09:28:05   Current_GridFeedIn 152 W
#     2023-09-08 09:28:05   Current_PV      3282 W
#     2023-09-08 09:28:05   Current_PowerBatIn 0 W
#     2023-09-08 09:28:05   Current_PowerBatOut 1139 W
#     2023-09-08 09:28:05   Current_SelfConsumption 3130 W
#     2023-09-08 09:28:05   Current_SelfConsumptionRate 95 %
#     2023-09-08 09:28:05   Current_Surplus 0 W
#     2023-09-08 09:00:00   LastHourGridconsumptionReal 41 Wh
#     2023-09-08 09:00:00   LastHourPVforecast 2153 Wh
#     2023-09-08 09:00:00   LastHourPVreal  1735 Wh
#     2023-09-08 09:28:05   NextHours_Sum01_PVforecast 3256 Wh
#     2023-09-08 09:28:05   NextHours_Sum02_PVforecast 6663 Wh
#     2023-09-08 09:28:05   NextHours_Sum03_PVforecast 9959 Wh
#     2023-09-08 09:28:05   NextHours_Sum04_ConsumptionForecast 4213 Wh
#     2023-09-08 09:28:05   NextHours_Sum04_PVforecast 13281 Wh
#     2023-09-08 09:28:05   RestOfDayConsumptionForecast 10666 Wh
#     2023-09-08 09:28:05   RestOfDayPVforecast 22769 Wh
#     2023-09-08 00:59:52   Today_Hour01_BatIn 0 Wh
#     2023-09-08 00:59:52   Today_Hour01_BatOut 440 Wh
#     2023-09-08 00:59:52   Today_Hour01_GridConsumption 7 Wh
#     2023-09-08 00:59:52   Today_Hour01_GridFeedIn 0 Wh
#     2023-09-08 00:59:52   Today_Hour01_PVreal 0 Wh
#     2023-09-08 01:59:53   Today_Hour02_BatIn 0 Wh
#     2023-09-08 01:59:53   Today_Hour02_BatOut 317 Wh
#     2023-09-08 01:59:53   Today_Hour02_GridConsumption 6 Wh
#     2023-09-08 01:59:53   Today_Hour02_GridFeedIn 0 Wh
#     2023-09-08 01:59:53   Today_Hour02_PVreal 0 Wh
#     2023-09-08 02:59:52   Today_Hour03_BatIn 0 Wh
#     2023-09-08 02:59:52   Today_Hour03_BatOut 187 Wh
#     2023-09-08 02:59:52   Today_Hour03_GridConsumption 3 Wh
#     2023-09-08 02:59:52   Today_Hour03_GridFeedIn 0 Wh
#     2023-09-08 02:59:52   Today_Hour03_PVreal 0 Wh
#     2023-09-08 03:59:54   Today_Hour04_BatIn 0 Wh
#     2023-09-08 03:59:54   Today_Hour04_BatOut 212 Wh
#     2023-09-08 03:59:54   Today_Hour04_GridConsumption 4 Wh
#     2023-09-08 03:59:54   Today_Hour04_GridFeedIn 0 Wh
#     2023-09-08 03:59:54   Today_Hour04_PVreal 0 Wh
#     2023-09-08 04:59:51   Today_Hour05_BatIn 0 Wh
#     2023-09-08 04:59:51   Today_Hour05_BatOut 213 Wh
#     2023-09-08 04:59:51   Today_Hour05_GridConsumption 4 Wh
#     2023-09-08 04:59:51   Today_Hour05_GridFeedIn 0 Wh
#     2023-09-08 04:59:51   Today_Hour05_PVreal 0 Wh
#     2023-09-08 05:59:53   Today_Hour06_BatIn 0 Wh
#     2023-09-08 05:59:53   Today_Hour06_BatOut 266 Wh
#     2023-09-08 05:59:53   Today_Hour06_GridConsumption 1 Wh
#     2023-09-08 05:59:53   Today_Hour06_GridFeedIn 0 Wh
#     2023-09-08 05:59:53   Today_Hour06_PVreal 0 Wh
#     2023-09-08 06:59:55   Today_Hour07_BatIn 0 Wh
#     2023-09-08 06:59:55   Today_Hour07_BatOut 292 Wh
#     2023-09-08 06:59:55   Today_Hour07_GridConsumption 14 Wh
#     2023-09-08 06:59:55   Today_Hour07_GridFeedIn 0 Wh
#     2023-09-08 06:59:55   Today_Hour07_PVforecast 9 Wh
#     2023-09-08 06:59:55   Today_Hour07_PVreal 3 Wh
#     2023-09-08 07:59:55   Today_Hour08_BatIn 0 Wh
#     2023-09-08 07:59:55   Today_Hour08_BatOut 314 Wh
#     2023-09-08 07:59:55   Today_Hour08_GridConsumption 13 Wh
#     2023-09-08 07:59:55   Today_Hour08_GridFeedIn 11 Wh
#     2023-09-08 07:59:55   Today_Hour08_PVforecast 395 Wh
#     2023-09-08 07:59:55   Today_Hour08_PVreal 57 Wh
#     2023-09-08 08:59:40   Today_Hour09_BatIn 915 Wh
#     2023-09-08 08:59:40   Today_Hour09_BatOut 73 Wh
#     2023-09-08 08:59:40   Today_Hour09_GridConsumption 41 Wh
#     2023-09-08 08:59:40   Today_Hour09_GridFeedIn 40 Wh
#     2023-09-08 08:59:40   Today_Hour09_PVforecast 2153 Wh
#     2023-09-08 08:59:40   Today_Hour09_PVreal 1735 Wh
#     2023-09-08 09:28:05   Today_Hour10_BatIn 361 Wh
#     2023-09-08 09:28:05   Today_Hour10_BatOut 1 Wh
#     2023-09-08 09:28:05   Today_Hour10_GridConsumption 11 Wh
#     2023-09-08 09:28:05   Today_Hour10_GridFeedIn 13 Wh
#     2023-09-08 09:28:05   Today_Hour10_PVforecast 3093 Wh
#     2023-09-08 09:28:05   Today_Hour10_PVreal 1479 Wh
#     2023-09-08 09:28:05   Today_Hour11_PVforecast 3432 Wh
#     2023-09-08 09:28:05   Today_Hour12_PVforecast 3379 Wh
#     2023-09-08 09:28:05   Today_Hour13_PVforecast 3208 Wh
#     2023-09-08 09:28:05   Today_Hour14_PVforecast 3444 Wh
#     2023-09-08 09:28:05   Today_Hour15_PVforecast 2708 Wh
#     2023-09-08 09:28:05   Today_Hour16_PVforecast 1992 Wh
#     2023-09-08 09:28:05   Today_Hour17_PVforecast 1342 Wh
#     2023-09-08 09:28:05   Today_Hour18_PVforecast 923 Wh
#     2023-09-08 09:28:05   Today_Hour19_PVforecast 743 Wh
#     2023-09-08 09:28:05   Today_MaxPVforecast 3444 Wh
#     2023-09-08 09:28:05   Today_MaxPVforecastTime 2023-09-08 13:00:00
#     2023-09-08 09:28:05   Today_PVforecast 26821 Wh
#     2023-09-08 09:15:40   Today_PVreal    3274 Wh
#     2023-09-08 09:28:04   Today_SunRise   06:37
#     2023-09-08 09:28:04   Today_SunSet    19:50
#     2023-09-08 09:28:05   Tomorrow_ConsumptionForecast 13699 Wh
#     2023-09-08 09:28:05   Tomorrow_PVforecast 26605 Wh
#     2023-09-08 09:28:04   Tomorrow_SunRise 06:38
#     2023-09-08 09:28:04   Tomorrow_SunSet 19:48
#     2023-09-08 09:28:05   consumer03      name='HT_WP_EnergyMeter' state='on' planningstate='noSchedule'
#     2023-09-08 09:28:05   consumer03_currentPower 1759.86 W
#     2023-08-29 13:21:52   currentBatteryDev myLGESS pin=-pout:W pout=battPower.av:W intotal=totalBattCharge:Wh outtotal=totalBattDisCharge:Wh charge=/essinfo/common/BATT/soc
#     2023-08-29 10:19:17   currentInverterDev myLGESS pv=/essinfo/home/statistics/pcs_pv_total_power:W etotal=totalPVGenSum:Wh capacity=10000
#     2023-08-29 10:19:40   currentMeterDev myLGESS gcon=gridBuy:W contotal=totalGridBuy:Wh gfeedin=gridSell:W feedtotal=totalGridSell:Wh
#     2023-08-29 10:18:58   currentRadiationDev ForecastSolar-API
#     2023-09-07 20:53:53   currentWeatherDev myDWD_Nbg_FH
#     2023-08-29 10:18:13   inverterStrings PV1,PV2
#     2023-08-29 10:17:55   moduleDirection PV1=-37 PV2=143
#     2023-08-29 10:18:27   modulePeakString PV1=4.32 PV2=2.16
#     2023-08-29 10:17:20   moduleTiltAngle PV1=55 PV2=55
#     2023-09-08 09:28:04   nextCycletime   09:28:24
#     2023-09-08 09:25:05   nextSolCastCall nach 08.09.2023 09:40:05
#     2023-09-08 07:00:16   pvCorrectionFactor_07 0.06 (automatic - old factor: 0.05, average days: 11)
#     2023-09-08 07:00:16   pvCorrectionFactor_07_autocalc done
#     2023-09-08 08:00:16   pvCorrectionFactor_08 0.22 (automatic - old factor: 0.23, average days: 11)
#     2023-09-08 08:00:16   pvCorrectionFactor_08_autocalc done
#     2023-09-08 09:00:00   pvCorrectionFactor_09 0.84 (automatic - old factor: 0.84, average days: 11)
#     2023-09-08 09:00:00   pvCorrectionFactor_09_autocalc done
#     2023-09-08 09:28:05   pvCorrectionFactor_Auto on_simple
#     2023-09-08 09:28:06   state           updated
#
setstate mySolarForeCastTest updated
setstate mySolarForeCastTest 2023-09-08 08:15:39 .associatedWith HT_WP_EnergyMeter myDWD_Nbg_FH ForecastSolar-API myLGESS myLGESS myLGESS
setstate mySolarForeCastTest 2023-09-08 09:28:05 .lastupdateForecastValues 1694158084
setstate mySolarForeCastTest 2023-09-08 07:00:16 .pvCorrectionFactor_07_apipercentil done
setstate mySolarForeCastTest 2023-09-08 07:00:16 .pvCorrectionFactor_07_cloudcover done
setstate mySolarForeCastTest 2023-09-08 08:00:16 .pvCorrectionFactor_08_apipercentil done
setstate mySolarForeCastTest 2023-09-08 08:00:16 .pvCorrectionFactor_08_cloudcover done
setstate mySolarForeCastTest 2023-09-08 09:00:00 .pvCorrectionFactor_09_apipercentil done
setstate mySolarForeCastTest 2023-09-08 09:00:00 .pvCorrectionFactor_09_cloudcover done
setstate mySolarForeCastTest 2023-09-08 09:28:05 .pvCorrectionFactor_Auto_Soll on_simple
setstate mySolarForeCastTest 2023-09-08 01:00:13 .signaldone_01 done
setstate mySolarForeCastTest 2023-09-08 02:00:13 .signaldone_02 done
setstate mySolarForeCastTest 2023-09-08 03:00:13 .signaldone_03 done
setstate mySolarForeCastTest 2023-09-08 04:00:14 .signaldone_04 done
setstate mySolarForeCastTest 2023-09-08 05:00:11 .signaldone_05 done
setstate mySolarForeCastTest 2023-09-08 06:00:13 .signaldone_06 done
setstate mySolarForeCastTest 2023-09-08 07:00:16 .signaldone_07 done
setstate mySolarForeCastTest 2023-09-08 08:00:16 .signaldone_08 done
setstate mySolarForeCastTest 2023-09-08 09:00:00 .signaldone_09 done
setstate mySolarForeCastTest 2023-09-08 23:59:59 AllPVforecastsToEvent 0 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_AutarkyRate 100 %
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_BatCharge 49.0 %
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_Consumption 4269 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_GridConsumption 0 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_GridFeedIn 152 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_PV 3282 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_PowerBatIn 0 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_PowerBatOut 1139 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_SelfConsumption 3130 W
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_SelfConsumptionRate 95 %
setstate mySolarForeCastTest 2023-09-08 09:28:05 Current_Surplus 0 W
setstate mySolarForeCastTest 2023-09-08 09:00:00 LastHourGridconsumptionReal 41 Wh
setstate mySolarForeCastTest 2023-09-08 09:00:00 LastHourPVforecast 2153 Wh
setstate mySolarForeCastTest 2023-09-08 09:00:00 LastHourPVreal 1735 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 NextHours_Sum01_PVforecast 3256 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 NextHours_Sum02_PVforecast 6663 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 NextHours_Sum03_PVforecast 9959 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 NextHours_Sum04_ConsumptionForecast 4213 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 NextHours_Sum04_PVforecast 13281 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 RestOfDayConsumptionForecast 10666 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 RestOfDayPVforecast 22769 Wh
setstate mySolarForeCastTest 2023-09-08 00:59:52 Today_Hour01_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 00:59:52 Today_Hour01_BatOut 440 Wh
setstate mySolarForeCastTest 2023-09-08 00:59:52 Today_Hour01_GridConsumption 7 Wh
setstate mySolarForeCastTest 2023-09-08 00:59:52 Today_Hour01_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 00:59:52 Today_Hour01_PVreal 0 Wh
setstate mySolarForeCastTest 2023-09-08 01:59:53 Today_Hour02_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 01:59:53 Today_Hour02_BatOut 317 Wh
setstate mySolarForeCastTest 2023-09-08 01:59:53 Today_Hour02_GridConsumption 6 Wh
setstate mySolarForeCastTest 2023-09-08 01:59:53 Today_Hour02_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 01:59:53 Today_Hour02_PVreal 0 Wh
setstate mySolarForeCastTest 2023-09-08 02:59:52 Today_Hour03_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 02:59:52 Today_Hour03_BatOut 187 Wh
setstate mySolarForeCastTest 2023-09-08 02:59:52 Today_Hour03_GridConsumption 3 Wh
setstate mySolarForeCastTest 2023-09-08 02:59:52 Today_Hour03_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 02:59:52 Today_Hour03_PVreal 0 Wh
setstate mySolarForeCastTest 2023-09-08 03:59:54 Today_Hour04_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 03:59:54 Today_Hour04_BatOut 212 Wh
setstate mySolarForeCastTest 2023-09-08 03:59:54 Today_Hour04_GridConsumption 4 Wh
setstate mySolarForeCastTest 2023-09-08 03:59:54 Today_Hour04_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 03:59:54 Today_Hour04_PVreal 0 Wh
setstate mySolarForeCastTest 2023-09-08 04:59:51 Today_Hour05_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 04:59:51 Today_Hour05_BatOut 213 Wh
setstate mySolarForeCastTest 2023-09-08 04:59:51 Today_Hour05_GridConsumption 4 Wh
setstate mySolarForeCastTest 2023-09-08 04:59:51 Today_Hour05_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 04:59:51 Today_Hour05_PVreal 0 Wh
setstate mySolarForeCastTest 2023-09-08 05:59:53 Today_Hour06_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 05:59:53 Today_Hour06_BatOut 266 Wh
setstate mySolarForeCastTest 2023-09-08 05:59:53 Today_Hour06_GridConsumption 1 Wh
setstate mySolarForeCastTest 2023-09-08 05:59:53 Today_Hour06_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 05:59:53 Today_Hour06_PVreal 0 Wh
setstate mySolarForeCastTest 2023-09-08 06:59:55 Today_Hour07_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 06:59:55 Today_Hour07_BatOut 292 Wh
setstate mySolarForeCastTest 2023-09-08 06:59:55 Today_Hour07_GridConsumption 14 Wh
setstate mySolarForeCastTest 2023-09-08 06:59:55 Today_Hour07_GridFeedIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 06:59:55 Today_Hour07_PVforecast 9 Wh
setstate mySolarForeCastTest 2023-09-08 06:59:55 Today_Hour07_PVreal 3 Wh
setstate mySolarForeCastTest 2023-09-08 07:59:55 Today_Hour08_BatIn 0 Wh
setstate mySolarForeCastTest 2023-09-08 07:59:55 Today_Hour08_BatOut 314 Wh
setstate mySolarForeCastTest 2023-09-08 07:59:55 Today_Hour08_GridConsumption 13 Wh
setstate mySolarForeCastTest 2023-09-08 07:59:55 Today_Hour08_GridFeedIn 11 Wh
setstate mySolarForeCastTest 2023-09-08 07:59:55 Today_Hour08_PVforecast 395 Wh
setstate mySolarForeCastTest 2023-09-08 07:59:55 Today_Hour08_PVreal 57 Wh
setstate mySolarForeCastTest 2023-09-08 08:59:40 Today_Hour09_BatIn 915 Wh
setstate mySolarForeCastTest 2023-09-08 08:59:40 Today_Hour09_BatOut 73 Wh
setstate mySolarForeCastTest 2023-09-08 08:59:40 Today_Hour09_GridConsumption 41 Wh
setstate mySolarForeCastTest 2023-09-08 08:59:40 Today_Hour09_GridFeedIn 40 Wh
setstate mySolarForeCastTest 2023-09-08 08:59:40 Today_Hour09_PVforecast 2153 Wh
setstate mySolarForeCastTest 2023-09-08 08:59:40 Today_Hour09_PVreal 1735 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour10_BatIn 361 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour10_BatOut 1 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour10_GridConsumption 11 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour10_GridFeedIn 13 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour10_PVforecast 3093 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour10_PVreal 1479 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour11_PVforecast 3432 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour12_PVforecast 3379 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour13_PVforecast 3208 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour14_PVforecast 3444 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour15_PVforecast 2708 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour16_PVforecast 1992 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour17_PVforecast 1342 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour18_PVforecast 923 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_Hour19_PVforecast 743 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_MaxPVforecast 3444 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_MaxPVforecastTime 2023-09-08 13:00:00
setstate mySolarForeCastTest 2023-09-08 09:28:05 Today_PVforecast 26821 Wh
setstate mySolarForeCastTest 2023-09-08 09:15:40 Today_PVreal 3274 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:04 Today_SunRise 06:37
setstate mySolarForeCastTest 2023-09-08 09:28:04 Today_SunSet 19:50
setstate mySolarForeCastTest 2023-09-08 09:28:05 Tomorrow_ConsumptionForecast 13699 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:05 Tomorrow_PVforecast 26605 Wh
setstate mySolarForeCastTest 2023-09-08 09:28:04 Tomorrow_SunRise 06:38
setstate mySolarForeCastTest 2023-09-08 09:28:04 Tomorrow_SunSet 19:48
setstate mySolarForeCastTest 2023-09-08 09:28:05 consumer03 name='HT_WP_EnergyMeter' state='on' planningstate='noSchedule'
setstate mySolarForeCastTest 2023-09-08 09:28:05 consumer03_currentPower 1759.86 W
setstate mySolarForeCastTest 2023-08-29 13:21:52 currentBatteryDev myLGESS pin=-pout:W pout=battPower.av:W intotal=totalBattCharge:Wh outtotal=totalBattDisCharge:Wh charge=/essinfo/common/BATT/soc
setstate mySolarForeCastTest 2023-08-29 10:19:17 currentInverterDev myLGESS pv=/essinfo/home/statistics/pcs_pv_total_power:W etotal=totalPVGenSum:Wh capacity=10000
setstate mySolarForeCastTest 2023-08-29 10:19:40 currentMeterDev myLGESS gcon=gridBuy:W contotal=totalGridBuy:Wh gfeedin=gridSell:W feedtotal=totalGridSell:Wh
setstate mySolarForeCastTest 2023-08-29 10:18:58 currentRadiationDev ForecastSolar-API
setstate mySolarForeCastTest 2023-09-07 20:53:53 currentWeatherDev myDWD_Nbg_FH
setstate mySolarForeCastTest 2023-08-29 10:18:13 inverterStrings PV1,PV2
setstate mySolarForeCastTest 2023-08-29 10:17:55 moduleDirection PV1=-37 PV2=143
setstate mySolarForeCastTest 2023-08-29 10:18:27 modulePeakString PV1=4.32 PV2=2.16
setstate mySolarForeCastTest 2023-08-29 10:17:20 moduleTiltAngle PV1=55 PV2=55
setstate mySolarForeCastTest 2023-09-08 09:28:04 nextCycletime 09:28:24
setstate mySolarForeCastTest 2023-09-08 09:25:05 nextSolCastCall nach 08.09.2023 09:40:05
setstate mySolarForeCastTest 2023-09-08 07:00:16 pvCorrectionFactor_07 0.06 (automatic - old factor: 0.05, average days: 11)
setstate mySolarForeCastTest 2023-09-08 07:00:16 pvCorrectionFactor_07_autocalc done
setstate mySolarForeCastTest 2023-09-08 08:00:16 pvCorrectionFactor_08 0.22 (automatic - old factor: 0.23, average days: 11)
setstate mySolarForeCastTest 2023-09-08 08:00:16 pvCorrectionFactor_08_autocalc done
setstate mySolarForeCastTest 2023-09-08 09:00:00 pvCorrectionFactor_09 0.84 (automatic - old factor: 0.84, average days: 11)
setstate mySolarForeCastTest 2023-09-08 09:00:00 pvCorrectionFactor_09_autocalc done
setstate mySolarForeCastTest 2023-09-08 09:28:05 pvCorrectionFactor_Auto on_simple
setstate mySolarForeCastTest 2023-09-08 09:28:06 state updated

FHEM@UbuntuServer on Lenovo ThinkCentre M900 [i5-6500T / 8GB RAM] MySQL-DbLog, Grafana, FTUI3 / HmIP incl. CCU3 / LGESS / Wärempumpe über TA CMI und CANoE / Shellies u.v.m.

DS_Starter

ZitatDas "Tagesreading" passt demnach und lediglich die Stundenwerte haben Abweichungen.
Ja, das kann passieren je nachdem wie die Intervalle zur Datensammlung liegen. Man kann ctrlInterval recht klein wählen um oft Daten zu sammeln. Das Modul ist allerdings sehr komplex. Man muß ein bisschen die Systemperformance im Auge behalten.
EIn Anhaltspunkt liefert das Reading statistic_runTimeCentralTask welches man sich über das Attr ctrlStatisticReadings = runTimeCentralTask hinzuschalten kann.
Es spiegelt in Prinzip die Performance deines FHEM Systems da es die Durchlaufzeit eines Intervalls misst und ausschreibt.

ZitatDebug-Meldung dazu ist:
Code Auswählen
2023.09.08 09:04:41 1: mySolarForeCastTest2 DEBUG> DWD API - collect DWD Radiation data with start >2023-09-08 00:00:00<- device: myDWD_Test =>
2023.09.08 09:04:41 1: mySolarForeCastTest2 DEBUG> DWD API - ERROR - got no data of starttime: 2023-09-08 00:00:00. The reading >fc0_1_Rad1h< doesn't exist. Check the device myDWD_Test !
Und im DWD Device gehen halt die Vorhersagen erst mit Stunde 10 los, da der Rest Vergangenheit ist.
Ah ok. Das kann passieren wenn das DWD-Device erst neu angelegt wurde. Dann fehlt dieses Reading. Wenn das DWD Device schon vorhanden ist und nur das SolarForecast Device neu angelegt wurde, gibt es diesen Zustand nicht.
Damit muß man leben denke ich.




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

tobi01001

Zitat von: DS_Starter am 08 September 2023, 10:45:48
ZitatDas "Tagesreading" passt demnach und lediglich die Stundenwerte haben Abweichungen.
Ja, das kann passieren je nachdem wie die Intervalle zur Datensammlung liegen. Man kann ctrlInterval recht klein wählen um oft Daten zu sammeln. Das Modul ist allerdings sehr komplex. Man muß ein bisschen die Systemperformance im Auge behalten.
EIn Anhaltspunkt liefert das Reading statistic_runTimeCentralTask welches man sich über das Attr ctrlStatisticReadings = runTimeCentralTask hinzuschalten kann.
Es spiegelt in Prinzip die Performance deines FHEM Systems da es die Durchlaufzeit eines Intervalls misst und ausschreibt.
Ich schau mir das mal über den Tag für die 3 Forecast devices an. Danke.
Demnächst steht aber wohl eh ein umstieg auf einen performanteren RPI an. Das sollte dann noch etwas Reserven liefern.

Aktuell beweg sich die Performance im Bereich von:
Device 1: 0.5 - 1.1 - hier sind 4 (3 schaltbare) consumer definiert
Device 2: 0.3 - 0.7 - hier ist 1 (nicht vom Modul schaltbarer) consumer definiert
Device 3: 0.2 - 0.6 - hier ist kein consumer definiert

Aus dem Bauch doch recht lang?! Aber meine Systemperformance möchte ich nicht zu eurem Problem machen ;-)

Zitat
ZitatDebug-Meldung dazu ist:
Code Auswählen
2023.09.08 09:04:41 1: mySolarForeCastTest2 DEBUG> DWD API - collect DWD Radiation data with start >2023-09-08 00:00:00<- device: myDWD_Test =>
2023.09.08 09:04:41 1: mySolarForeCastTest2 DEBUG> DWD API - ERROR - got no data of starttime: 2023-09-08 00:00:00. The reading >fc0_1_Rad1h< doesn't exist. Check the device myDWD_Test !
Und im DWD Device gehen halt die Vorhersagen erst mit Stunde 10 los, da der Rest Vergangenheit ist.
Ah ok. Das kann passieren wenn das DWD-Device erst neu angelegt wurde. Dann fehlt dieses Reading. Wenn das DWD Device schon vorhanden ist und nur das SolarForecast Device neu angelegt wurde, gibt es diesen Zustand nicht.
Damit muß man leben denke ich.
Ja, oder man setzt die fehlenden Readings der Vergangenheit auf 0, undef oder vergleichbar und macht mit den vorhandenen zukünftigen weiter. Im Moment bricht die Verarbeitung ja mit dem Fehler ab. Dann würde ein "Neuankömmling" nicht drüber stolpern und bekäme direkt bei definition eine Prognose gezeigt.


Danke für die schnelle Reaktion.

Gruß,
Tobias
FHEM@UbuntuServer on Lenovo ThinkCentre M900 [i5-6500T / 8GB RAM] MySQL-DbLog, Grafana, FTUI3 / HmIP incl. CCU3 / LGESS / Wärempumpe über TA CMI und CANoE / Shellies u.v.m.

DS_Starter

ZitatJa, oder man setzt die fehlenden Readings der Vergangenheit auf 0, undef oder vergleichbar und macht mit den vorhandenen zukünftigen weiter. Im Moment bricht die Verarbeitung ja mit dem Fehler ab. Dann würde ein "Neuankömmling" nicht drüber stolpern und bekäme direkt bei definition eine Prognose gezeigt.
Da hast du recht. Allerdings möchte ich gern diese Fehlermeldung sehen, weil auch das DWD Device mal streiken kann und dann hat man gleich den Hinweis darauf. Vllt. fällt mir noch etwas dazu ein.
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

@all,

ich habe gerade bemerkt, dass wegen eines Fehlers in der AI Implementierung es dazu kommen kann dass FHEM zwischen 0 und 1 Uhr regelmäßig restartet.

Vermutlich kann ich heute noch ein Update bringen um dieses Problem zu eliminieren.
Ich bin dabei die Implementierung umzubauen.

Sorry für eventuelle Unannehmlichkeuten deswegen.

LG
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

schwatter

Tatsächlich kann ich den Fehler bestätigen. Mittwoch nach 0Uhr hatte ich reconnects in 5 sek Intervallen.
Bin zurück auf Version 81 und alles war OK.
Aus Zeitgründen hatte ich das melden versäumt, sorry.
Aufgefallen war mir an den Tag aber ein anderes Phänomen weshalb ich kurz aktiv war um die Zeit.
Mein Ertrag im Balkendiagramm stieg stetig und der erbrachte Ertrag viel stetig. Ging wie eine Schere auseinander  ;D
Alle Beweise hab ich aber aus versehen gelöscht  :P

tobi01001

Zitat von: DS_Starter am 08 September 2023, 12:49:19
ZitatJa, oder man setzt die fehlenden Readings der Vergangenheit auf 0, undef oder vergleichbar und macht mit den vorhandenen zukünftigen weiter. Im Moment bricht die Verarbeitung ja mit dem Fehler ab. Dann würde ein "Neuankömmling" nicht drüber stolpern und bekäme direkt bei definition eine Prognose gezeigt.
Da hast du recht. Allerdings möchte ich gern diese Fehlermeldung sehen, weil auch das DWD Device mal streiken kann und dann hat man gleich den Hinweis darauf. Vllt. fällt mir noch etwas dazu ein.
Das eine schließt ja das andere nicht aus.

Mein Vorschlag wäre:
   
if (!defined $rad) {
          my $ret = "The reading >fc${fd}_${runh}_Rad1h< doesn't exist. Check the device $raname !";
          debugLog ($paref, "apiCall", "DWD API - ERROR - got no data of starttime: $dateTime. The reading >fc${fd}_${runh}_Rad1h< doesn't exist. Check the device $raname !");
         
          $data{$type}{$name}{solcastapi}{'?All'}{'?All'}{response_message} = 'reading fc${fd}_${runh}_Rad1h and/or device >$raname< problem';
         
          return $ret;
      }
Naiv hätte ich anstatt des
return $ret;
einfach durch
$rad = 0;
next;
ersetzt.
Die Meldung bleibt im Log und in $data... Der Inhalt von $ret wurde - soweit ich das beurteilen kann - nicht weiter verarbeitet.

Wo könnte man denn (außer mit ctrlDebug) solche Fehlermeldungen sehen? Könnte man da nicht ein Reading oder Internal für setzen? Dann könnte man sich über sochle Probleme (DWD streikt oder die Station liefert keine Radiation mehr) aktive informieren lassen.

Sorry wenn ich da so rein crashe.

LG
FHEM@UbuntuServer on Lenovo ThinkCentre M900 [i5-6500T / 8GB RAM] MySQL-DbLog, Grafana, FTUI3 / HmIP incl. CCU3 / LGESS / Wärempumpe über TA CMI und CANoE / Shellies u.v.m.

DS_Starter

Solche Änderungen muss ich mir sehr genau anschauen. Meistens zieht das weitere Anpassungen nach sich, z.B. zukünftige Prognosen auf 0 gesetzt obwohl nichts geliefert wurde (undef). Weiterhin würde der Status response_message am Ende auf "success" gesetzt wenn kein exit ausgefürht würde bei Fehler.
Nur mal so ganz kurz auf die Schnelle.
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

kask


DS_Starter

In meinem contrib liegt die V 0.82.1 zum Update bereit.
Die restarts zwischen 0 und 1 Uhr sollten nun bereinigt sein.
Sorry nochmal .. blöde Sache  :(
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

kask

Ja das war wirklich doof bei mir.
Da gerade mein Fhem umgezogen war, hab ich viel abgesucht was da rum zicken könnte.
Das es der Forecast ist, hab ich dann nach intensiven suchen auch schlußendlich gemerkt.

DS_Starter

Ich habe noch die neuen Set/Get-Kommandos dokumentiert und ein paar Kleinigkeiten ergänzt.
Update liegt im contrib.

Wenn alles gut läuft, ist die Integration der Entscheidungen in den Forecast der nächste Schritt.
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