hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
301 stars 63 forks source link

Add SoC threshold for battery current limit. #1293

Open ranma opened 1 week ago

ranma commented 1 week ago

I'd like to only limit the discharge current below a configurable state of charge (in my case currently "limit to base consumption below 70% SoC").

In principle the current limit could also be extended to support multiple SoC/voltage thresholds for different current limits, which might be useful for users of "dumb" batteries to approximate the multiple steps of discharge current reduction as the voltage or SoC approaches "empty". However currently this only adds the SoC threshold for the single current limit.

ranma commented 1 week ago

image

spcqike commented 1 week ago

Do you thinking it’s possible to respect the „ignore SoC“ switch? (Does the switch still exist? I thought so but haven’t found it without a battery (: ) So to either hide this SoC threshold here or have a voltage threshold, when SoC should be ignored.

ranma commented 1 week ago

Do you thinking it’s possible to respect the „ignore SoC“ switch?

Added a check for "ignore SoC" and also a voltage threshold setting.