---
title: "Home Assistant"
description: "Spook tells you what piled up in Home Assistant itself, like customizations for entities that are gone, helpers whose sources are gone, and areas, floors, labels and blueprints nothing uses."
canonical_url: "https://spook.boo/homeassistant"
---
# Home Assistant

> Spook tells you what piled up in Home Assistant itself, like customizations for entities that are gone, helpers whose sources are gone, and areas, floors, labels and blueprints nothing uses.

`homeassistant` is the integration that is Home Assistant itself. It keeps the lists that everything else hangs off, which Home Assistant calls registries: the areas, floors, labels, devices and entities that give your configuration its shape, plus the `homeassistant:` section of your YAML.

An entry in those lists stays until something removes it, and almost nothing ever does. That is the right default. It is also why a Home Assistant that has been running for a few years collects things that refer to nothing: an area nobody uses, a label on nothing, a helper built on a sensor you threw out.

Spook finds that layer for you, and offers to clean it up.

## Devices & entities

Spook turns Home Assistant itself into a device, with buttons to reload and restart it and a set of counting sensors: your entities in total, one per entity type for a long list of types, and counts of things like areas, devices and integrations. Those are documented on [Devices & entities](https://spook.boo/devices-entities).

## Actions

Spook adds a large number of actions in the `homeassistant` domain. They are documented by subject, not all on one page. See [Areas management](https://spook.boo/areas), [Floors management](https://spook.boo/floors), [Label management](https://spook.boo/labels), [Device management](https://spook.boo/devices), [Entity management](https://spook.boo/entities), [Devices & entities](https://spook.boo/devices-entities), [User management](https://spook.boo/users) and [Miscellaneous](https://spook.boo/misc).

## Repairs

Spook looks through Home Assistant itself for things that point at nothing, or do nothing, and tells you in the repairs dashboard. New to repairs? Follow [Fix your first repair](https://spook.boo/fix-your-first-repair).

Some repairs are for broken things. Others are for tidying up. You can fix most of the tidiness issues from the repair itself. If Home Assistant cannot find an integration, the repair tells you how to deal with its entities yourself. Each of these repairs also offers to stop mentioning the issue. An empty area you keep on purpose is your business.

The tidiness repairs also hold off for a while, a day unless you change it, so setting something up and filling it in after lunch does not earn you a repair in between. A new area, floor or label is left alone for its first twenty-four hours, or the days you set on the **Settings** page of Spook's panel. A blueprint is judged by when its file was last touched, not by when it first appeared. That also spares one you just edited. A custom integration gets a week, or the days you set on the **Settings** page of Spook's panel.

An area on Spook's exclusion list, or with the **Excluded from Spook** label, gets no [Unknown area sensors](#unknown-area-sensors) or [Empty areas](#empty-areas) repair. [How that works](https://spook.boo/troubleshooting#excluded-from-spook).

### Unknown area sensors

An area uses a temperature or humidity sensor that no longer exists. Assist cannot answer "how warm is it in the kitchen?" anymore, and area cards lose their reading.

**How to fix it:** Select the repair. **Clear the setting** takes the missing sensor off the area, so you can pick a new one. It is only on offer for a sensor the repair marks as deleted, one Home Assistant removed. **Let me fix it myself** lets you pick another sensor in the settings of the area. **Keep it, stop telling me** leaves it as it is. If the sensor was renamed, the repair suggests the entity it most likely became. The repair disappears by itself once it is fixed.

**How Spook checks this**

An area can have a temperature and a humidity sensor of its own. That is where Assist gets the answer to "how warm is it in the kitchen?", and where area cards get their reading.

Home Assistant only checks that sensor when you pick it. Remove it, or rename its entity ID, and the area keeps pointing at something that is not there anymore. Spook checks each area's sensors against the entities Home Assistant knows, once it has started, so a sensor that is still loading is not mistaken for a missing one. If the sensor was renamed, the repair suggests the entity it most likely became.

Clearing only takes away a setting that points at a sensor Home Assistant deleted, so nothing that worked stops working. A button that removes something needs proof the entity was removed, and Spook only takes Home Assistant's own word for that: the entity registry keeps a record of every entity it deleted, for a month after nothing owns it any more. Something that is merely not there yet looks exactly like something that is gone: a YAML sensor without a unique ID whose integration is still starting, or an entity of an integration that is retrying its setup. Neither has a state, neither is in the registry, and Spook cannot tell them apart. So those are reported, and left for you to check.

### Unknown customized entities

The `customize:` section of your configuration names an entity that does not exist. That block of YAML does nothing at all.

**How to fix it:** Remove those entities from the `customize:` section of your configuration, and restart Home Assistant. The repair disappears by itself once it is fixed.

**How Spook checks this**

The `customize:` section of your configuration pins attributes onto a specific entity. That is how a sensor gets a friendly name or a different icon that its integration does not offer.

Spook checks the entity each customization names. If the entity does not exist, that block of YAML does nothing at all. Only exact entity keys are checked. Glob and domain customizations are patterns, not references, so they are left alone.

### Unknown helper sources

A helper is built on an entity that no longer exists: a threshold on a sensor that is gone, a utility meter on an energy reading that was replaced. Without its source, the helper cannot work.

**How to fix it:** Select the repair. **Remove this helper** deletes the helper for you, once Home Assistant deleted every source it is missing. **Let me fix it myself** sends you to the helpers page, to point it at another entity. **Keep it, stop telling me** leaves it as it is. The repair disappears by itself once it is fixed.

**How Spook checks this**

A number of helpers are built on top of another entity: a threshold on a sensor, a derivative on a counter, a utility meter on an energy reading. Spook knows which thirteen helper types store a source reference, and where each one keeps it. It reads that configuration, and raises a repair when a source is unknown to Home Assistant.

Groups and min/max helpers are handled elsewhere on purpose. Both have a repair of their own that can do more than report the problem.

Spook reads the configuration, not the running helper. So a helper whose entity failed to set up entirely is still checked, and that is the helper most likely to be broken. A helper set up in YAML has no such configuration to read: [Unknown YAML helper sources](#unknown-yaml-helper-sources) covers those.

Removing the helper deletes it outright, so Spook only offers it when every missing source is one Home Assistant deleted, or is stored as an entity registry ID that no longer leads anywhere: only a registered entity is ever given one. A helper with one deleted source and one that may just not be there yet keeps no button. A button that removes something needs proof the entity was removed, and Spook only takes Home Assistant's own word for that: the entity registry keeps a record of every entity it deleted, for a month after nothing owns it any more. Something that is merely not there yet looks exactly like something that is gone: a YAML sensor without a unique ID whose integration is still starting, or an entity of an integration that is retrying its setup. Neither has a state, neither is in the registry, and Spook cannot tell them apart. So those are reported, and left for you to check.

### Unknown YAML helper sources

A helper set up in YAML is built on an entity that no longer exists: a trend on a sensor that is gone, a utility meter on an energy reading that was replaced. Without its source, the helper cannot work.

**How to fix it:** Change the helper in your YAML configuration. Point it at an entity that exists, or remove the helper. Then restart Home Assistant, or reload the helper if it can be reloaded. Spook does not touch your YAML, so there is no button. The repair disappears by itself once it is fixed.

**How Spook checks this**

A helper made in the UI keeps its sources in its configuration, which [Unknown helper sources](#unknown-helper-sources) reads. A helper set up in YAML has none of that, so Spook asks the running helper instead which entities it is built on, and raises a repair when one is unknown to Home Assistant. That goes for these helpers: Bayesian, compensation, derivative, filter, generic hygrostat, generic thermostat, history stats, integral, min/max, mold indicator, statistics, threshold, trend and utility meter. Groups set up in YAML have [a repair of their own](https://spook.boo/group#unknown-source-entity).

Because Spook reads the running helper, a YAML helper that failed to set up entirely is not seen. Home Assistant tells you about that one itself, in its logs.

Something that is merely not there yet looks exactly like something that is gone: a YAML sensor without a unique ID whose integration is still starting, or an entity of an integration that is retrying its setup. So a repair can show up while Home Assistant is still starting. Spook looks again when an entity shows up, and the repair goes away by itself once the source is there.

### Unknown min/max helper members

A min/max helper combines entities that no longer exist. It carries on with the ones it has left, so the number it shows is based on less than you think.

**How to fix it:** Select the repair. **Remove the deleted members** drops the members the repair marks as deleted, ones Home Assistant removed, and the helper carries on with the rest. **Let me fix it myself** sends you to the helpers page. **Keep them, stop telling me** leaves them as they are. The repair disappears by itself once it is fixed.

**How Spook checks this**

A min/max helper combines several entities into one number. Spook reads its configuration and raises a repair when it names members that no longer exist.

A min/max helper needs at least two members, though. If removing the missing ones would leave fewer than that, Spook says so and sends you to the Helpers page instead.

A button that removes something needs proof the entity was removed, and Spook only takes Home Assistant's own word for that: the entity registry keeps a record of every entity it deleted, for a month after nothing owns it any more. Something that is merely not there yet looks exactly like something that is gone: a YAML sensor without a unique ID whose integration is still starting, or an entity of an integration that is retrying its setup. Neither has a state, neither is in the registry, and Spook cannot tell them apart. So those are reported, and left for you to check.

### Unknown entities in integration options

An integration names an entity in its options that Home Assistant deleted, or that was renamed: a light that Adaptive Lighting keeps adjusting, while it is not there anymore. The integration is not told, so it quietly stops doing what you set it up for.

**How to fix it:** Open the integration from the repair, select **Configure**, and pick the entities it should use now. If an entity was renamed, the repair names the entity it became. Spook does not change the options of another integration, so there is no button. The repair disappears by itself once it is fixed.

**How Spook checks this**

Many integrations keep entity IDs in their options. Nothing tells them when one of those entities is deleted or renamed, so the options point at something that is not there anymore.

Which text in an integration's options is an entity, Spook cannot know: every integration stores its options its own way. Something that looks like an entity ID may be one that is still on its way, or not be an entity at all. So Spook needs proof the entity is gone. It only reports one that Home Assistant deleted, from the record the entity registry keeps of every entity it deleted, for a month after nothing owns it any more, or one Spook saw being renamed. An entity ID that is simply missing is never reported here.

The helpers, groups, min/max helpers, HomeKit Bridge, proximity and templates are left out. They have repairs of their own that say more, like [Unknown helper sources](#unknown-helper-sources).

### Entities of an unknown integration

Home Assistant cannot find an integration that still has entities. Nothing provides them anymore, Home Assistant shows them as no longer provided, and keeps them until you remove them. Usually a custom integration taken out of `custom_components`, with its entities left behind.

**How to fix it:** Select the repair. It names the integration and lists its entities. Still using the integration? Install it again, or a version Home Assistant does not block, and restart Home Assistant. Done with it? Remove each entity under **Settings** > **Devices & services** > **Entities**: select it, open its settings, and select **Delete**. Spook does not remove them for you, so there is no button. The repair disappears by itself once the entities are gone, or the integration is back.

![The Entities of an unknown integration repair for garage_sensors, listing the three entities it left behind.](https://spook.boo/images/screenshots/en/light/repair-unknown-integration-entities.webp)

The repair names the integration Home Assistant cannot find, and what it left behind.

More entities to clean up? [Find and remove unavailable entities](https://spook.boo/remove-unavailable-entities) covers the rest.

**How Spook checks this**

Spook asks Home Assistant's loader for the integration of every entity that does not belong to an integration entry, and only reports the entities when the loader cannot find it. That happens when:

- The integration was removed from `custom_components`.
- Home Assistant blocks its version.
- Its manifest cannot be read.

For the last two, Home Assistant logs an error at every start. An integration that is there, but fails to set up, is found, and never reported here. Whether an entity is unavailable or restored plays no part: a device that is switched off looks exactly the same.

An entity of an integration entry is left out. Home Assistant reports an integration entry whose integration is missing itself, in the repairs dashboard.

Spook raises one repair per integration, listing its entities. Ignore it, and Spook leaves these entities alone. A new entity of that integration brings it back.

The loader reads `custom_components` when Home Assistant starts, so putting a folder back or taking one out shows after a restart.

### Unknown icons

Something in Home Assistant has an icon that does not exist, usually because of a typo or a renamed icon: an entity, a helper, a zone, an area, a floor, a label or a category. It shows an empty spot where the icon should be.

![The Unknown icons repair, listing a misspelled icon on a helper with the icon Spook thinks was meant.](https://spook.boo/images/screenshots/en/light/repair-unknown-icons.webp)

Nearly certain what you meant? The repair says so.

**How to fix it:** The repair lists each icon and where it was set. Give each of them an icon that exists, in that place. When Spook is nearly certain what you meant, the repair says so. The repair disappears by itself once it is fixed.

**How Spook checks this**

The icons you set in Home Assistant itself are checked against the Material Design Icons that come with it: the icon you gave an entity in its settings, the icon of a helper or a zone, of an area, floor, label or category, and the icons in `customize:` and `customize_domain:`. An `mdi:` icon that does not exist is drawn as an empty spot, without an error. Spook raises one repair listing each of these with where it was set, and suggests the icon you most likely meant when it is nearly certain.

This usually happens with a typo, an icon that was renamed or removed, or one picked from the Material Design Icons website that is newer than the version Home Assistant comes with. The repair says which version that is.

**Known limitations**

- Icons starting with `mdi:` are checked, and [Spook's own](https://spook.boo/icons) (`spook:` and `my:`). The older `hass:` prefix, and icons from sets you added, like those from the Marketplace, are left alone.
- The icon an integration gives its own entities is not checked. That is the integration's to fix, not yours.
- `customize_glob:` is not checked. Home Assistant only keeps the patterns it turns those into, which do not say which part of your configuration they came from.
- The list of icons is read from the frontend Home Assistant has installed. A frontend run from a development build is not taken into account, and a frontend without that list means nothing is checked.

### Empty areas

An area has no devices, no entities, and nothing uses it. It does nothing, except take up room in every area picker.

![The Empty area repair for the attic, with its three choices: remove it, let me fix it, or keep it.](https://spook.boo/images/screenshots/en/light/repair-fix-empty-area.webp)

Spook offers to remove the area, or to leave it to you.

**How to fix it:** Select the repair. **Remove this empty area** deletes it. **Let me fix it myself** leaves the choice to you. **Keep it, stop telling me** is for an area you keep on purpose, like the attic you have not got around to. The repair disappears by itself once it is fixed.

**How Spook checks this**

An area with no devices, no entities, no vacuum cleaning it, and no mention anywhere is not doing anything. Anywhere means an automation, a script, a template helper, a template entity from YAML, or a dashboard: an area card, a button acting on it, a section or condition targeting it, or the areas dashboard hiding or ordering it.

A template can name an area by its name or one of its aliases instead of its ID, like asking for the entities in the area called Attic. Home Assistant finds the area either way, and so does Spook.

Spook checks references as well as contents, so an area that is deliberately empty because something uses it is left alone. Being mentioned is enough: it does not have to be *targeted*. An area listed in a `repeat` block's `for_each` is the target of nothing, and Home Assistant does not report it as a reference, but a script plainly needs it. This repair offers to delete the area, so anything naming it is reason enough to leave it be.

An area a vacuum has its rooms mapped to is left alone too. Nothing may live there, but cleaning it by name, from an action or by voice, needs it to exist.

### Empty floors

A floor has no areas, and nothing uses it.

**How to fix it:** Select the repair. **Remove this empty floor** deletes it. **Let me fix it myself** leaves the choice to you, like adding areas to it. **Keep it, stop telling me** keeps it and stops the repair. The repair disappears by itself once it is fixed.

**How Spook checks this**

A floor exists to group areas. One with no areas at all, and no mention anywhere, is not doing that. Anywhere means the same places as for an empty area, the order of the floors on the areas dashboard included. A template naming the floor by its name or an alias counts too.

As with empty areas, being mentioned is enough. It does not have to be targeted, because this repair offers to delete the floor.

### Unused labels

A label is on no entity, device or area, and nothing uses it.

**How to fix it:** Select the repair. **Remove this unused label** deletes it. **Let me fix it myself** leaves the choice to you. **Keep it, stop telling me** keeps it and stops the repair. The repair disappears by itself once it is fixed.

**How Spook checks this**

A label that is applied to no entity, device or area, and that nothing anywhere mentions, is not doing anything either. Anywhere means the same places as for an empty area. A template naming the label by its name counts too.

As with empty areas, being mentioned is enough. It does not have to be targeted, because this repair offers to delete the label.

### Unused blueprints

A blueprint is not used by any automation or script. You imported it to try, decided against it, and it stayed.

![The Unused blueprint repair, with the choice to remove the blueprint.](https://spook.boo/images/screenshots/en/light/repair-unused-blueprints.webp)

A blueprint nothing uses, with the offer to remove it.

**How to fix it:** Select the repair. **Remove this unused blueprint** deletes it. **Let me fix it myself** leaves the choice to you. **Keep it, stop telling me** keeps it and stops the repair. The repair disappears by itself once it is fixed.

**How Spook checks this**

Blueprints collect. Spook raises a repair for a blueprint that no automation or script uses.

### Unused custom integrations

A custom integration is installed, but nothing uses it. You tried it, moved on, and its code stayed.

**How to fix it:** Select the repair. It tells you a date the integration has been installed since, or longer. What it offers depends on how the integration was installed.

- Installed from the Marketplace, and Spook can read what the Marketplace installed: **Remove it through the Marketplace** has the Marketplace uninstall it, the same as the uninstall on its page there. When Home Assistant needs a restart to finish, the Marketplace asks for one under Repairs.
- Otherwise, the repair names its folder in `custom_components`. That includes integrations copied in by hand and those whose Marketplace install Spook cannot confirm. Select **Remove this folder** to ask Spook to delete it. Restart Home Assistant after the removal.

**Let me do it myself** tells you where to do it yourself. Still planning to use it? **Keep it, stop telling me**, and Spook leaves that integration alone. The repair disappears by itself once the integration is used, or gone.

Before it removes anything, Spook checks that the integration is still there, still unused, and still installed the way the repair says. If a check fails, Spook leaves the integration alone and tells you why. Spook also stops in the following cases.

- Spook cannot read your YAML configuration, so it cannot tell whether something uses the integration.
- The Marketplace is loaded, but Spook cannot read what it installed. That Marketplace may own the folder, so **Remove this folder** leaves it in place.
- It came from the Marketplace, and the Marketplace is no longer loaded, is busy with the integration, or does not uninstall it. Uninstall it on its page in the Marketplace instead.
- It came from the Marketplace, and it still has an ignored entry on the Integrations page. The Marketplace keeps an integration that has an entry of any kind, so delete that entry first.

Spook only removes a folder right in `custom_components`, and never its own. For a folder that is a link, it removes only the link, and never what it points at.

**How Spook checks this**

A custom integration is used when any of these is true:

- It is added on the Integrations page. A disabled entry counts, an ignored one does not.
- Your YAML configuration sets it up, in a package too, under its own name or as a platform, like `platform: my_integration` under `sensor:`. Also when that setup fails: then it is broken, not unused.
- Its code is loaded. That includes an integration only used for a trigger or a condition in an automation.
- An integration that is loaded or used names it as a dependency, or as an after dependency.

When Spook cannot read your YAML configuration, like one with an error in it, it judges nothing, and what it reported before stays.

Never right after an install. An integration gets 7 days to be put to use, or the number of days you set on the **Settings** page of Spook's panel, counted from the earliest of two moments: when its folder in `custom_components` last changed, like when it landed there, and when Spook first saw it. Neither is ever before the install, so those days are never cut short. A folder that has not changed for longer than that can be pointed out on Spook's very first look.

Spook's own parts, like Inverse, are left out: they come with Spook.

## Use cases

What people use this for:

- Cleaning up after a reorganisation. Renaming and regrouping leaves empty areas, empty floors and unused labels behind. You only see them when you go looking.
- Finding helpers that broke months ago. Depending on the helper, one without its source may sit on a stale value, go unavailable, or never have set up at all. None of those come with a warning.


## Sitemap

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