---
title: "Failed integrations card and badge"
description: "A card with the integrations that failed to set up or keep retrying, why, and since when, with a reload button. And a badge with how many there are. Both gone when every integration is set up."
canonical_url: "https://spook.boo/failed-integrations-card"
---
# Failed integrations card and badge

> A card with the integrations that failed to set up or keep retrying, why, and since when, with a reload button. And a badge with how many there are. Both gone when every integration is set up.

Home Assistant shows an integration that failed to set up on its integrations page in **Settings**, and nowhere else. If you live on your dashboard, you find out when a light does not respond. This puts it where you look: the card lists the integrations in trouble, the badge counts them.

Both are gone when every integration is set up. They take no room on your dashboard, and turn up when something is wrong.

It needs [Spook on your dashboards](https://spook.boo/dashboards) switched on.

## The failed integrations card

One row per integration in trouble. With two of the same, like two bridges, one row for each, with the name you gave it. Per row:

- The integration's **icon and name**, the same as on its page in **Settings**.
- **What is wrong**: failed to set up, not ready and retrying, could not migrate its configuration, or failed to unload.
- **Since when**, like "3 hours ago". Left out where that cannot be told.
- **Why**, in the integration's own words, the same text its page in **Settings** shows. When it gave no reason, there is none here either: the logs have the rest.
- **Reload**, to try again now.

Select a row to open the integration in **Settings**. That is for administrators, like **Settings** itself.

### What shows, and when

A dashboard is not the place for things that sort themselves out. So:

- **Not ready, keeps retrying** shows once it has lasted 15 minutes. A device that is slow to answer after a restart, and loads a minute later, never shows. Home Assistant waits up to 10 minutes between tries, so by then it tried several times.
- **Failed to set up** and **Could not migrate its configuration** show after 15 minutes too. That leaves room for somebody who is still setting an integration up.
- **Failed to unload** shows right away. It does not sort itself out: only a restart of Home Assistant does.
- While Home Assistant starts, nothing shows. Every integration is on its way then.
- "Since when" counts over restarts. An integration that has been retrying for three days says three days after a restart, not a few minutes.
- While Home Assistant tries again, or after you select **Reload**, the row stays and says it is trying, instead of going and coming back.
- The moment an integration is set up, its row goes.

Left out, on purpose:

- An integration you **disabled**, or a discovery you **ignored**. Home Assistant never sets those up, so there is nothing wrong with them.
- An integration that asks you to **log in again**. That is a repair in Home Assistant, and it is on the [repairs card](https://spook.boo/repairs-card) already. Not twice.

Spook's happiness reads the same integrations the same way. It waits longer before a retry costs a point: a day, because a device that is off for an evening is no reason to be less happy. The card tells you sooner, because you want to know why a lamp does not answer today.

### Reload

Reload does what **Reload** in the menu of the integration's page in **Settings** does. The row says what came of it: working again, still not working, or that Home Assistant needs a restart to finish. A row that works again stays for a moment to say so, then goes.

There is no **Reload** for an integration that failed to unload or could not migrate its configuration. Home Assistant does not reload those: they need a restart.

### Adding it to a dashboard

1. Open the dashboard, and edit it.
2. Select **Add card**, and search for **Failed integrations (Spook)**.
3. Pick your options, and select **Save**.

While you edit the dashboard, the card is always there, so you can find it again. With nothing in trouble, it shows the ghost.

### Options

| Option | What it does |
| --- | --- |
| **Title** | Shown above the list. None if left empty. |
| **Stay when all is well** | Off, the card is not there at all while every integration is set up. On, it stays, with the ghost saying every integration is set up. |

### In YAML

```yaml
type: custom:spook-failed-integrations-card
title: Integrations
show_empty: false
```

| Key | Values | Default |
| --- | --- | --- |
| `title` | Any text | No title |
| `show_empty` | `true` or `false` | `false` |

## The failed integrations badge

A puzzle piece with how many integrations are in trouble. Gone at zero. Hover it to see which ones. The same integrations as the card, at the same moment.

There is nothing to select on the badge: the card is where you reload one.

Add it like any badge: edit the dashboard, select **Add badge**, and search for **Failed integrations (Spook)**. It has no options.

```yaml
type: custom:spook-failed-integrations-badge
```

## Who sees what

Everybody sees the card and the badge: Home Assistant shows every user its integrations and their state already.

**Reload** is for administrators only. Home Assistant refuses it to anybody else, so the button is not there for them. Neither is the way to **Settings**: only administrators can open it.

Do you want the card for administrators only? Use the **Visibility** tab of the card, and show it to the users you pick.

## Always up to date

The card and the badge follow your integrations as they fail and recover, without reloading the page. While Spook restarts or reloads, they are gone for a moment, and back once it is.


## Sitemap

See the full [sitemap](https://spook.boo/sitemap.md) for all pages.
