Skip to article frontmatterSkip to article content
Core extensions

Areas management

Is there room for one more?

Areas in Home Assistant is a logical grouping of devices and entities that are meant to match the areas (or rooms) in the physical world: your home.

Spook provides actions that allows you to manage and automate the areas in Home Assistant programatically. Great for creating “dynamic” areas, or for creating areas on the fly.

Screenshot of the developer actions tools, listing the new actions to manage areas.

Actions

Spook adds the following new actions to your Home Assistant instance:

Create an area

Adds a new area to your Home Assistant instance.

Screenshot of the create area action in the developer tools.
Action properties
ActionCreate an area 👻
Action namehomeassistant.create_area
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
namestringYesLiving room
iconstringNomdi:sofa
aliasesstring | list of stringsNo["Lounge", "Sitting area"]

The use of aliases is helpful if you want to create an area with multiple names. For example, if you want to create an area called “Living room”, but also want to be able to refer to it as “Sitting area” or “Lounge”, you can add those names as aliases. This is used by Home Assistant Assist and Google Assistant.

Delete an area

Adds a new area to your Home Assistant instance.

Screenshot of the delete area action in the developer tools.
Action properties
ActionDelete an area 👻
Action namehomeassistant.delete_area
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
area_idstringYesliving_room

Add an alias to an area

Adds one or more aliases to an existing area. This action does not remove existing aliases, but adds the new ones to the existing ones.

As area aliases are used by voice assistants, you could add (and also remove) aliases to an area using automations, which allows you to make them available/unavailable programatically.

Screenshot of the add an alias to an area action in the developer tools.
Action properties
ActionAdd an alias to an area 👻
Action namehomeassistant.add_alias_to_area
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
area_idstringYesliving_room
aliasesstring | list of stringsYes["Lounge", "Sitting area"]

Remove an alias from an area

Removes one or more aliases from an existing area. This action will leave the other aliases intact.

As area aliases are used by voice assistants, you could remove (and also add) aliases to an area using automations, which allows you to make them available/unavailable programatically.

Screenshot of the remove an alias to an area action in the developer tools.
Action properties
ActionAdd an alias to an area 👻
Action namehomeassistant.remove_alias_from_area
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
area_idstringYesliving_room
aliasesstring | list of stringsYes["Lounge", "Sitting area"]

Set aliases for an area

Sets the aliases for an area. This action will overwrite/remove all existing aliases.

As area aliases are used by voice assistants, you could remove (and also add) aliases to an area using automations, which allows you to make them available/unavailable programatically.

Screenshot of the set aliases to for an area action in the developer tools.
Action properties
ActionSets aliases for an area 👻
Action namehomeassistant.set_area_aliases
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
area_idstringYesliving_room
aliasesstring | list of stringsYes["Lounge", "Sitting area"]

Add a device to an area

Adds one or more device(s) to an area. This action will leave the other devices in the area untouched.

Screenshot of the add a device to an area action in the developer tools.
Action properties
ActionAdd a device to an area 👻
Action namehomeassistant.add_device_to_area
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
area_idstringYesliving_room
device_idstring | list of stringsYesdc23e666e6100f184e642a0ac345d3eb

Remove a device from an area

Removes one or more device(s) from an area. This action will leave the other devices in the area untouched.

Screenshot of the add a device to an area action in the developer tools.
Action properties
ActionRemove a device from an area 👻
Action namehomeassistant.remove_device_from_area
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
device_idstring | list of stringsYesdc23e666e6100f184e642a0ac345d3eb

Add an entity to an area

Adds one or more entities to an area. This action will leave the other entities in the area untouched.

Screenshot of the add an entity to an area action in the developer tools.
Action properties
ActionAdd an entity to an area 👻
Action namehomeassistant.add_entity_to_area
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
area_idstringYesliving_room
entity_idstring | list of stringsYeslight.spotlight

Remove an entity from an area

Removes one or more device(s) from an area. This action will leave the other devices in the area untouched.

Screenshot of the add a device to an area action in the developer tools.
Action properties
ActionRemove an entity from an area 👻
Action namehomeassistant.remove_entity_from_area
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 stringsYeslight.spotlight

Blueprints & tutorials

There are currently no known blueprints or tutorials for the enhancements Spook provides for this integration. 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 integration, 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.