I'm currently using seven separate flows in Automate to set the media volume to a specific level when certain apps are in the foreground (like Neutron Player, Spotify, YouTube, etc.).
I'm doing this because these apps use different internal volume steps, and setting a consistent volume level improves usability and prevents unexpected loudness.
Now I'd like to combine these flows into a single, more efficient one.
However, I still don't fully understand how to include multiple apps in the “App in foreground?” block.
I assume that within the “Output variables” of this block, I need to define something like a custom variable name under “Foreground package”, which I can then use in an expression to check if the current app matches one of the target packages.
I'm also confused whether I need to add a separate “Expression true?” block afterward (i.e., an “if” / “fx” block), and if so, what exactly I’m supposed to write there to match multiple apps.
Any help or working examples would be greatly appreciated!
I've attached screenshots of my current separate flows below, in case that helps clarify what I'm trying to achieve.
platz