How to Adjust iOS’ Volume via Workflow When Streaming Audio to HomePod

One of Workflow’s least known functionalities is its ability to get details about the hardware it’s running on and control some system features. Among these, Workflow can both retrieve an iOS device’s current volume level and set the volume. A few days ago, I realized I could make a workflow to quickly adjust my iPhone’s volume when streaming music to one of our HomePods. Unlike other automations I’ve crafted over the years, this workflow was quite a success in our household and I felt like it was worth sharing with the wider MacStories audience.

It all started with a problem: my girlfriend and I like to listen to music at night before we go to sleep (usually around 1 AM) but we don’t want to disturb our neighbors downstairs. We’ve discovered that when we listen to the bedroom HomePod late at night, even moving from 20% volume to 17% or from 15% to 22% makes a difference for certain songs. Some songs are too loud and we need to lower the volume; others are too quiet and we don’t mind taking it up a notch.

Currently, iOS 11 and the Home app (where the HomePod’s main controls live) don’t offer a precise way to control system volume as a numeric value. I could use the built-in volume sliders, but they’re sloppy and don’t show you the volume percentage at all. I could use Siri, but I don’t want to talk every time I need to tweak the volume. Alternatively, I could tap the HomePod’s volume buttons, but those only adjust the speaker’s volume in 5% increments. By now you’ve probably realized that I’m a little particular about my nocturnal volume levels. And particular problems on iOS are often fixed with a familiar solution: automation via Workflow.

The workflow I put together consists of six actions that allow me to pick a new volume level from a list of presets, represented as values that range from 1 to 10. This workflow takes a second to run and it can be used directly from a widget without having to open the Workflow app. When you’re streaming audio to the HomePod, the volume change is instantly mirrored to the speaker.

This is accomplished by preparing a List action that contains your favorite volume presets. Because Workflow’s Set Volume action accepts any number between 0 and 1, all we need to do is divide the number by 10 to obtain a compatible value; 2 (which equals 20% volume) becomes 0.2, 1.75 becomes 0.175, and so forth. Thanks to the Choose from List action and Magic Variables, we can even display the current volume level in the title of the alert before picking a new value.

Changing system volume on iOS using presets in a List action.

Changing system volume on iOS using presets in a List action.

Unfortunately, the workflow comes with one big limitation. Currently, the Workflow app cannot connect directly to a HomePod and change its volume independently from an iOS device. Unlike iOS 11’s Control Center, which lets you switch output devices and have a separate audio stream on the HomePod that doesn’t interfere with system audio on your iOS device, Workflow can only change the system volume for the device it’s running on. This means that the workflow is only useful when you’re streaming audio directly to the HomePod; you can do this by tapping iOS’ AirPlay icon (either in apps or Control Center) and selecting the HomePod as output. This will be confirmed in the UI with a label such as ‘iPhone ⇾ LIVING ROOM’, where ‘Living Room’ is the name you’ve assigned to the HomePod.

You can stream audio directly to the HomePod by selecting it as the main output device.

You can stream audio directly to the HomePod by selecting it as the main output device.

Ideally, Workflow (which is owned by Apple) should be capable of controlling the HomePod’s volume separately from an iOS device, just like Control Center can. But then again Workflow should also come with HomeKit and Siri integrations, and we’re still waiting for its next big step. Despite this limitation, I’ve found my workaround to be good enough when I want to stream some music from my iPhone to the HomePod and have fine-grained volume controls that don’t involve voice commands. Plus, you can use this workflow to quickly adjust system volume when listening through any speaker or pair of headphones. I highly recommend installing it as a widget, which allows you to change volume through presets from anywhere on iOS, including Cover Sheet and the Lock screen.

You can download the workflow here.

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.