For testing purposes I have a "Variable Value %VOLM == 1" profile that triggers these actions:
- flash "\%VOLM is 1; setting to zero"
- wait 2 seconds
- Media Volume 0, display: yes
- flash "\%VOLM is now %VOLM"
This profile works entirely as expected--manually setting media volume to 1 causes the first flash to appear, then two seconds later the Android media volume pop-up shows a media volume of 0 and Tasker flashes "%VOLM is now 0."
I also have a "Variable Value %VOLM == 0" context profile that triggers only this action:
- flash "yes, \%VOLM really is zero"
I expect this profile to activate immediately after the first profile's task completes, but this is not the case.
Additionally, Tasker's UI shows the first profile as active and the second as inactive even after the media volume is zeroed.
It appears that %VOLM is being set correctly by the Media Volume action, but not in the necessary way to cause relevant State contexts to see the change in value.
For what it's worth, changing the "Variable Value ==" contexts to "Variable Value ~" contexts had no different effect.
Also, both profiles have their "restore settings on exit" setting disabled.