You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90a9fc0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/predbat/execute.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -609,7 +609,11 @@ def execute_plan(self):
609
609
else:
610
610
# If there is a previous set charge window, but its more than the set window minutes in the future but we are not close to it then we can leave it enabled for now
611
611
# saves register writes and avoids turning off the window before the inverter knows it finished
612
-
if (inverter.charge_start_time_minutes!=inverter.charge_end_time_minutes) and (inverter.charge_start_time_minutes-self.minutes_now) >self.set_window_minutes:
612
+
# Only for an inverter with no charge enable switch, where turning the charge off means rewriting the
613
+
# window itself (#2993). With a switch it is one write that leaves the times alone, and leaving it on
614
+
# arms every other slot the inverter has: on a GivEnergy 3-phase the unused slots, held at 00:00-00:00,
615
+
# are live for the first minute of the day and charged from the grid at full rate (#5371)
616
+
if (notinverter.inv_has_charge_enable_time) and (inverter.charge_start_time_minutes!=inverter.charge_end_time_minutes) and (inverter.charge_start_time_minutes-self.minutes_now) >self.set_window_minutes:
613
617
self.log(
614
618
"Inverter {} leaving charge window as already set and more than set_window_minutes {} away (now {} charge start time {})".format(
0 commit comments