Skip to content
Open
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
2 changes: 1 addition & 1 deletion packages/control/ev/charge_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def pv_charging(self,
phases = pv_charging.phases_to_use
min_pv_current = (pv_charging.min_current if charging_type == ChargingType.AC.value
else pv_charging.dc_min_current)
if pv_charging.limit.selected == "soc" and soc and soc > pv_charging.limit.soc:
if pv_charging.limit.selected == "soc" and soc and soc >= pv_charging.limit.soc:
current = 0
sub_mode = "stop"
message = self.SOC_REACHED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def set_current(self, current: float) -> None:
self.delay_second_cp(self.CP1_DELAY)
with self._client.client:
if self.version:
self._client.evse_client.set_current(int(current))
formatted_current = round(current*100) if self._client.evse_client._precise_current else round(current)
self._client.evse_client.set_current(formatted_current)
log.debug("Current Set to EVSE(Satelite): %s", formatted_current)
else:
self._client.evse_client.set_current(0)
except AttributeError:
Expand Down