Using icons in names of entity

When using entities card, I am trying to use an icon in the name of displayed entity.
Like this:

entities:
  - entity: switch.termoaku
    icon: mdi:radiator
    name: Termoaku (heater °C) 

instead of (heater °C) I would use (mdi:induction °C).

Any idea how to get that working?

1 Like

I believe it only accepts strings.
Not sure that is a good idea when you filter or use the entity names in automations and such.

No no, you misunderstood me.

I only want to use icon in name when I’m using entities card, not for an actual name of entity.

Same answer. Only accepts strings. Find another way to display the icon.

Ok, then how do I suggest a new feature?

You can use unicode characters in the name. I did not find a radiator but you could try with tomething like :hotsprings: (U+2668)

1 Like

Hmm, yes, emojis work. :smiley: