Skip to content

Tariffs: persist tariff values in 15min intervals#2

Closed
naltatis wants to merge 1 commit into
daniel309:feature/weather-dependent-household-loadfrom
evcc-io:feature/tariff-history
Closed

Tariffs: persist tariff values in 15min intervals#2
naltatis wants to merge 1 commit into
daniel309:feature/weather-dependent-household-loadfrom
evcc-io:feature/tariff-history

Conversation

@naltatis

Copy link
Copy Markdown

pairs with evcc-io#27780

Sketch for the dedicated tariff log schema discussed in the PR review. Instead of logging outside temperature like a regular meter, tariff values get their own lean table.

  • new tariffs table: one row per quarter hour with ts, grid, feedin, co2 and temperature columns, unconfigured tariffs stay NULL
  • values are read at the exact 15min boundary via tariff.At, so the stored timestamp is always x:00/x:15/x:30/x:45
  • persistence is driven by the existing site update loop like the meter collectors, the partial boot slot is skipped
  • reverts the temperature-as-meter logging (soc_temp collector path), UI publishing is unchanged

TODO

  • read API and visualization
  • retention

Replace temperature-as-meter logging with a dedicated tariffs table.
Grid, feedin, co2 and temperature values are stored once per quarter
hour at the slot boundary, driven by the site update loop.
@naltatis

Copy link
Copy Markdown
Author

Moved to evcc-io/evcc.

@naltatis naltatis closed this Jul 16, 2026
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