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

note on change of behavior if meter fails #1924

Merged
merged 1 commit into from
Oct 9, 2024
Merged
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
11 changes: 9 additions & 2 deletions packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


class UpdateConfig:
DATASTORE_VERSION = 62
DATASTORE_VERSION = 63
valid_topic = [
"^openWB/bat/config/configured$",
"^openWB/bat/set/charging_power_left$",
Expand Down Expand Up @@ -546,7 +546,7 @@ def update(self):
self.__update_version()
except Exception:
log.exception("Fehler bei der Aktualisierung des Brokers.")
pub_system_message({}, "Fehler bei der Aktualisierung der Konfiguration im Brokers.", MessageType.ERROR)
pub_system_message({}, "Fehler bei der Aktualisierung der Konfiguration des Brokers.", MessageType.ERROR)
finally:
self.__update_topic("openWB/system/update_config_completed", True)

Expand Down Expand Up @@ -1804,3 +1804,10 @@ def upgrade(topic: str, payload) -> Optional[dict]:
return {f"openWB/counter/{index}/config/max_power_errorcase": max_power_errorcase}
self._loop_all_received_topics(upgrade)
self.__update_topic("openWB/system/datastore_version", 62)

def upgrade_datastore_62(self) -> None:
pub_system_message(
{}, "Bei einem Zählerausfall werden nun 7kW für diesen Zähler freigegeben. Bisher wurde im "
"Fehlerfall die Ladung gestoppt. Du kannst die maximale Leistung im Fehlerfall für jeden Zähler"
" unter Einstellungen -> Konfiguration -> Lastmanagement anpassen.", MessageType.WARNING)
self.__update_topic("openWB/system/datastore_version", 63)