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

Action

Create an area 👻

Action name

homeassistant.create_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

name

string

Yes

Living room

icon

string

No

mdi:sofa

aliases

string | list of strings

No

["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

Action

Delete an area 👻

Action name

homeassistant.delete_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

area_id

string

Yes

living_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

Action

Add an alias to an area 👻

Action name

homeassistant.add_alias_to_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

area_id

string

Yes

living_room

aliases

string | list of strings

Yes

["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

Action

Add an alias to an area 👻

Action name

homeassistant.remove_alias_from_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

area_id

string

Yes

living_room

aliases

string | list of strings

Yes

["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

Action

Sets aliases for an area 👻

Action name

homeassistant.set_area_aliases

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

area_id

string

Yes

living_room

aliases

string | list of strings

Yes

["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

Action

Add a device to an area 👻

Action name

homeassistant.add_device_to_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

area_id

string

Yes

living_room

device_id

string | list of strings

Yes

dc23e666e6100f184e642a0ac345d3eb

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

Action

Remove a device from an area 👻

Action name

homeassistant.remove_device_from_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

device_id

string | list of strings

Yes

dc23e666e6100f184e642a0ac345d3eb

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

Action

Add an entity to an area 👻

Action name

homeassistant.add_entity_to_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

area_id

string

Yes

living_room

entity_id

string | list of strings

Yes

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

Action

Remove an entity from an area 👻

Action name

homeassistant.remove_entity_from_area

Action targets

No

Action response

No response

Spook's influence

Newly added action

Developer tools

Try this action Open your Home Assistant instance and show your actions developer tools with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

entity_id

string | list of strings

Yes

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