summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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'])