(I don’t understand the purpose of these conditions. What is the usefulness of checking whether “Current Location” has or doesn’t have a value? And how could “current location” possibly have no value? I’m confused. I also do not get any more condition options if I set more variables beforehand either.)
I can create a workaround, such as checking for my home Wi-Fi network, but I really want to understand conditional geolocation and ensure I am using Shortcuts with best practices. Other inputs such as “Location” also don’t seem useful for checking if I am at home. Is there a way to do this I’m not getting?
Hi @scameron When you get the location, Shortcuts returns a whole load of information about the location. You need to select a specific part of the location information for it to be useful.
otherwise you may get a nearby street returned (which could be possible even with Best, depending upon the strength of the GPS signal/accuracy wherever you are).
A common approach to geo locating a home or office is not to rely on GPS at all (it can be slow), but to check instead if you are connected to a named WiFi network associated with that location.
Example
Each night when I put my phone on the charger, it checks of I am connected to my home wifi network. If I am, it then connects to an airplay speaker and plays some background audio. If I am not, then it does nothing.
In the Shortcuts app, under Automation, the system automation wizard has built-in support for “When I am home”, etc. I wonder what the iOS system uses to determine “when I am home”? I assumed that “when I am home” was as simple as a boolean exposed to the user, but that doesn’t seem so.
Shortcuts uses “Home” and “Work” that are set up in the Contacts card for yourself. There are times that you have to be careful when choosing location names because they’re more like a nickname for the address, and you’ll still need to confirm the full address when setting up certain actions like Get Distance or Get Travel Time.