mini-graph-card icon indicating copy to clipboard operation
mini-graph-card copied to clipboard

[FR] Allow specifying the primary entity

Open ex-nerd opened this issue 2 years ago • 1 comments

I'd love to be able to specify a primary entity other than simply defaulting to the first entity in the list. This would allow a card to be set up with a list of entities in pleasing visual (e.g. alphabetical) order, but the primary entity could be specified to surface the most pertinent/interesting/important sensor as the one to be highlighted by default.

For example: Looking at my example code from https://github.com/kalkih/mini-graph-card/issues/971, in order to get this to show to PM2.5 as the primary entity (this is by far the most interesting metric), I have to put that value first in the list. However, the legend then sorts out of order: PM2.5, PM1, PM10

ex-nerd avatar Jun 01 '23 07:06 ex-nerd

In short: primary entity - is the one whose state is shown on the left placeholder.

ildar170975 avatar Jan 20 '24 06:01 ildar170975