From b9b146f1fd5db8a1d46e4cc5016b4e55e8577f4a Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 19 Oct 2022 13:18:16 +0300 Subject: inverter/monitor: also use mppt2 solar detection --- src/home/inverter/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- cgit v1.2.3