Skip to article frontmatterSkip to article content
Core extensions

Entity management

Everything is an entity, and entities are everything 🪄

Entities in Home Assistant are the building blocks of your home automation. Spook enhances the core of Home Assistant by adding actions to control those entities programmatically.

Actions

The following entity management actions are added to your Home Assistant instance:

Disable an entity

This action allows you to disable an entity on the fly.

Screenshot of the Home Assistant disable entity action in the developer tools.
Action properties
ActionDisable an entity 👻
Action namehomeassistant.disable_entity
Action targetsNo
Action responseNo response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
entity_idstring | list of stringsYes"light.living_room"

Enable an entity

This action allows you to enable an entity on the fly.

Screenshot of the Home Assistant enable entity action in the developer tools.
Action properties
ActionEnable an entity 👻
Action namehomeassistant.enable_entity
Action targetsNo
Action responseNo response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
entity_idstring | list of stringsYes"light.living_room"

Hide an entity

This action allows you to hide an entity on the fly.

It can be particularly useful when you have a lot of entities, and you want to hide some of them from the generated UI based programmatically. Hidden entities are also not exposed to external voice assistants, like Google Assistant or Alexa.

Screenshot of the Home Assistant hide entity action in the developer tools.
Action properties
ActionHide an entity 👻
Action namehomeassistant.hide_entity
Action targetsNo
Action responseNo response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
entity_idstring | list of stringsYes"light.living_room"

Unhide an entity

This action allows you to unhide an entity on the fly.

Screenshot of the Home Assistant unhide entity action in the developer tools.
Action properties
ActionUnide an entity 👻
Action namehomeassistant.unhide_entity
Action targetsNo
Action responseNo response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
entity_idstring | list of stringsYes"light.living_room"

Update an entity’s ID

This action allows you to update an entity’s ID on the fly.

Screenshot of the Home Assistant update entity ID action in the developer tools.
Action properties
ActionUpdate an entity’s ID 👻
Action namehomeassistant.update_entity_id
Action targetsNo
Action responseNo response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action data parameters
AttributeTypeRequiredDefault / Example
entity_idstringYes"light.living_room"
new_entity_idstringYes"light.dining_room"

Delete all orphaned entities

Mass clean up your Home Assistant by deleting all orphaned entities in one go.

Orphaned entities are entities that are no longer claimed by an integration. This can happen when an integration is removed or when an integration is no longer working. Home Assistant considers an entity only orphaned if it has been unclaimed since the last restart of Home Assistant.

Screenshot of the Home Assistant unhide entity action in the developer tools.
Action properties
ActionDelete all orphaned entities 👻
Action namehomeassistant.delete_all_orphaned_entities
Action targetsNo
Action responseNo response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

List all orphaned database entities

Mass clean up your database with the help of Spook by listing all orphaned database entities in one action.

Orphaned database entities are entities that are no longer claimed by integration but still exist in the database. This can happen when an integration is removed or when an entity is disabled.

Screenshot of the Home Assistant list orphaned database entities action in the developer tools.
Action properties
ActionList orphaned database entities 👻
Action namehomeassistant.list_orphaned_database_entities
Action targetsNo
Action responseAction response
Spook's influenceNewly added action.
Developer toolsTry this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.
Action response data
AttributeType
countinteger
entitieslist

Blueprints & tutorials

There are currently no known blueprints or tutorials for the enhancements Spook provides for these features. If you created one or stumbled upon one, please let us know in our discussion forums.

Features requests, ideas, and support

If you have an idea on how to further enhance this, for example, by adding a new action, entity, or repairs detection; feel free to let us know in our discussion forums.

Are you stuck using these new features? Or maybe you’ve run into a bug? Please check the page on where to go for help.