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

Solar Battery Simulator doesn't stop charging at the end of off-peak #200

Open
davefiddes opened this issue Mar 8, 2025 · 1 comment
Open

Comments

@davefiddes
Copy link

There appears to be a problem when the charge rate and battery capacity are too low to charge the battery to desired SOC by the end of the off-peak period. The charging continues until the desired SOC is reached even though this may be many hours after the end of the off-peak period. I don't think this is desired behaviour or how battery charge controllers operate (I have no practical experience of any system yet).

You can see the behviour with the default app config with a capacity of 8.5kWh but the max charge rate reduced to 1kW:

Image

davefiddes added a commit to davefiddes/emoncms-app that referenced this issue Mar 8, 2025
…cms#200)

Only use the desired charge rate for off-peak charging when within
the off-peak period. This means we don't hit the desired SOC but
don't import more expensive electricity.

Tests:
 - Verified with lower 1kW charge rate SOC only gets to ~50%
 - Verified with 3kW charge rate, SOC reaches 100% and which
   is maintained until end of off-peak period and discharge
   starts
@davefiddes
Copy link
Author

With the proposed fix and a 1kW charge rate the simulated behaviour looks like:

Image

With a 5kW charge rate it becomes:

Image

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

1 participant