Energy Dashboard – Allow switching sensors over time or transferring statistics

Hi! I’d like to suggest a feature for the Energy Dashboard regarding long-term sensor management and historical consistency.

:bulb: The problem

Currently, the Energy Dashboard ties energy history to a single sensor (e.g., grid consumption, solar production). However, real-life setups often evolve:

  • A user might switch energy meters or install a photovoltaic system
  • They might start using filtered sensors (e.g., grid import/export separated)
  • They may replace or reconfigure their hardware

In these cases, there is no easy way to migrate historical data, or to change the sensor being used without breaking continuity in the dashboard.


:white_check_mark: Suggested solutions (either would work):

  1. Sensor handover option Allow users to define a cut-off date, after which a different sensor will be used for energy tracking.The dashboard would show:
  • Old sensor values before date X
  • New sensor values from date X onward
  1. Built-in migration tool Add a UI or service to transfer statistics from one energy sensor to another (e.g., for cumulative sum values), with optional filtering or offset adjustments.

:brain: Why it matters

  • It would improve flexibility and realism in how Home Assistant handles evolving home energy setups
  • It avoids the need for users to manipulate the database manually or use external tools to patch the historical data
  • It keeps the Energy Dashboard visually consistent and accurate over time

Thanks for considering this! I’d be happy to help test or expand the idea.