Skip to content

Docs: Predbat reads our prices in grosze, its default thresholds fit - #52

Merged
piomar123 merged 1 commit into
mainfrom
docs-predbat-thresholds-grosze
Oct 23, 2026
Merged

piomar123 merged 1 commit into
mainfrom
docs-predbat-thresholds-grosze

Conversation

@piomar123

Copy link
Copy Markdown
Owner

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 with start/end/value keys (the shape of prices/import and prices/export) by 100 (fetch_octopus_rates in its octopus.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 the zł/gr currency_symbols, and lists the defaults.
  • Production value: metric_min_improvement_plan is 5 gr on my installation (default 2). The other thresholds are at their defaults (read from Predbat's predbat_config.json on the Pi, 2026-10-23).

Test plan

  • Checked the scaling in Predbat's octopus.py (scale = 100.0 when the keys are start/end).
  • Compared with the live thresholds on the Pi.

🤖 Generated with Claude Code

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>
@piomar123
piomar123 merged commit beeaf88 into main Oct 23, 2026
1 check passed
@piomar123
piomar123 deleted the docs-predbat-thresholds-grosze branch October 23, 2026 13:35
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

Successfully merging this pull request may close these issues.

1 participant