Tasker Tip Tuesdays

Tasker Tip Tuesdays: How to Prevent Tasker From Restoring Settings

Restoring Settings

Welcome to Tasker Tip Tuesdays​, quick tips to help grow your Tasker knowledge.  This week I discuss how to prevent Tasker from restoring settings.  If you need to keep Tasker from reverting your setting-type Actions to their original values, you’ll love these useful tips.

Settings Actions




Tasker’s settings Actions are defined as having a little cog icon on the right side, as opposed to a lightning bolt, or some other image (if from a plugin).  Examples of settings Actions are “Media Volume”, “Display Brightness”, or “Bluetooth”.  On the other hand, non settings-type Actions are “Flash”, “Variable Set”, and most others.

Restoring Settings

By default, profiles which do not contain an instantaneous context will restore settings back to their original values.  An example of such is the “State” context.  Some profiles warrant reversion of settings back to their original values, but not always.  There are instances where you will want the settings Action to stay at it’s value after the profile becomes inactive.  For those cases, Pent provided four ways to prevent Tasker from restoring settings:

  1. deselect the Restore Settings in the Profile Properties of the relevant profile.
  2. if you set the same setting in the Exit task of the profile Tasker will take that as a hint that the previous value shouldn’t be restored.
  3. create a separate task to run the settings actions and in the Enter task of the profile do a Perform Task action (from the category Tasker) on that separate task. This trick is known as Stefan’s Setting Sidestep.
  4. you can use the corresponding Javascriptlet function instead of the setting action. Settings made in Javascriptlets are not restored.

Examples

Now that you understand how to prevent Tasker from restoring settings, let’s see these examples in action to get a better understanding.  Enjoy the video below as I provide examples for each of the above four methods.


Conclusion




As a result of your new knowledge, you have more control over your settings Action values.  Change them when you want or keep it as default restoring settings, it is up to you.  As long as you have the options available, the power is yours.  If you want more information from the user guide, also read the settings section.

Further Reading

To catch up on previous posts in this series, visit the Tasker Tip Tuesdays page.  As ways, enjoy and keep learning!  Until the next Tasker Tip Tuesday…

What did you think???