Currently Zones are great for knowing when you are Home or Away, as per the existing ‘radius’ variable.
But I would like to see the addition of a second (outer), and larger, radius variable to help specify states for ‘Leaving’ and ‘Arriving’.
Examples:
I’m driving home from work and I first enter the outer radius (which might be a distance of 2km), and my status changes to ‘Arriving Home’. This triggers automations for turning on my heating system, and starts warming up the oven.
I then reach my inner radius setting my status to ‘Home’. This opens my garage door, turns on some lights and the TV.
I’m leaving home, and as I leave the inner radius my status is changed to ‘Leaving Home’. This triggers an alert that I might have forgotten something at home, and arms the alarm.
I then reach the outer radius setting my status to ‘Away’. This checks to see if anyone else is at home, and if not it turns off the TV which I accidentally left on.
In the instance where you might have a zone for other places such as work, then it would say ‘Arriving Work’ or ‘Leaving Work’. Or whatever the name of your zone is.
An example YAML sequence.
- name: Home
latitude: 32.8793367
longitude: -117.2474053
radius_inner: 100
radius_outer: 2000
icon: mdi:account-multiple
Another option for the YAML could be to have multiple radii providing further flexibility. I personally don’t need this, but others might.
- name: Home
latitude: 32.8793367
longitude: -117.2474053
radius_1: 100
radius_2: 1000
radius_3: 2000
icon: mdi:account-multiple
I know this can be achieved via other components or complex automations, but I feel this addition would be simpler.