Integrations

Zone

Spook adds actions to create, update and delete zones in Home Assistant from your automations and scripts, the home zone included.

A zone in Home Assistant is a circle on the map: home, work, the school, the gym. Home Assistant uses zones to tell where people and devices are, and automations can act when somebody enters or leaves one.

Home Assistant lets you draw zones by hand, in the settings. Spook adds actions for it, so an automation or a script can make a zone, move or resize it, and delete it again.

The Add action dialog, searched for zone, with the actions Spook adds marked with a ghost.
Spook adds actions to create, update and delete zones.

Actions

Spook adds three actions for zones. You find them wherever you add an action, marked with a 👻.

Create a zone

Adds a new zone, the same as drawing one in the settings.

A zone does not have to be a place you go to every week. Make one around the spot you just parked, and get a reminder when you walk back to it. Or around a friend's house for the evening, and delete it again tomorrow. Make it passive, and it is only there for your automations: not on the map, and it does not change where anybody is.

How to use it

  1. Open the automation or script that should make the zone, and select Add action.
  2. Search for create a zone, and select Zone: Create a zone 👻.
  3. Fill in the Name, the Latitude and the Longitude.
  4. Optionally, set the Radius in meters, the Icon, and turn on Passive. A passive zone only works for automations: nobody is shown as being in it.
  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 Create a zone 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Update a zone

Changes an existing zone: its name, icon, place, size, or whether it is passive.

Zones do not always stay put. Move the "car" zone to where the car is now. Make the home zone bigger in winter, when the drive home takes longer and the heating needs a head start. Only what you fill in changes; everything else stays as it is.

How to use it

  1. Open the automation or script that should change the zone, and select Add action.
  2. Search for update a zone, and select Zone: Update a zone 👻.
  3. Under Entity ID, pick the zone.
  4. Fill in only what should change, like the Latitude and Longitude to move it, or the Radius to resize it.
  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 Update a zone 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Delete a zone

Deletes one or more zones.

The other half of Create a zone. A zone an automation made for the evening is gone again the next morning, and your map stays clean.

How to use it

  1. Open the automation or script that should do the deleting, and select Add action.
  2. Search for delete a zone, and select Zone: Delete a zone 👻.
  3. Under Entity ID, pick the zones to delete.
  4. Select Save.

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

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

Use cases

What people use this for:

  • Create and update zones around a car or a person from an automation. That way you can tell who is close to the car, or get notified when you are near a certain person.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.