From 91fd5fae8471c3dd1c71a1025da1e217a6c516e1 Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Fri, 28 Jun 2024 09:21:32 +0200 Subject: [PATCH] fix PHASE_SWITCH_DELAY_EXPIRED and no phase switch required --- packages/control/chargepoint/chargepoint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/control/chargepoint/chargepoint.py b/packages/control/chargepoint/chargepoint.py index cffde35ba5..722f28bfee 100644 --- a/packages/control/chargepoint/chargepoint.py +++ b/packages/control/chargepoint/chargepoint.py @@ -492,6 +492,10 @@ def initiate_phase_switch(self): else: log.error("Phasenumschaltung an Ladepunkt" + str(self.num) + " nicht möglich, da gerade eine Umschaltung im Gange ist.") + elif self.data.control_parameter.state == ChargepointState.PHASE_SWITCH_DELAY_EXPIRED: + # Wenn keine Phasenumschaltung durchgeführt wird, Status auf CHARGING_ALLOWED setzen, sonst + # bleibt PHASE_SWITCH_DELAY_EXPIRED stehen. + self.data.control_parameter.state = ChargepointState.CHARGING_ALLOWED else: log.error( "Phasenumschaltung an Ladepunkt" + str(self.num) +