Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Cunir

macrumors 6502
Original poster
Nov 25, 2021
267
312
Hi I'm just starting to explore the whole focus thing and I want it to switch from work to personal every time I leave the house. I want work to be 9 to 5, but only at home. But it seems you can either check the time, or the location, but not both. Is there a way around it?
 
Will need to do some Automation/Shortcut coding.

So set the Work Focus to be location based. In Shortcuts, have an Automation for "when Work turns on". In the Automation, make a check for what hour it is:

Code:
Action: Format [current date]
    Date Format: Custom, Format String: HH
if Formatted Date is between 9 and 17 then
   Action: Nothing
else
   Action: Set Focus Work Off
end if

And can have a "when Work turns off" Automation: Set Focus Personal On

That said, I've seen, on occasion, where a location-based Focus might re-start its self. On the edges of the geo-fence. So this Focus might fire a number of times a day.

This is an option, definitely others that might work better for your situation. For example, I have a Shortcut that checks to see if I'm at home or not and one of the possible checks is to see if the device is connected to the home wifi.
 
  • Like
Reactions: eyeseeyou
cheers for the tip, i'll do it like that.
but it does seem like a bit of a faff when they give you options for location and time. maybe they'll make it easier next time round
 
Something that popped into my mind: might want to have an Automation for 1700, turn off Work focus, otherwise might stay active past 1700.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.