Repairs card and badge
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
- Open the dashboard, and edit it.
- Select Add card, and search for Repairs (Spook).
- 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
| Option | What it does |
|---|---|
| Title | Shown above the list. None if left empty. |
| Repairs | All repairs: everything in Settings, Repairs. Only Spook's: only what is under Spook there. |
| At most | Shows at most this many, the worst ones, with a link to the rest. All of them if left empty. |
| Stay when all is well | Off, 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
| Key | Values | Default |
|---|---|---|
title | Any text | No title |
issues | all or spook | all |
max_issues | A whole number | All of them |
show_empty | true or false | false |
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.
Area dimmer
A card feature for the area card and the tile card of a light group. One slider that dims the lights that are on, and leaves the lights that are off alone.
Text send
A card feature for the tile card. A text box with a send button, that sets a text, adds to a to-do list, sends a notification, or has a speaker announce it.
