From b94a1de26641ed655ca628a1a801026988d5a6a2 Mon Sep 17 00:00:00 2001 From: "ch.eick" <> Date: Tue, 26 Mar 2024 16:23:26 +0000 Subject: [PATCH] ch.eick: minor changes to KI_Prognose limit git-svn-id: https://svn.fhem.de/fhem/trunk@28709 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- .../ch.eick/Photovoltaik/KI_Prognose/PV_KI_Prognose.py | 4 ++-- .../Wechselrichter/RAW_WR_1_Speicher_1_ExternControl.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/ch.eick/Photovoltaik/KI_Prognose/PV_KI_Prognose.py b/fhem/contrib/ch.eick/Photovoltaik/KI_Prognose/PV_KI_Prognose.py index 560e023d1..2bb0a7dba 100644 --- a/fhem/contrib/ch.eick/Photovoltaik/KI_Prognose/PV_KI_Prognose.py +++ b/fhem/contrib/ch.eick/Photovoltaik/KI_Prognose/PV_KI_Prognose.py @@ -240,13 +240,13 @@ while loop_date <= end_date: # Zu kleine Werte werden verworfen if (Prognose < 20): if (verbose >= 4): - print("Forecast value to smale") + print("Forecast value to smale : " + str(Prognose)) Prognose = 0 # Zu große Werte werden limitiert # Achtung, die yield Prognose Werte sind Angaben zum Ende der Stunde if (Prognose > 0): - timestamp = date+" %02d:00:00" % (dfhour_start['VALUE'].values[0]+loop_hour) + timestamp = date+" %02d:00:00" % (dfhour_start['VALUE'].values[0]+loop_hour-1) Limit = int(round(dfask.loc[dfask['TIMESTAMP'] == timestamp].yield_max.values[0],0)) if (verbose >= 4): # Hier wird beim Anzeigen der Wert um eine Stunde vorher angezeigt diff --git a/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_1_Speicher_1_ExternControl.txt b/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_1_Speicher_1_ExternControl.txt index b9ecbf141..5d8d47228 100644 --- a/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_1_Speicher_1_ExternControl.txt +++ b/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_1_Speicher_1_ExternControl.txt @@ -536,7 +536,7 @@ defmod WR_1_Speicher_1_ExternControl DOIF ###################################### if (AttrVal("$SELF","verbose",0) >=3){ ## (die Uhrzeiten wurden bereits durch Solar_forecast() im WR_1 Device eingetragen)\ Log 3, "$SELF cmd_7 : Batterie SpeicherMiddayControlRunning vorbereitet";;\ Log 3, "$SELF cmd_7 : Batterie Yield_fc0_middayhigh_start ".ReadingsVal("WR_ctl","Yield_fc0_middayhigh_start", "00:00")." gesetzt";;\ - Log 3, "$SELF cmd_7 : Batterie Yield_fc0_middayhigh_stop ".ReadingsVal("WR_ctl","Yield_fc0_middayhigh_stop ", "00:00")." gesetzt";;\ + Log 3, "$SELF cmd_7 : Batterie Yield_fc0_middayhigh_stop ".ReadingsVal("WR_ctl","Yield_fc0_middayhigh_stop" , "00:00")." gesetzt";;\ };;\ } else { ## Kein Mittagshoch\ Log 3, "$SELF cmd_7 : SpeicherMiddayControl es wird kein Middayhigh geben";;\