Decluttering Card Plus Contents ↓ GitHub ↗

Configuration Reference

Every key the card reads, where it goes, and an example of each. This page is for looking something up; each section links to the page that explains it properly.

The reference is in three parts:

There is also an A to Z of every key and step on the docs site. If you are new to the card, How It Fits Together explains how these pieces relate before you dive in here.

On this page:


Dashboard root

Keys at the top level of a dashboard’s configuration, beside views:. A dashboard in storage mode is edited through ⋮ → Raw configuration editor.

Key Type What it does Example
decluttering_templates mapping The dashboard’s templates, keyed by name. A template card with the same name wins. See Defining Templates decluttering_templates: {room_light: {card: {...}}}
decluttering_templates_from a dashboard’s URL path, or a list Borrows templates from other dashboards; '*' means every dashboard (v1.8.0+). This dashboard’s own templates always win. lovelace names the default dashboard. See Sharing Templates Between Dashboards decluttering_templates_from: [shared-templates]
decluttering_defaults (v1.1.0+) mapping, or a list Values every template on the dashboard falls back on, last of all. A borrowed template gets this dashboard’s before the lender’s decluttering_defaults: {colour: amber}
decluttering_variables (v1.13.0+) list, or a mapping (v2.3.0+) Declarations shared by every template: a template takes one up by declaring the name. The template’s own keys win. See Describing Variables decluttering_variables: {light: {type: entity, domain: light}}
decluttering_types (v3.0.0+) mapping Named declaration shapes every template on the dashboard can use with type: <name>. The declaration’s own keys win. See Describing Variables decluttering_types: {percent: {type: number, min: 0, max: 100}}
decluttering_let (v2.0.0+) mapping, or a list Values worked out for every card from that card’s own variables. A card cannot override them. See Variables decluttering_let: {room_slug: '[[room|slug]]'}
strategy (v2.0.0+) mapping With type: custom:decluttering-card-plus, generates the whole dashboard. See below strategy: {type: custom:decluttering-card-plus, views: [...]}
decluttering_strict (v2.9.0+) true, false, or a mapping strict: for every card on the dashboard, each level taken from the nearest place that sets it. See Checks and Strict decluttering_strict: {warnings: notice}

A dashboard at the URL path decluttering-templates (v1.13.0+) is a library: every other dashboard borrows from it without naming it, and anything else wins over it. See Sharing Templates Between Dashboards.

decluttering_templates:
  room_light:
    card:
      type: tile
      entity: '[[light]]'
      color: '[[colour]]'

decluttering_templates_from:
  - shared-templates

decluttering_defaults:
  colour: amber

decluttering_let:
  room_slug: '[[room|slug]]'

views: []

The raw configuration editor showing all three root keys

The same keys in the raw configuration editor.


View and section

Key Where What it does Example
decluttering_defaults (v1.8.0+) a view Values for every templated card on the view. They beat the template’s own defaults (v1.9.0+); only a section’s values, the card’s own and any let beat them. Also read from inside a view strategy decluttering_defaults: {room: Kitchen}
decluttering_defaults (v1.10.0+) a section Values for the cards in one section. They beat the view’s decluttering_defaults: [{colour: teal}]
decluttering_let (v2.0.0+) a view, or a section As the dashboard’s, for one view or section. The nearer one wins decluttering_let: {heading: '[[room]] lights'}
strategy (v1.11.0+) a view With type: custom:decluttering-card-plus, generates the view’s sections and badges. See below strategy: {type: custom:decluttering-card-plus, sections: [...]}
decluttering_strict (v2.9.0+) a view, or a section As the dashboard’s, for one view or section. The nearer one wins, and a card’s or template’s own strict: beats both. Also read from inside a view strategy decluttering_strict: {errors: report}
views:
  - title: Kitchen
    decluttering_defaults:
      room: Kitchen
    sections:
      - type: grid
        decluttering_defaults:
          colour: teal
        cards:
          - type: custom:decluttering-card-plus
            template: room_light
            variables:
              light: light.kitchen_ceiling

See Sharing Templates Between Dashboards and Which value wins.


Template definition

One entry under decluttering_templates, or a custom:decluttering-template-plus card.

What it builds

Exactly one of these. None gives You must define one card, badge, element, or row in the template; two give This template defines both “…” and “…”.

Key What it builds Goes Example
card A card anywhere a card goes card: {type: tile, entity: '[[light]]'}
badge A badge in a view’s badges: badge: {type: entity, entity: '[[sensor]]'}
row An Entities card row in an Entities card’s entities: row: {entity: '[[light]]', name: '[[room]]'}
element A Picture Elements element in a Picture Elements card’s elements: element: {type: state-icon, entity: '[[light]]'}
group (v1.14.0+) Several cards laid out in the section as if each were written there, or several badges in a view’s badges (v1.15.0+). grid_options beside cards: sizes the group (v1.15.2+). A bare list of cards works too. See Cards anywhere a card goes group: {cards: [{type: tile, entity: '[[light]]'}, ...]}
item (v2.3.0+) A block filled in by with: and repeat: inside a card’s own list. Not usable as a card. See List Entries in a list, through [[name|with:…]] item: {entity: '[[entity]]', secondary_info: last-changed}
dashboard (v2.9.0+) A whole dashboard: its views, and anything a dashboard has Used from the dashboard strategy’s page:. See Page Templates dashboard: {views: [...]}

An item template may also carry for_each (a list, or a placeholder that fills to one) or for_each_from (a source): what a bare [[name|repeat]] repeats it over (v2.5.0+). See List Entries.

Variables

Key Type What it does Example
variables list, or a mapping (v2.3.0+) Declarations: what each variable is, so the editor shows the right control and checks the value. See Describing Variables variables: [{name: light, type: entity, domain: light}]
default list, or a mapping Values to use when a card sets none. See Variables default: [{colour: amber}]
defaults (v2.0.0+) list, or a mapping The same as default. Both written: merged, default winning a name both set defaults: {colour: amber}
let (v1.7.0+) mapping, or a list Values the template works out from the others. Beat everything, including the card’s own. See Variables let: {light: 'light.[[room|slug]]_ceiling'}
types (v3.0.0+) mapping Named declaration shapes for this template, over the dashboard’s decluttering_types of the same name. See Describing Variables types: {colour_picker: {selector: {select: {options: [red, blue]}}}}
groups (v3.0.0+) mapping Settings for each group: of the variables: show_if, hide_if, expanded, description. See Describing Variables groups: {Night mode: {show_if: night_mode}}

Building on other templates

Key Type What it does Example
extends (v1.8.0+) template name, or a list (v2.0.0+) Starts from another template and changes only what differs. A list folds left to right, later names winning. See Defining Templates extends: room_tile

Under extends, the content (card: and the rest) is merged key by key, a null removes a key, and a list is replaced unless edited with __append__, __prepend__, __update__ or __remove__ (v2.0.0+). Declarations merge by name; defaults and let stack, the child’s first. Every other key below is inherited whole, and replaced whole if the child sets it (a child’s style replaces the parent’s rather than adding to it), except deprecated, examples and the sharing credits and links (author, license, help, homepage, readme, related) (v2.6.0+), which are not inherited.

About the template

Key Type What it does Example
description text What the template is for. Shown in the card editor, the picker and a published entry description: A light tile for one room
category (v1.8.0+) text Groups the template in the picker: Lighting · room_tile category: Lighting
name (v1.14.0+) text Labels its cards in debug console output and in dashboard health. Placeholders are filled; a card’s own name wins name: '[[room]] light'
deprecated (v2.0.0+) true, or a message Marks the template as on its way out: a console warning, a note in the editors, sorted last in the picker. Cards still render. See Defining Templates deprecated: Use room_tile_v2
examples (v2.0.0+) list of variable sets Example values: the template editor’s preview, the card editor’s Preset dropdown (v2.9.0+; Start from example before that), and checked by dashboard health. An entry can be {name, values} to name the preset. See Defining Templates examples: [{light: light.kitchen_ceiling, room: Kitchen}]
author (v2.6.0+) text, or a mapping of name, github, email, url Who wrote it, shown before installing. Not inherited. See Sharing a Template author: {name: Sam, github: sam}
license (v2.6.0+) text The licence it is shared under. Not inherited license: MIT
help, homepage (v2.6.0+) link A page that explains it, and where it lives. http or https only. Not inherited homepage: https://github.com/sam/templates
readme (v2.6.0+) text (Markdown) Shown before it is installed. Not inherited readme: Needs a **Frigate** camera.
related (v2.6.0+) template name, or a list Templates that go out with it under includes: though it does not call them. Not inherited related: [door_badge]
requires (v2.6.0+) mapping of integrations, entities, custom_cards, homeassistant, card What it needs, listed before installing when this Home Assistant does not have it. Never blocks. Quote versions requires: {integrations: [frigate], homeassistant: '2026.10'}
setup (v2.6.0+) variable name, or a list Variables asked for when it is installed; the answers become its defaults setup: [motion]
source (v2.0.0+) mapping Written by installing a shared or library template; read only by Check for updates. Taken off a paste. See Sharing a Template written for you

How it shows up

Key Type What it does Example
style text (CSS) CSS put in front of the card, before a card’s own style. Placeholders are filled. See Styling style: ':host { --tile-color: var(--amber-color); }'
grid_options (v1.2.0+) mapping The size every card using it asks for in a sections view; a card’s own wins. Also handed to the card it builds (v2.3.0+). Placeholders are not filled here. See Styling grid_options: {columns: 6, rows: 2}
on_error (v2.0.0+) hide, or content of the template’s kind What every card using it shows instead of an error; a card’s own wins. See Using Templates on_error: hide
show_card_errors (v2.12.0+) true A card the template builds that refuses its config says why outside edit mode too, not just Configuration error; a card’s own false wins. See Troubleshooting show_card_errors: true
suggest_for (v1.13.0+) entity filters Offers the template in the add-card or add-badge dialog for entities that match. Takes entities, domain, device_class, integration, unit, state_class, area, floor, label, category, exclude. Card and badge templates only. See Visual Editors suggest_for: {domain: light}
publish (v1.14.0+) true, or a name Lists the template as a card of its own in the add-card dialog (or the badge dialog, for a badge template). See Visual Editors publish: Room light
editor_hide (v2.6.0+) a name, or a list Parts of the card editor to leave out: repeat, extras, fit, advanced, defaults (v3.1.0+), preview (v3.2.0+), or one Advanced field by name. A part the card already uses still shows. See Visual Editors editor_hide: [repeat, fit]
checks (v2.9.0+) list, or a mapping Conditions the card’s values must pass, each with condition, message, level (info/warn/error), fail_on, continue_rendering and name. See Checks and Strict checks: [{condition: '[[sensor|exists]]', fail_on: false, level: error, message: No sensor}]
alert (v2.9.0+) content of the template’s kind Built instead of the content while a warn or error check fails; reads [[__alerts__]]. See Checks and Strict alert: {type: markdown, content: '[[__alerts__.warn.items|join:, ]]'}
strict (v2.9.0+) as on a card strict: for every card using the template; a card’s own wins strict: {errors: fail}
rebuild_on (v2.10.0+) entity id, placeholder, {entity, watch}, or a list Entities every card using the template rebuilds on, added to the card’s own. Placeholders are filled from the variables, never from a state. See Variables rebuild_on: '[[blind]]'
rebuild_on_watch (v2.10.0+) read, all, or a list What counts as a change, for cards using the template that do not say; a card’s own wins. See Variables rebuild_on_watch: read
visibility (v2.9.0+) list of conditions Conditions on the variables, deciding which copies are built at all. See Visibility visibility: [{variable: entity, exists: true}]
version / changes (v2.9.0+) number or text / mapping Which version the template is, and what changed in each; the health panel reads them. See Defining Templates version: 3
examples entries as {name:, values:} (v2.9.0+) list Named examples, offered as presets in the card editor. See Defining Templates examples: [{name: Kitchen, values: [{area: kitchen}]}]
decluttering_templates:
  room_tile:
    description: A light tile for one room
    category: Lighting
    variables:
      - name: light
        type: entity
        domain: light
        required: true
      - name: room
    default:
      - colour: amber
    let:
      heading: '[[room|title]]'
    grid_options:
      columns: 6
    suggest_for:
      domain: light
    card:
      type: tile
      entity: '[[light]]'
      name: '[[heading]]'
      color: '[[colour]]'

  dim_tile:
    extends: room_tile
    card:
      icon: mdi:lightbulb-on-50

Variable declaration

One entry of a template’s variables: (or of decluttering_variables). In the mapping form (v2.3.0+), light: {type: entity} is a whole declaration, colour: amber declares colour with that default, and room: with nothing declares the name only. See Describing Variables.

Key Type What it does Example
name text The variable’s name, as written in [[name]]. Required in the list form name: light
label text What the editor calls it. Defaults to the name label: Ceiling light
description text Help text under the control description: The light this tile controls
selector mapping Any Home Assistant selector, for the editor’s control. Wins over type. {card: {}} takes a whole card (v1.8.0+) selector: {entity: {domain: light}}
type (v2.0.0+) entity, number, boolean, icon, color, text or select, or the name of one of your own types (v3.0.0+) A short way to pick a control, and a check on the value. select needs allowed:; without it you get a text box. See Describing Variables type: entity
domain, device_class (v2.0.0+) text, or a list With type: entity: narrow the picker, and warn about anything else domain: [light, switch]
integration, supported_features (v3.1.0+) text / a number or a list With type: entity: narrow the picker only integration: zha
min, max, step, unit (v2.0.0+) number / text With type: number. Both ends make a slider min: 0, max: 100, unit: '%'
multiline (v2.0.0+) true With type: text: a big text box multiline: true
default anything The value when a card sets none. Beats the template’s default: list default: amber
defaults (v2.0.0+) anything The same as default; default wins if both are written defaults: amber
required (v1.1.0+) true The editor flags a card that leaves it empty. In a repeat, a copy with nothing for it is dropped. See Describing Variables required: true
pattern (v1.8.0+) regular expression The editor warns when the value does not match. Warns, never blocks pattern: '^light\.'
allowed (v1.8.0+) list The values it may take; the editor warns about anything else, and shows a dropdown when there is no selector or type (v1.11.0+). An entry can be {label, value} to show a label for the value (v3.1.0+). Can be a placeholder, filled in the editor the way a default is (v3.2.0+) allowed: [auto, heat, 'off']
multiple (v3.2.0+) true With allowed:: the dropdown takes several values and the card gets a list, each entry checked multiple: true
options_from (v2.9.0+) a source, as for_each_from: takes A dropdown of what Home Assistant has, one option per thing found. option_value sets what each option stores and option_label what it shows, both filled in per thing found. Editor only. See Describing Variables options_from: {domain: light}
group (v1.8.0+) text Folds the control into a section of the card editor group: Appearance
show_if (v2.6.0+) a condition, or a list Shows the field only while one of them holds: name, !name, name=text, name!=text. Editor only. See Describing Variables show_if: source=Frigate
hide_if (v2.6.0+) a condition, or a list Hides the field while any of them holds. Editor only hide_if: '!use_zones'
variables:
  - name: light
    label: Ceiling light
    type: entity
    domain: light
    required: true
  - name: brightness
    type: number
    min: 0
    max: 100
    step: 5
    unit: '%'
    default: 60
    group: Appearance
  - name: mode
    allowed: [auto, heat, 'off']

custom:decluttering-card-plus

Uses a template. The same card goes everywhere: as a card, in badges:, in an Entities card’s entities:, and in a Picture Elements card’s elements:. See Using Templates.

Choosing the template and filling it in

Key Type What it does Example
type text custom:decluttering-card-plus type: custom:decluttering-card-plus
template text The template to use. Required, unless template_by_domain is set; then it is the fallback template: room_tile
variables mapping, or a list The values to fill in. A mapping value’s keys are reachable as [[name.key]]. See Variables variables: {light: light.kitchen_ceiling, room: Kitchen}
template_by_domain (v2.0.0+) mapping A template per entity domain, plus default:, chosen by the domain of the entity variable (the card’s, or each copy’s). See Using Templates template_by_domain: {light: light_tile, default: plain_tile}
inherit_variables (v1.13.0+) true On a card inside a template’s content: take every variable of the card around it, its own winning. See Defining Templates inherit_variables: true
rebuild_on (v2.0.0+) entity id, or a list Build the card again when one of these entities’ state changes, and let |state read them. An entry can be a placeholder filled from the variables, or {entity, watch} naming what counts as a change (v2.10.0+). Added to the template’s own. See Variables rebuild_on: input_select.house_mode
rebuild_on_watch (v2.10.0+) read, all, or a list What counts as a change of a rebuild_on entity, for every entry without its own watch:: read is the state and the attributes the template reads; a list names state, last_changed, last_updated or attributes. Beats the template’s. See Variables rebuild_on_watch: read
slots (v2.9.0+) mapping Cards of the card’s own, put where the template wrote [[name|slot]]. See Slots slots: {body: {type: markdown, content: Hi}}
variables_mobile / mobile_below (v2.9.0+) list or mapping / number Values laid over variables while the screen is a phone’s, or while the card is narrower than mobile_below pixels. See Visibility variables_mobile: [{columns: 1}]

Changing what it builds

Key Type What it does Example
card / badge / row / element (v1.12.0+) mapping Laid over what the template builds, taken as written. null removes a key; under a list, __append__, __prepend__, __update__ and __remove__ edit it (v2.0.0+). Must match the template’s kind. See Using Templates card: {features: {__append__: [{type: light-brightness}]}}
style text (CSS) Extra CSS, after the template’s. Only custom properties set on :host reach the wrapped card; an ha-card selector never matches it. See Styling style: ':host { --ha-card-border-width: 0; }'
style mapping In a Picture Elements card only: the element’s position, read by Home Assistant. See Elements style: {top: 40%, left: 25%}
grid_options (v1.2.0+) mapping The size it asks for in a sections view. Beats the template’s. Placeholders are not filled here grid_options: {columns: 12}
visibility list Home Assistant’s own visibility conditions, for cards and badges. See Visibility visibility: [{condition: state, entity: input_boolean.guests, state: 'on'}]
fit (v1.1.0+) box or contents contents gives up the card’s own box, for layouts that need it. See Styling fit: contents
on_error (v2.0.0+) hide, or content of the template’s kind What to show instead of an error card. Beats the template’s. See Using Templates on_error: {type: markdown, content: Kitchen card missing}

Repeating

The keys that make one card build many copies. Every key, with examples, is on Repeat Reference.

Key Type What it does Example
for_each list, or a mapping A copy per item you write out for_each: [{light: light.hall}, {light: light.landing}]
for_each_from (v1.1.0+) mapping A copy per thing Home Assistant knows about. See Repeat Reference for_each_from: {domain: light, area: Kitchen}
columns number Copies side by side. Defaults to 1 columns: 3
min_column_width (v1.1.0+) number Pixels; drops a column rather than going narrower min_column_width: 160
gap (v1.2.0+) number Pixels between copies, or between the cards of a stack the template builds gap: 8
empty (v1.2.0+) card Shown when there are no copies, as written empty: {type: markdown, content: Nothing on}
lazy (v2.0.0+) true Build copies only as they near the screen lazy: true
lazy_eager (v2.0.0+) number How many lazy builds straight away. Defaults to 6 lazy_eager: 9

Finding out what went wrong

Key Type What it does Example
debug (v1.2.0+) true, yaml, console or report true shows what the card builds, as JSON, instead of the card; yaml (v1.13.0+) does the same as YAML; console (v1.13.0+) leaves the card alone and logs how it was built; report (v2.0.0+) logs and adds a panel to copy. See Troubleshooting debug: console
name (v1.14.0+) text Labels this card in debug output and dashboard health, over the template’s name name: '[[room]] tile'
redact (v2.1.0+) false Leaves passwords, tokens and addresses in a debug: report. Defaults to true redact: false
report_open (v2.12.0+) false Starts a debug: report folded to a one-line bar with a Show button. See Debug Report report_open: false
report_entity (v2.12.0+) entity id Hides a debug: report while this entity is off, without building the card again report_entity: input_boolean.debug_reports
show_card_errors (v2.12.0+) true or false A card the template builds that refuses its config says why outside edit mode too. Beats the template’s. See Troubleshooting show_card_errors: true
strict (v1.2.0+) true, false, or {errors: ignore|report|fail, warnings: ignore|notice|report} (v2.9.0+) true refuses a card with a placeholder nothing fills; levels set errors and warnings separately. Unset variables are checked on single cards only; a failed error check refuses a repeat too. See Checks and Strict strict: {errors: fail, warnings: notice}
type: custom:decluttering-card-plus
template: room_tile
variables:
  light: light.living_room_ceiling
  room: Living Room
rebuild_on: input_select.living_room_scene
grid_options:
  columns: 6
card:
  features:
    __append__:
      - type: light-brightness
on_error: hide

custom:decluttering-template-plus

Defines a template as a card on a view, instead of under decluttering_templates. It shows only in edit mode, outlined, previewed with its defaults. It takes type, template (the name, required) and every template definition key.

type: custom:decluttering-template-plus
template: room_light
category: Lighting
card:
  type: tile
  entity: '[[light]]'
  name: '[[room]]'
default:
  - light: light.living_room
  - room: Living Room

See Defining Templates.


Inside for_each_from (v1.1.0+)

Moved to Repeat Reference: sources, filters, order and how many.

What every copy is given

Moved to Repeat Reference.

Variable syntax

Moved to Placeholder Reference, which lists every step with an example.


The view strategy (v1.11.0+)

On a view, strategy: with type: custom:decluttering-card-plus writes the view’s sections and badges, repeating some of them. See Repeating Sections and Badges.

Key Type What it does Example
type text custom:decluttering-card-plus  
sections list Sections as written, and repeats that write one section per item. The view becomes a sections view sections: [{for_each_from: {areas: true}, section: {...}}]
badges list Badges as written, and repeats that write one badge per item badges: [{for_each_from: {domain: person}, badge: {...}}]
variables mapping, or a list Values every repeat gets, underneath its own. Sections and badges written out as they are do not get them variables: {floor: ground_floor}
decluttering_defaults mapping, or a list View values for the templated cards, as on any view decluttering_defaults: {colour: amber}
decluttering_let (v2.0.0+) mapping, or a list View let values, as on any view decluttering_let: {room_slug: '[[room|slug]]'}
anything else   Passed to the view: title, path, max_columns, background… max_columns: 3
views:
  - title: Rooms
    strategy:
      type: custom:decluttering-card-plus
      max_columns: 3
      sections:
        - for_each_from:
            areas: true
          section:
            type: grid
            cards:
              - type: heading
                heading: '[[area]]'
              - type: custom:decluttering-card-plus
                template: room_lights

The section strategy (v2.9.0+)

On one section of a sections view, strategy: with type: custom:decluttering-card-plus writes that section: a card built from a template, or a section written out with its placeholders filled. Home Assistant 2026.11 lists it under Community sections when a section is added. See Repeating Sections and Badges.

Key Type What it does Example
type text custom:decluttering-card-plus  
template text The section is one custom:decluttering-card-plus card built from this template. A group: template lays its cards out across the section; a card template gives a section of one card template: room_section
variables mapping, or a list With template, the card’s variables. With section, the values its placeholders are filled from variables: {area: Kitchen}
anything a card takes   With template, carried onto the card as written: a repeat, on_error, strict, grid_options… for_each_from: {area: Kitchen}
section mapping In place of template: the section as written, placeholders filled from variables once, and templated cards in it handed those values. Without type it is a grid. Written again when the entity, device, area or floor registry changes section: {cards: [...]}

Nothing here repeats: Home Assistant asks a section strategy for one section, so a section per item is the view strategy’s job.

views:
  - title: Rooms
    type: sections
    sections:
      - strategy:
          type: custom:decluttering-card-plus
          template: room_section
          variables:
            - area: Living Room
            - temperature: sensor.living_room_temperature
      - strategy:
          type: custom:decluttering-card-plus
          variables:
            - area: Bedroom
          section:
            cards:
              - type: heading
                heading: '[[area]]'
              - type: custom:decluttering-card-plus
                template: light_tile
                for_each_from:
                  area: '[[area]]'
                  domain: light

The dashboard strategy (v2.0.0+)

On a dashboard, strategy: with type: custom:decluttering-card-plus writes the views, repeating some of them. See Repeating Sections and Badges.

Key Type What it does Example
type text custom:decluttering-card-plus  
views list Views as written, and repeats (for_each or for_each_from with view:) that write one view per item views: [{for_each_from: {areas: true}, view: {...}}]
variables mapping, or a list Values for every repeated view; also fill the views written out and the other root keys (v2.3.0+) variables: {house: The Old Barn}
decluttering_*   Copied to the dashboard as written: templates, defaults, let, declarations, borrowing decluttering_templates: {...}
anything else   Copied to the dashboard’s root, filled with variables (v2.3.0+) title: '[[house]]'
page / decluttering_page (v2.9.0+) {template, variables} Build the whole dashboard from a page template. See Page Templates page: {template: house_page}

Host classes

Classes on the element wrapping the card, for use in style. See Styling.

Class On
decluttering-container card, row and element templates
decluttering-badge badge templates
decluttering-card card templates only
decluttering-fit-contents (v1.1.0+) a card set to fit: contents
child-card-hidden a card whose wrapped card has hidden itself (its own visibility, or a conditional)
decluttering-report (v2.0.0+) a card showing debug: report
decluttering-many (v2.9.0+) a row or picture element entry that repeats: the rows or elements it built take the slot and the wrapper has no box of its own

A card still on its way draws a skeleton whose look a theme can set with --decluttering-skeleton-color and --decluttering-skeleton-animation (v2.9.0+). See Styling.

style: |
  :host(.child-card-hidden) { display: none; }

custom:decluttering-card-plus-health-card (v2.9.0+)

Works as a card or as a view badge. See The Health Card and Badge.

Key Default Description
dashboards this all checks every dashboard
show all missing, unset, deprecated, as a list or separated by commas
limit 5 Entries listed
hide_when_clean false Hide while there is nothing to look at; always shown in edit mode
title Template health Heading

Registered card types

Type Purpose
custom:decluttering-card-plus Uses a template. In the card picker and the badge picker
custom:decluttering-template-plus Defines a template
custom:decluttering-card-plus-group (v1.14.0+) What a group: template builds; you never need to write it
custom:decluttering-card-plus-health-card (v2.9.0+) The health card, in the card picker and the badge picker
custom:decluttering-card Alias, registered only when the original card is not installed
custom:decluttering-template Alias, likewise

A template with publish: also gets an entry of its own in the picker, which inserts an ordinary custom:decluttering-card-plus card. The same resource registers the view strategy (v1.11.0+), the dashboard strategy (v2.0.0+) and the section strategy (v2.9.0+), all as custom:decluttering-card-plus. See Migrating from decluttering-card.


Error messages

Shown in place of what the card builds. From v2.9.0 that is the card’s own error card, which names the template and the line that failed and keeps the message under Details; a row, a badge or a picture element shows the plain red alert. Set on_error to show something else instead.

Message Meaning
Missing template object in your config The card has no template: (and no template_by_domain:)
Missing template property A template card has no template: name
You must define one card, badge, element, or row in the template The template has no content key, or its content is at the wrong level
This template defines both "…" and "…". A template can only define one of card, badge, element or row. The template has two content keys
group: needs a list of cards, written under cards: A group: template without its cards
The template "…" doesn't exist in decluttering_templates or in a custom:decluttering-template card. No template of that name. A near miss adds Did you mean “…”?
… or on any dashboard listed in decluttering_templates_from. The same, when borrowing is set up
Could not resolve the template "…": … Something unexpected went wrong while gathering the templates; the text after the colon says what. A borrowed dashboard that cannot be read is not this: the console says could not read the dashboard "…", and the card reports the template as missing
Could not retrieve the lovelace configuration. The card could not read the dashboard. See Troubleshooting
for_each needs a template that defines a card. … A repeat of a badge, row or element template
A repeated card can only build cards, but template_by_domain picked "…", which builds a … (v2.0.0+) A repeat’s template_by_domain picked a non-card template
No template for the domain "…" in template_by_domain, and no default: or template: to fall back on. (v2.0.0+) template_by_domain met a domain it has no entry for
This variable has no value: … / These variables have no value: … (v1.2.0+) strict: true, or errors: fail, and a placeholder nothing fills. The error card shows the line, name: ← (unset) has no value (v2.9.0+)
The template "…" uses itself (…), which would never finish. (v1.2.0+) A template that contains itself. See Troubleshooting
These templates use each other in a loop (…) (v1.2.0+) Two or more templates containing each other
Templates are nested more than 25 deep (…) (v1.2.0+) Templates inside templates, too deep
The card this builds needs …, which is not installed or has not loaded. (v2.0.0+) A custom card the template uses is missing. The error card shows the line, type: custom:… ← not registered (v2.9.0+; before that, Home Assistant’s own error)
A check stopped this card being built: … (v2.9.0+) A failed error check, with continue_rendering: false or under strict: failing on errors. See Troubleshooting

Console warnings

In the browser’s developer tools, each starting decluttering-card-plus:. None of them stops the card.

Warning Meaning
… uses [[…]], which nothing gives a value to … A placeholder no variable or default fills, so it is shown as written. See Troubleshooting
left [[…]] (…) in the card rather than substituting. A step could not do its job: the value was the wrong shape, Home Assistant had nothing, an if: did not hold. The reason is in the brackets
gave up substituting variables after 10 passes. A variable refers to itself. From v2.11.0 the warning reads template "…" could not fill in [[…]] and names the variable or the loop. See Troubleshooting
could not read the dashboard "…" A dashboard in decluttering_templates_from is missing or unreadable; a card needing a template from it then reports the template as missing
<…> is already registered by something else, skipping it. Another card owns that type, usually the original decluttering-card
the template "…" is deprecated A card uses a template marked deprecated
… Showing this card's on_error: instead. The card could not be built, and on_error took over. The message says why
a card built by "…" refused its config: … (v2.12.0+) The template built fine, but a card in what it built would not take its config, so Home Assistant shows its Configuration error card there. The type of the card and its message follow. See Troubleshooting
this card's card: block is ignored - the template "…" builds a … An override block that does not match the template’s kind
… lists … in rebuild_on:, which is not an entity id Something in rebuild_on that is not an entity
… asks for the state, or an attribute, of an entity this card does not list in rebuild_on: |state or |attr: on an entity missing from rebuild_on
the template "…" is being repeated … times on one card More than 50 copies; consider lazy: true
the variable … says type: …, which is not a type this card knows A declaration with an unknown type:
the for_each_from template "…" could not be rendered / … which is not a list A Jinja template: source failed
|… works on numbers / needs a number after the colon A sum on something that is not a number
… uses […], but there is no item template called … here (v2.6.0+) A with: or repeat: names an item template that does not exist. See Troubleshooting
… is built from other values more than 8 deep, so it was used part-built An if: reads a variable built from a chain of other variables more than 8 links long
a check on template "…" failed: … (v2.9.0+) A warn or error check failed; info checks log as information
|… works on a date / a colour / numbers, but was given "…" (v2.9.0+) A time, colour, plural: or format_number step was given something it cannot read, so the value is left as it was