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 services 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 service tools, listing the new services to manage areas.

Services

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

Create an area

Adds a new area to your Home Assistant instance.

Screenshot of the create area service call in the developer tools.
Service properties
ServiceCreate an area 👻
Service namehomeassistant.create_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
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 service call in the developer tools.
Service properties
ServiceDelete an area 👻
Service namehomeassistant.delete_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
AttributeTypeRequiredDefault / Example
area_idstringYesliving_room

Add an alias to an area

Adds one or more aliases to an existing area. This service 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 service call in the developer tools.
Service properties
ServiceAdd an alias to an area 👻
Service namehomeassistant.add_alias_to_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
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 service 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 service call in the developer tools.
Service properties
ServiceAdd an alias to an area 👻
Service namehomeassistant.remove_alias_from_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
AttributeTypeRequiredDefault / Example
area_idstringYesliving_room
aliasesstring | list of stringsYes["Lounge", "Sitting area"]

Set aliases for an area

Sets the aliases for an area. This service 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 service call in the developer tools.
Service properties
ServiceSets aliases for an area 👻
Service namehomeassistant.set_area_aliases
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
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 service will leave the other devices in the area untouched.

Screenshot of the add a device to an area service call in the developer tools.
Service properties
ServiceAdd a device to an area 👻
Service namehomeassistant.add_device_to_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
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 service will leave the other devices in the area untouched.

Screenshot of the add a device to an area service call in the developer tools.
Service properties
ServiceRemove a device from an area 👻
Service namehomeassistant.remove_device_from_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
AttributeTypeRequiredDefault / Example
device_idstring | list of stringsYesdc23e666e6100f184e642a0ac345d3eb

Add an entity to an area

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

Screenshot of the add an entity to an area service call in the developer tools.
Service properties
ServiceAdd an entity to an area 👻
Service namehomeassistant.add_entity_to_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
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 service will leave the other devices in the area untouched.

Screenshot of the add a device to an area service call in the developer tools.
Service properties
ServiceRemove an entity from an area 👻
Service namehomeassistant.remove_entity_from_area
Service targetsNo
Service responseNo response
Spook's influenceNewly added service
Developer toolsTry this service Open your Home Assistant instance and show your service developer tools with a specific service selected.
Service call data
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 service, 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.