Github Mirror / telegraf-plugins: e998fe75




Collect total charge + discharge for the battery

Collect total charge + discharge for the battery

This provides a cumulative counter of the total energy fed into/pulled from the battery over time.

This stat can then be fed into a HomeAssistant Utility meter helper for use in the Energy dashboard

Commit e998fe75.

Authored 2023-07-03T12:33:03.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+2 lines -0 lines

Commit Signature

Changes

diff --git a/soliscloud/soliscloud.py b/soliscloud/soliscloud.py
--- a/soliscloud/soliscloud.py
+++ b/soliscloud/soliscloud.py
# @@ -380,6 +380,8 @@ def extractBatteryStats(inverter, config):
# "batteryTodayChargeEnergyStr": f'"{inverter["batteryTodayChargeEnergyStr"]}"',
# "batteryTodayDischargeEnergy": float(inverter['batteryTodayDischargeEnergy']),
# "batteryTodayDischargeEnergyStr": f'"{inverter["batteryTodayDischargeEnergyStr"]}"',
# + "batteryTotalChargeEnergy": float(inverter['batteryTotalChargeEnergy']),
# + "batteryTotalDischargeEnergy": float(inverter['batteryTotalDischargeEnergy']),
# "readingAge" : f"{round(time.time() - (int(inverter['dataTimestamp'])/1000))}i",
# "batteryVoltage" : float(inverter['storageBatteryVoltage'])
# }
#