Skip to content

Tile ​

custom:tile-card-pro draws one entity as a compact tile: an icon, a name and one line with its value and status. It is the small card for most of a dashboard; the poster draws the same entities larger.

The parts ​

A tile is half a section wide and one row high, and it grows with what it holds. From left to right:

  • the icon: the entity's icon or picture, or the kind's own animated icon (a fan's blades turn).
  • the name, and the line under it: the value, then the status, then what the kind adds (a wind sensor's direction and gusts).
  • the controls at the end of the line: a light's switch, a thermostat's target. On a narrow tile they move under the line.
  • the visual: below the line (a plot of the last hours, the forecast, a battery's segments) or behind the texts (a light's glow).

What fills these parts comes from the entity's kind: what the entity is. The kind is detected from the entity, so most tiles need only entity.

Edit

A first set of tiles ​

Eight entities and nothing else. Each tile shows its kind: the CO₂ sensor its air quality, the thermostat its target and a stepper, the fan its speeds, the blinds their buttons, the speaker what is playing, the lock a hold on its icon, the robot what it is doing and the weather its next hours.

Edit

Changing one thing ​

Every part has a key of its own: name, icon, color, value, status, visual, control and more. A key sets its part and the kind fills the rest, so you change one detail and keep everything else.

rules change the look by the value: the first matching rule sets the colour, the icon or the status. A rule's colour and icon win over the card's color and icon, which are only defaults. Look covers the icon, the visual, colours and rules in full.

Edit

format writes the value another way: power in W, kW or MW, duration as a span (12m 34s), clock as a clock (1:12:00), relative as the time from now. A date ahead written as a span or a clock counts down every second, as a timer does by itself.

Edit

Names ​

Since Home Assistant 2026.11 an entity's name is its device's name and its own ("Dishwasher Finishes"). name takes the parts of a name as Home Assistant's own cards do: entity (its own name), device, parent_device, area, floor, and { type: text, text: … } of your own, in the order written. They follow renames in Home Assistant, and they work where you cannot write a name per card (auto-entities). Badges, buttons and a tile group's tiles take them too.

Edit

A vertical tile ​

vertical: true puts the icon on top, with the name and the line centred under it and the controls under them, as Home Assistant's own tile does. A vertical tile takes a quarter of a section (half with a stepper, a select, buttons or segments) and two rows, a third with a control.

Edit

In a taller cell ​

A tile is as tall as its content, but a fixed row count or a taller card beside it in its row can make it taller. vertical_align sets where the content sits then: center (the default), top or bottom. A plot below the line grows into the room instead.

Edit

An unavailable entity ​

While its entity is unavailable, a tile draws a dash for the value, its status says Unavailable and its controls are greyed out. An entity that does not exist draws the same, its line naming the missing entity.

Edit

The visual editor ​

Every option has a field in Home Assistant's card editor. First choose what the tile shows (an entity, a kind or texts of your own); the form then offers only what fits it. Badges, rules and a control's options are lists, each item in a form of its own. Try it in the Playground, or with Edit under any example.

Coming from the entity card? Moving to 3.0 maps its keys to the tile's.

Reference ​

Entity and kind ​

KeyDefaultDescription
entity–The entity. Optional: the keys alone can fill a tile.
kinddetectedWhat the entity is; see Kinds. none turns every default off.
inputsfound on the deviceThe other entities a kind reads, by name (direction, gust, today …), each an entity or false for none; Kinds lists them.
running_above–An appliance's power (W) above which it runs.
series–A trend's series: entity ids, or objects with entity, name, color, rules, visibility.

Texts and value ​

KeyDefaultDescription
namethe friendly nameThe name. Template allowed. Or its parts, as Home Assistant composes it: [{ type: area }, { type: entity }]; see Names.
valuethe kind's, else the stateA text or a template in place of the state.
attribute–Shows this attribute in place of the state.
unitthe entity'sThe value's unit.
decimals–Decimals of a number, 0 to 3.
formatautoHow the value is written: auto (a timer: its time left as a clock), power, duration, clock or relative; see Badges.
prefix, suffix–Text before and after the value.
min, maxthe entity's, else 0 and 100The range of a bar, a gauge, segments, a glow or a ring of the card's value. Written, they also scale a plot of the entity's state (sparkline, columns) that has no min or max of its own.
statusthe rule's, else the kind'sThe status on the line: a text, a template, or false for none. It wins over the rules.
secondarythe kind'sWhat follows the value and the status on the line. Template allowed. false for none, not even the kind's.
show_name, show_valuetruefalse leaves out the name or the value.

Look ​

KeyDefaultDescription
iconthe kind'sAn icon's name or a template; { type: icon | image | flow, … } with its options, its own actions and the badge on it; or false for none. See Look and Badges.
visualthe kind'sBelow the line: sparkline, columns, strip, bar, gauge, segments, sun. Behind the texts: glow, image, flow, and a kind's cover, path or line (only where written). A name, { type, … } with its options, or false; see Look.
colorthe kind'sThe tile's colour: a colour name, a hex or a template. A matching rule's colour wins.
rulesthe kind'sColour, icon, status, visual, tint_card and pulse by value, state or an attribute; the first match wins. Yours replace the kind's, [] drops them. See Look.
vertical_aligncenterWhere the content sits in a taller tile: top, center or bottom.
verticalfalseThe icon on top, the name and the line centred under it.

Controls, badges and actions ​

KeyDefaultDescription
controlthe kind'sauto, a control's name (toggle, slider, stepper, segments, buttons, button, select, hold, date), false for none, or { type, position, … }; see Controls.
badges–Badges at the end of the first row: entity ids or badges of your own; see Badges.
status_badgefalsetrue draws the status as the first badge, in place of on the line.
tap_actionmore-infoWhat a tap on the tile does; see Actions & hover.
hold_actionmore-infoWhat a hold does.
double_tap_actionnoneWhat a double tap does.
hovertrueHome Assistant's hover and press effects; false keeps the tile still.

Grid and Home Assistant options ​

A tile takes 6 columns and sizes its height to its content (rows: auto): one row, or two with a plot below the line. A plain tile can shrink to 3 columns (4 or 6 with a control on its line); a vertical one takes 3 columns (6 with wider controls) and two rows or more. See Sizes.

KeyDefaultDescription
grid_options–Home Assistant's size in a sections view: columns, rows.
fill_heighttrueFills the height the card is given; false keeps the tile's own height.
visibility–Home Assistant's conditions that show or hide the whole card.
view_layout–Placement in a layout card or a custom view.
card_mod–Styles for the card-mod plugin.
uix–Styles for the UIX plugin.

Released under the MIT License.