Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvements] Battery Sim #89

Open
5 of 7 tasks
Daandamhuis opened this issue Aug 22, 2023 · 6 comments
Open
5 of 7 tasks

[Improvements] Battery Sim #89

Daandamhuis opened this issue Aug 22, 2023 · 6 comments

Comments

@Daandamhuis
Copy link
Contributor

Daandamhuis commented Aug 22, 2023

Some Ideas I have in terms of the Battery Sim, I will continue to add more to it if I find or think of something in the future.

Fixes

  • Add multiple Tariff pricing. (I don't see them in the code being applied)
  • Add both sources to battery if there are more then 1
    image

New features

  • Implement Charge and Discharge Limits as sensors and charge limits.
  • Add Charge % Sensor
  • Update Battery Configuration
  • Permanently remove entities from Home Assistant after they the Battery Sim battery has been removed?
  • Added Reload of the Components, without restarting Home Assistant
@hif2k1
Copy link
Owner

hif2k1 commented Aug 22, 2023

Yep, good suggestions. Updating the battery configuration is also a request in another issue. Lets get the current pull request through first then we can work on some of these.

@hif2k1
Copy link
Owner

hif2k1 commented Jan 20, 2024

What is the use case for charge and discharge limits? Thanks

@rrozema
Copy link

rrozema commented Jun 2, 2024

I have a use case for adding a limiting sensor as well:
In order to further extend my simulations I wish to be able to vary the (dis)charge rate depending on other factors than only excess solar power, for example (grid) pricing. For example, depending on the energy contract we have other strategies can be more profitable: with a dynamic contract prices can vary highly during the day. It can be profitable to charge not only from solar but also from the grid when the price is low, then discharge the battery into the grid when the price is high.

I think the simulation can be used for other purposes as well if we get some way of influencing the zero point used in calculating the existing simulated (dis)charge rate. A possible implementation could be we get to give the simulation a power sensor which value would be added to the zero point. If the sensor's value is exactly zero (or no sensor was specified or the sensor has no valid value), the existing usual (dis)charge regime is active. If the sensor's value is positive the battery charges from the grid at the rate of the power sensor's value, in addition to any excess solar power. If the sensor's value is negative, the battery discharges into the grid at the rate of the power sensor's value. All rates are of course still limited to the battery's specified max (dis) charge rates.

Potentially an additional limiting can be added as well: the maximum rate going into or from the grid. Simulating the rating of the home's main fuse.

@rrozema
Copy link

rrozema commented Jun 2, 2024

Another use case could be to simulate 'peak-shaving': lowering the peak use of grid power for the whole-house usage. Under some contracts the energy tariff depends on the peak power usage over some period, say a month. It can in this situation be profitable to put in a battery that has a large enough discharge rate to deliver the peak whole-house usage, but only charge it -from the grid- at a low rate over a long(er) period. In this situation there doesn't even need to be any (excess) solar power in the simulation. Making the change I described above I think would enable this simulation as well.

The tariff itself doesn't even need to be dependent on the peak-usage for peak-shaving to be profitable. Using a battery to cover the peak-usage can help being able to lower the grid dependence. For example in the Netherlands, you pay quite a lot more for a 3x35A connection than for 3x25A or even 1x35A. By lowering the grid connection one can significantly lower their home's monthly fixed costs, and at the same time reduce net-congestion.

@hif2k1
Copy link
Owner

hif2k1 commented Jun 2, 2024 via email

@rrozema
Copy link

rrozema commented Jun 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants