Entity Card Pro
Deprecated
The entity card is deprecated: it still works in 3.0 and goes in 4.0. Use a tile, or a poster for one large value; Moving to 3.0 says what changes.
custom:entity-card-pro shows one entity as a tile: icon, name and value in one row, or with a gauge, bar or graph below. The entity keys sit directly on the card; the entity options explain every one of them.
Basic
The tile takes the entity's icon, friendly name and formatted state, and colours the icon as Home Assistant does (plain sensors in the primary colour).
Name and value
name replaces the friendly name, decimals rounds the value, unit overrides the unit, prefix and suffix wrap the value in text.
Rules
rules pick colour, icon and label by value (below / above) or by state; the first rule that matches wins. The label sits next to the value; see Rules.
State rules work the same way for anything that is not a number.
Controls
control: auto adds the control the entity's domain calls for: a light gets a switch and a brightness slider, a cover its buttons and a position slider, a thermostat a stepper. control: toggle and the other names pick one; see Controls.
Visuals
visual changes how the value is drawn: the default icon, a ring around the icon, a badge pill, or a gauge, bar, sparkline, columns or strip block below the row. min and max set the range for ring, gauge and bar.
All eight side by side. The history visuals (sparkline, columns, strip) show the last hours_to_show hours, columns and strip in buckets of bucket_minutes.
Visuals on the entity options page explains each visual and its options, and the history window.
Card tint
tint_card: true on a rule washes the whole card in that rule's colour while it matches. Use it for the states that deserve attention, not for the normal case.
Attribute
attribute shows an attribute instead of the state; unit, decimals and min / max apply to it like to a state. On a thermostat, attribute: hvac_mode shows the HVAC mode, which Home Assistant keeps in the state rather than in an attribute.
Text and templates
value replaces the state with plain text or a Jinja template. Without an entity the tile is a plain text or template card: give it a name, icon and color; there is nothing to open on tap.
Templates everywhere
name, icon, color, secondary and value all take templates. This tile compares two sensors and changes its whole look with the result.
Counting with templates
A template value that looks like a number gets rules, decimals and a unit like a state. Here the tile counts open windows and lights.
Actions
A tile is a button. tap_action runs a scene, opens a dashboard or a URL, or toggles; hold_action and double_tap_action add two more. See Actions for every field.
Hover
hover: true shows what a click will do, as Home Assistant's tile does: a light layer in the tile's colour under the pointer, a stronger one while pressed. An icon that is a switch (control_position: lead) and every control answer on their own. Touch screens show only the press. See Hover.
Reference
All entity options plus:
| Option | Default | Description |
|---|---|---|
toggle | false | Deprecated spelling of control: toggle. |
secondary | Line under the name instead of the value and label. Template allowed. | |
hours_to_show | 24 | History window for sparkline, columns and strip, at least 1. |
bucket_minutes | 60 | Bucket size for columns and strip, at least 5. |
smoothing_minutes | Averaging bucket of sparkline in minutes, at least 5 (default: one point per 12 px of width). | |
tap_action / hold_action / double_tap_action | more-info / more-info / none | See Actions. |
hover | false | Hover and press layers on the tile, its icon and its controls, see Hover. |
Grid defaults
6 columns, rows: auto: one row for a plain tile, more for the block visuals (gauge, bar, sparkline, columns, strip) and controls, at least 2 rows with a sparkline or columns. Given more height, a sparkline or columns plot fills the card and other tiles centre their content; see Filling the height.
Home Assistant options
Like every card, this one also accepts grid_options, visibility, layout_options, view_layout, card_mod and uix, passed through to Home Assistant; see Sizing in sections. fill_height: false keeps the card at its own height beside a taller card; see Filling the height.