Interactive High-Performance Charts for Home Assistant
The ๐ Detailed Charts Panel is a powerful visualization solution for Home Assistant, allowing for in-depth analysis of historical data from your sensors. It offers features that go far beyond standard history, such as zoom, pan, grid layouts, various chart types, and persistent configuration. Furthermore, everything runs entirely locally using the Home Assistant WebSocket API.
The panel automatically saves your settings (selected sensors, colors, view options) in the browser (Local Storage), ensuring your analysis environment is ready immediately after a reload.
If you like this panel, I would be very happy about a star rating โญ. ๐ค
- ๐ Interactive Charts: Smooth zoom & pan (touch & mouse wheel) with automatic data reloading.
- ๐ Previous Year Comparison: Compare current data directly with the previous year.
- ๐ Short-Term & Long-Term Charts: Supports short-term and long-term data analysis.
- ๐ Multilingual: Full translation support for English and German.
- โจ Panel Mode & Card Mode: Two viewing options โ full panel view or as a dashboard card.
- โก Auto-Scale (W โก kW): Automatically converts values from
W/WhtokW/kWhโ no mental math required! - ๐ฉ Donut Sidebar: Optional sidebar showing percentage distribution (ideal for power consumption).
- ๐ Flexible Layouts:
- Combined: Everything in a single chart.
- Grid: 1 to 4 columns side by side.
- Mixed: Overview on top, details below.
- ๐ด Reference Lines: Add any number of reference lines, each with its own color and label.
- ๐ Manual Y-Axis: Optionally set a fixed Y-axis min/max (leave empty for autoscale).
- ๐ท๏ธ Sensor Aliases: Give each sensor a custom display name.
- ๐งฑ Stacked Area: Additional stacked area chart type.
- ๐งฎ Meter Sensors (mยณ, kWh): Cumulative counters (
total_increasing, e.g. water/gas in mยณ or energy) are aggregated as consumption (sum of increases) instead of being averaged. - ๐ง Display Options: Hide the legend, hide the min/max highlight button, and choose the date format (day.month / month/day).
- ๐ Live Range Statistics: Statistics recalculate for the currently visible range while zooming/panning.
- ๐จ Color Palette: One click assigns a harmonious, theme-friendly color set ("shuffle colors").
- โ Multi-Add & Areas/Devices: Select several sensors at once, or add all sensors of a whole area or device.
- ๐ Peak Markers: Optional min / max / current markers with labels directly on the line.
- ๐ Now Line & Day/Night: Optional "now" line and day/night background shading for easier reading.
- ๐พ Dual Storage: Save views locally in the browser or globally in a file.
- ๐ Live Statistics: Min / Max / Average / Sum / Current โ intelligently calculated.
- ๐๏ธ Drag & Drop: Easily rearrange charts in grid mode using drag & drop.
- ๐ Modern UI: Full support for Home Assistant themes (light & dark mode).
- ๐ข Binary Sensors: Automatic detection and visualization of binary sensors (e.g. heating, windows).
- ๐ฏ Precision & Rounding: Values in tooltips and statistics respect the sensorโs
display_precisionsetting from Home Assistant. - ๐ก Smart Tooltips: The info popup automatically moves away from the cursor to avoid covering the chart.
-
Add this repository via the link in Home Assistant.
-
The "Detailed Charts Panel" should now be available in HACS. Click on "INSTALL".
-
The resource will be automatically added to your Lovelace configuration.
-
Create the file
detail-charts-views.jsin the/config/www/folder.
Manual Installation via HACS
Open HACS in Home Assistant.
- Go to "Frontend" and click the three dots in the upper right corner.
- Select "Custom repositories".
- Paste the URL of this GitHub repository and select "Lovelace" as the category.
- Click "ADD".
- The "Detailed Charts Panel" should now be available in HACS. Click on "INSTALL".
- The resource will be automatically added to your Lovelace configuration.
Manual Installation in HA
-
Download Files:
- Download all files from this repository (especially the
.jsfiles). - Important: Since this panel uses external libraries, ensure that
chart.umd.min.js,hammer.min.js, andchartjs-plugin-zoom.min.jsare also downloaded.
- Download all files from this repository (especially the
-
Upload Files to Home Assistant:
- Create a new folder named
detailed-charts-panelin thewww/communitydirectory of your Home Assistant configuration. - Copy all downloaded files into this new folder. Your folder structure should look like this:
/config/www/community/detailed-charts-panel/detailed-charts-panel.js /config/www/community/detailed-charts-panel/detailed-charts-panel-logic.js /config/www/community/detailed-charts-panel/detailed-charts-panel-function.js /config/www/community/detailed-charts-panel/detailed-charts-panel-editor.js /config/www/community/detailed-charts-panel/detailed-charts-panel-langs.js /config/www/detailed-charts-views.js /config/www/community/detailed-charts-panel/lang-de.js /config/www/community/detailed-charts-panel/lang-en.js /config/www/community/detailed-charts-panel/chart.umd.min.js /config/www/community/detailed-charts-panel/hammer.min.js /config/www/community/detailed-charts-panel/chartjs-plugin-zoom.min.js
- Create a new folder named
-
Add Resource to Home Assistant:
- Go to Home Assistant Settings > Dashboards.
- Click the three dots menu in the top right corner and select Resources.
- Click + Add Resource.
- Enter the URL
/local/community/detailed-charts-panel/detailed-charts-panel.js. - Select JavaScript Module as the resource type.
- Click Create.
-
Create the file
detail-charts-views.jsin the/config/www/folder.
To display the dashboard in the sidebar, you must add the following code to the beginning of your configuration.yaml:
panel_custom:
- name: detailed-charts-panel
sidebar_title: Detailed Charts
sidebar_icon: mdi:chart-bell-curve-cumulative
module_url: /local/community/detailed-charts-panel/detailed-charts-panel.js