Changeable state-badge title

As stated in https://github.com/home-assistant/core/issues/24734, the title field of state-badge refer to the tooltip.

The actual title, written below the badge, points to the casual name of the entity used.

However, this name can be quite long and is then cropped to fit a small width, and I couldn’t find any way to change this title.

Shouldn’t the title field point to this title, while we could add a tooltip field for the above-mentioned use case?

This would be a breaking change but I think it would make a lot of sense. Otherwise, could we add a name field or something similar?

Either use the UI (configuration / entities, then click on the entity and change the friendly name) or use customize:

Thanks @tom_l, I’m well aware of this solution but I don’t want to change the name of the entity, I only want to change the text displayed below the badge.

For instance, if the entity name is “Temperature of Living Room”, it is a good name for anywhere else, but it would be too long on the map, where setting “name: Temp. of LR” or something similar would be far better.

Ok so if it’s just the display in Lovelace you want to override you can use the name: option. See: https://www.home-assistant.io/lovelace/badges/#name

If this is what you are suggesting it has, unfortunately, no effect:

type: picture-elements
image: /local/plan.jpg
elements:
  - type: state-badge
    entity: sensor.temperature_bureau
    name: "Temp. Bureau"
    style:
      top: 33%
      left: 40%

Am I doing it wrong?

That’s what should work according to the docs. If it doesn’t you should raise an issue.

I can confirm this seems to still not be editable in a Picture Element card.

I can confirm the “title” variable is not working