Integrations

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.

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, Floors management, Label management, Device management, Entity management, Devices & entities, User management and Miscellaneous.

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.

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 or Empty areas repair. How that works.

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.

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.

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.

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.

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.

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.

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.
The repair names the integration Home Assistant cannot find, and what it left behind.

More entities to clean up? Find and remove unavailable entities covers the rest.

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.
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.

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.
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.

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.

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.

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.
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.

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.

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.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.