Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/control/ev/charge_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def eco_charging(self,
soc: Optional[float],
control_parameter: ControlParameter,
charging_type: str,
used_amount: float) -> Tuple[int, str, Optional[str], int]:
used_amount: float,
max_phases_hw: int) -> Tuple[int, str, Optional[str], int]:
""" prüft, ob Min-oder Max-Soc erreicht wurden und setzt entsprechend den Ladestrom.
"""
message = None
Expand All @@ -294,6 +295,7 @@ def eco_charging(self,
if data.data.optional_data.et_charging_allowed(eco_charging.max_price):
sub_mode = "instant_charging"
message = self.CHARGING_PRICE_LOW
phases = max_phases_hw
else:
current = control_parameter.min_current
message = self.CHARGING_PRICE_EXCEEDED
Expand Down
2 changes: 1 addition & 1 deletion packages/control/ev/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_required_current(self,
self.data.get.soc, control_parameter.min_current, charging_type, imported_since_plugged)
elif charge_template.data.chargemode.selected == "eco_charging":
required_current, submode, tmp_message, phases = charge_template.eco_charging(
self.data.get.soc, control_parameter, charging_type, imported_since_plugged)
self.data.get.soc, control_parameter, charging_type, imported_since_plugged, max_phases_hw)
else:
tmp_message = None
message = f"{message or ''} {tmp_message or ''}".strip()
Expand Down