Allow zone to be a polygon

Today, we can create Zones that are based on center point location and radius, this makes it hard to create Zones for places that are near to each other, like buildings, or parts of your backyard, because sometimes the circles may overlap each other:
image

we should be able to create such zones:
image

There is an architecture discussion: Allow zone to be a polygon · home-assistant/architecture · Discussion #1014 · GitHub so anyone interested in this feature please vote on it as well.

Yes please! I have two zones that are next to each other making it difficult to tell if I’m at the gym or in the pool even a simple 4 point polygon would fix my issue.

It is currently next to impossible to create zones usable in automations in NYC. In order to capture, let’s say, all of lower Manhattan, the radius circle will include parts of a separate borough (e.g. Brooklyn) or another state (NJ)! Nor can one create a zone east or west of a street and have it include more than just one small entry point. Is someone on a water taxi in the East River or on Wall Street?

I have way too many tiny little zones because of the density of NYC and the lack of precision in creating zones. Any large city or downtown area suffers this same fate. I have to make guesses in my automations based on direction of travel, previous zones, etc. to decide if an action should occur (e.g. send notification reminder to … or mark item as …).

I look forward to zone polygons and the automations I can create based on reliable location data.

4 Likes

This is already being worked on, I have no idea what the status is. I’ll put the link to the thread here if I can find it.

1 Like

Blowing some dust of this topic. Any update on this feature?

This would be a top-tier feature. Circular zones are hardly functional in dense populations.

Any progress on this? I live next to a major road, so anytime we drive past our house HA thinks we are home/gone/home/gone etc. It is annoying.

There was a core team meeting and I got some more info

basically companion app is using iOS and android api for geofencing, which only supports circles.
I have a work-in-progress code (without iOS and android changes, as I wasn’t aware of that functionality), but without the approval, this isn’t useful.

Something to look at is bricks home security

I’m not sure how they go about it, but basically they use points. And you can just move the points around. I’m assuming base on what you said it uses some web portal. But there might be a better way.

Even if we can only do it on a desktop, we need a better system.

Just to think outside of the box here.

The mobile device knows the gps coordinates. If we create a polygon, it would be fairly easy to mathematically see if this falls inside the polygon. That has nothing to do with zones and they definitely do not need to be circles…

I second this, issue is user will need precise location on not big issue

I assume what home assistant dev did is not determine weather whether the coordinates are literally inside the circle but their setup hints its just measuring coordinates from edge of zone so the circle is just a visual representation (i could be wrong but it seems that way from the ui)

I’ve been using this for a while now and works great with poly zones.