Enhancing Energy Dashboard Flexibility for Evolving Home Systems

I’ve been using the Energy Dashboard in Home Assistant for quite some time now, and it’s been a fantastic tool for tracking my energy consumption. However, as my home setup evolves, I’ve encountered a few challenges that I’d love to see addressed.

Currently, the Energy Dashboard ties historical data to a single sensor. For instance, when I upgraded my energy meter or started using a filtered sensor for grid import/export, I had no straightforward way to migrate the historical data or switch sensors without breaking the continuity in the dashboard. This limitation can be quite frustrating, especially when trying to maintain an accurate and visually consistent Energy Dashboard over time.

To tackle this, I’d like to propose two potential solutions:

  1. Sensor Handover Option: Allow users to define a cut-off date after which a different sensor takes over for energy tracking. This would enable the dashboard to display old sensor values before the specified date and new sensor values from the date onward.

  2. Built-in Migration Tool: Introduce a feature that allows users to transfer statistics from one energy sensor to another. This tool could include optional filtering or offset adjustments, making it easier to maintain accurate cumulative sums.

Implementing either of these solutions would greatly improve the flexibility of the Energy Dashboard, allowing it to adapt to evolving home energy setups without the need for manual database interventions or external tools. It would keep the dashboard accurate, consistent, and user-friendly over time.

I’d be happy to assist in testing or refining these ideas further. Let me know your thoughts!