hif2k1 / battery_sim

Home assistant home battery simulator - allows you to model how much energy you would save with a home battery
106 stars 13 forks source link

Add Min & Max State Of Charge of the battery #117

Open Neuvidor opened 4 months ago

Neuvidor commented 4 months ago

Dear,

Is there a way to add Minimum and Maximum State of Charge of the battery ?

As you know, LFP battery have the best lifetime if we use them between 20% and 80%. Would be good to be able to set these parameters into your simulation.

Example : battery_sim: battery_under_test: name: Battery Under Test import_sensor: sensor.circuitsetup_cumulative_import_energy_kwh export_sensor: sensor.circuitsetup_cumulative_export_energy_kwh size_kwh: 13.5 max_discharge_rate_kw: 5.0 max_charge_rate_kw: 3.68 efficiency: 0.9 energy_tariff: 0.184 min_soc: 20 max_soc: 80

hif2k1 commented 4 months ago

Will consider for the future if more people request it. However, you can achieve this with an automation that automatically changes the battery to "discharge only mode"/"charge only mode" when it reaches a certain charge level or simply reduce the size of the battery to be only 60% of the real battery size.

kreisklasse commented 1 month ago

Most battery management systems have the minimum SOC set to 5% to not damage the battery discharging below this value. So manually setting this Min_SOC value in your addon would be very appreciated.

The tip with the automation is a good one, when you want to test how much money you still save when enlarging the lifetime of your battery.