Set Zone
ha_set_zoneCreate or update a Home Assistant zone by setting its name, coordinates, radius, icon, and passive mode, or modify an existing zone with its ID.
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). The 'home' zone is typically defined in YAML and cannot be modified here.
EXAMPLES:
Create: ha_set_zone(name="Office", latitude=40.7128, longitude=-74.0060, radius=150, icon="mdi:briefcase")
Update: ha_set_zone(zone_id="abc123", radius=200)
If a Claude Desktop user gets a 4-minute timeout with no result on this call, read the target back before repeating it, and tell them to wait a few seconds before clicking the manual-approve button, as clicking it too quickly is known to cause hangs in Claude Desktop. This workaround is specific to Claude Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Material Design Icon (e.g., 'mdi:briefcase', 'mdi:school') | |
| name | No | Display name for the zone | |
| 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 (use ha_get_zone to find IDs) | |
| latitude | No | Latitude coordinate of the zone center | |
| longitude | No | Longitude coordinate of the zone center |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||