aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-11-03 20:25:16 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-11-03 20:25:16 +0300
commitd7ea914459b61a8d97c734c2c1bf3efdbffcdc4d (patch)
tree268fe2d3a015b6f2c3f08e6d32add714505c4f33
parentdb7d315eec8ce3e8bd7811e646e80107018683ab (diff)
ac charging program change
-rw-r--r--src/monitor.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/monitor.py b/src/monitor.py
index d332434..398d76b 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -172,7 +172,13 @@ class InverterMonitor(Thread):
# if currently charging, monitor battery voltage dynamics here
if self.active_current is not None:
- upper_bound = 56.6 if self.active_current > 10 else 54
+ if self.active_current >= 30:
+ upper_bound = 56.9
+ elif self.active_current == 20:
+ upper_bound = 56.6
+ else:
+ upper_bound = 54
+
if v >= upper_bound:
self.ac_charging_next_current()