So I have a three-phase ESS setup with a large battery and a few solar chargers. When the battery is full, the BMS tells the system that Allowed Charge Current Is Now Zero Thank You Very Much, and dbus-systemcalc-py thus tells the chargers to deliver exactly as much current as my MultiPlus trio are pulling from the battery.
This part works perfectly … except that there's a residual current of 2A. This is understandable, as current measurement is not an exact science and we're talking about 120A going from the chargers to the Multis. What I don't understand is that dbus-systemcalc doesn't notice, as the battery monitor does report the 2A current, and I couldn't find a way to fix this. (Also, my BMS can't burn that much power. Nor would I consider that to be a valid solution.)
The end result is that the battery gets overcharged, some cell eventually goes above 3.6V, the protection relay trips, and the whole thing grinds to a very ugly halt.
Any ideas, other than to hack a fudge factor into /opt/VE/dbus-systemcalc-py/delegates/dvcc.py?