diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-09-02 13:37:49 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-09-02 13:38:02 +0300 |
commit | c7e10c52a9cd5be57e86e4e911bd21d6380771a6 (patch) | |
tree | e1115e551d9fdb64048fa7ba1a2561d96c7eadb8 /src/home/mqtt/message/inverter.py | |
parent | 06ca251b94e06b8fe58437704a7ada716d3056b0 (diff) |
inverter: support inverter-tools 1.5.0
Diffstat (limited to 'src/home/mqtt/message/inverter.py')
-rw-r--r-- | src/home/mqtt/message/inverter.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/home/mqtt/message/inverter.py b/src/home/mqtt/message/inverter.py index 2df17e5..d36aad5 100644 --- a/src/home/mqtt/message/inverter.py +++ b/src/home/mqtt/message/inverter.py @@ -29,8 +29,8 @@ class Status: int(data['battery_voltage'] * 10), int(data['battery_voltage_scc'] * 10), int(data['battery_voltage_scc2'] * 10), - data['battery_discharging_current'], - data['battery_charging_current'], + data['battery_discharge_current'], + data['battery_charge_current'], data['battery_capacity'], data['inverter_heat_sink_temp'], data['mppt1_charger_temp'], @@ -55,8 +55,8 @@ class Status: 'battery_voltage': data[8] / 10, 'battery_voltage_scc': data[9] / 10, 'battery_voltage_scc2': data[10] / 10, - 'battery_discharging_current': data[11], - 'battery_charging_current': data[12], + 'battery_discharge_current': data[11], + 'battery_charge_current': data[12], 'battery_capacity': data[13], 'inverter_heat_sink_temp': data[14], 'mppt1_charger_temp': data[15], |