Name¶
A name shows the name of a Home Assistant entity anywhere on the card. Use it for a clear label beside a value, icon, graph, or control.
By default, Flexible Horseshoe Card uses the default (short) entity name from Home Assistant. When the entity configuration selects an attribute, it uses the translated attribute name instead. You can provide your own name in the entity configuration.
Basic configuration¶
Add names under layout.names:
entity_index selects the entity whose name is displayed.
xpos and ypos position the name on the card.
Configuration options¶
| Field | Required | Description |
|---|---|---|
entity_index | Yes | Entity whose name is displayed |
xpos | Yes | Horizontal position on the card |
ypos | Yes | Vertical position on the card |
ellipsis | No | Maximum displayed name length |
styles | No | Text styling |
color_stops | No | Colors the name from the entity state |
Use a custom name¶
Set name on the entity when the card should display another name:
Home Assistant returns the entity name as the name by default
Choose what the name shows¶
Available for custom cards since Home Assistant 2026.4!
The Flexible Horseshoe Card therefore requires this version as the minimal version.
A short name is useful when a card shows one entity. When several rooms or devices show the same measurement, add more context so each label remains recognizable.
Put the following name parts in the order they should appear:
| Type | default | What the user sees |
|---|---|---|
entity | Yes | Short entity name, such as Temperature |
device | No | Device name, such as Awair Element |
area | No | Area name, such as Living room |
floor | No | Floor name, such as Ground floor |
text | No | Text supplied in the card configuration |
This example distinguishes equal measurements from different rooms:
The resulting label can be Living room - Temperature. Home Assistant supplies the current area, floor, device, and entity names, so those parts follow changes made in Home Assistant. Literal text remains exactly as configured.
A plain string is still the simplest choice when the complete label should be fixed:
Position and alignment¶
Position the name with xpos and ypos:
Use text-anchor to control horizontal alignment:
start— text starts atxposmiddle— text is centered onxposend— text ends atxpos
See Positioning and sizing for the card coordinate system.
Text appearance¶
Use styles to change the appearance of the name:
Common styles include:
| Property | Use |
|---|---|
font-size | Text size |
font-weight | Text weight |
text-anchor | Horizontal alignment |
text-transform | Text capitalization |
fill | Text color |
opacity | Text opacity |
See Styling for the complete styling guide.
Shorten long names¶
Use ellipsis to limit the displayed name length:
Names longer than the configured length are shortened with an ellipsis.
Color from the entity¶
A name can change color based on the state of its entity:
Color stops are applied to the text.
See Color stops for ranges, gradients, palettes, and interpolation.