-
Notifications
You must be signed in to change notification settings - Fork 32
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
Predbat charging at expensive rate #1040
Comments
Can you check if there was any significant draw from the grid? The limit was set to 48%, SOC already at 47%, PV was forecast to exceed load and the cost for the 30-minute period decreased slightly. It might have just been a blip in the calculation run. |
It has charged from the grid (not much, but it did). And with my setup, it would have been actually correct to discharge early and not let battery hit 100% (i have 10kW of solar panels on 5kW inverter, so as soon as battery hits 100% i'm wasting solar) |
What are your values for these: I tried to explain why holding charge is sensible in issue #1035, however it maybe your inputs to the fields above are a little high and are forcing this to happen at higher rates than you would like. Appreciate your scenario is a little different with the potential for clipping, but perhaps tweaking these settings will help. |
0.04 for all loss values and i don't have battery cycle cost entity. Accounting for losses, it should use battery for anything above 17p, but it is doing freeze charge even at 19p+ rates. |
Strange, it was doing this for me at the very high 25p+ peak rates, but Trefor put a fix in that seems to have worked. Might be worth uploading a log filewith a few cycles in debug mode next time you catch it |
With debug for the latest change 21:25 is the relevant run |
The issue seems to relate to the use of metric battery cycle when its non-zero, testing a fix now |
* Fix for metric battery cycle #1040 * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Fix on main for testing |
@springfall2008 Logs for the 0.5p and 2p battery metric. Plans run around 10:30, so across 2 log files unfortunately |
Describe the bug
For some reason, predbat decided to charge today at relatively expensive rate (20p, well above export rate) on a day with 50kWh solar forecast.
Expected behavior
Do nothing.
Predbat version
latest 7.17.7
Screenshots
![image](https://private-user-images.githubusercontent.com/9898247/327935341-f994f57e-c5b5-41da-aaca-c66670fca49e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwNzM4MDMsIm5iZiI6MTcxOTA3MzUwMywicGF0aCI6Ii85ODk4MjQ3LzMyNzkzNTM0MS1mOTk0ZjU3ZS1jNWI1LTQxZGEtYWFjYS1jNjY2NzBmY2E0OWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjJUMTYyNTAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmVhZmY4NjMxMjllYTI4NDcyMzM4OGU2YmQ1OTFjOTNhMmU1ZDQzMjQzYzE5N2JkMjE4MTQzYWRjNTA0MWUwYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.aZyfqI8XDDyHuAiSuMTzkoDooapsqoylc1KQ0Km8FOM)
The text was updated successfully, but these errors were encountered: