Skip to content

Moving to the 3.0 cards ​

3.0 brings the tile, the poster, the tile group, the heading and the layout card. They replace six older cards. Those still work in 3.0, warn once in the browser console, and go in 4.0.

Deprecated cardUse instead
Entity carda tile, or a poster
Entity group carda tile group
Entity sections carda layout card of headings and tile groups
Wind carda poster or a tile of the wind kind
Rain carda poster or a tile of the rain kind
Illuminance cardnothing: it goes (see below)

An old key on a new card shows an error that names its new spelling, so a moved card tells you what to change.

What changes on every card ​

Three things work differently, even where the keys look the same:

  • The kind's defaults come on. A tile or a poster draws its entity as its kind: a light brings its switch and its glow, a battery its colours by level, a cover its buttons. kind: none turns all of that off; rules: [], control: false or visual: false drop one part.
  • color and icon are defaults. On the old cards they beat the rules; now a matching rule's colour and icon win (see Look). Leave them out to let the value decide.
  • A rule's text is its status. The old label is status on a tile and a poster, and value on a badge.

hover is on by default, as on Home Assistant's tile (see Actions).

The entity card ​

One entity is a tile, or a poster where its value should be large. Most keys stay; these change (see Look and Controls):

Entity cardTile or poster
visual: ringicon: { ring: true }
visual: iconleave it out: the icon is always drawn
visual: gauge, bar, sparkline, columns, stripthe same visual, its window inside it: visual: { type: sparkline, hours: 6 }
visual: badgethe status: on a tile on its line, or as a badge with status_badge: true; on a poster in its corner
hours_to_show, bucket_minutes, smoothing_minutesvisual: { hours, bucket, smoothing }
icon_style, show_entity_picture, show_icon: falseicon: { style }, icon: { type: image }, icon: false
toggle: true, control: true, control: nonecontrol: toggle, control: auto, control: false
control_position, control_step, control_options …control: { type, position, step, options, attribute, confirm }
control_position: leadthe icon's own actions: icon: { tap_action: … }
secondary replaces the linesecondary follows the value and the status; show_value: false and status: false leave them out
rules[].labelrules[].status
Edit

The entity group card ​

Several entities are a tile group: a title, an icon, header badges and its tiles. The group passes nothing down: show_name, the actions and the history window are set on each tile.

Entity group cardTile group
entitiestiles, with a tile's keys
layout: list, columnlayout: list
layout: rowlayout: row (vertical tiles side by side)
layout: tablelayout: table: the name, the value and one control or visual
layout: grid, heroa layout card, see below
header_entitiesbadges, with a badge's keys
show_icon, show_name, actions on the cardon each tile
vertical_alignvertical_align, the same values and stretch
align (row)a row's align: start, center, end, space-between or stretch (the tile group's default is stretch, the entity group's was space-between)
align (column, table)none: a tile lays out its own line
name_position, a table's show_iconnone
Edit

The group card's grid and hero layouts are a layout card of new cards: posters in a layout card with columns for a grid; a poster above a tile group with card_style: seamless for a hero.

Two looks have no match: the ring with the value inside it (a ring now goes around the icon), and a rule tinting the whole group (a tile's tint_card tints only that tile).

The entity sections card ​

A card of sections is a layout card: a heading for the title and badges, a tile group per section (with its own title where it helps), and card_style: seamless for one surface. A section's visibility goes on its tile group.

Edit

The seamless surface draws a line between every two cards, so sections without a divider have no match. The old card's defaults for its sections (show_*, the actions, the window) go on each tile.

The wind and rain cards ​

A wind or rain sensor is a poster or a tile of the wind or rain kind: the speed or rate in the kind's colours, the animation in its icon, and the direction and gusts (or today's total) found on its device.

Wind or rain cardPoster or tile
direction, gust, today, windinputs: { direction, gust, today, wind }, else found on the sensor's device
layout: tilea tile: the animation in its icon
visual: flow, layout: herovisual: { type: flow }: the animation behind the card, the icon a still arrow or a rain icon
flow.stylevisual: { type: flow, variant } (dots, lines, swoosh, vectors; drops, ripples, fill)
lead: iconicon: mdi:…
title, header_entitiesa tile group around it, or a heading above
rules[].labelrules[].status; the kind brings its bands until the card writes its own
Edit

Left out: the hero's band and its flow.height (the animation fills the poster), the wind field's density, and a still direction arrow without the animation behind it.

Header entities ​

The weather, power flow and energy flow cards stay and take badges in their header, written as a poster's badges. Their header_entities work until 4.0 and warn once in the browser console; a card takes one or the other.

header_entitiesbadges
visual: ringicon: { ring: true }
visual: doticon: { type: dot }
visual: iconleave it out: the icon shows unless icon: false
visual: badgestyle: soft
visual: sparkline (in the icon's place)visual: sparkline after the value, its window inside it: visual: { type: sparkline, hours: 6 }
visual: counta template in value
trend_hoursvisual: { type: trend, hours }
show_icon: false, show_entity_pictureicon: false, icon: { type: image }
toggle: true, control: togglecontrol: toggle, the one control a badge holds
rules[].labelrules[].value
rules[].tint_cardgone: the card's own rules tint it

As on the new cards, color and icon are defaults that a matching rule beats, and a badge takes its entity's kind's colours (a battery turns red when it runs low).

Edit

The weather card ​

The weather card keeps its sections and speaks the tile's language. A rule's label, the entity sections and the keys that set them still work until 4.0 and say so once in the browser console; hover changes at once:

Before3.0
a rule's labelits status, as on a tile (both on one rule is an error)
color beats a matching rulestill, until 4.0; then the rule's colour wins, as on a tile (a card with both is warned). Leave color out to let the rules decide
hover off unless trueon, as on a tile; hover: false turns it off
entity sections (row, list, table, grid, column)a tile group beside the card in a layout card
columns, align, show_name, show_value, show_icon, name_position, hours_to_show, bucket_minutes, smoothing_minutesgo with the entity sections they set

An entity section's attributes of the weather entity become tiles of the sensors that report them:

Edit

The multi trend card ​

The multi trend card's window and averaging take the names a tile's plot has. The old keys still work, say so once in the browser console, and go in 4.0; a card with both spellings of one is an error.

Old keyNow
hours_to_showhours
smoothing_minutessmoothing

The visual editor writes the new keys when it saves the card.

The illuminance card ​

The illuminance card has no successor: its log scale, zones and arc have no match. The nearest is a tile with the history as a strip, coloured by rules:

Edit

A button's label and action (3.1) ​

In 3.1 the poster's and the tile's own buttons take a badge's keys (see Controls). Two 3.0 keys have new spellings; the old ones work until 4.0 and warn once in the console:

3.03.1
label: Dimname: Dim with show_name: true
action: { … }tap_action: { … }

The visual editor writes the new keys for a button you change in it.

Released under the MIT License.