Create zone helper
zones_create_zoneCreates a new geofence zone in Home Assistant's storage collection, enabling later updates or deletion without editing configuration.yaml.
Instructions
Create a zone as a UI helper (storage collection), not a YAML zone.
Calls WS zone/create with the given coordinates and radius; only
zones created this way can later be changed through
zones_update_zone or zones_delete_zone. zone.home (core config)
and YAML-defined zones live outside this storage collection and cannot
be created here.
Use when: adding a new geofence zone without editing configuration.yaml.
Returns: dict with status, name, and the raw WS result.
Errors: on failure, returns {"error": "<message>", "hint": "...", "name": ...} instead of raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Optional mdi icon identifier, e.g. 'mdi:office-building'; omit for none. | |
| name | Yes | Display name for the new zone, e.g. 'Office'. | |
| radius | No | Zone radius in meters; defaults to 100. | |
| passive | No | If true, excludes the zone from device-tracker zone suggestions; defaults to false. | |
| latitude | Yes | Latitude in decimal degrees, e.g. 52.23. | |
| longitude | Yes | Longitude in decimal degrees, e.g. 21.01. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||