Dashboards

Repairs card and badge

A card with what is wrong in your home, worst first, and a badge with how many repairs are open. Both gone when there is nothing to repair.

Home Assistant keeps a list of what needs your attention under Settings > System > Repairs. Integrations put things on it, Spook does too. This brings that list to a dashboard: the card shows the repairs, the badge counts them.

Both are gone when there is nothing to repair. They take no room on your dashboard, and turn up the moment something needs you.

It needs Spook on your dashboards switched on.

The repairs card

Every open repair, worst first: critical ones, then errors, then warnings. Per repair:

  • Its title, the way Home Assistant writes it in Settings, in your language.
  • How bad it is: Critical, Error or Warning.
  • How long ago it was raised, and by which integration.

Select a repair to open Repairs in Settings, where you fix it. Select Ignore to ignore it: the same as Ignore in Home Assistant's own Repairs, straight away, no questions. It moves to the ignored repairs in Settings, where you can take that back.

A card cannot open the dialog of one repair, or its fix: those are Home Assistant's own. So selecting one takes you to the list in Settings, with that repair on it.

Adding it to a dashboard

  1. Open the dashboard, and edit it.
  2. Select Add card, and search for Repairs (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 to repair, it shows the ghost.

Options

OptionWhat it does
TitleShown above the list. None if left empty.
RepairsAll repairs: everything in Settings, Repairs. Only Spook's: only what is under Spook there.
At mostShows at most this many, the worst ones, with a link to the rest. All of them if left empty.
Stay when all is wellOff, the card is not there at all while nothing needs repairing. On, it stays, with the ghost saying all is well.

Only Spook's includes the repairs you made yourself with the repairs.create action: Home Assistant files those under Spook too.

In YAML

type: custom:spook-repairs-card
title: Repairs
issues: all
max_issues: 5
show_empty: false
KeyValuesDefault
titleAny textNo title
issuesall or spookall
max_issuesA whole numberAll of them
show_emptytrue or falsefalse

The repairs badge

A wrench with how many repairs are open, red when one of them is critical or an error. Gone at zero. Select it to open Repairs in Settings.

Add it like any badge: edit the dashboard, select Add badge, and search for Repairs (Spook). Its one option is the same as the card's: All repairs, or Only Spook's.

type: custom:spook-repairs-badge
issues: spook

The card and the badge count the same repairs: an ignored one is not open, and counts for neither.

Who sees what

Dashboards are for everybody in your home, and Home Assistant lets everybody who can log in read the list of repairs. Fixing and ignoring is for administrators, the way Settings is.

So somebody who is not an administrator, like the account on a tablet on the kitchen wall, sees the repairs and the count. There is nothing for them to select: no Ignore, and no link to Settings, which they cannot open.

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 the list of repairs as it changes: a new repair turns up, a fixed one goes, without reloading the page. Home Assistant tells them something changed, and they read the list again. Nothing is asked over and over, so a dashboard that is open all day costs next to nothing. All cards and badges on a page share one subscription.

Home Assistant has a repairs card of its own, a tile with how many repairs there are. This one is for when you want to see what they are.