From fe765ed81b838ec9cf5921aea06ed9326b60ff54 Mon Sep 17 00:00:00 2001 From: Ivan Herrera Date: Wed, 26 May 2021 15:49:50 +0200 Subject: [PATCH] Add support for grid voltage tracking Added the keys for the grid voltage in the SAJ inverters. --- pysaj/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pysaj/__init__.py b/pysaj/__init__.py index 42c6016..449a4aa 100644 --- a/pysaj/__init__.py +++ b/pysaj/__init__.py @@ -50,6 +50,9 @@ def __init__(self, wifi=False): self.add( ( Sensor("p-ac", 11, 23, "", "current_power", "W"), + Sensor("Vac_l1", 11, 23, "", "grid_voltage_phase_1", "V"), + Sensor("Vac_l2", 11, 23, "", "grid_voltage_phase_2", "V"), + Sensor("Vac_l3", 11, 23, "", "grid_voltage_phase_3", "V"), Sensor("e-today", 3, 3, "/100", "today_yield", "kWh", True), Sensor("e-total", 1, 1, "/100", "total_yield", "kWh", False, True),