Visualize long term sensors that are not energy related

Hi,

I have a total increasing sensor of downloaded/uploaded size for my internet usage (native unit is bytes).
I would like to visualize that and being able to select different views like week, month and year.

Basically pretty much like the energy dashboard for power usage, but for other sensor types (that have nothing to do with energy) like data usage.

Is there any way to do this currently (maybe using a custom card)?
Currently I use the statistics card but it only shows the transferred amount for a fixed time as number. I would like to have a graph and being able to switch between week, month and year.

There’s a new feature in 2025.2 where you can link a statistics-graph-card with an energy-date-picker. So you can make dashboards similar to energy with graphs and the picker can select the different time range.

It’s all YAML to set it up but it’s documented on the statistics-graph-card page (see energy_date_selection)

Wow, what a great timing!

But sadly, I can’t get it to work even though I have 2025.2.3 installed. When I add it, it resets all other settings for the graph to default and there’s a warning that the key energy_date_selection isn’t supported.

there’s a warning that the key energy_date_selection isn’t supported

If you’re talking about that it isn’t supported for the visual editor, that’s correct. But that doesn’t indicate a problem, it just means you have to use yaml mode.

I know that, but as said, it doesn’t work and displays the graph in default settings.

Can you show me an example? Did you add an energy-date-selection card?

You should eventually get to something like this:

408317832-65bdbb8b-05b4-4b41-8a8d-3ea1f2b5143e

Here are some screenshots:


And yes, I have added the date selection card.

type: energy-date-selection

I would suggest remove the period:day.

If date selection is set for 1 day, and you have period:day, you only get one datapoint.

If you omit period it will auto-pick the period based on the selection range.

Thank you, that was it :smiley: