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

Feature request: Disable / pause (dis)charging #29

Closed JohanEikelenboom closed 1 year ago

JohanEikelenboom commented 2 years ago

It would be nice to have a way to pause (dis)charging. The idea is that I want to pause discharging when I'm charging my electric car so that it doesn't drain the simulated battery.

The usecase would be that I create an automation to turn off discharging when my power usage is above 5 kW and start discharging again when the consumption is below 5 kW for 5 minutes.

hif2k1 commented 1 year ago

I have just pushed a release which has a pause switch which should be able to be controlled by your automation. I hope it works, let me know any feedback.