Geolocation Event Polygons

Integration: core/homeassistant/components/geo_location at master · home-assistant/core · GitHub

Current Implementation: A GeoLocation Event type entity has a lat/lon point. distance contains the distance to the point (from zone.home.

Requested implementation: A GeoLocation Event type entity can contain 1 or more lat/lon points, which connect to form a polygon. If within the polygon, distance contains the distance to the edge of the polygon (0 if within).

Applications:

  • “Effected Area” for power outages, weather alerts, wildfires, etc.
  • Richer Geo-JSON use cases, where geometry can describe polygons.
  • Logical: Automation trigger or condition based on event data.

Considerations:

  • Front End: Map card should be modified to make it possible to display polygons
  • Lines: 2 points; as well as any points that backtrack onto themselves, should be handled properly.

duplicate of Polygon tracker Zones