Dr-Gigavolt / dbus-aggregate-batteries

Virtual service to merge multiple serial batteries
MIT License
66 stars 11 forks source link

SOC and Amps from Lynx Shunt #38

Closed gnissahr closed 1 year ago

gnissahr commented 1 year ago

Would it be possible to read the SOC and Amps from a Lynx Shunt? Currently it seems to reed the Amps from the multiplus and SOC calculation is own. But the SOC does not reset to 100%.

image image

Dr-Gigavolt commented 1 year ago

Hello, there is no reason to use additional hardware as battery monitor. Either the BMS current and SOC are good (not my case), or by setting OWN_SOC = True and CURRENT_FROM_VICTRON = True. The SOC in this case is reset to 100% if overall battery voltage or the first cell reach the allowed maximum. And is reset to 0 in case of reaching minimum. It works perfectly in my case. SmartShunt can be activated for measuring of DC consumption. I cannot consider all possible hardware combinations, this would make the maintenance very difficult and I would not be able to to it in my limited time. But feel free to reverse engineer the program and modify your copy to fit your requirements.