Decluttering Card Plus Contents ↓ GitHub ↗

Troubleshooting

Work down the list — the first two fix most things.


The card does not appear at all

“Custom element doesn’t exist: decluttering-card-plus”

  1. Hard refresh. Ctrl+Shift+R, or Cmd+Shift+R on a Mac. Browsers cache dashboard resources aggressively and this is the single most common cause.
  2. Check the resource is registered. Settings → Dashboards → ⋮ → Resources. There should be an entry for decluttering-card-plus.js with type JavaScript module.
  3. Check the file is actually served. Open the resource URL directly — e.g. http://homeassistant.local:8123/local/decluttering-card-plus.js. You should get JavaScript, not a 404.
    • A 404 for a /local/ URL usually means config/www did not exist when Home Assistant started. Restart Home Assistant.
  4. Check the console (F12). The card announces itself on load:
     DECLUTTERING-CARD-PLUS
       Version …
    

    If that line is missing, the file is not being loaded at all.

The general Lovelace plugin guide is also worth a read: Troubleshooting Lovelace plugins.


[[something]] appears on the card

A placeholder with no value is left in place, so you see the literal text — or Home Assistant complains about an unknown entity called [[light]].

A card showing a raw placeholder where the room name should be

[[light]] was given a value and [[room]] was not, so the room name is still the placeholder. Here the instance passed Room, and the template asks for room.

Causes, in order of likelihood:

  1. Typo. The name in the template and the name in variables must match exactly, and they are case sensitive. [[Light]] ≠ [[light]].
  2. No default and nothing passed. Add it to the template’s default.
  3. A word after the bar that is not a step. |slug, |upper, |lower, |title, |kebab, |trim and |capitalize are steps, as are |replace:, |prefix:, |suffix:, |max: and |map: with an argument. Anything else after the bar is not recognised, and nothing is substituted — one unknown word leaves the whole placeholder alone rather than applying half the chain. See Variables, and every step on Placeholder Reference. From v2.0.0 the template editor says so while you write, with the step you probably meant.
  4. A with: or repeat: naming an item template that is not there (v2.6.0+ says so). [[camera_entri|with:camera=…]], with the template called camera_entry, is left as written. The console now says *… uses [[camera_entri with:…]], but there is no item template called camera_entri here*, and debug: console shows the same reason against that placeholder. Check the name, that the template has an item: body rather than card:, and that it is in this dashboard’s decluttering_templates. See List Entries. Before v2.6.0 it said only that nothing gave the placeholder a value.

Let the editor tell you. If the template describes its variables, the card editor names the ones with no value and no default, and the ones you have set that the template never reads — which catches both the typo and the missing value before you go looking.

Seeing [[light]] with “Unknown entity selected” inside the template editor is expected — that editor is looking at the raw template. See Visual Editors.


An attr: placeholder shows its brackets after updating (v2.9.0+)

![A card with the sunset line filled in, and the sunrise and sun lines still in brackets: [[sun.sun attr:next_rising format:h:mm a]] and the rest](/decluttering-card-plus/images/v290-attr-unlisted.png)

Only sensor.sun_next_setting is in this card’s rebuild_on, so everything reading sun.sun keeps its brackets.

From v2.9.0, |attr: reads an attribute only of an entity the card lists in rebuild_on:, the way |state always has, and the card builds again when that attribute changes. A template that used attr: on any entity before shows the brackets instead, and the console says:

decluttering-card-plus: [[sun.sun|attr:next_rising|format:h:mm a]] asks for the state, or an attribute, of an entity this card does not list in rebuild_on:, so it is rendered as written. List the entity in rebuild_on: on the card, and the card builds again whenever its state changes.

Add the entity to the card, one line, or to the list if it already has one:

rebuild_on:
  - sensor.sun_next_setting
  - sun.sun

In the card editor the field is Rebuild when these change, under Advanced. When the placeholder names the entity itself, as [[sun.sun|attr:next_rising]] does, the editor points at the field; when a variable holds the entity id, only the console says so. The same goes for the two new steps |last_changed and |last_updated. A default: after the step does not cover the brackets up, on purpose: an attribute read once and never again would be wrong without anyone noticing. See Attributes follow the same rule.


A repeat: with an if: after it gives an empty list (v2.10.0+)

Before v2.10.0 nothing but |flat could follow a repeat:, so [[row|repeat:detections|if:show_detections]] was refused and stayed on the card as written. From v2.10.0 an if: after a repeat: is read for each entry, to keep only some of them. A name the entries do not carry, such as show_detections set on the card, is read from the card instead, so it is the same for every entry: when it does not hold, every entry is left out and the list is empty, with no message.

To keep only some entries, give each entry the value the condition reads. To build the whole list or nothing, put the condition before the repeat:, and add ? so the placeholder drops out when it does not hold:

entities:
  - '[[row|if:show_detections|repeat:detections?]]'

See Keeping only some copies.


A template used as a step called entries or registry stopped working (v2.10.0+)

entries and registry are built-in step names from v2.10.0, for reading a mapping one way or the other. A built-in step always wins over a template used as a step, so a template with either name is no longer called, the placeholder is left as written, and the console says:

The template entries has the name of a built-in step, so it is not used as a step. Give it another name to call it as one.

Rename the template, and the placeholders that call it.


Copies that used to show are left out (v2.10.0+)

From v2.10.0 a condition (if:, unless:, show_if, hide_if, a check) that reads a value which is still a whole placeholder, because nothing filled it in, counts it as not set. Before, the placeholder’s text counted as a yes. So an item template like this one, whose on is filled only when the if: inside it holds, now keeps only the copies it means to:

gated:
  default:
    - on: '[[lights|if:lights=2]]'
  item: '[[name|if:on?]]'

If copies disappear after updating, a condition is reading a value that was never filled in. debug: report shows what each variable worked out to. See Copies that leave themselves out.


“Configuration error” on a card the template builds (v2.12.0+)

Home Assistant's error card outside edit mode with show_card_errors: true, saying Configuration error and Specify an entity

The template built, but a card in what it built refused its config, and Home Assistant shows its own error card in that card’s place. It only says what was wrong while the dashboard is being edited; the rest of the time it reads Configuration error and nothing more, and for a user who is not an admin not even that.

To find out why without opening the editor:

type: custom:decluttering-card-plus
template: camera_tile
show_card_errors: true

Put it on the template to turn it on for every card using it; a card’s own show_card_errors: false turns it off again. It is also a switch in the card editor’s Advanced section. Everyone who can see the dashboard sees the message, admin or not, so leave it off where the config holds something you would rather not show.


“The template … doesn’t exist”

The name could not be found on this dashboard.

The card editor showing "No template exists with this name" under the template field

The editor says so under the template field, and the preview gives the name it looked for. On the dashboard the error card *(v2.9.0+) says the same, with the nearest name and, in edit mode, a button to use it.*


“You must define one card, badge, element, or row in the template”

A template must contain exactly one of card, badge, row, element or group. There are two messages, one for each way of getting that wrong.

None of them. Usually the content is at the wrong level, straight under the template’s name instead of under card::

# ❌ "You must define one card, badge, element, or row in the template"
my_template:
  type: tile
  entity: sensor.hallway_temperature

The same message appears when a card uses an item template - one written with item: - directly. Item templates are only used through [[name|with:…]] and [[name|repeat:…]].

Two of them (v1.2.0+). The card names the two it found:

# ❌ This template defines both "card" and "row". A template can only define one of
#    card, badge, element or row.
my_template:
  card:
    type: tile
    entity: sensor.hallway_temperature
  row:
    entity: sensor.hallway_temperature

Split it into two templates, one for each kind. Neither message mentions group, but a group: counts as the template’s one thing too.

# ✅
my_template:
  card:
    type: tile
    entity: sensor.hallway_temperature

“The list of variables must be an array of key and value pairs”

This card does not show that message any more: variables: and default: can be a list (- name: value) or a plain mapping, and both are read the same.

variables:
  - light: light.kitchen_ceiling
  - room: Kitchen
variables:
  light: light.kitchen_ceiling
  room: Kitchen

What does go wrong is indentation. If the entries are not indented under variables:, YAML reads variables: as empty and the names as options on the card itself, so the template gets no values and you see [[light]] on the card:

# ❌ variables: is empty, and light: and room: belong to the card
variables:
light: light.kitchen_ceiling
room: Kitchen

The card editor flags this one, because an empty variables: is not a list or a mapping: Variables must be a list of key and value pairs, or a mapping of them. It says the same for variables: written as plain text.

An entry that is not a name: value pair is skipped without a word. A missing space after the colon is the usual cause, because YAML then reads the whole line as one piece of text:

variables:
  - light:light.kitchen_ceiling     # ❌ text, not a pair - skipped
  - light: light.kitchen_ceiling    # ✅

Invalid YAML around a variable

entity: [[light]]      # ❌
entity: '[[light]]'    # ✅

A [ at the start of a value begins a YAML list, so an unquoted placeholder that is the whole value is a syntax error. Inside a longer string it is fine unquoted.


A number is being treated as text

Make sure the placeholder is the entire value:

card:
  type: tile
  grid_options:
    columns: '[[cols]]'        # ✅ whole value - stays a number
card:
  type: tile
  grid_options:
    columns: 'col-[[cols]]'    # ❌ part of a string - becomes text

See Variables.


My CSS does nothing

Almost always because the selector cannot cross a shadow boundary.

style: |
  ha-card { border: 2px solid red; }       # ❌ never matches
style: |
  :host {
    --ha-card-border-color: red;
    --ha-card-border-width: 2px;
  }                                        # ✅

Style Home Assistant cards through CSS custom properties. Full explanation and a table of what does and does not reach the card: Styling.


Changes to a borrowed template are not showing

Borrowed dashboards are read once per page load and cached. After editing a template on the source dashboard, refresh the browser on the dashboards that borrow it.

See Sharing Templates Between Dashboards.


“gave up substituting variables after 10 passes”

(v2.11.0+) The warning names the template and the placeholders it could not fill, and says why:

decluttering-card-plus: template "room" could not fill in [[a]]. [[a]] refers to itself, so it never ends. Give it a value that does not use itself.
decluttering-card-plus: template "room" could not fill in [[a]], [[b]]. [[a]] → [[b]] → [[a]] leads back to itself, so it never ends. Give one of them a value that does not lead back.

If no variable loops but each value brings in another more than 10 deep, it says so instead. List the chain in the order it is used, or shorten it. Before v2.11.0 the warning only said it gave up after 10 passes.

A variable refers to itself, directly or through a chain:

default:
  - name: '[[name]] light'     # ❌ refers to itself
default:
  - a: '[[b]]'
  - b: '[[a]]'                 # ❌ cycle

Break the loop by introducing a separate name:

default:
  - label: '[[name]] light'    # ✅
  - name: Kitchen

“… is already registered by something else, skipping it”

Another card owns that type — normally the original decluttering-card running alongside this one. Everything still works, but you are getting the other card’s behaviour for custom:decluttering-card. Remove the original: see Migrating from decluttering-card.


“Could not retrieve the lovelace configuration.”

The card could not find the dashboard configuration to read templates from. This happens where there is no normal Lovelace dashboard around the card — some kiosk and embedding setups, for example. Casting is handled.


A templated card is the wrong size in a sections view

Set grid_options inside the template’s card. The card reports the wrapped card’s options to the layout, so they belong with the card they describe. See Cards.

A grid_options on the custom:decluttering-card-plus card, or beside card: at the top of the template, works too and wins over the wrapped card’s, but it is taken as written: placeholders in it are not filled. If the size comes from a variable, put it inside card:. See Styling.

Before v1.10.0, cards that should have sat side by side could come out full width, every other one in a section of tiles. The layout sometimes asked for the size before the card had one. Update rather than setting grid_options on every card to work around it.


A picture-elements marker is in the wrong place

Positioning (top, left) goes on the instance, in the elements: list. Appearance goes in the template. Both are called style, which is confusing — Elements has a table.

Remember that Picture Elements positions by the top-left corner. Add transform: translate(-50%, -50%) to centre on the point.


for_each renders nothing, or refuses

Symptom Cause
Nothing renders, no error The list is empty. That is deliberate — an empty for_each renders nothing rather than failing
for_each needs a template that defines a card The template defines a row, badge or element. Only cards can be stacked
Every copy looks the same The items are not overriding what you think. A value in the card’s own variables: is shared; an item’s own value wins over it
The copies are stacked, not side by side columns is absent or 1
Nothing renders, and the template declares a variable required: true Every copy was left out because that variable had no value in it. Copies missing a required value are dropped on purpose; check the name each item uses

With for_each_from, a filter that matches nothing is the usual cause. The card editor counts what it matches as you type, which is the quickest way to tell. The less obvious causes:

Symptom Cause
One card with [[name]] brackets, not a copy per thing for_each_from has no source or filter in it, only keys that shape a repeat, such as group_by, sort, limit or require. With nothing to repeat over it is not a repeat at all, and the template is built once. Add a source, such as entities: true or domain: light
An entity you can see in Home Assistant is missing It is hidden, or it is a diagnostic or config entity. Those are left out of a sweep since v2.0.0; see Hidden, diagnostic and config entities. Writing its id out in full always keeps it
A category: filter matches nothing for a moment Categories are read from Home Assistant the first time a card asks, so nothing matches until they arrive. The card builds again when they do
A template: source renders nothing, and the console says …rendered …, which is not a list, so it repeats nothing The Jinja template gave text or a single value. End it with | list. If the console says could not be rendered, the Jinja itself has an error; try it in Developer tools → Template
group_by: gives nothing Its value is not one of domain, area, floor or label. Anything else gives no groups
Fewer copies than matches require: names a value some copies do not have, or limit: cuts the list
A views: source gives nothing in a dashboard strategy The dashboard strategy builds the views, so there are none yet to repeat over. Use views: in a card, or list the views with for_each
A [[row|repeat:my_map]] over a mapping of your own gives nothing The mapping has a key a registry source reads, such as floor, area or label, so it is read as a source (v2.10.0+). Add |entries after the repeat. The template editor and the command-line lint warn about it
The console says … is not a list, a mapping or a registry source The variable after repeat: holds text or a number. Before v2.10.0 this read … is not a list or a registry source
The console says repeat: can only be followed by if:, unless:, flat, entries or registry, or with: can only be followed by if: or unless: Another step follows the repeat: or with:, such as |upper or |default:. Before v2.10.0 this read … has to be the only step in its chain

The full list is in Repeat Reference. If an empty: card is set, it is what you see in every case here but the first.

See Repeating a Template.


A variable is set but nothing uses it

The card editor says “This variable is set here but never used by the template”.

The template does not contain [[that_name]] anywhere that gets substituted. Usually a typo, or a leftover from an older version of the template. It is a warning, not an error — an unused value does no harm beyond the confusion.

The mirror image, “This variable is declared but never used in the template”, appears in the template editor for a declaration with no matching placeholder.

Note that a placeholder sitting inside the value of a variable nothing refers to is never substituted, so it does not count as used. See Describing Variables.

To find every card on the dashboard doing this, open a template card’s editor and look at Dashboard health on the Where used tab (Variables nothing reads, v2.0.0+). If the name changed in the template, Rename a variable changes it in the cards too.


The tab stops responding when a dashboard loads (v1.2.0+)

A template whose card uses that same template has no natural end: every level builds the next one before any of them reach the page, so nothing in the layout ever gets the chance to stop it.

From v1.2.0 the card refuses instead, and names the path round the loop:

The template “room_tile” uses itself (room_tile → room_tile), which would never finish. A template cannot contain a card that uses it.

These templates use each other in a loop (a → b → a), which would never finish. One of them has to stop using the next.

The fix is always the same: one of them has to stop calling the next. If you meant to nest a different template, check the name — it is easy to paste a card and forget to change it.

A chain that never comes back round but goes on and on is stopped too, at 25 levels, with the first three names in it:

Templates are nested more than 25 deep (a → b → c → …), which is deeper than anything is meant to go. Check whether a template ends up using itself.

No real dashboard nests that deep, so treat it as a loop and look for the template that ends up using itself.

On an older version, the only way out is to edit the dashboard’s YAML somewhere other than that tab: another device, the file editor, or the raw configuration editor reached before the view loads.

“Did you mean …?” (v1.2.0+)

A template name that does not exist now offers the closest one that does:

The template “room_tiel” doesn’t exist … Did you mean “room_tile”?

Usually that is a typo, or a template that was renamed. If the name you wanted is on another dashboard, list that dashboard in decluttering_templates_from. From v2.9.0 the error card on the dashboard makes the same offer, and in edit mode an administrator gets a Use room_tile button that rewrites the card.

Working out what a card actually built (v1.2.0+)

The card editor’s What it builds view (Result before v2.5.0) shows this, but not when the card only misbehaves on a phone, or in a view whose editor is awkward to reach. debug: true puts it on the dashboard, as JSON, instead of the card:

type: custom:decluttering-card-plus
template: room_tile
variables:
  - entity: light.hall
debug: true

A card showing the configuration it built instead of the card

Anything still written as [[name]] there is a variable nothing gave a value to.

As YAML: debug: yaml (v1.13.0+)

debug: yaml shows the same thing as YAML, which is easier to hold up against a card you know works, or to paste straight back into a dashboard:

type: custom:decluttering-card-plus
template: room_tile
variables:
  - light: light.living_room
  - room: Lounge
  - control: toggle
debug: yaml

A card showing the configuration it built as YAML

The text can be selected and copied out of any card now, including one inside a card that handles taps itself, such as button-card. On a picture element the debug view covers the card from its top-left corner and scrolls, rather than being cut off by the card around it.

In the browser console: debug: console (v1.13.0+)

debug: console leaves the card looking as it should and writes how it was built to the browser console instead. Open the developer tools (F12) and look for a collapsed decluttering-card-plus: entry. It lists:

A template card nested inside logs an entry of its own, labelled with the templates it sits in, so you can see what each level was given. This one is a tile inside a room_stack template, handed its room and icon with inherit_variables:

▸ decluttering-card-plus: "light_tile" built in 0.4 ms (inside room_stack)
    Variables, and where each came from:
      light   light.living_room   this card
      room    Living Room         handed down
      icon    mdi:sofa            handed down
    Placeholders, and what each became:
      [[light]]        light.living_room
      [[room|upper]]   LIVING ROOM
      [[icon]]         mdi:sofa
      [[control?]]     nothing, so the option is taken out
    Taken out because a variable was empty: features[0].type ([[control?]] was empty), …
    Built: {"type":"tile","entity":"light.living_room","name":"LIVING ROOM","icon":"mdi:sofa"}

The time covers building the config, not Home Assistant drawing the card afterwards.

Telling cards apart: name: (v1.14.0+)

Ten cards from one template all log under its name. A card or its template can have a name:, filled in with the card’s own variables; a card’s beats its template’s. A card nested in a logging card also says where it sits. With name: '[[camera]]' on a camera template and name: '[[ele_name]] button' on the ele_button elements inside it:

decluttering-card-plus: "back_yard" [camera] built in 0.1 ms
decluttering-card-plus: "but1 button" [ele_button] built in 0.2 ms (inside "back_yard" [camera], at elements[0])
decluttering-card-plus: "but2 button" [ele_button] built in 0.1 ms (inside "back_yard" [camera], at elements[1])
decluttering-card-plus: "back_yard" [camera] in full, with the cards inside it built

The whole card at once (v1.14.0+)

Each nested card builds after the card around it, once Home Assistant creates it, so the outer entry shows its nested cards as the decluttering cards they are. The outermost card waits for them and then logs one more entry, the last line above, with every nested card replaced by what it built. A nested card that never builds - hidden, not shown yet, or in error - is left as written and listed underneath, after a few seconds.

debug: true and debug: yaml log too, on top of showing what was built on the card. Nothing inside a card showing its debug view is built, so those log only the one level.

A nested card with a debug: of its own, even debug: false, goes by its own setting rather than the outer card’s. debug: false on one noisy card inside a big one keeps it out of the log.

To send to someone else: debug: report (v2.0.0+)

The console entries read well in the developer tools and badly anywhere else, so asking for help used to mean screenshots of collapsed objects. debug: report leaves the card looking as it should, logs the same as debug: console, and adds a panel underneath holding all of it as one Markdown text, with Copy and Download buttons, ready to paste into an issue or a forum post:

type: custom:decluttering-card-plus
template: door_camera
variables:
  - light: light.hallway
  - title: Front door
  - snapshot_url: http://admin:hunter22@192.168.1.40/snapshot.jpg?token=9f8e7d6c5b4a
  - stream_url: https://my-house.duckdns.org:8443/front
debug: report

It starts with the versions of the card, Home Assistant and your browser, then what the card ended up as, then each build folded away under its own heading, with the template as written, its variables, placeholders, warnings and result, the cards inside it included. If strict: refuses the card, the reason comes first. Put it on the outermost card: a card inside it is in its report already.

A card inside that takes a while to build, such as a camera card waiting on its stream, is filled in when it arrives (v2.3.1+): the report updates itself rather than showing the card still unbuilt. Passwords, tokens, codes, pins, Authorization headers, coordinates, webhook paths and MAC addresses are taken out before it is shown, but read it before you post it anyway.

Each with: and repeat: fill gets a section of its own (v2.3.2+), under the build it belongs to: the item template’s values as they ended up, and its own placeholders, with fills inside fills nested below. debug: console logs the same.

Failed checks (v2.9.0+)

The debug report opened under a tile saying Entity not found, with Failed checks at the top listing the error There is no sensor.bathroom_temperature in Home Assistant, check "No sensor" on "room_temperature"

A template with checks: lists the ones that failed for this card under Failed checks, at the top of the report and above the warnings, each with its level, its message, and which check on which template said it. Failed info checks are not listed; they are only notes in the console.

A failed error check opens the report under the card by itself, without debug: report, unless the template has an alert: to show instead. Fix what the check names and the report goes again with it.

What each variable worked out to (v2.7.0+)

![The variables table in a debug report, with the columns worked out to and how: fr_low_id written as [[fr_name]]_sub works out to frontporch_sub, through [[fr_name]] and [[fr_camera object_id]]](/decluttering-card-plus/images/v270-report-worked.png)

The variables table used to show each value only as it was written, and the placeholder table went one step at a time. A name built from names built from names meant joining rows up by hand to find out what it ended as. Each variable now has two more columns. worked out to is its final value, and how is the chain of placeholders that got it there, each one followed to the end before the next:

variable value worked out to how
fr_low_id [[fr_name]]_sub frontporch_sub [[fr_name]] → [[fr_camera|object_id]]; [[fr_camera|object_id]] → frontporch
unused_zone [[zone?]] (nothing) [[zone?]] → nothing, so the option is taken out

Every variable is worked out, including ones the card never shows. A value that comes to nothing says (nothing), and its step says why. An item template’s values get the same two columns, from what that fill had. A variable named like a secret is redacted in both columns, as everywhere else in the report.

Reading it on the card (v2.1.0+)

The debug report opened on the card, formatted: the versions table, then the card as built

The camera card above, with Show the report opened.

Show the report opens it on the card formatted, the way GitHub shows it once it is pasted into an issue: the versions as a table, and the card as built straight under them, open. Each build after that is folded, so the report stays short until you want the detail; click one to open it. Show the Markdown switches to the text that Copy and Download give you, and Show it formatted switches back.

Before v2.1.0 the report started with each template as written and the end result was at the bottom. Now the first thing anyone reading it sees is the card that was actually built, which is usually what the question is about.

Passwords, tokens, IP addresses, email addresses and hosts that could be recognised are replaced before the text is shown: the value of any variable named like a secret (password, api_token, client_secret, webhook_id and the like) wherever it turns up, secret-looking keys in the configs, credentials and hosts in URLs, and the common token formats. It cannot know every shape a secret takes, and entity ids, names and everything else are left as they are, because they are usually what the problem is about, so read it through before you post it.

What was taken out (v2.1.0+)

![The end of the card as built, with and @ in the URLs, and the build below it folded](/decluttering-card-plus/images/v210-debug-report-folded.png)

The as-built card, with the address and the stream’s host taken out, and the build folded under it.

Each value that is taken out is marked with what it was, so the report still makes sense to whoever reads it: <redacted-ip> for an IP address, <redacted-host> for a host name, <redacted-email> for an email address, <redacted-token> for something in a known token format, and <redacted-credentials> for the user name and password in a URL. A secret value, or the value of a variable named like one, is plain <redacted>. A URL keeps its shape, so http://<redacted-credentials>@<redacted-ip>/snapshot.jpg still says the camera wants a login and an address, which may be the whole problem.

Leaving everything in: redact: false (v2.1.0+)

The top of a report with redact: false, saying nothing has been taken out and not to post it anywhere public

When it is the real value you need to see, in your own report and for your own eyes, add redact: false beside debug: report:

type: custom:decluttering-card-plus
template: door_camera
debug: report
redact: false

Nothing is taken out, and the report says so at the top, in the panel and in the text itself, so a copy cannot be mistaken for a safe one later. Keep it to yourself, and take the line out again before you share a report with anyone.

(v2.9.0+) The panel lists every warning first, shows the report as a tree you can search, has a Try a placeholder box and a Copy as GitHub issue button: see Reading the Debug Report. A card that cannot be built shows an error card naming the line that failed: see Cards. The health card lists every such card on the dashboard.

Making the warnings stop a card instead (v1.2.0+)

strict: is a feature, not a fault, and it has a page of its own: Checks and Strict says what it refuses, what it reports, and where it can be written. This section is for when a card has refused and you want it back.

type: custom:decluttering-card-plus
template: room_tile
strict: true

A card refusing because a variable has no value

Any placeholder still unfilled once the card is built makes it refuse, naming them. From v2.9.0 that is the error card, with the line that failed, room: ← (unset) has no value, and in edit mode a Set room button; the full message is under Details:

This variable has no value: [[room]]. The card is set to strict, so it refuses rather than rendering the brackets.

With more than one, it starts These variables have no value: and lists them. Give each one a value on the card or a default in the template, or set an on_error: to show something else in its place.

If the card does not say strict: itself, something above it does (v2.9.0+): the template, beside its card:, or a decluttering_strict: on the section, the view or the dashboard. The nearest setting wins, and strict: false on the card opts it out of all of them. See where it can be written.

Unset variables are only refused on a single card. On a card with for_each or for_each_from they are not, and placeholders in style: are never checked, so a repeat with a missing value still renders its brackets. Use debug: console to find those.

(v2.9.0+) A failed error check refuses a card under strict: true too, a repeat included: one copy failing one refuses the whole card. Before v2.9.0 strict did nothing at all on a repeat.

“A check stopped this card being built” (v2.9.0+)

The error card: Could not build room_temperature. A check stopped this card being built: There is no sensor.bathroom_temperature in Home Assistant.

The template has checks:, and one at level: error failed with the values this card gave. The rest of the line is the check’s own message, which should say what to change, so start there. It turns up in one of two ways:

Either way, an on_error: on the card shows that instead, on_error: hide included.

“The template … is being repeated N times on one card” (v1.2.0+)

A console warning, not an error, given when one card builds 51 copies or more. It gives the real count:

decluttering-card-plus: the template “light_tile” is being repeated 64 times on one card. That is a lot to build and a lot to scroll - narrow what it repeats over, or add lazy: true so only the copies near the screen are built.

A registry sweep that matches half the house builds half the house, which reads as a broken dashboard rather than a big one. If it was not deliberate, narrow the repeat or put a limit on it. If it was, add lazy: true (v2.0.0+), which builds the first few copies at once and the rest as they come near the screen. With lazy: true already set the warning changes to say it is still a long way to scroll, and you can ignore it if that is what you want.

“The card this builds needs …, which is not installed or has not loaded” (v2.0.0+)

The template builds a custom: card, such as custom:mushroom-template-card, that is not installed, or whose resource has not loaded. The card waits two seconds for the resource, the same wait Home Assistant gives one, then shows the error card (v2.9.0+) with the line that failed, type: custom:mushroom-template-card ← not registered, and in edit mode an Open template button. Before v2.9.0 it was Home Assistant’s own red Custom element doesn’t exist card, the same as writing the card by hand. With on_error: set, the card shows that instead, and either way the console says why:

decluttering-card-plus: The card this builds needs custom:mushroom-template-card, which is not installed or has not loaded. Showing this card’s on_error: instead.

Install the card (from the Marketplace, or add its resource), then hard refresh. If the card turns up later, this one builds again by itself.

Still stuck

Open an issue at tempus2016/decluttering-card-plus/issues with: