Skip to content

feat: historical dated per-m³ tariffs (v0.8.0) - #19

Merged
papou-github merged 13 commits into
mainfrom
feature/historical-tariffs-0.8.0
Nov 12, 2026
Merged

papou-github merged 13 commits into
mainfrom
feature/historical-tariffs-0.8.0

Conversation

@papou-github

Copy link
Copy Markdown
Owner

Features

  • Multiline dated tariff editor in HA integration options: YYYY-MM-DD;price (comma or dot decimals).
  • Multiple effective dates, sorted and validated; duplicate dates rejected.
  • Prior to earliest effective date, fall back to existing price_per_m3 setting; empty history preserves v0.7.2 calculations.
  • Date-aware daily, cumulative, 7-day, monthly, YTD and multi-year variable-cost estimates.
  • Annual projection uses the price effective on the last eligible day.
  • Recorder readings remain canonical and unchanged; no database writes or migrations.
  • Cache invalidation when historical tariff schedule changes.
  • French and English option descriptions, regression tests.

Review checklist

  • Run Python unit tests and HA integration tests (not run in this session)
  • Validate options form and translations on HA 2026.11
  • Verify exact v0.7.2 equivalence with empty tariff history
  • Verify crossing a tariff boundary in 2026, including annual and multi-year sensor
  • Confirm behavior after changing options (reload integration if necessary)

Not merged or released yet.

@papou-github
papou-github marked this pull request as ready for review November 12, 2026 08:58
@papou-github
papou-github merged commit 4b7bc17 into main Nov 12, 2026
11 checks passed
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