From d7ea914459b61a8d97c734c2c1bf3efdbffcdc4d Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 3 Nov 2021 20:25:16 +0300 Subject: ac charging program change --- src/monitor.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3