Skip to article frontmatterSkip to article content
Enhanced integrations

Zone

Time to zone out and relax πŸ“

The Home Assistant zone icon



A zone in Home Assistant is a virtual representation of a physical space. Think of it as drawing a circle on a map; that circle represents a zone. Zones are used to track the location of people and devices but can also be used to trigger automations based on entering or leaving a zone.

Spook adds new services to the zone integrations that allow you to manage and modify them using automations dynamically.

Screenshot of the recorder import statistics service call in the developer tools.

FigureΒ 1:Spook adds a service that allows importing data into the recorder.

Devices & entitiesΒΆ

Spook does not provide any new devices or entities for this integration.

ServicesΒΆ

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

Create a zoneΒΆ

Adds a new zone to your Home Assistant instance.

Screenshot of the zone create service call in the developer tools.
Service properties
ServiceZone: Create a zone πŸ‘»
Service namezone.create
Service targetsNo targets
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
namestringYesStatue of Liberty
iconstringNomdi:map-marker
latitudefloatYes40.6892494
longitudefloatYes-74.0445004
radiusfloatNo100

The radius attribute must be entered in meters.

Update a zoneΒΆ

Updates properties of an existing zone.

Screenshot of the zone update service call in the developer tools.
Service properties
ServiceZone: Update a zone πŸ‘»
Service namezone.update
Service targetsNo targets
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_idstringYeszone.statue_of_liberty
namestringNoStatue of Liberty
iconstringNomdi:map-marker
latitudefloatNo40.6892494
longitudefloatNo-74.0445004
radiusfloatNo100

The radius attribute must be entered in meters. Only the parameters that are provided will be updated. Other parameters will remain unchanged.

Delete a zoneΒΆ

Deletes a zone from Home Assistant

Screenshot of the zone delete service call in the developer tools.
Service properties
ServiceZone: Delete a zone πŸ‘»
Service namezone.delete
Service targetsNo targets
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 stringsYeszone.statue_of_liberty

RepairsΒΆ

Spook has no repair detections for this integration.

Uses casesΒΆ

Some use cases for the enhancements Spook provides for this integration:

  • You could use these services to dynamically create and update zones around a car or a person using automations. Using these you could tell who is close to the car or notify if you are near a certain person.

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 Support page on where to go for help.