SSID trigger only works once, how to make it always trigger while connected

MacroJim

New member
I have a simple macro that adjusts the volume on my phone when connected to a certain SSID. This works when I first arrive at the location and it connects. But after some time the volume will return to what it was before. I thought it was because I manually changed it while connected, but that's not it. Bottom line is I want my volume turned down (all settings) when I connect to "SSIDname" and stay down until I disconnect. Is there anyway to do this?
 

dhj49er

Well-known member
I have a simple macro that adjusts the volume on my phone when connected to a certain SSID. This works when I first arrive at the location and it connects. But after some time the volume will return to what it was before. I thought it was because I manually changed it while connected, but that's not it. Bottom line is I want my volume turned down (all settings) when I connect to "SSIDname" and stay down until I disconnect. Is there anyway to do this?
Check the system log and see what is causing the volume to change, assuming it's MD as you seem to think.

A simple macro, example follows, will only change volume on wifi ssidname connect and disconnect

T wifi connected ssidname
T wifi disconnected ssidname
A set volume 20 C Trigger fired wifi connected ssidname
A set volume 80 C Trigger fired wifi disconnected ssidname.

If using the above macro, the volume changes sometime after wifi connected and before it disconnects, then something else is causing that change. Perhaps another macro? Or an App? Or the OS?
 

Qarboz

Well-known member
I have a simple macro that adjusts the volume on my phone when connected to a certain SSID. This works when I first arrive at the location and it connects. But after some time the volume will return to what it was before. I thought it was because I manually changed it while connected, but that's not it. Bottom line is I want my volume turned down (all settings) when I connect to "SSIDname" and stay down until I disconnect. Is there anyway to do this?
A trigger is an event that is triggered only once when certain conditions are met (e.g., connecting to a particular ssid). Find more detailed info in the Wiki.

For your request, in the macro you can add the System Setting Change>volume_ring_speaker trigger with constraint your_ssid_connected, so that if the volume is changed it returns to the level you chose in the macro. CAUTION that when you are connected to the ssid YOU CANNOT CHANGE THE VOLUME, to do so you must disable the macro; you can create a second macro triggered by a widget button that enables/disables the first macro.
 

Qarboz

Well-known member
In re-reading I noticed that I had overlooked that with the widget button trigger you can also use the enable/disable trigger action. This makes it possible to do this in the same macro.
 
Top