Skip to content

Demo: realistic year of energy and session history - #36893

Merged
naltatis merged 3 commits into
masterfrom
feat/demo-year
Dec 4, 2026
Merged

naltatis merged 3 commits into
masterfrom
feat/demo-year

Conversation

@naltatis

@naltatis naltatis commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

replaces #36850

Demo mode boots a self-contained installation with one year of simulated history that continues into the live values.

Required to show-case our recent features on https://demo.evcc.io/ and on screenshots in docs, website, app, ...

  • Realistic history for energy and sessions
    • seasonal PV from three arrays
    • battery with grid charging in cheap hours
    • five consumers, heat pump
    • dynamic prices, CO2, temperature
  • Loadpoint and heat pump behavior in sync
    • history and live values from the same model
    • charge power follows current and phases
    • SoC and temperature follow the power, start over when full
  • demo.yaml dropped
    • not used directly since the introduction of --demo (earlier versions used it as fallback config)
    • main use is demo.evcc.io
    • titles, icons, colors and loadpoint settings need the database
    • seeding via demo.sql, live logic in demo.js
    • state API test and CONTRIBUTING example use --demo
  • In-memory database, existing database never touched
  • Memory
    • about 16 MB more than the 0.320.0 demo after two minutes (150 vs 134 MB)
    • the year is generated once at boot: 24 MB more after 10 seconds, no peak above the running level

Screenshots

day history
Screenshot 2026-12-04 at 11 49 26

year history
Screenshot 2026-12-04 at 12 44 53

year sessions
Screenshot 2026-12-04 at 12 32 54

energy flow details (consumer, pvs with name and icons added)
Screenshot 2026-12-04 at 12 40 50

realistic battery history
Screenshot 2026-12-04 at 11 47 05

🤖 Generated with Claude Code

@sourcery-ai

sourcery-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Sorry @naltatis, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 5 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@github-actions github-actions Bot added the enhancement New feature or request label Dec 4, 2026
@naltatis
naltatis requested a review from andig December 4, 2026 11:48
Comment thread packaging/fly.toml Resolved
@naltatis
naltatis enabled auto-merge (squash) December 4, 2026 15:32
@naltatis
naltatis merged commit 5f2d082 into master Dec 4, 2026
15 checks passed
@naltatis
naltatis deleted the feat/demo-year branch December 4, 2026 15:34
@Maschga

Maschga commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Thank you very much for this quick fix!

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