Github Mirror / telegraf-plugins: eab71aaa




I'm not sure what BatteryPowerPec actually represents, but it's always 1

I'm not sure what BatteryPowerPec actually represents, but it's always 1

batteryCapacitySoc gives the percentage charge level

Commit eab71aaa.

Authored 2023-05-31T19:17:39.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+1 lines -1 lines

Commit Signature

Changes

diff --git a/soliscloud/soliscloud.py b/soliscloud/soliscloud.py
--- a/soliscloud/soliscloud.py
+++ b/soliscloud/soliscloud.py
# @@ -467,7 +467,7 @@ def extractBatteryStats(inverter, config):
#
# fields = {
# "batteryPowerUnit" : f'"{inverter["batteryPowerStr"]}"',
# - "batteryPowerPerc" : float(inverter['batteryPowerPec']),
# + "batteryPowerPerc" : float(inverter['batteryCapacitySoc']),
# "batteryCurrentStr" : f'"{inverter["storageBatteryCurrentStr"]}"',
# "batteryTodayChargeEnergy": float(inverter['batteryTodayChargeEnergy']),
# "batteryTodayChargeEnergyStr": f'"{inverter["batteryTodayChargeEnergyStr"]}"',
#