From 5abff3afa666f1f832a39ee8006707d4334b9252 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Tue, 8 Aug 2023 23:36:53 +0200 Subject: [PATCH] Update reamde --- README.md | 6 +----- dbus-batrium-native/dbus-batrium-native.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e6e22ba..8f36cec 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,9 @@ I try to integrate every datapoint from Batriums BMS to fill Victrons registers. - capacity to full or to empty is not transmitted by Batrium (transmission of 0x00111900 is missing against documentation) - Ah, kWh charged and discharged is calcualated by script (see above) - Capacity of battery must be entered into script batrium.py (see above) - - dbus script is started by rc.local which gets executed last, so all mppts and multiplus' showing temporarily "BMS missing" and need to be cleared after (re-)boot of Venus OS + - dbus script is started by rc.local which gets executed last, so all mppts and multiplus' showing temporarily "BMS missing" and need to be cleared after (re-)boot of Venus OS fixed - include calculation of State Of Health, based on Ah discharge and SoC State after full charge, because Batrium does not have -### Victrons datapoints - This script will emulate one of Victrons own BMS, therefore are many registers to fill, but I dont know how to fill all. - For example what means average Ah discharged. I implemented datapoints to my best knowledge and it is working for me. - # dbus-node-red-XXX Service files ### Configuration diff --git a/dbus-batrium-native/dbus-batrium-native.py b/dbus-batrium-native/dbus-batrium-native.py index c864898..19a0a64 100644 --- a/dbus-batrium-native/dbus-batrium-native.py +++ b/dbus-batrium-native/dbus-batrium-native.py @@ -138,7 +138,7 @@ class DbusBatteryService: self._dbusservice['/History/ChargedEnergy'] = self._settings['HistoryChargedEnergy'] self._dbusservice['/History/DischargedEnergy'] = self._settings['HistoryDischargedEnergy'] self.ChargedEnergy = self._settings['HistoryChargedEnergy'] - self.DischargedEnergy = self._settings['HistoryDischargedEnergy'] + self.DischargedEnergy = self._settings['HistoryDischargedEnergy'] * -1 self._dbusservice.add_path('/History/TimeSinceLastFullCharge', 0) self._dbusservice.add_path('/History/MinCellVoltage', self._settings['MinCellVoltage']) self._dbusservice.add_path('/History/MaxCellVoltage', self._settings['MaxCellVoltage'])