Sorting individual devices on energy dashboard...bug?

Hi,

I have these individual devices defined :

Works fine, except I get them in an other order :

image

Is this a bug ?

No not a bug. They are sorted by most energy used to least. This is not configurable.

https://www.home-assistant.io/dashboards/energy/#devices-energy-graph

That’s a shame :sweat:

Thank for explaining!

I thought the same as @Tsar .

It does leave me wondering, what is the purpose of being able to reorder these items in the settings configuration screen?

Hmm. it would appear that the ability to custom sort was added in December 2024:

This may have broken with the move to using echarts.js in the frontend in the 2025.2 release.

Open a frontend issue here: GitHub · Where software is built

This is an issue (not a feature request) as the feature was available and is now broken. Make sure you include that and the PR linked above.

My screen-shot above may only apply to the reusable dashboard card, not the card in the energy dashboard.

I think this custom sorting only affects the colors being used for each entity, not actually sort the entries in the charts

All of the links in that PR description link to requests for device list order, not just colour.

Unfortunately I don’t understand the source all: Sortable energy individual devices by karwosts · Pull Request #23330 · home-assistant/frontend · GitHub

All of the links in that PR description link to requests for device list order, not just colour.

That’s not how I interpreted it. The display has always been sorted by usage both before and after that PR. It was simply to allow to reorder the items in the list.

I had people tell me they would manually reorder the list by deleting all the entities and readding them in their desired order. This sort simply makes that easier, it does not remove the sorting from the display. It was just a very minor feature, wasn’t intended to be a big deal.