Skip to content
Merged

fix se #3217

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
6 changes: 3 additions & 3 deletions packages/modules/common/evse.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ def deactivate_precise_current(self) -> None:

def set_current(self, current: int, phases_in_use: Optional[int] = None) -> None:
time.sleep(0.1)
formatted_current = round(current*100) if self._precise_current else round(current)
if self.max_current == 20 and phases_in_use is not None and phases_in_use != 0:
# Bei 20A EVSE und bekannter Phasenzahl auf 16A begrenzen, sonst erstmal Ladung mit Minimalstrom starten,
# um Phasenzahl zu ermitteln
if formatted_current > 16 and phases_in_use > 1:
formatted_current = 16
if current > 16 and phases_in_use > 1:
current = 16
formatted_current = round(current*100) if self._precise_current else round(current)
Comment on lines 114 to +119
if self.evse_current != formatted_current:
self.client.write_register(1000, formatted_current, unit=self.id)
Loading