Turning on Lights with Arrival (connecting to WiFi?)

Wondering what the best way to achieve this is.

Right now I have a basic automation that turns on my exterior lights when I arrive in my Home Zone. One of the conditions is that it is before sunrise and after sunset. So pretty basic automation.

The issue I am having is both my phone and my wifes phones (S20 Ultras) both seem to show as “away” and then “home” multiple times over the course of the evening when are are both home. I’ve made the radius of my home larger than normal, but our phones seem to just move our location around enough to go out of this zone. This obviously will trigger turning the lights on / off as it thinks we have come and gone.

My thought was to have a condition to NOT trigger the automation if I am connected to our home wifi system. If I am driving up to the house my thought is that it can detect I am inside the zone before mty phone connects to the home wifi. Thoughts? or is there an easier way to achieve this I am not thinking of?

I wouldn’t have to do this work around if our phones didn’t jump around. I’ve got high accuracy set in HA settings, no battery restrictions on the app etc. So not sure why they are jumping around.

Why don’t you do combination of both?

Turn on when your device is within the zone, but turn off only if your devices is not in the zone AND wlan not connected?

You can combine multiple device trackers for a person.
I use my phones GPS and my UNiFi integration to avoid such issues.