Location of companion app sometimes off, use wifi as a failsafe

I notice that my companion app has issues in my iPhone with location. Sometimes I move all of the sudden 50 meters while I’m home. Or location isn’t always updated when I do a quick visit to the store.

I want to use both the location feature (if it works, at home and other zones) but also want a fail safe when I’m connected to my ubiquity UniFi wifi I’m set as home. Even when I’m shifting as a ghost 50 meters away. So wifi should be always at home whatever the app says. No wifi connection, do as the app says.

I’m not sure how to do that.

I have also been thinking about this.
I think if we had a way to disable the device tracker by notification message then that would make us fixed in place.
Then when you loose connection to WiFi then it sends a message to enable the device tracker again.