Leistungsprognose für Wechselrichter

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

Vorheriges Thema - Nächstes Thema

dk3572

Zitat von: DS_Starter am 22 Januar 2021, 20:09:28
Nein, das wird automatisch genutzt.

Schau mal ob du bei dir dieses File findest:

.../FHEM/FhemUtils/PVH_SolarForecast_<dein Devicename>

Dieses File wird bei einem stop/start geschrieben und wieder eingelesen. Wenn du das File nicht findest schau mal ins Log ob es beim Stop/start Fehlerausschriften gibt.

Hallo,

bei mir das gleiche. File nicht vorhanden.
Im Log, auch mit Verbose 5 im Modul SolarForecast, nichts zu sehen.

VG Dieter

Mumpitz

Zitat von: DS_Starter am 22 Januar 2021, 20:09:28
Nein, das wird automatisch genutzt.

Schau mal ob du bei dir dieses File findest:

.../FHEM/FhemUtils/PVH_SolarForecast_<dein Devicename>

Dieses File wird bei einem stop/start geschrieben und wieder eingelesen. Wenn du das File nicht findest schau mal ins Log ob es beim Stop/start Fehlerausschriften gibt.

Das entsprechende File existiert nicht bei mir. Wenn ich das Modul neu lade erscheint das im Log:

2021.01.22 20:50:14 1: PERL WARNING: Subroutine createNotifyDev redefined at ./FHEM/76_SolarForecast.pm line 2482.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine deleteReadingspec redefined at ./FHEM/76_SolarForecast.pm line 2466.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine createReadingsFromArray redefined at ./FHEM/76_SolarForecast.pm line 2445.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine timestringToTimestamp redefined at ./FHEM/76_SolarForecast.pm line 2426.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine sumNextHours redefined at ./FHEM/76_SolarForecast.pm line 2391.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine listPVHistory redefined at ./FHEM/76_SolarForecast.pm line 2357.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine setPVhistory redefined at ./FHEM/76_SolarForecast.pm line 2335.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine calcFromHistory redefined at ./FHEM/76_SolarForecast.pm line 2279.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine calcVariance redefined at ./FHEM/76_SolarForecast.pm line 2197.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine calcPVforecast redefined at ./FHEM/76_SolarForecast.pm line 2163.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine TimeAdjust redefined at ./FHEM/76_SolarForecast.pm line 2125.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine weather_icon redefined at ./FHEM/76_SolarForecast.pm line 2110.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine formatVal6 redefined at ./FHEM/76_SolarForecast.pm line 2058.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine consinject redefined at ./FHEM/76_SolarForecast.pm line 2026.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine forecastGraphic redefined at ./FHEM/76_SolarForecast.pm line 1318.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine pageAsHtml redefined at ./FHEM/76_SolarForecast.pm line 1284.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine setVersionInfo redefined at ./FHEM/76_SolarForecast.pm line 1248.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine pageRefresh redefined at ./FHEM/76_SolarForecast.pm line 1223.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine FwFn redefined at ./FHEM/76_SolarForecast.pm line 1183.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _transferMeterValues redefined at ./FHEM/76_SolarForecast.pm line 1153.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _transferInverterValues redefined at ./FHEM/76_SolarForecast.pm line 1095.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _transWeatherValues redefined at ./FHEM/76_SolarForecast.pm line 1026.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _transferDWDForecastValues redefined at ./FHEM/76_SolarForecast.pm line 968.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine controlParams redefined at ./FHEM/76_SolarForecast.pm line 956.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine centralTask redefined at ./FHEM/76_SolarForecast.pm line 898.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Delete redefined at ./FHEM/76_SolarForecast.pm line 881.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Shutdown redefined at ./FHEM/76_SolarForecast.pm line 849.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Notify redefined at ./FHEM/76_SolarForecast.pm line 830.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Attr redefined at ./FHEM/76_SolarForecast.pm line 791.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _getlistPVHistory redefined at ./FHEM/76_SolarForecast.pm line 781.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _getftui redefined at ./FHEM/76_SolarForecast.pm line 771.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _gethtml redefined at ./FHEM/76_SolarForecast.pm line 760.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _getdata redefined at ./FHEM/76_SolarForecast.pm line 750.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Get redefined at ./FHEM/76_SolarForecast.pm line 713.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setpvCorrectionFactorAuto redefined at ./FHEM/76_SolarForecast.pm line 695.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setpvCorrectionFactor redefined at ./FHEM/76_SolarForecast.pm line 654.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setinverterEfficiency redefined at ./FHEM/76_SolarForecast.pm line 634.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setmoduleTiltAngle redefined at ./FHEM/76_SolarForecast.pm line 616.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setmoduleEfficiency redefined at ./FHEM/76_SolarForecast.pm line 596.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setreset redefined at ./FHEM/76_SolarForecast.pm line 571.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setmoduleArea redefined at ./FHEM/76_SolarForecast.pm line 551.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setmeterDevice redefined at ./FHEM/76_SolarForecast.pm line 520.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setinverterDevice redefined at ./FHEM/76_SolarForecast.pm line 489.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine _setcurrentForecastDev redefined at ./FHEM/76_SolarForecast.pm line 470.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Set redefined at ./FHEM/76_SolarForecast.pm line 412.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Define redefined at ./FHEM/76_SolarForecast.pm line 365.
2021.01.22 20:50:14 1: PERL WARNING: Subroutine Initialize redefined at ./FHEM/76_SolarForecast.pm line 304.
2021.01.22 20:27:53 1: PERL WARNING: Wide character in print at fhem.pl line 1608.

DS_Starter

ZitatWenn ich das Modul neu lade erscheint das im Log:
Bei einem reload sind diese Warnings normal.
Ich meinte aber shutdown (restart). Dann wird das File geschrieben / gelesen.

Aber mir fällt etwas ein. Könnte es sein dass ihr beide (dk3572) configDB benutzt ?
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


DS_Starter

Nein, nicht DbLog, sondern configDB  ;)

Ok, also du nutzt das offensichtlich nicht. Ich baue mal eine Logausgabe ein damit man etwas mehr sieht.
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

dk3572

Zitat von: DS_Starter am 22 Januar 2021, 20:56:24
Bei einem reload sind diese Warnings normal.
Ich meinte aber shutdown (restart). Dann wird das File geschrieben / gelesen.

Aber mir fällt etwas ein. Könnte es sein dass ihr beide (dk3572) configDB benutzt ?

Nein, nutze ich nicht.
Und auch nach Neustart keine Log Einträge.

DS_Starter

In meinem contrib liegt eine neue Version.

Mit verbose 5 sehr ihr eine solche Ausgabe:


2021.01.22 21:14:39.544 5: SolCast - set PV History hour 21 -> real: 0, forecast: 0


Diese Ausgabe kommt bei jedem Datensammellauf unter der Voraussetzung dass die History mit Daten beschrieben wird.
Immer für die aktuelle Stunde.
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

dk3572

Zitat von: DS_Starter am 22 Januar 2021, 21:19:43
In meinem contrib liegt eine neue Version.

Mit verbose 5 sehr ihr eine solche Ausgabe:


2021.01.22 21:14:39.544 5: SolCast - set PV History hour 21 -> real: 0, forecast: 0


Diese Ausgabe kommt bei jedem Datensammellauf unter der Voraussetzung dass die History mit Daten beschrieben wird.
Immer für die aktuelle Stunde.

Habe mit der neuen Version nach Neustart die folgende Zeile 2 x im Log

2021.01.22 21:27:18.454 5: SolarForecast - set PV History hour 21 -> real: 0, forecast: 0

DS_Starter

passt. Und was zeigt get <> pvHistory ?
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

dk3572

#24
Zitat von: DS_Starter am 22 Januar 2021, 21:36:16
passt. Und was zeigt get <> pvHistory ?

PV cache is empty.

   FVERSION   76_SolarForecast.pm:v0.3.0-s21735/2020-04-20 TESTING
   MODE       Automatic - next polltime: 21:40:08
   NAME       SolarForecast
   NOTIFYDEV  DWD_PV,SMA_Wechselrichter,SMA_Zaehler
   NR         454
   NTFY_ORDER 50-SolarForecast
   STATE      updated
   TYPE       SolarForecast
   HELPER:
     FW         WEB
     NextHour01_CloudCover 93
     NextHour01_RainProb 0
     NextHour01_WeatherId 161
     NextHour01_WeatherTxt durchgehend leichter Regen
     NextHour02_CloudCover 92
     NextHour02_RainProb 0
     NextHour02_WeatherId 161
     .
     .
     NextHour26_CloudCover 88
     NextHour26_RainProb 0
     NextHour26_WeatherId 161
     NextHour26_WeatherTxt durchgehend leichter Regen
     PACKAGE    FHEM::SolarForecast
     SPGDETAIL  SolarForecast
     SPGDEV     SolarForecast
     SPGROOM   
     ThisHour_CloudCover 94
     ThisHour_RainProb 0
     ThisHour_WeatherId 161
     ThisHour_WeatherTxt durchgehend leichter Regen
     VERSION    0.3.0
     VERSION_API unused
     VERSION_ErrCodes unused
     VERSION_SMUtils 1.20.7
     fc0_21_PVforecast 0.00 kJ/m2
     fc0_22_PVforecast 0.00 kJ/m2
     fc0_23_PVforecast 0.00 kJ/m2
     fc1_00_PVforecast 0.00 kJ/m2
     fc1_01_PVforecast 0.00 kJ/m2
     fc1_02_PVforecast 0.00 kJ/m2
     fc1_03_PVforecast 0.00 kJ/m2
     fc1_04_PVforecast 0.00 kJ/m2
     fc1_05_PVforecast 0.00 kJ/m2
     fc1_06_PVforecast 0.00 kJ/m2
     fc1_07_PVforecast 0.00 kJ/m2
     fc1_08_PVforecast 0.00 kJ/m2
     fc1_09_PVforecast 10.00 kJ/m2
     fc1_10_PVforecast 120.00 kJ/m2
     fc1_11_PVforecast 280.00 kJ/m2
     fc1_12_PVforecast 420.00 kJ/m2
     fc1_13_PVforecast 480.00 kJ/m2
     fc1_14_PVforecast 460.00 kJ/m2
     fc1_15_PVforecast 380.00 kJ/m2
     fc1_16_PVforecast 240.00 kJ/m2
     fc1_17_PVforecast 80.00 kJ/m2
     fc1_18_PVforecast 0.00 kJ/m2
     fc1_19_PVforecast 0.00 kJ/m2
     fc1_20_PVforecast 0.00 kJ/m2
     fc1_21_PVforecast 0.00 kJ/m2
     fc1_22_PVforecast 0.00 kJ/m2
     fc1_23_PVforecast 0.00 kJ/m2
   READINGS:
     2021-01-22 21:38:58   Current_GridConsumption 449.9 W
     2021-01-22 21:38:58   Current_PV      0 W
     2020-12-20 00:59:02   Hour_00_PVreal  3389 Wh
     2020-12-20 01:58:59   Hour_01_PVreal  4.54747350886464e-13 Wh
     2020-12-20 02:59:58   Hour_02_PVreal  -4.54747350886419 Wh
     2020-12-20 03:59:55   Hour_03_PVreal  0 Wh
     2020-12-20 04:59:55   Hour_04_PVreal  0 Wh
     2020-12-20 05:59:53   Hour_05_PVreal  0 Wh
     2020-12-20 06:59:51   Hour_06_PVreal  -3389 Wh
     2020-12-20 07:59:50   Hour_07_PVreal  -4.54747350886464e-13 Wh
     2020-12-20 08:59:48   Hour_08_PVreal  4.54747350886419 Wh
     2020-12-20 09:59:46   Hour_09_PVreal  45 Wh
     2020-12-20 10:59:43   Hour_10_PVreal  244 Wh
     2020-12-20 11:59:41   Hour_11_PVreal  474 Wh
     2020-12-20 12:59:39   Hour_12_PVreal  333 Wh
     2020-12-20 13:57:34   Hour_13_PVreal  275 Wh
     2021-01-22 21:38:58   Next04Hours_PV  0 Wh
     2021-01-22 21:38:58   NextHour01_PVforecast 0 Wh
     2021-01-22 21:38:58   NextHour01_Time 22.01.2021 22:00:00
     2021-01-22 21:38:58   NextHour02_PVforecast 0 Wh
     .
     .
     2021-01-21 02:59:14   NextHour45_PVforecast 0 Wh
     2021-01-21 02:59:14   NextHour45_Time 22.01.2021 23:00:00
     2021-01-21 01:59:44   NextHour46_PVforecast 0 Wh
     2021-01-21 01:59:44   NextHour46_Time 22.01.2021 23:00:00
     2021-01-21 00:59:03   NextHour47_PVforecast 0 Wh
     2021-01-21 00:59:03   NextHour47_Time 22.01.2021 23:00:00
     2021-01-22 21:38:58   RestOfDay_PV    0 Wh
     2021-01-22 21:38:58   ThisHour_PVforecast 0 Wh
     2021-01-22 21:38:58   ThisHour_Time   22.01.2021 21:00:00
     2021-01-22 12:58:59   Today_Hour12_PVforecast 515 Wh
     2021-01-22 12:58:59   Today_Hour12_PVreal 952 Wh
     2021-01-22 13:59:39   Today_Hour13_PVforecast 362 Wh
     2021-01-22 13:59:39   Today_Hour13_PVreal 312 Wh
     2021-01-22 14:59:12   Today_Hour14_PVforecast 468 Wh
     2021-01-22 14:59:12   Today_Hour14_PVreal 232 Wh
     2021-01-22 15:59:52   Today_Hour15_PVforecast 340 Wh
     2021-01-22 15:59:52   Today_Hour15_PVreal 292 Wh
     2021-01-22 16:59:22   Today_Hour16_PVforecast 170 Wh
     2021-01-22 16:59:22   Today_Hour16_PVreal 86 Wh
     2021-01-22 17:58:53   Today_Hour17_PVforecast 83 Wh
     2021-01-22 17:58:53   Today_Hour17_PVreal 0 Wh
     2021-01-22 18:59:33   Today_Hour18_PVreal 0 Wh
     2021-01-22 19:59:03   Today_Hour19_PVreal 0 Wh
     2021-01-22 20:59:45   Today_Hour20_PVreal 0 Wh
     2021-01-22 21:38:58   Today_Hour21_PVreal 0 Wh
     2020-12-20 13:57:34   Today_HourSunRise 08
     2020-12-20 13:57:34   Today_HourSunSet 16
     2021-01-22 21:38:58   Today_SunRise   08:08
     2021-01-22 21:38:58   Today_SunSet    17:07
     2020-12-20 13:57:34   Tomorrow_HourSunRise 08
     2020-12-20 13:57:34   Tomorrow_HourSunSet 16
     2021-01-22 21:38:58   Tomorrow_PV     2098 Wh
     2021-01-22 21:38:58   Tomorrow_SunRise 08:07
     2021-01-22 21:38:58   Tomorrow_SunSet 17:09
     2020-12-20 13:08:03   currentForecastDev DWD_PV
     2020-12-20 14:03:08   currentInverterDev SMA_Wechselrichter pv=total_pac:kW etoday=etoday:kWh
     2020-12-20 14:03:46   currentMeterDev SMA_Zaehler gcon=Bezug_Wirkleistung:W
     2020-12-13 19:39:52   moduleArea      32
     2021-01-20 12:00:52   pvCorrectionFactor_11 0.53 (automatic)
     2021-01-22 13:00:09   pvCorrectionFactor_12 1.17 (automatic)
     2021-01-22 13:00:09   pvCorrectionFactor_12_autocalc done
     2021-01-22 14:00:49   pvCorrectionFactor_13 0.86 (automatic)
     2021-01-22 14:00:49   pvCorrectionFactor_13_autocalc done
     2021-01-22 15:00:22   pvCorrectionFactor_14 0.50 (automatic)
     2021-01-22 15:00:22   pvCorrectionFactor_14_autocalc done
     2021-01-22 16:01:02   pvCorrectionFactor_15 0.86 (automatic)
     2021-01-22 16:01:02   pvCorrectionFactor_15_autocalc done
     2021-01-22 17:00:33   pvCorrectionFactor_16 0.51 (automatic)
     2021-01-22 17:00:33   pvCorrectionFactor_16_autocalc done
     2021-01-22 21:38:58   pvCorrectionFactor_Auto on
     2021-01-22 21:38:58   state           updated
Attributes:
   DbLogExclude .*
   autoRefresh 120
   forcePageRefresh 1
   room       Photovoltaik
   showDiff   no
   verbose    5

DS_Starter

passt alles, versteh es grad nicht ...
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

Hab nochmal die V im contrib geändert. Bei einem get <> pvHistory sollte mit verbose 5 im Log so etwas kommen:


2021.01.22 21:56:07.523 5: SolCast - PV History content: {
  '22' => {
            '11' => {
                      'pvrl' => 212,
                      'pvfc' => 811
                    },
            '17' => {
                      'pvfc' => 35,
                      'pvrl' => 0
                    },
            '20' => {
                      'pvrl' => 0,
                      'pvfc' => 0
                    },
...........
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

Nach dem Update kommt bei mir folgendes im Logfile:

2021.01.22 22:26:42 1: reload: Error:Modul 76_SolarForecast deactivated:

DS_Starter

Da muß aber noch etwas davor stehen was den eigentlichen Grund anzeigt.
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:33:07
Da muß aber noch etwas davor stehen was den eigentlichen Grund anzeigt.

Nein!