Set Zone
ha_set_zoneCreate or update a Home Assistant zone with custom name, location, radius, icon, and passive mode. Omit zone_id to create a new zone; provide zone_id to update an existing one.
Instructions
Create or update a Home Assistant zone.
Omit zone_id to create a new zone (name, latitude, longitude required). Provide zone_id to update an existing zone (only specified fields change).
EXAMPLES:
Create: ha_set_zone(name="Office", latitude=40.7128, longitude=-74.0060, radius=150, icon="mdi:briefcase")
Update name: ha_set_zone(zone_id="abc123", name="New Office")
Update radius: ha_set_zone(zone_id="abc123", radius=200)
Update location: ha_set_zone(zone_id="abc123", latitude=40.7128, longitude=-74.0060)
Note: The 'home' zone is typically defined in YAML and cannot be modified via this API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Material Design Icon (e.g., 'mdi:briefcase', 'mdi:school') | |
| name | No | Display name for the zone (required for create) | |
| radius | No | Radius of the zone in meters (must be > 0, defaults to 100 on create) | |
| passive | No | Passive mode - if True, zone will not trigger enter/exit automations (defaults to False on create) | |
| zone_id | No | Zone ID to update (omit to create new zone, use ha_get_zone to find IDs) | |
| latitude | No | Latitude coordinate of the zone center (required for create) | |
| longitude | No | Longitude coordinate of the zone center (required for create) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||