Floor management
Floors in Home Assistant group your areas the way your house does: the ground floor, the first floor, the attic. They give a better overview of your home, and you can target actions at a whole floor at once, like turning off all the lights upstairs.
You set up floors in the UI, under Settings > Areas, labels & zones. Spook adds actions that do the same from an automation or script: create a floor, change it, delete it, and move areas on and off it. Handy when a script sets up a fresh installation, or when floors should follow another system.
Spook also tells you about a floor that has no areas on it at all. That one is on the Home Assistant page.

Actions
Spook adds eight actions for floors. You find them wherever you add an action, marked with a 👻. They change your setup: calling one by hand takes an administrator, while automations and scripts run them as usual.
Create a floor
Adds a new floor to Home Assistant.
The UI is the place to set up the floors you have. This is for the floors a script or automation should make: setting up a new installation from a script, or building a floor plan that another system already knows about.
How to use it
- Open the automation or script that should create the floor, and select Add action.
- Search for create a floor, and select Home Assistant Core Integration: Create a floor 👻.
- Fill in Name, like
First floor. - If you like, also set Icon and Level. The level is the number of the floor,
0for the ground floor. - If you like, add Aliases: other names for the floor, like
Downstairs, that Assist understands too. Write them as a list, one per line starting with-. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Create a floor 👻 |
| Action name | homeassistant.create_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
name | string | Yes | First floor |
icon | string | No | mdi:floor-1 |
level | integer | No | 1 |
aliases | string | list of strings | No | ["ground floor", "downstairs"] |
Use aliases for a floor with more than one name. For example, a floor called "First floor" that you also want to call "Ground floor" or "Downstairs". Assist uses these names.
A ground floor, with two other names Assist knows it by:
action: homeassistant.create_floor
data:
name: "First floor"
icon: "mdi:floor-1"
level: 1
aliases:
- "Ground floor"
- "Downstairs"
- Home Assistant keeps floor names unique. Creating a floor with a name another floor already has fails, also when only upper and lower case or spaces differ.
Update a floor
Changes the name, aliases, icon or level of a floor that already exists.
Deleting a floor and creating it again takes every area off it. A lot to lose over an icon. This changes only what you give it, and keeps everything else as it was. So you can change the icon without touching the name or the level.
How to use it
- Open the automation or script that should change the floor, and select Add action.
- Search for update a floor, and select Home Assistant Core Integration: Update a floor 👻.
- Pick the floor under Floor ID.
- Turn on only the fields you want to change, like Name, Aliases, Icon or Level, and fill them in. Fields you leave off keep their value.
- Select Save.
The Aliases you give replace the ones the floor has. To add or remove a single alias, use Add an alias to a floor or Remove an alias from a floor instead.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Update a floor 👻 |
| Action name | homeassistant.update_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
floor_id | string | Yes | first_floor |
name | string | No | Ground floor |
aliases | string | list of strings | No | ["downstairs"] |
icon | string or null | No | mdi:home-floor-g |
level | integer or null | No | 0 |
Anything you leave out keeps the value it already has. Setting icon or level to null clears it. The aliases you give replace the ones the floor has, and an empty list removes them all.
Rename the first floor, and make it level 0:
action: homeassistant.update_floor
data:
floor_id: "first_floor"
name: "Ground floor"
level: 0
- You need to give at least one thing to change. A call with only a
floor_idis refused, so a misspelled field gives you an error. - Renaming a floor to a name another floor already has is refused, since Home Assistant keeps floor names unique. A different spelling of its own name, like other upper and lower case, is fine.
Delete a floor
Removes a floor from Home Assistant.
The other half of Create a floor: a floor a script made for a while can go again the same way. The areas on it stay. They just no longer sit on a floor.
How to use it
- Open the automation or script that should delete the floor, and select Add action.
- Search for delete a floor, and select Home Assistant Core Integration: Delete a floor 👻.
- Pick the floor under Floor ID.
- Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once. Careful: that run deletes the floor for real.

| Action properties | |
|---|---|
| Action | Delete a floor 👻 |
| Action name | homeassistant.delete_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
floor_id | string | Yes | first_floor |
Not sure what the floor_id of a floor is? The floor_id field also accepts templates. You can use this template to use the floor's name instead:
floor_id: "{{ floor_id('First floor') }}"
That template finds the floor ID of the floor with the name "First floor".
Delete the first floor:
action: homeassistant.delete_floor
data:
floor_id: "first_floor"
The same, using the floor's name instead of its ID:
action: homeassistant.delete_floor
data:
floor_id: "{{ floor_id('First floor') }}"
Add an alias to a floor
Adds one or more aliases to a floor, and keeps the ones it already has.
Aliases are the other names a floor goes by, and voice assistants listen for them. Adding one from an automation lets you make a name available only when it makes sense: "the party floor" during the party, and gone again the next morning with Remove an alias from a floor.
How to use it
- Open the automation or script that should add the alias, and select Add action.
- Search for add an alias to a floor, and select Home Assistant Core Integration: Add an alias to a floor 👻.
- Pick the floor under Floor ID.
- Under Alias, write the name to add. For more than one, write them as a list, one per line starting with
-. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Add an alias to a floor 👻 |
| Action name | homeassistant.add_alias_to_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
floor_id | string | Yes | first_floor |
alias | string | list of strings | Yes | ["Ground floor", "Downstairs"] |
Not sure what the floor_id of a floor is? The floor_id field also accepts templates. You can use this template to use the floor's name instead:
floor_id: "{{ floor_id('First floor') }}"
That template finds the floor ID of the floor with the name "First floor".
Teach the first floor two more names:
action: homeassistant.add_alias_to_floor
data:
floor_id: "first_floor"
alias:
- "Ground floor"
- "Downstairs"
The same, using the floor's name instead of its ID:
action: homeassistant.add_alias_to_floor
data:
floor_id: "{{ floor_id('First floor') }}"
alias:
- "Ground floor"
- "Downstairs"
Remove an alias from a floor
Removes one or more aliases from a floor, and keeps the others.
The way back from Add an alias to a floor. Voice assistants no longer answer to an alias that is gone.
How to use it
- Open the automation or script that should remove the alias, and select Add action.
- Search for remove an alias from a floor, and select Home Assistant Core Integration: Remove an alias from a floor 👻.
- Pick the floor under Floor ID.
- Under Alias, write the name to remove. For more than one, write them as a list, one per line starting with
-. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Remove an alias from a floor 👻 |
| Action name | homeassistant.remove_alias_from_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
floor_id | string | Yes | first_floor |
alias | string | list of strings | Yes | ["Ground floor", "Downstairs"] |
Not sure what the floor_id of a floor is? The floor_id field also accepts templates. You can use this template to use the floor's name instead:
floor_id: "{{ floor_id('First floor') }}"
That template finds the floor ID of the floor with the name "First floor".
Take two names away from the first floor:
action: homeassistant.remove_alias_from_floor
data:
floor_id: "first_floor"
alias:
- "Ground floor"
- "Downstairs"
The same, using the floor's name instead of its ID:
action: homeassistant.remove_alias_from_floor
data:
floor_id: "{{ floor_id('First floor') }}"
alias:
- "Ground floor"
- "Downstairs"
Set aliases for a floor
Replaces all aliases of a floor with the ones you give.
Adding and removing one at a time works until you lose track of what is there. This sets the floor to exactly these names.
How to use it
- Open the automation or script that should set the aliases, and select Add action.
- Search for aliases for a floor, and select Home Assistant Core Integration: Sets aliases for a floor 👻.
- Pick the floor under Floor ID.
- Under Aliases, write every name the floor should have, as a list, one per line starting with
-. Anything not on the list is removed. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Sets aliases for a floor 👻 |
| Action name | homeassistant.set_floor_aliases |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
floor_id | string | Yes | first_floor |
aliases | string | list of strings | Yes | ["Ground floor", "Downstairs"] |
Not sure what the floor_id of a floor is? The floor_id field also accepts templates. You can use this template to use the floor's name instead:
floor_id: "{{ floor_id('First floor') }}"
That template finds the floor ID of the floor with the name "First floor".
Give the first floor exactly these two other names:
action: homeassistant.set_floor_aliases
data:
floor_id: "first_floor"
aliases:
- "Ground floor"
- "Downstairs"
The same, using the floor's name instead of its ID:
action: homeassistant.set_floor_aliases
data:
floor_id: "{{ floor_id('First floor') }}"
aliases:
- "Ground floor"
- "Downstairs"
Add an area to a floor
Puts one or more areas on a floor. The other areas on that floor stay where they are.
An area sits on one floor at most, so an area that was on another floor moves. Useful when a script builds your floor plan, or after a renovation moved a room upstairs.
How to use it
- Open the automation or script that should do this, and select Add action.
- Search for add an area to a floor, and select Home Assistant Core Integration: Add an area to a floor 👻.
- Pick the floor under Floor ID.
- Pick one or more areas under Area ID.
- Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Add an area to a floor 👻 |
| Action name | homeassistant.add_area_to_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
floor_id | string | Yes | first_floor |
area_id | string | list of strings | Yes | living_room |
Not sure what the floor_id of a floor is? The floor_id field also accepts templates. You can use this template to use the floor's name instead:
floor_id: "{{ floor_id('First floor') }}"
That template finds the floor ID of the floor with the name "First floor".
Not sure what the area_id of an area is? The area_id field also accepts templates. You can use this template to use the area's name instead:
area_id: "{{ area_id('Living room') }}"
That template finds the area ID of the area with the name "Living room".
Put the living room on the first floor:
action: homeassistant.add_area_to_floor
data:
floor_id: "first_floor"
area_id: "living_room"
The same, using the names of the floor and the area instead of their IDs:
action: homeassistant.add_area_to_floor
data:
floor_id: "{{ floor_id('First floor') }}"
area_id: "{{ area_id('Living room') }}"
More than one area at once, as a list:
action: homeassistant.add_area_to_floor
data:
floor_id: "first_floor"
area_id:
- "living_room"
- "kitchen"
Remove an area from a floor
Takes one or more areas off the floor they are on. The other areas on that floor stay where they are.
The area itself stays, with everything in it. It just no longer sits on a floor. You don't say which floor: an area is on one floor at most, so Spook knows.
How to use it
- Open the automation or script that should do this, and select Add action.
- Search for remove an area from a floor, and select Home Assistant Core Integration: Remove an area from a floor 👻.
- Pick one or more areas under Area ID.
- Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

| Action properties | |
|---|---|
| Action | Remove an area from a floor 👻 |
| Action name | homeassistant.remove_area_from_floor |
| Action targets | No |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
area_id | string | list of strings | Yes | living_room |
While this action is about floors, it does not need a floor ID. An area can only be on one floor at a time, so it is taken off the floor it is on.
Not sure what the area_id of an area is? The area_id field also accepts templates. You can use this template to use the area's name instead:
area_id: "{{ area_id('Living room') }}"
That template finds the area ID of the area with the name "Living room".
Take the living room off its floor:
action: homeassistant.remove_area_from_floor
data:
area_id: "living_room"
More than one area at once, as a list:
action: homeassistant.remove_area_from_floor
data:
area_id:
- "living_room"
- "kitchen"
Blueprints & tutorials
There are no known blueprints or tutorials for these actions yet. Made one, or found one? Let us know in our discussion forums.
Feature requests, ideas, and support
Got an idea to take this further, like a new action, entity or repair? Let us know in our discussion forums.
Stuck, or found a bug? The Support page tells you where to go for help.
Category management
Spook adds actions to Home Assistant to create, update and delete categories, and to file automations, scripts, scenes and helpers into them, all from your own automations and scripts.
Area management
Spook adds actions to create, change and delete areas in Home Assistant from your automations and scripts, and to move devices and entities in and out of them.









