Support for non-circular (polygonal) zones. #16465
Unanswered
veleek
asked this question in
Other feature requests
Replies: 1 comment
-
Upvoted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use zones to trigger a bunch of automations I have one automation that I'd like to trigger as I'm getting close to home, so I have an additional passive "Close to Home" zone. Unfortunately, due to the location of my house if I create a regular circular zone, there are a few main roads that I'll drive on along the way that result in certain automations triggering on the way away from the home.
Example: green area is trigger area I care about, red areas are main roads that can be "re-entered" after leaving
In order to support this, I think it would be useful to add support for non-circular zones. The easiest most flexible option is probably just to add support for polygonal zones, and it's already very well supported by Leaflet so it shouldn't be too hard.
I've started implementing this, but I thought it would be worthwhile to figure out if it's something that has been considered before and explicitly avoided for some reason. @bramkragten, you may have some comments as the last person to touch a bunch of the pieces that I've been looking at. I know that I could potentially workaround this with a series of smaller circular zones. This specific case is just the initial driver for looking at this, I think it'd be useful functionality to have in general.
Two major components:
Potential issues:
Beta Was this translation helpful? Give feedback.
All reactions