Skip to content

Commit 645aba2

Browse files
LKuemmelisomacMbenderl
authored
Merge master into Beta (#2049)
* unlock chargepoint with vehicle id (MAC) (#1889) * Update version 2.1.5-Patch.2 * build UI (#2009) * Update for Polestar auth change:client id and optional acceptance of terms and conditions * add terser * Added const for client_id * Added blank line for Flake check * fix heartbeat internal chargepoint (#2013) * Build Display Theme: Cards * Wiki (#2014) * Wiki * typos Wiki * clear browser console at midnight * Build Display Theme: Cards * fix SolarEdge synergy units (#2026) * reset boot_done before shutdown (#2027) * fix solaredge synergy units (#2030) * build * Satellit: Fix telnet (#2032) * Update version 2.1.6-RC.2 * fix soc error and scheduled charging (#2038) * Update version 2.1.6 * fix disable after unplugging (#2043) * fix disable after unplugging * Wiki * fix * Update version 2.1.6-Patch.1 --------- Co-authored-by: PK <[email protected]> Co-authored-by: Lutz Bender <[email protected]> Co-authored-by: benderl <[email protected]>
1 parent a589276 commit 645aba2

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

docs/Identifikation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Die openWB bietet die Möglichkeit, den Ladepunkt vor dem Laden zu entsperren und/oder das Fahrzeug zuzuordnen, welches geladen wird. Es gibt zwei grundlegende Konzepte, die für sich oder in Kombination genutzt werden können: Das Entsperren eines Ladepunkts und das Zuordnen eines Fahrzeugs.
1+
Mit den verschiedenen Identifikations-Möglichkeiten kannst du die openWB grundsätzlich vor unbefugtem Laden schützen oder fahrzeugbasierte Funktionen nutzen. Es gibt zwei grundlegende Konzepte: Das Entsperren eines Ladepunkts und das Zuordnen eines Fahrzeugs.
22

33
Die Identifikation erfolgt über
44

packages/control/chargepoint/chargepoint.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,21 @@ def _is_autolock_inactive(self) -> Tuple[bool, Optional[str]]:
164164
return state, message
165165

166166
def _is_manual_lock_inactive(self) -> Tuple[bool, Optional[str]]:
167-
if (self.data.set.manual_lock is False or
168-
(self.data.get.rfid or
169-
self.data.get.vehicle_id or
170-
self.data.set.rfid) in self.template.data.valid_tags):
167+
# Die Pro schickt je nach Timing auch nach Abstecken noch ein paar Zyklen den Tag. Dann darf der Ladepunkt
168+
# nicht wieder entsperrt werden.
169+
if (self.data.get.rfid or
170+
self.data.get.vehicle_id or
171+
self.data.set.rfid) in self.template.data.valid_tags:
171172
Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", False)
172-
charging_possible = True
173-
message = None
174-
else:
173+
elif self.template.data.disable_after_unplug and self.data.get.plug_state is False:
174+
Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", True)
175+
176+
if self.data.set.manual_lock:
175177
charging_possible = False
176178
message = "Keine Ladung, da der Ladepunkt gesperrt ist."
179+
else:
180+
charging_possible = True
181+
message = None
177182
return charging_possible, message
178183

179184
def _is_ev_plugged(self) -> Tuple[bool, Optional[str]]:
@@ -231,6 +236,7 @@ def _process_charge_stop(self) -> None:
231236
if self.template.data.disable_after_unplug:
232237
self.data.set.manual_lock = True
233238
Pub().pub("openWB/set/chargepoint/"+str(self.num)+"/set/manual_lock", True)
239+
log.debug("/set/manual_lock True")
234240
# Ev wurde noch nicht aktualisiert.
235241
chargelog.save_and_reset_data(self, data.data.ev_data["ev"+str(self.data.set.charging_ev_prev)])
236242
self.data.set.charging_ev_prev = -1

packages/control/ev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def calculate_duration(self,
833833
charging_type: str,
834834
ev_template: EvTemplate) -> Tuple[float, float]:
835835
if plan.limit.selected == "soc":
836-
if soc:
836+
if soc is not None:
837837
missing_amount = ((plan.limit.soc_scheduled - soc) / 100) * battery_capacity
838838
else:
839839
raise ValueError("Um Zielladen mit SoC-Ziel nutzen zu können, bitte ein SoC-Modul konfigurieren.")

packages/helpermodules/setdata.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -623,20 +623,18 @@ def process_chargepoint_get_topics(self, msg):
623623
self._validate_value(msg, int, [(0, 2)])
624624
elif "/get/evse_current" in msg.topic:
625625
self._validate_value(msg, float, [(0, 0), (6, 32), (600, 3200)])
626+
elif ("/get/error_timestamp" in msg.topic or
627+
"/get/rfid_timestamp" in msg.topic):
628+
self._validate_value(msg, float)
626629
elif ("/get/fault_str" in msg.topic or
627630
"/get/state_str" in msg.topic or
628631
"/get/heartbeat" in msg.topic or
629632
"/get/rfid" in msg.topic or
630633
"/get/vehicle_id" in msg.topic or
631634
"/get/serial_number" in msg.topic):
632635
self._validate_value(msg, str)
633-
elif ("/get/error_timestamp" in msg.topic or
634-
"/get/rfid_timestamp" in msg.topic):
635-
self._validate_value(msg, float)
636636
elif ("/get/soc" in msg.topic):
637637
self._validate_value(msg, float, [(0, 100)])
638-
elif "/get/rfid_timestamp" in msg.topic:
639-
self._validate_value(msg, float)
640638
elif "/get/simulation" in msg.topic:
641639
self._validate_value(msg, "json")
642640
else:

web/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.6-RC.2
1+
2.1.6-Patch.1

0 commit comments

Comments
 (0)