Skip to content

Poster ​

custom:poster-card-pro draws one entity as a poster: its value large, with room for a picture, a plot or an animation. Use it for the few things that deserve the space; the tile draws the same entities smaller.

The parts ​

A poster is half a section wide and three rows high. Its content sits at the bottom of whatever height it gets:

  • the icon at the top left: the entity's icon or picture, or the kind's own drawing.
  • the badges at the top right. The first is the status badge: the kind's status or the matching rule's.
  • the name in capitals, the large value with a smaller second value beside it where one is set (a thermostat's target), and a line under it with what the kind adds.
  • the controls beside the value, or under it on a narrow card: a light's switch and dimmer, a thermostat's stepper.
  • the visual: along the bottom (a plot of the last hours, the forecast, a battery's segments) or behind it all (a light's glow, a picture, the wind's animation).

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

Edit

A first set of posters ​

Six entities, nothing but entity and a name here and there. The thermostat brings its stepper, the speaker its cover art and buttons, the weather its forecast, the wind an animated field, the robot its path and the CO₂ sensor its air quality bands.

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

A second value ​

aside puts a second value beside the value, smaller and in the grey of the secondary text: a target beside a temperature, a forecast high, yesterday's total. Give it an entity, or { entity, attribute, … } with a badge's value keys; without an entity it reads the card's own (aside: { attribute: temperature } on a thermostat). A thermostat shows its target there by itself where no stepper does; aside: false turns it off, and a secondary of your own replaces it, as it replaced the target's line.

Where the line is too narrow, the second value moves under the value, or is left out where a line is already there: the value never gets smaller for it.

Edit

An unavailable entity ​

While its entity is unavailable, a poster 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 status naming the missing entity.

Edit

The visual editor ​

Every option has a field in Home Assistant's card editor. First choose what the poster 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 poster's.

Reference ​

Entity and kind ​

KeyDefaultDescription
entity–The entity. Optional: the keys alone can fill a poster.
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 above the value. Template allowed. Or its parts, as Home Assistant composes it: [{ type: entity }]; see Tile.
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.
asidethe kind'sA second value beside the value: an entity id, { entity, attribute, value, unit, decimals, format, prefix, icon }, or false for none. Without an entity it reads the card's.
secondarythe kind'sThe line under the value. Template allowed. false for none, not even the kind's.
statusthe rule's, else the kind'sThe status badge, first in the corner: a text, a template, or false for none. It wins over the rules.
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 and its own actions; or false for none. See Look.
visualthe kind'sAlong the bottom: sparkline, columns, strip, bar, gauge, segments, sun. Behind it all: glow, image, flow, and a kind's cover, path or line. A name, { type, … } with its options, or false; see Look.
colorthe kind'sThe poster'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.

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 in the corner after the status: entity ids or badges of your own; see Badges.
tap_actionmore-infoWhat a tap on the poster 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 poster still.

Grid and Home Assistant options ​

A poster takes 6 columns and 3 rows by default, and that at least: for less room, use a tile. Its content sits at the bottom of the height it gets. 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 poster'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.