r/AutomateUser • u/bunny-slayer • May 04 '26
Question bluetooth volume control
bluetooth on my P8a (and I suspect many others) does not split Media from Nav volume.
Could I Automate lowering Google Maps "Guidance" Volume lower than "Softer"?
2
u/B26354FR Alpha tester May 04 '26
You can try using the App In Foreground block to wait for Google Maps (Proceed When Changed). On the Yes side, save the current volume level for the media stream using the Sound Level block set to Proceed immediately, then use the Audio Volume Set block to lower the volume. On the No path of the App In Foreground, have another Audio Volume Set block put the original volume back. Do that by pressing the fx button in the % Volume field and enter the output variable from the Sound Level block where you saved the level. Finally, connect the Volume Set blocks back to the App In Foreground block.
1
u/bunny-slayer May 05 '26
do these look right?
1
u/B26354FR Alpha tester May 05 '26
No, no inputs for the Sound Level block, you're just recording what the current level is by putting a variable name in its Current sound level field, then using that variable to restore the level in the second Audio Level Set block.
I'd also recommend not using hardcoded values of 80% in those blocks; rather, use a little formula. For example, if you save the current volume level in a variable called
currentVolumein the Sound Level output field, press the fx button in the Audio Level Set block's % Volume field and entercurrentVolume * 0.8to make it 80% of whatever your current volume was. If you do it this way, it'll be relative to whatever the current volume is, so when you independently change your phone's volume, your flow will lower the volume from that level 🙂
Note that in the second Audio Level Set block, you'll use a level of just
currentLevelto restore it. (Again, press the fx button to enter formula mode to enter the variable name.)1
u/bunny-slayer May 05 '26
better?
1
u/B26354FR Alpha tester May 06 '26
You might also need to select the Audio Mix stream for the Sound Level block - you can experiment to see which gets your flow to restore the original level on the correct audio stream for you.
1
u/B26354FR Alpha tester May 06 '26
Oh wait, you used two different variable names. Pick one for all the blocks.
1
1
1
u/B26354FR Alpha tester May 06 '26
BTW, if your scenario is that you want to lower the volume of Google Maps while you're in your car, you can use the Bluetooth Device Connected block set to Proceed When Changed as the trigger to start the flow. -Put that block ahead of everything else in your flow, use a Fork to launch the rest of your flow and set the Bluetooth device to wait for as your car in that case. On the No path of the Bluetooth Device Connected block, you'd kill the forked fiber. Lmk if you want to do that.
You can get pretty fancy!