Skip to content

Switch to 15m slots for tariffs and planner #21162

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

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Maschga
Copy link
Contributor

@Maschga Maschga commented May 10, 2025

Purpose of this PR is to change default 1h slots to 15m slots. This affects:

  • tariffs (cost, co2, solar, both coded and templates)
  • planner
  • ui

We should do this in a way that all internal data structures use 15m slots. For this purpose, tariff data must be converted to 15m slots when received.

We should still supported 1h or 30m tariffs and templates, but provide an option to convert after receive. The output of evcc tariff might potentially be simplified to still show 1h slots where applicable (nice to have).

When we support 1h or 30m inputs, we'll need specific logic for converting them into 15m slots depending on tariff type:

  • prices: constant price over all sub-slots
  • solar: interpolated power at start of sub-slot
  • co2: interpolated co2 load (clarify howto)

Planner depends on tariffs and must be changed in the same step since planner assumes 1h slots.

/cc @naltatis can we please align on co2

@andig andig changed the title 15m tariffs Switch to 15m slots for tariffs and planner May 11, 2025
@andig andig added the enhancement New feature or request label May 11, 2025
@naltatis
Copy link
Member

can we please align on co2

I'd say the value is always gCO2e/kWh. So splitting up 1h our datasource would result in slots with the same value as the source. Same thing for price ($CURRENCY/kWh).

@Maschga
Copy link
Contributor Author

Maschga commented May 23, 2025

grafik
grafik
grafik

@naltatis naltatis self-assigned this May 29, 2025
@naltatis
Copy link
Member

Wie besprochen schaue ich mir die Visualisierung des Ladeplans an.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants