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

Steven SANH

macrumors regular
Original poster
Mar 27, 2023
131
19
Australia
Automation volume.jpg


I can find the "Get Volume" in the Shortcuts App, but not in Automations.

I'm trying to have an automation that will detect when the media volume is very loud. (e.g. by accidentally holding down the volume button and inadvertently the volume is 100%). I want a notification on the Lock screen. (plus Siri if possible).

I can do most of this if I run a manual shortcut, but that is little help. I need it automatic in Automations. I am still learning scripting/programming.

Any help will be appreciated.
 

FreakinEurekan

macrumors 604
Sep 8, 2011
6,539
3,417
"Current volume" is a state, not an action. To use that in an automation would require a constant stream of "What's the volume now? What's the volume now? What's the volume now?" ad infinitum.

Does Automations support a "Volume Change" action? If the volume gets RAISED, then you can check the level - if it's still below 0.5, end. If it's above 0.5, alert.

BTW just in case you missed in, Settings > Sound & Haptics > Headphone Safety.
 

Steven SANH

macrumors regular
Original poster
Mar 27, 2023
131
19
Australia
"Current volume" is a state, not an action. To use that in an automation would require a constant stream of "What's the volume now? What's the volume now? What's the volume now?" ad infinitum.

Does Automations support a "Volume Change" action? If the volume gets RAISED, then you can check the level - if it's still below 0.5, end. If it's above 0.5, alert.

BTW just in case you missed in, Settings > Sound & Haptics > Headphone Safety.

So, you're saying this is not possible to do in Automations?

I understand "Current volume" is a state, not an action. Yet in automations, you can get an alert when the battery level is above/below a certain level. (So that must be constantly checking).

Yes I know about the Headphone Safety, thanks.
 

FreakinEurekan

macrumors 604
Sep 8, 2011
6,539
3,417
Yet in automations, you can get an alert when the battery level is above/below a certain level. (So that must be constantly checking).
Well, not “constantly” but periodically. Battery charge level is updated on-screen and is used internally in various locations, so iOS needs to be aware of the level fairly often. Maybe once every few seconds, or even once a minute might do.

There’s no reason for volume level to change unless someone changes the volume level, so I don’t see why iOS would need to look at it other than when the volume level changes.

I have no idea if automations looks at “volume level changed” actions or not, it’s not an automation I have any interest in developing. What I’m saying is, THAT’S what you need to look for - not “current volume level,” unless you’re manually running a script.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.