Core extensions

Floor management

Spook adds actions to create, change and delete floors in Home Assistant from your automations and scripts, and to manage their aliases and areas.

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.

The Add action dialog, searched for floor, with the actions Spook adds marked with a ghost.
Search for floor when you add an action: Spook's actions have the 👻.

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

  1. Open the automation or script that should create the floor, and select Add action.
  2. Search for create a floor, and select Home Assistant Core Integration: Create a floor 👻.
  3. Fill in Name, like First floor.
  4. If you like, also set Icon and Level. The level is the number of the floor, 0 for the ground floor.
  5. 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 - .
  6. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Create a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should change the floor, and select Add action.
  2. Search for update a floor, and select Home Assistant Core Integration: Update a floor 👻.
  3. Pick the floor under Floor ID.
  4. 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.
  5. 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.

The Actions tool with Update a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should delete the floor, and select Add action.
  2. Search for delete a floor, and select Home Assistant Core Integration: Delete a floor 👻.
  3. Pick the floor under Floor ID.
  4. 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.

The Actions tool with Delete a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should add the alias, and select Add action.
  2. Search for add an alias to a floor, and select Home Assistant Core Integration: Add an alias to a floor 👻.
  3. Pick the floor under Floor ID.
  4. Under Alias, write the name to add. For more than one, write them as a list, one per line starting with - .
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Add an alias to a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should remove the alias, and select Add action.
  2. Search for remove an alias from a floor, and select Home Assistant Core Integration: Remove an alias from a floor 👻.
  3. Pick the floor under Floor ID.
  4. Under Alias, write the name to remove. For more than one, write them as a list, one per line starting with - .
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Remove an alias from a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should set the aliases, and select Add action.
  2. Search for aliases for a floor, and select Home Assistant Core Integration: Sets aliases for a floor 👻.
  3. Pick the floor under Floor ID.
  4. Under Aliases, write every name the floor should have, as a list, one per line starting with - . Anything not on the list is removed.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Sets aliases for a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should do this, and select Add action.
  2. Search for add an area to a floor, and select Home Assistant Core Integration: Add an area to a floor 👻.
  3. Pick the floor under Floor ID.
  4. Pick one or more areas under Area ID.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Add an area to a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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

  1. Open the automation or script that should do this, and select Add action.
  2. Search for remove an area from a floor, and select Home Assistant Core Integration: Remove an area from a floor 👻.
  3. Pick one or more areas under Area ID.
  4. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Remove an area from a floor 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

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.