Repository navigation
Docs: Predbat reads our prices in grosze, its default thresholds fit - #52
Merged
Merged
Conversation
The old note said the thresholds were pence-tuned against zł prices and should be cut to ~0.001. Predbat multiplies start/end/value rate lists by 100, so everything is in grosze already; the deployed config keeps the defaults and only raises metric_min_improvement_plan to 5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A follow-up to #51: this commit was pushed after #51 was merged.
The README said Predbat's
metric_min_improvement*thresholds are tuned for pence and should be cut to ~0.001 against zł prices. That's wrong. Predbat multiplies rate lists withstart/end/valuekeys (the shape ofprices/importandprices/export) by 100 (fetch_octopus_ratesin itsoctopus.py). So its plan, costs and thresholds are all in grosze, and the defaults are on a sensible scale. Anyone who followed the old advice would have made Predbat act on 0.001 gr differences.What
README.MD: the "Predbat setup note" section is rewritten. It explains the grosze scale and thezł/grcurrency_symbols, and lists the defaults.metric_min_improvement_planis 5 gr on my installation (default 2). The other thresholds are at their defaults (read from Predbat'spredbat_config.jsonon the Pi, 2026-10-23).Test plan
octopus.py(scale = 100.0when the keys arestart/end).🤖 Generated with Claude Code