Leistungsprognose für Wechselrichter

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

Vorheriges Thema - Nächstes Thema

kask

#3030
was hier stand stimmt nicht ;)

DS_Starter

ZitatDie doppelten Events kann ich mir auch nicht erklären aber ich glaube wir hatten  das schonmal gesehen.
Das sollte doch passen, oder?
Nicht wirklich. Dadurch wird innerhalb von ms die zentrale Verarbeitungsschleife in dem Modul mehrfach gestartet.
Im Browser (Raumansicht) kommt dann möglicherweise z.B. die Meldung "Connection lost ..." was wiederum die Eventverarbeitung im Browser verhindert und die Schaltelemente werden nicht geändert.
Aber das kannst du im FHEMWEB erstmal ganz einfach überprüfen ob die Schaltelemente switchen.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stefanru

#3032
Ok,

nein, im FHEMWEB schaltet es leider nicht.

Ich habe etwas gespielt.
Nehme ich alle event-on raus kommen die events doppelt mit kurzer Verzögerung.
Sieht mir so aus als direkt wenn ich auf dem UI drücke und dann die Rückmeldung Meldung der Steckdose.
Mache ich nur ein
event-min-interval .*:300
kommt das event nur 1 mal. Hier schätze ich das drücken auf dem UI.
Aber auch mit diesem einen Event schaltet der Schalter nicht :-(
Erst nach einem Refresh des UI zeigt es den Status an.
Schon sehr seltsam das Tuya Modul in dieser hinsicht.
Irgendwie als ob diese Events nichts auslösen.

Gruß,
Stefan

DS_Starter

ZitatAber auch mit diesem einen Event schaltet der Schalter nicht :-(
Wenn, dann klappt das nur in der Raumansicht.
Achte mal darauf ob du kurz die Meldung "Connection lost ..." im Browser siehst.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stefanru

Das verstehe ich jetzt nicht ganz.
Ich arbeite in der Normalen FHEMWEB ansicht im Raum Strom mit dem Device Forecast.
Wo sollte ich Connection lost sehen?
Im Browser in der Development Tools Browser Console? Ich verwende Crome.

Mir ist aber noch etwas aufgefallen.
Ändere im Forcast Device ein Attribut, drücke auf attr zum speichern passiert nichts.
Es ist gespeichert, aber im Browser passiert nichts.
Bei anderen Devices löst das ein refresh aus.

Gruß,
Stefan

DS_Starter

Bei mir liefert das Ändern eines Attributs den gewohnten Browserrefrsh.
Da fällt mir gerade nichts dazu ein.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

DS_Starter

ZitatWo sollte ich Connection lost sehen?
Das erscheint manchmal oben links im Browser.

Hast du eventuell außerordentlich viele Readings im Device?
Zu Beispiel weil du alles mögliche per ctrlStatisticReadings aktiviert hast?
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stefanru

#3037
Ja verstehe ich, bin auch absolut verwirrt.
Habe mal Fhem neu gestartet und Fhem log geprüft.
Im Log nichts zu sehen und der Neustart hat nichts gebracht.

Jetzt habe ich mal ein anderes Attr gespeichert und es geht ohne Probleme.
Also z.B. affect70percentRule.
Seite refreshed beim Speichern.

Speichere ich aber consumer01 geht es nicht.
Kann ich irgendetwas so falsch konfiguriert haben beim consumer?
Was passiert da genau, wird das Device irgendwie gerufen?

Hier aber mal ein List:
Internals:
  FUUID      6452dc9b-f33f-a171-d9a3-881e1234eae7ad83
  FVERSION  0.83.1
  LCACHEFILE last write time: 20:15:12 File: ./FHEM/FhemUtils/PVH_SolarForecast_Forecast
  MODE      Automatic - next Cycletime: 20:25:47
  MODEL      DWD
  NAME      Forecast
  NOTIFYDEV  Stefan_Tablet_bf0572e0fb6ccbe356ykuh,tuya_cloud_bf3af0cab7db7e47d7zeux
  NR        2412
  NTFY_ORDER 50-Forecast
  STATE      0 W
  TYPE      SolarForecast
  eventCount 37311
  HELPER:
    FW        WEB
    PACKAGE    FHEM::SolarForecast
    SPGDETAIL 
    SPGDEV    Forecast
    SPGROOM   
    VERSION    0.83.1
    VERSION_API unused
    VERSION_CTZ 1.0.0
    VERSION_ErrCodes unused
    VERSION_SMUtils 1.26.0
  OLDREADINGS:
  READINGS:
    2023-09-27 23:59:59  AllPVforecastsToEvent 0 Wh
    2023-09-27 20:25:32  Current_AutarkyRate 100 %
    2023-09-27 20:25:32  Current_BatCharge 87 %
    2023-09-27 20:25:32  Current_Consumption 784 W
    2023-09-27 20:25:32  Current_GridConsumption 1 W
    2023-09-27 20:25:32  Current_GridFeedIn 0 W
    2023-09-27 20:25:32  Current_PV      0 W
    2023-09-27 20:25:32  Current_PowerBatIn 0 W
    2023-09-27 20:25:32  Current_PowerBatOut 783 W
    2023-09-27 20:25:32  Current_SelfConsumption 0 W
    2023-09-27 20:25:32  Current_SelfConsumptionRate 0 %
    2023-09-27 20:25:32  Current_Surplus 0 W
    2023-09-27 20:00:00  LastHourGridconsumptionReal 16 Wh
    2023-09-27 20:00:00  LastHourPVforecast 18 Wh
    2023-09-27 20:00:00  LastHourPVreal  17 Wh
    2023-09-27 20:25:32  NextHours_Sum01_PVforecast 0 Wh
    2023-09-27 20:25:32  NextHours_Sum02_PVforecast 0 Wh
    2023-09-27 20:25:32  NextHours_Sum03_PVforecast 0 Wh
    2023-09-27 20:25:32  NextHours_Sum04_ConsumptionForecast 2459 Wh
    2023-09-27 20:25:32  NextHours_Sum04_PVforecast 0 Wh
    2023-09-27 20:25:32  RestOfDayConsumptionForecast 2443 Wh
    2023-09-27 20:25:32  RestOfDayPVforecast 0 Wh
    2023-09-27 00:59:52  Today_Hour01_BatIn 0 Wh
    2023-09-27 00:59:52  Today_Hour01_BatOut 523 Wh
    2023-09-27 00:59:52  Today_Hour01_GridConsumption 8 Wh
    2023-09-27 00:59:52  Today_Hour01_GridFeedIn 6 Wh
    2023-09-27 00:59:52  Today_Hour01_PVreal 0 Wh
    2023-09-27 01:59:59  Today_Hour02_BatIn 0 Wh
    2023-09-27 01:59:59  Today_Hour02_BatOut 608 Wh
    2023-09-27 01:59:59  Today_Hour02_GridConsumption 17 Wh
    2023-09-27 01:59:59  Today_Hour02_GridFeedIn 15 Wh
    2023-09-27 01:59:59  Today_Hour02_PVreal 0 Wh
    2023-09-27 02:59:48  Today_Hour03_BatIn 0 Wh
    2023-09-27 02:59:48  Today_Hour03_BatOut 653 Wh
    2023-09-27 02:59:48  Today_Hour03_GridConsumption 18 Wh
    2023-09-27 02:59:48  Today_Hour03_GridFeedIn 15 Wh
    2023-09-27 02:59:48  Today_Hour03_PVreal 0 Wh
    2023-09-27 03:59:56  Today_Hour04_BatIn 0 Wh
    2023-09-27 03:59:56  Today_Hour04_BatOut 560 Wh
    2023-09-27 03:59:56  Today_Hour04_GridConsumption 3 Wh
    2023-09-27 03:59:56  Today_Hour04_GridFeedIn 1 Wh
    2023-09-27 03:59:56  Today_Hour04_PVreal 0 Wh
    2023-09-27 04:59:51  Today_Hour05_BatIn 0 Wh
    2023-09-27 04:59:51  Today_Hour05_BatOut 515 Wh
    2023-09-27 04:59:51  Today_Hour05_GridConsumption 9 Wh
    2023-09-27 04:59:51  Today_Hour05_GridFeedIn 7 Wh
    2023-09-27 04:59:51  Today_Hour05_PVreal 0 Wh
    2023-09-27 05:59:59  Today_Hour06_BatIn 0 Wh
    2023-09-27 05:59:59  Today_Hour06_BatOut 435 Wh
    2023-09-27 05:59:59  Today_Hour06_GridConsumption 6 Wh
    2023-09-27 05:59:59  Today_Hour06_GridFeedIn 5 Wh
    2023-09-27 05:59:59  Today_Hour06_PVreal 0 Wh
    2023-09-27 06:59:48  Today_Hour07_BatIn 0 Wh
    2023-09-27 06:59:48  Today_Hour07_BatOut 342 Wh
    2023-09-27 06:59:48  Today_Hour07_GridConsumption 3 Wh
    2023-09-27 06:59:48  Today_Hour07_GridFeedIn 1 Wh
    2023-09-27 06:59:48  Today_Hour07_PVreal 0 Wh
    2023-09-27 07:59:52  Today_Hour08_BatIn 93 Wh
    2023-09-27 07:59:52  Today_Hour08_BatOut 280 Wh
    2023-09-27 07:59:52  Today_Hour08_GridConsumption 8 Wh
    2023-09-27 07:59:52  Today_Hour08_GridFeedIn 7 Wh
    2023-09-27 07:59:52  Today_Hour08_PVforecast 402 Wh
    2023-09-27 07:59:52  Today_Hour08_PVreal 292 Wh
    2023-09-27 08:59:59  Today_Hour09_BatIn 1435 Wh
    2023-09-27 08:59:59  Today_Hour09_BatOut 120 Wh
    2023-09-27 08:59:59  Today_Hour09_GridConsumption 32 Wh
    2023-09-27 08:59:59  Today_Hour09_GridFeedIn 444 Wh
    2023-09-27 08:59:59  Today_Hour09_PVforecast 1432 Wh
    2023-09-27 08:59:59  Today_Hour09_PVreal 3052 Wh
    2023-09-27 09:59:47  Today_Hour10_BatIn 1905 Wh
    2023-09-27 09:59:47  Today_Hour10_BatOut 0 Wh
    2023-09-27 09:59:47  Today_Hour10_GridConsumption 0 Wh
    2023-09-27 09:59:47  Today_Hour10_GridFeedIn 6131 Wh
    2023-09-27 09:59:47  Today_Hour10_PVforecast 5740 Wh
    2023-09-27 09:59:47  Today_Hour10_PVreal 9155 Wh
    2023-09-27 10:59:56  Today_Hour11_BatIn 1988 Wh
    2023-09-27 10:59:56  Today_Hour11_BatOut 0 Wh
    2023-09-27 10:59:56  Today_Hour11_GridConsumption 0 Wh
    2023-09-27 10:59:56  Today_Hour11_GridFeedIn 9966 Wh
    2023-09-27 10:59:56  Today_Hour11_PVforecast 13984 Wh
    2023-09-27 10:59:56  Today_Hour11_PVreal 13904 Wh
    2023-09-27 11:59:45  Today_Hour12_BatIn 556 Wh
    2023-09-27 11:59:45  Today_Hour12_BatOut 0 Wh
    2023-09-27 11:59:45  Today_Hour12_GridConsumption 0 Wh
    2023-09-27 11:59:45  Today_Hour12_GridFeedIn 13330 Wh
    2023-09-27 11:59:45  Today_Hour12_PVforecast 12544 Wh
    2023-09-27 11:59:45  Today_Hour12_PVreal 16638 Wh
    2023-09-27 12:59:51  Today_Hour13_BatIn 398 Wh
    2023-09-27 12:59:51  Today_Hour13_BatOut 11 Wh
    2023-09-27 12:59:51  Today_Hour13_GridConsumption 0 Wh
    2023-09-27 12:59:51  Today_Hour13_GridFeedIn 15275 Wh
    2023-09-27 12:59:51  Today_Hour13_PVforecast 14218 Wh
    2023-09-27 12:59:51  Today_Hour13_PVreal 18486 Wh
    2023-09-27 13:59:57  Today_Hour14_BatIn 860 Wh
    2023-09-27 13:59:57  Today_Hour14_BatOut 4 Wh
    2023-09-27 13:59:57  Today_Hour14_GridConsumption 0 Wh
    2023-09-27 13:59:57  Today_Hour14_GridFeedIn 13491 Wh
    2023-09-27 13:59:57  Today_Hour14_PVforecast 16822 Wh
    2023-09-27 13:59:57  Today_Hour14_PVreal 16989 Wh
    2023-09-27 14:59:46  Today_Hour15_BatIn 777 Wh
    2023-09-27 14:59:46  Today_Hour15_BatOut 13 Wh
    2023-09-27 14:59:46  Today_Hour15_GridConsumption 0 Wh
    2023-09-27 14:59:46  Today_Hour15_GridFeedIn 11643 Wh
    2023-09-27 14:59:46  Today_Hour15_PVforecast 15850 Wh
    2023-09-27 14:59:46  Today_Hour15_PVreal 14423 Wh
    2023-09-27 15:59:57  Today_Hour16_BatIn 2 Wh
    2023-09-27 15:59:57  Today_Hour16_BatOut 7 Wh
    2023-09-27 15:59:57  Today_Hour16_GridConsumption 0 Wh
    2023-09-27 15:59:57  Today_Hour16_GridFeedIn 12603 Wh
    2023-09-27 15:59:57  Today_Hour16_PVforecast 14291 Wh
    2023-09-27 15:59:57  Today_Hour16_PVreal 14221 Wh
    2023-09-27 16:59:53  Today_Hour17_BatIn 1 Wh
    2023-09-27 16:59:53  Today_Hour17_BatOut 10 Wh
    2023-09-27 16:59:53  Today_Hour17_GridConsumption 0 Wh
    2023-09-27 16:59:53  Today_Hour17_GridFeedIn 8324 Wh
    2023-09-27 16:59:53  Today_Hour17_PVforecast 4052 Wh
    2023-09-27 16:59:53  Today_Hour17_PVreal 10411 Wh
    2023-09-27 17:59:58  Today_Hour18_BatIn 89 Wh
    2023-09-27 17:59:58  Today_Hour18_BatOut 30 Wh
    2023-09-27 17:59:58  Today_Hour18_GridConsumption 12 Wh
    2023-09-27 17:59:58  Today_Hour18_GridFeedIn 2107 Wh
    2023-09-27 17:59:58  Today_Hour18_PVforecast 6128 Wh
    2023-09-27 17:59:58  Today_Hour18_PVreal 3285 Wh
    2023-09-27 18:59:54  Today_Hour19_BatIn 1 Wh
    2023-09-27 18:59:54  Today_Hour19_BatOut 119 Wh
    2023-09-27 18:59:54  Today_Hour19_GridConsumption 8 Wh
    2023-09-27 18:59:54  Today_Hour19_GridFeedIn 189 Wh
    2023-09-27 18:59:54  Today_Hour19_PVforecast 1869 Wh
    2023-09-27 18:59:54  Today_Hour19_PVreal 635 Wh
    2023-09-27 19:59:49  Today_Hour20_BatIn 0 Wh
    2023-09-27 19:59:49  Today_Hour20_BatOut 761 Wh
    2023-09-27 19:59:49  Today_Hour20_GridConsumption 16 Wh
    2023-09-27 19:59:49  Today_Hour20_GridFeedIn 12 Wh
    2023-09-27 19:59:49  Today_Hour20_PVforecast 18 Wh
    2023-09-27 19:59:49  Today_Hour20_PVreal 17 Wh
    2023-09-27 20:25:32  Today_Hour21_BatIn 0 Wh
    2023-09-27 20:25:32  Today_Hour21_BatOut 321 Wh
    2023-09-27 20:25:32  Today_Hour21_GridConsumption 3 Wh
    2023-09-27 20:25:32  Today_Hour21_GridFeedIn 2 Wh
    2023-09-27 20:25:32  Today_Hour21_PVreal 0 Wh
    2023-09-27 20:25:32  Today_MaxPVforecast 16822 Wh
    2023-09-27 20:25:32  Today_MaxPVforecastTime 2023-09-27 13:00:00
    2023-09-27 20:25:32  Today_PVdeviation -11.94 %
    2023-09-27 20:25:32  Today_PVforecast 107350 Wh
    2023-09-27 20:25:32  Today_PVreal    121911.156949061 Wh
    2023-09-27 20:25:32  Today_SunRise  07:15
    2023-09-27 20:25:32  Today_SunSet    19:17
    2023-09-27 20:25:32  Tomorrow_ConsumptionForecast 15668 Wh
    2023-09-27 20:25:32  Tomorrow_PVforecast 91520 Wh
    2023-09-27 20:25:32  Tomorrow_SunRise 07:16
    2023-09-27 20:25:32  Tomorrow_SunSet 19:15
    2023-09-27 20:25:32  consumer01      name='Stefan Tablet' state='off' planningstate='planned'
    2023-09-27 20:25:32  consumer01_currentPower 0 W
    2023-09-27 20:25:32  consumer01_planned_start 27.09.2023 09:15:00
    2023-09-27 20:25:32  consumer01_planned_stop 27.09.2023 18:17:00
    2023-09-27 20:25:32  consumer02      name='Audi A3' state='off' planningstate='planned'
    2023-09-27 20:25:32  consumer02_currentPower 0 W
    2023-09-27 20:25:32  consumer02_planned_start 27.09.2023 07:15:00
    2023-09-27 20:25:32  consumer02_planned_stop 27.09.2023 17:17:00
    2023-05-04 00:14:09  currentBatteryDev BatteryDummy pin=-pout:kW pout=total_pac:W intotal=intotal:kWh outtotal=outtotal:kWh charge=chargestatus
    2023-09-22 16:21:51  currentInverterDev InverterDummy pv=PowerFlow_PV:W etotal=Energy_Total_PV:kWh capacity=24800
    2023-05-04 00:14:55  currentMeterDev EnergyMeterDummy gcon=Bezug_Wirkleistung:W contotal=Bezug_Wirkleistung_Zaehler:kWh gfeedin=Einspeisung_Wirkleistung:W feedtotal=Einspeisung_Wirkleistung_Zaehler:kWh
    2023-09-25 22:45:14  currentRadiationAPI DWD
    2023-09-15 00:04:36  currentWeatherDev DWD
    2023-05-04 00:16:27  inverterStrings Haus_Gen24
    2023-06-03 20:40:31  moduleDirection Haus_Gen24=-7
    2023-09-22 08:28:27  modulePeakString Haus_Gen24=24.8
    2023-06-01 00:15:00  moduleRoofTops  Haus_Gen24=p1
    2023-05-04 00:16:27  moduleTiltAngle Haus_Gen24=20
    2023-09-27 20:25:32  nextCycletime  20:25:47
    2023-09-27 08:00:12  pvCorrectionFactor_08 1.06 (automatic - old factor: 1.25, cloudiness range: 26, days in range: 1)
    2023-09-27 08:00:12  pvCorrectionFactor_08_autocalc done
    2023-09-27 09:00:15  pvCorrectionFactor_09 1.18 (automatic - old factor: 0.88, cloudiness range: 27, days in range: 1)
    2023-09-27 09:00:15  pvCorrectionFactor_09_autocalc done
    2023-09-27 10:00:03  pvCorrectionFactor_10 1.29 (automatic - old factor: 1, cloudiness range: 25, days in range: 1)
    2023-09-27 10:00:03  pvCorrectionFactor_10_autocalc done
    2023-09-27 11:00:06  pvCorrectionFactor_11 1.26 (automatic - old factor: 1.12, cloudiness range: 25, days in range: 1)
    2023-09-27 11:00:06  pvCorrectionFactor_11_autocalc done
    2023-09-27 12:00:01  pvCorrectionFactor_12 1.21 (automatic - old factor: 1.08, cloudiness range: 23, days in range: 1)
    2023-09-27 12:00:01  pvCorrectionFactor_12_autocalc done
    2023-09-27 13:00:06  pvCorrectionFactor_13 1.15 (automatic - old factor: 1, cloudiness range: 19, days in range: 1)
    2023-09-27 13:00:06  pvCorrectionFactor_13_autocalc done
    2023-09-27 14:00:14  pvCorrectionFactor_14 1.11 (automatic - old factor: 1.12, cloudiness range: 16, days in range: 2)
    2023-09-27 14:00:14  pvCorrectionFactor_14_autocalc done
    2023-09-27 15:00:02  pvCorrectionFactor_15 0.93 (automatic - old factor: 1.12, cloudiness range: 15, days in range: 2)
    2023-09-27 15:00:02  pvCorrectionFactor_15_autocalc done
    2023-09-27 16:00:13  pvCorrectionFactor_16 1.08 (automatic - old factor: 1.10, cloudiness range: 14, days in range: 1)
    2023-09-27 16:00:13  pvCorrectionFactor_16_autocalc done
    2023-09-27 17:00:12  pvCorrectionFactor_17 1.05 (automatic - old factor: 1.15, cloudiness range: 15, days in range: 1)
    2023-09-27 17:00:12  pvCorrectionFactor_17_autocalc done
    2023-09-27 18:00:13  pvCorrectionFactor_18 0.81 (automatic - old factor: 1.08, cloudiness range: 16, days in range: 1)
    2023-09-27 18:00:13  pvCorrectionFactor_18_autocalc done
    2023-09-27 19:00:11  pvCorrectionFactor_19 0.67 (automatic - old factor: 1, cloudiness range: 17, days in range: 1)
    2023-09-27 19:00:11  pvCorrectionFactor_19_autocalc done
    2023-09-27 20:00:04  pvCorrectionFactor_20 0.44 (automatic - old factor: 0.70, cloudiness range: 20, days in range: 1)
    2023-09-27 20:00:04  pvCorrectionFactor_20_autocalc done
    2023-09-27 20:25:32  pvCorrectionFactor_Auto on_complex_ai
    2023-09-27 20:25:32  state          running
    2023-09-27 20:25:32  statistic_SunHours_Remain 0.00
    2023-09-27 20:25:32  statistic_SunMinutes_Remain 0
    2023-09-27 20:25:32  statistic_conForecastTillNextSunrise 6979 Wh
    2023-09-27 00:59:52  statistic_todayConsumptionForecast_01 37 Wh
    2023-09-27 01:59:59  statistic_todayConsumptionForecast_02 393 Wh
    2023-09-27 02:59:48  statistic_todayConsumptionForecast_03 402 Wh
    2023-09-27 03:59:56  statistic_todayConsumptionForecast_04 385 Wh
    2023-09-27 04:59:52  statistic_todayConsumptionForecast_05 308 Wh
    2023-09-27 05:59:59  statistic_todayConsumptionForecast_06 328 Wh
    2023-09-27 06:59:48  statistic_todayConsumptionForecast_07 401 Wh
    2023-09-27 07:59:53  statistic_todayConsumptionForecast_08 2043 Wh
    2023-09-27 09:00:00  statistic_todayConsumptionForecast_09 609 Wh
    2023-09-27 09:59:47  statistic_todayConsumptionForecast_10 315 Wh
    2023-09-27 10:59:56  statistic_todayConsumptionForecast_11 444 Wh
    2023-09-27 11:59:45  statistic_todayConsumptionForecast_12 425 Wh
    2023-09-27 12:59:51  statistic_todayConsumptionForecast_13 343 Wh
    2023-09-27 13:59:57  statistic_todayConsumptionForecast_14 398 Wh
    2023-09-27 14:59:47  statistic_todayConsumptionForecast_15 568 Wh
    2023-09-27 15:59:58  statistic_todayConsumptionForecast_16 1908 Wh
    2023-09-27 16:59:53  statistic_todayConsumptionForecast_17 1713 Wh
    2023-09-27 17:59:58  statistic_todayConsumptionForecast_18 622 Wh
    2023-09-27 18:59:54  statistic_todayConsumptionForecast_19 739 Wh
    2023-09-27 19:59:49  statistic_todayConsumptionForecast_20 605 Wh
    2023-09-27 20:25:32  statistic_todayConsumptionForecast_21 550 Wh
    2023-09-27 20:25:32  statistic_todayConsumptionForecast_22 697 Wh
    2023-09-27 20:25:32  statistic_todayConsumptionForecast_23 754 Wh
    2023-09-27 20:25:32  statistic_todayConsumptionForecast_24 681 Wh
Attributes:
  DbLogExclude .*
  affect70percentRule 0
  comment    update per "wget -qO /opt/fhem/FHEM/76_SolarForecast.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/76_SolarForecast.pm"
  consumer01 Stefan_Tablet_bf0572e0fb6ccbe356ykuh type=charger power=20 icon=message_socket mode=can notbefore=09 mintime=SunPath:60:-120 on=on off=off swstate=state etotal=energy:kWh 
                                  pcurr=cur_power:W auto=automatic asynchron=1 interruptable=StefansFireHD:batterylevel:25:45
  consumer02 tuya_cloud_bf3af0cab7db7e47d7zeux type=charger power=2300 icon=message_socket mode=can notbefore=07 mintime=SunPath:0:-120 on=on off=off etotal=energy:kWh 
                                  pcurr=cur_power:W asynchron=1 auto=automatic interruptable=1 swoffcond=AudiA3:Soc:-?([7][5-9]|8[0-9])
  consumerLegend none
  consumerLink 1
  ctrlDebug  none
  ctrlInterval 15
  ctrlStatisticReadings SunHours_Remain,SunMinutes_Remain,conForecastTillNextSunrise,todayConsumptionForecast
  disable    0
  event-on-change-reading .*
  flowGraphicAnimate 1
  flowGraphicShowConsumer 0
  flowGraphicShowConsumerDummy 1
  flowGraphicShowConsumerPower 1
  flowGraphicShowConsumerRemainTime 1
  flowGraphicSize 350
  graphicBeam1Color 3C14FF
  graphicBeam1Content pvForecast
  graphicBeam2Color 19FF29
  graphicBeam2Content pvReal
  graphicBeamHeight 140
  graphicHeaderDetail all
  graphicHistoryHour 8
  graphicHourCount 18
  graphicLayoutType double
  graphicShowDiff top
  graphicShowNight 0
  group      PV Forcast
  room      Strom
  stateFormat Current_PV
  verbose    2

Ok lege ich den Consumer verkürzt an gehts.
Stefan_Tablet_bf0572e0fb6ccbe356ykuh type=charger power=20 icon=message_socket mode=can

Ok aber nur das Anlegen, das Ändern führt wieder nicht zum refresh.

Gruß und Danke,
Stefan


DS_Starter

ZitatSpeichere ich aber consumer01 geht es nicht.
Kann ich irgendetwas so falsch konfiguriert haben beim consumer?
Was passiert da genau, wird das Device irgendwie gerufen?
Nein bei den Consumern ist es so gewollt. Es wird die Zentralschleife des Moduls ohne Eventgenerierung (außer state) aufgerufen um die gesetzten Paramter des Consumers intern zu verarbeiten.
 
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stefanru

Ok, also gewollt.

Um Tuya auszuschließen habe ich mir einen stink normalen Dummy Schalter angelegt und als consumer eingetragen.
Leider dasselbe Verhalten, beim Schalten wird der Status nicht übernommen oder nicht refreshed.

Das einzige was ich beobachten kann ist wenn ich eine Seite im FHEM Web aufmache und in der Browser Console schaue kommt ein Fehler:
"Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received"
Es ist aber egal welche Seite im FHEMWEB.

Es ist jetzt nicht so tragisch. Wollte mir das Consumer zeug auch mal anschauen.
Ich schlaf mal drüber und überleg was ich noch schauen könnte.

Vielen Dank für deine Hilfe,
Stefan

DS_Starter

Du kannst mal probieren direkt im Dummy oder tuya ein/aus zu schalten.
Dann ändert sich der Status der Schalter im SolarForecast. Gerade bei asynchon getestet, läuft einwandfrei.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stefanru

Ok,

habe mit dem Dummy etwas getestet.
Wenn ich den Dummy schalte ändert sich das reading:
consumer03 name='testdummy' state='on' planningstate='planned' und auch der timestamp wird aktuallisiert.
Das dauert manchmal ein paar sekunden. Eventuell mit dem intervall. Ist bei mir auf 15 sekunden.
Aber oben in der Grafik bei consumern ändert sich der Schalter nicht.

Habe nochmal alle Consumer gelöscht und nur den Dummy angelegt:
testdummy type=charger power=2300 icon=message_socket mode=can on=on off=off

Bleibt bei genau dem Verhalten.

Mit Verbose 5 im Forecast device sehe ich beim Schalten in der Grafik des Forecast Device im Log nur dies:
2023.09.27 23:54:34 4: Forecast - Client Action received / execute: "set testdummy on"
2023.09.27 23:54:34 4: Forecast - INFO - The correction factors are now calculated and stored proactively independent of the autocorrection usage

Der Event Monitor liefert dabei ein Event:
2023-09-27 23:54:34 dummy testdummy on

Sieht für mich alles gut aus.
Aber das die Grafik springt nicht um.

Gruß,
Stefan

DS_Starter

Wenn du ein Device selbst schaltest, oder anders gesagt auf Events reagieren willst welche von diesem Device ausgehen, musst du den Consumer mit dem asynchron=1 Schlüssel anlegen.
Ansonsten reagiert das Modul nur wenn man den Schalter im Modul benutzt oder natürlich wenn ein Zyklus alle Consumer abfragt.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

stefanru

Das Verhalten ist aber leider anders.
Mit asynchron=1 reagiert das reading consumer01 nicht auf ein Schalten des dummys.
Mit asynchron=0 reagiert es mit dem intervall im Forecast device.

In der Grafik wird der Schalter nie aktualisiert, ob mit asynchron=1 oder asynchron=0.

Funktioniert das denn bei dir in der Grafik?
Oder benutzt ihr die Schalter da nicht?
Was kann ich noch anderes probieren?

Gruß,
Stefan


DS_Starter

Das Reading consumer01? Verstehe ich nicht.
Aber ansonsten ja, ich schalte Device/Dummy -> der Schalter im Modulkopf reagiert entsprechend (asynchron=1).
Beziehungsweise betätige ich den Schalter im Modul reagiert er ebenfalls wenn das Device schaltet.
Proxmox+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter