Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Merge master into Release" #2057

Merged
merged 1 commit into from
Dec 5, 2024
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
2 changes: 1 addition & 1 deletion docs/Identifikation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
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.
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.

Die Identifikation erfolgt über

Expand Down
20 changes: 7 additions & 13 deletions packages/control/chargepoint/chargepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,16 @@ def _is_autolock_inactive(self) -> Tuple[bool, Optional[str]]:
return state, message

def _is_manual_lock_inactive(self) -> Tuple[bool, Optional[str]]:
# Die Pro schickt je nach Timing auch nach Abstecken noch ein paar Zyklen den Tag. Dann darf der Ladepunkt
# nicht wieder entsperrt werden.
if (self.data.get.rfid or
self.data.get.vehicle_id or
self.data.set.rfid) in self.template.data.valid_tags:
if (self.data.set.manual_lock is False or
(self.data.get.rfid or
self.data.get.vehicle_id or
self.data.set.rfid) in self.template.data.valid_tags):
Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", False)
elif self.template.data.disable_after_unplug and self.data.get.plug_state is False:
Pub().pub(f"openWB/set/chargepoint/{self.num}/set/manual_lock", True)

if self.data.set.manual_lock:
charging_possible = False
message = "Keine Ladung, da der Ladepunkt gesperrt ist."
else:
charging_possible = True
message = None
else:
charging_possible = False
message = "Keine Ladung, da der Ladepunkt gesperrt ist."
return charging_possible, message

def _is_ev_plugged(self) -> Tuple[bool, Optional[str]]:
Expand Down Expand Up @@ -236,7 +231,6 @@ def _process_charge_stop(self) -> None:
if self.template.data.disable_after_unplug:
self.data.set.manual_lock = True
Pub().pub("openWB/set/chargepoint/"+str(self.num)+"/set/manual_lock", True)
log.debug("/set/manual_lock True")
# Ev wurde noch nicht aktualisiert.
chargelog.save_and_reset_data(self, data.data.ev_data["ev"+str(self.data.set.charging_ev_prev)])
self.data.set.charging_ev_prev = -1
Expand Down
8 changes: 5 additions & 3 deletions packages/helpermodules/setdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,18 +623,20 @@ def process_chargepoint_get_topics(self, msg):
self._validate_value(msg, int, [(0, 2)])
elif "/get/evse_current" in msg.topic:
self._validate_value(msg, float, [(0, 0), (6, 32), (600, 3200)])
elif ("/get/error_timestamp" in msg.topic or
"/get/rfid_timestamp" in msg.topic):
self._validate_value(msg, float)
elif ("/get/fault_str" in msg.topic or
"/get/state_str" in msg.topic or
"/get/heartbeat" in msg.topic or
"/get/rfid" in msg.topic or
"/get/vehicle_id" in msg.topic or
"/get/serial_number" in msg.topic):
self._validate_value(msg, str)
elif ("/get/error_timestamp" in msg.topic or
"/get/rfid_timestamp" in msg.topic):
self._validate_value(msg, float)
elif ("/get/soc" in msg.topic):
self._validate_value(msg, float, [(0, 100)])
elif "/get/rfid_timestamp" in msg.topic:
self._validate_value(msg, float)
elif "/get/simulation" in msg.topic:
self._validate_value(msg, "json")
else:
Expand Down
2 changes: 1 addition & 1 deletion web/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.6-Patch.1
2.1.6