Matt
Suniil
Matt
Since I could test this on JB, I wanted to provide some details.
Here is what I made a shortcut to:
Test On / Off (321)
A1: If [ %Test ! Set ]
A2: Variable Set [ Name:%Test To:on Do Maths:Off Append:Off ]
A3: Else If [ %Test ~ on ]
A4: Variable Set [ Name:%Test To:off Do Maths:Off Append:Off ]
A5: Else If [ %Test ~ off ]
A6: Variable Set [ Name:%Test To:on Do Maths:Off Append:Off ]
This activated two profiles:
Profile: Test Silent (322)
Priority: 8 CoolDown: 0
State: Variable Value [ Name:%Test Op:Matches Value:on ]
Enter: Profile Silent (91)
A1: Vibrate [ Time:200 ] If [ %SILENT ~ vibrate ]
A2: Silent Mode [ Mode:On ] If [ %SILENT !~ on ]
A3: Stop [ With Error:Off Task:Profile Silent ]
and
Profile: Test Volume (323)
Priority: 7 CoolDown: 0
State: Variable Value [ Name:%Test Op:Matches Value:on ]
Enter: Volume Test (325)
A1: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A2: Ringer Volume [ Level:2 Display:Off Sound:Off ]
(Disabled all other profiles)
With these I can confirm for my device:
1) Setting ringer volume while on silent deactivates the silent profile!
2) If silent profile is set before changing volume, silent deactivates. When volume profile deactivates, silent mode engages again.
3) Changes to volume levels do restore in the sense that rules apply to observations detailed in #2.
Considering these completely different results, I can only say that perhaps this action within tasker varies by device, more so than perhaps by version.
As a note, I did not know tasker will disengage silent mode profiles when changing volume levels for the ringer on my device. I will have to remember that!
Silent Test Shortcut
A1: Flash [ Text:Ringer = %VOLR Long:Off ]
A2: Silent Mode [ Mode:Vibrate ]
A3: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A4: Variable Set [ Name:%Test To:1 Do Maths:Off Append:Off ]
A5: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A6: Variable Set [ Name:%Test To:0 Do Maths:Off Append:Off ]
A7: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A8: Silent Mode [ Mode:Off ]
A9: Flash [ Text:Ringer = %VOLR Long:Off ]
Profile: Volume Test Profile
State: Variable Value [ Name:%Test Op:Matches Value:1 ]
Enter: Anon
A1: Ringer Volume [ Level:4 Display:Off Sound:Off ]
Matt
Again, adjusting the volume ringer level for my device eliminates silent mode.
This is why I never had a chance to test deactivation, UNLESS I used multiple profiles for various actions which could be selectively deactivated.
That allowed me to determine settings do revert, but only in the sense that the default changes to the volume levels will restore a profile mode i.e. silent, vibrate, normal.
Again, this is just for my device.
I don't know if this applies to the newer (4.0+) version of Tasker, but on Tasker 1.6u2m ringer (and notification) volume changes aren't restored if the phone is in silent mode.