springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
116 stars 40 forks source link

Implement Charge Freeze for Sofar using Battery Save Mode #1406

Open dbw1966 opened 1 month ago

dbw1966 commented 1 month ago

While car charging, predbat appears to put a Sofar inverter to charge mode. This means battery is fully charging irrespective of tomorrow's forecast solar, buying at 8.5p plus losses, to sell at 8p so making a loss on every excess unit purchased.

Predbat log states Discharge Freeze, Charge Freeze and Reserve are disabled.

Sofar has "Battery Save Mode" which appears to match the description of Charge Freeze.

Sofar2mqtt/set/auto - send value "true" or "battery_save" Battery Save mode is a hybrid mode where the battery will charge from excess solar but not discharge

Implementing this would allow Predbat to prevent discharge of batteries when car charging, or in iboost.

springfall2008 commented 1 month ago

Good idea, will take a look once I get time

dbw1966 commented 1 month ago

Thanks Trefor, Predbat does not seem to do any benefit for my case (with an ev) until this is done. Negative every day on OG tariff as always charges to 100% overnight. Happy to test for you. And if you can define the Reserve that's not possible in sofar let me know and I'll do some more reading.