summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-10-19 13:18:16 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-10-19 13:18:16 +0300
commitb9b146f1fd5db8a1d46e4cc5016b4e55e8577f4a (patch)
tree98af0beb5fb5ce4cc065811501840bd33507d75a
parentcf31e8f932d1c1e41711c7706689c96376578745 (diff)
inverter/monitor: also use mppt2 solar detection
-rw-r--r--src/home/inverter/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/inverter/monitor.py b/src/home/inverter/monitor.py
index c46984f..c93cbfc 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_voltage']['value'] > 0
+ solar = gs['pv1_input_voltage']['value'] > 0 or gs['pv2_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'])