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.

Action properties | |
|---|---|
Disable an entity π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
1 2 3action: homeassistant.disable_entity data: entity_id: light.living_room
Or multiple entities at once:
1 2 3 4 5action: homeassistant.disable_entity data: entity_id: - light.living_room - light.kitchen_ceiling
Enable an entityΒΆ
This action allows you to enable an entity on the fly.

Action properties | |
|---|---|
Enable an entity π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
1 2 3action: homeassistant.enable_entity data: entity_id: light.living_room
Or multiple entities at once:
1 2 3 4 5action: homeassistant.enable_entity data: entity_id: - light.living_room - light.kitchen_ceiling
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 not exposed to external voice assistants, like Google Assistant or Alexa, by default. They can still be exposed explicitly in the voice assistant settings.

Action properties | |
|---|---|
Hide an entity π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
1 2 3action: homeassistant.hide_entity data: entity_id: light.living_room
Or multiple entities at once:
1 2 3 4 5action: homeassistant.hide_entity data: entity_id: - light.living_room - light.kitchen_ceiling
Unhide an entityΒΆ
This action allows you to unhide an entity on the fly.

Action properties | |
|---|---|
Unhide an entity π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
1 2 3action: homeassistant.unhide_entity data: entity_id: light.living_room
Or multiple entities at once:
1 2 3 4 5action: homeassistant.unhide_entity data: entity_id: - light.living_room - light.kitchen_ceiling
Expose an entity to assistantsΒΆ
This action allows you to expose an entity to your voice assistants on the fly.
Home Assistant keeps a separate list per assistant of what it is allowed to see. This is the same setting you find under Settings > Voice assistants > Expose, applied to as many entities as you like at once.
Action properties | |
|---|---|
Expose an entity to assistants π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
| |
| Yes |
|
1 2 3 4action: homeassistant.expose_entity data: entity_id: light.living_room assistants: conversation
Or several entities and several assistants at once:
1 2 3 4 5 6 7 8action: homeassistant.expose_entity data: entity_id: - light.living_room - light.kitchen_ceiling assistants: - cloud.alexa - conversation
Stop exposing an entity to assistantsΒΆ
This action does the reverse of Expose an entity to assistants, taking an entity back out of a voice assistantβs reach.
Action properties | |
|---|---|
Stop exposing an entity to assistants π» | |
| |
No | |
No response | |
Newly added action. | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
| |
| Yes |
|
1 2 3 4action: homeassistant.unexpose_entity data: entity_id: light.living_room assistants: conversation
Or several entities and several assistants at once:
1 2 3 4 5 6 7 8action: homeassistant.unexpose_entity data: entity_id: - light.living_room - light.kitchen_ceiling assistants: - cloud.alexa - conversation
Update an entityβs IDΒΆ
This action allows you to update an entityβs ID on the fly.

Action properties | |
|---|---|
Update an entityβs ID π» | |
| |
No | |
No response | |
Newly added action. | |
1 2 3 4action: homeassistant.update_entity_id data: entity_id: light.living_room new_entity_id: 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.

Action properties | |
|---|---|
Delete all orphaned entities π» | |
| |
No | |
No response | |
Newly added action. | |
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.

Action properties | |
|---|---|
List orphaned database entities π» | |
| |
No | |
Action response | |
Newly added action. | |
Script to remove entities from database
alias: Delete orphaned database entities
sequence:
- action: homeassistant.list_orphaned_database_entities
response_variable: orphaned
- action: recorder.purge_entities
target:
entity_id: |
{{ orphaned.entities }}
data:
keep_days: 0
mode: singleThat template will find the area ID of the area with the name βLiving roomβ.
Rename an entityΒΆ
This action allows you to update an entity friendly_name on the fly.

Action properties | |
|---|---|
Rename an entity π» | |
| |
No | |
No response | |
Newly added action. | |
1 2 3 4action: homeassistant.rename_entity data: entity_id: light.living_room name: "Living room light"
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.
Feature 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.