Low Power Mode/Focus w/ return to previous Focus Mode
I recently created a Focus Mode that I tied to Low Power Mode. The Focus Mode turned off always on display, set a black background, and silenced all notification except from my wife. I setup a simple automation so that when Low Battery Mode was enabled the Focus Mode was turned on/off.
However, I noticed when this happened it would not return to the Focus Mode that was set prior to going into the Low Power Focus. So I built one Shortcut that:
Checks for a current Focus Mode
If there is a current Focus Mode
Set current Focus Mode to a value in Data Jar
Turn on Low Power Focus
Else
Turn on Low Power Focus
And another that:
If there is a previous Focus Mode in Data Jar
Set Focus Mode to previous Focus Mode
Else
Turn off Low Power Focus
Clears Data Jar variable
These two Shortcuts along with the automations where Low Power Mode comes on when the Low Power Focus Mode is enabled seem to be what I was looking for.
I’m calling these shortcuts Advanced Low Power Focus (On) and Advanced Low Power Focus (Off). Download links below:
Data Jar - Advanced Low Power Focus (On): https://www.icloud.com/shortcuts/8682cca6647049b4aba3eee08f1419ce
Data Jar - Advanced Low Power Focus (Off): https://www.icloud.com/shortcuts/f000b4401816430b8436ddc4b2b205ba
Screenshots of the Shortcuts, Automations, Focus Mode, and a video of the expected behavior have all been attached.
Huge shoutouts to @Stephen Robles for this community!
Another huge shoutout to @Greg Collins for his help on this request (#Temporarily turn DND on, then back to original Focus Mode)! The shortcut he shared gave me the missing piece to get these over the finish line.
Update: Created a version using the new global variable available in the iOS 27 developer beta 1. Seems to run faster than the version using Data Jar. Links below:
Global Value - Advanced Low Power Focus (On): https://www.icloud.com/shortcuts/fa2c9a0850a2477088f78af137176ddb
Global Value - Advanced Low Power Focus (Off): https://www.icloud.com/shortcuts/44d64274dfd0400e834711de9fb90af2