Skip to content

Commit

Permalink
Fault State
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Apr 9, 2024
1 parent 5cdbde3 commit 427c28e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/control/bat_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ def calc_power_for_all_components(self):
self.data.get.fault_str = NO_ERROR
else:
self.data.get.fault_state = fault_state
self.data.get.fault_str = "Bitte die Statusmeldungen der Speicher prüfen."
self.data.get.fault_str = ("Bitte die Statusmeldungen der Speicher prüfen. Es konnte kein "
"aktueller Zählerstand ermittelt werden, da nicht alle Module Werte "
"liefern.")
self.data.get.power = power
try:
self.data.get.soc = int(soc_sum / soc_count)
Expand Down
4 changes: 3 additions & 1 deletion packages/control/pv_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def calc_power_for_all_components(self) -> None:
self.data.get.fault_str = NO_ERROR
else:
self.data.get.fault_state = fault_state
self.data.get.fault_str = "Bitte die Statusmeldungen der Wechselrichter prüfen."
self.data.get.fault_str = ("Bitte die Statusmeldungen der Wechselrichter prüfen. Es konnte kein "
"aktueller Zählerstand ermittelt werden, da nicht alle Module Werte "
"liefern.")
self.data.get.power = power
Pub().pub("openWB/set/pv/get/power", self.data.get.power)
Pub().pub("openWB/set/pv/get/fault_state", self.data.get.fault_state)
Expand Down

0 comments on commit 427c28e

Please sign in to comment.