diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 13:16:14 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 13:16:14 +0300 |
commit | cf31e8f932d1c1e41711c7706689c96376578745 (patch) | |
tree | e2763d5757f170be9cec2eda1a95749f25c4a7b6 /src/home | |
parent | 05b4f179c0c660b493b6e59e8721ce33b72577d1 (diff) |
inverter/monitor: fix mptt activity detection
Diffstat (limited to 'src/home')
-rw-r--r-- | src/home/inverter/monitor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/inverter/monitor.py b/src/home/inverter/monitor.py index 1ad8ce1..c46984f 100644 --- a/src/home/inverter/monitor.py +++ b/src/home/inverter/monitor.py @@ -166,7 +166,7 @@ class InverterMonitor(Thread): gs = response['data'] ac = gs['grid_voltage']['value'] > 0 or gs['grid_freq']['value'] > 0 - solar = gs['pv1_input_power']['value'] > 0 + solar = gs['pv1_input_voltage']['value'] > 0 v = float(gs['battery_voltage']['value']) load_watts = int(gs['ac_output_active_power']['value']) pd = _pd_from_string(gs['battery_power_direction']) |