hif2k1 / battery_sim

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

Charge only mode? #70

Closed R5fan closed 10 months ago

R5fan commented 1 year ago

Great integration, very useful!

However Im confused how to do this: in the weekend I want my simulated battery to charge whenever I produce excess solar, but not discharge, as I have low tariff during the weekend, I want to save that power for monday morning.

When I force charge, it charges from the grid, not what I want. When I pause the battery, it wont charge. When I unpause the battery, it will discharge whenever import> export.

help?

hif2k1 commented 1 year ago

There isn't a charge only mode at the moment, but I will consider it for a future release. Should be possible to implement fairly easily. In the mean time you could use an automation to pause the battery when importing energy and unpause it when exporting.

R5fan commented 1 year ago

ok, I made an automation for that.

For a future release, it might also be handy if you allowed to configure 2 tariffs for the 2 import sensors (the same ones the energy dashboard uses). Now I have to automate another helper containing the current tariff and then automate the charge behavior accordingly. Not a big deal, but hey, no one with 2 tariffs wants to charge their battery during peak prices, and the profit calculation where way off for me initially because I didnt get this.

hif2k1 commented 10 months ago

This should now be supported in the latest release.