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 card | Use instead |
|---|---|
| Entity card | a tile, or a poster |
| Entity group card | a tile group |
| Entity sections card | a layout card of headings and tile groups |
| Wind card | a poster or a tile of the wind kind |
| Rain card | a poster or a tile of the rain kind |
| Illuminance card | nothing: 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: noneturns all of that off;rules: [],control: falseorvisual: falsedrop one part. colorandiconare 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 oldlabelisstatuson a tile and a poster, andvalueon 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 card | Tile or poster |
|---|---|
visual: ring | icon: { ring: true } |
visual: icon | leave it out: the icon is always drawn |
visual: gauge, bar, sparkline, columns, strip | the same visual, its window inside it: visual: { type: sparkline, hours: 6 } |
visual: badge | the 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_minutes | visual: { hours, bucket, smoothing } |
icon_style, show_entity_picture, show_icon: false | icon: { style }, icon: { type: image }, icon: false |
toggle: true, control: true, control: none | control: toggle, control: auto, control: false |
control_position, control_step, control_options … | control: { type, position, step, options, attribute, confirm } |
control_position: lead | the icon's own actions: icon: { tap_action: … } |
secondary replaces the line | secondary follows the value and the status; show_value: false and status: false leave them out |
rules[].label | rules[].status |
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 card | Tile group |
|---|---|
entities | tiles, with a tile's keys |
layout: list, column | layout: list |
layout: row | layout: row (vertical tiles side by side) |
layout: table | layout: table: the name, the value and one control or visual |
layout: grid, hero | a layout card, see below |
header_entities | badges, with a badge's keys |
show_icon, show_name, actions on the card | on each tile |
vertical_align | vertical_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_icon | none |
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.
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 card | Poster or tile |
|---|---|
direction, gust, today, wind | inputs: { direction, gust, today, wind }, else found on the sensor's device |
layout: tile | a tile: the animation in its icon |
visual: flow, layout: hero | visual: { type: flow }: the animation behind the card, the icon a still arrow or a rain icon |
flow.style | visual: { type: flow, variant } (dots, lines, swoosh, vectors; drops, ripples, fill) |
lead: icon | icon: mdi:… |
title, header_entities | a tile group around it, or a heading above |
rules[].label | rules[].status; the kind brings its bands until the card writes its own |
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_entities | badges |
|---|---|
visual: ring | icon: { ring: true } |
visual: dot | icon: { type: dot } |
visual: icon | leave it out: the icon shows unless icon: false |
visual: badge | style: soft |
visual: sparkline (in the icon's place) | visual: sparkline after the value, its window inside it: visual: { type: sparkline, hours: 6 } |
visual: count | a template in value |
trend_hours | visual: { type: trend, hours } |
show_icon: false, show_entity_picture | icon: false, icon: { type: image } |
toggle: true, control: toggle | control: toggle, the one control a badge holds |
rules[].label | rules[].value |
rules[].tint_card | gone: 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).
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:
| Before | 3.0 |
|---|---|
a rule's label | its status, as on a tile (both on one rule is an error) |
color beats a matching rule | still, 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 true | on, 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_minutes | go with the entity sections they set |
An entity section's attributes of the weather entity become tiles of the sensors that report them:
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 key | Now |
|---|---|
hours_to_show | hours |
smoothing_minutes | smoothing |
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:
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.0 | 3.1 |
|---|---|
label: Dim | name: Dim with show_name: true |
action: { … } | tap_action: { … } |
The visual editor writes the new keys for a button you change in it.