Examples‎ > ‎

React to Specific Mode Changes

posted Oct 26, 2015, 2:07 PM by Joshua Lyon   [ updated Oct 26, 2015, 2:11 PM ]
In this tutorial, we'll show how to react to specific mode changes. By default, when you subscribe to mode changes in SharpTools, the 'Mode Change' event plugin will be triggered anytime ANY mode change occurs. If you want to trigger mode changes only for specific modes, you will need to use a conditional action (IF).

In this example, we will explain how to setup a task that only runs if the mode is changed to `Night`.

  1. Open SharpTools
  2. Open the left navigation and select Modes
  3. Long press on any mode and select 'Subscribe to all mode changes'
    Note: If you are presented with the option 'Unsubscribe from all mode changes', you are already subscribed and no action is needed.
  4. Open Tasker
  5. Create a new Profile > Event > Plugins > SharpTools: Mode Change
  6. Click the pencil icon to edit the plugin
  7. No configuration is needed, so simply click the Apply button
  8. Press back to exit the profile configuration
  9. When you are prompted to enter a name for the task, leave the task blank and tap the checkmark to continue
  10. Add a new action using the + icon
  11. Select your desired action (for example, Alert > Flash)
  12. Configure your desired example (for example Text: "This is the mode we want")
  13. While you are still in the Task, press the + icon in the IF section
  14. Configure the conditional action: IF %st_mode ~ night
    Note: See the conditional action article for more information.
  15. Back out of the action
  16. Back out of the profile
  17. Back out of Tasker to enable the new profile
Here's a video showing this feature in action:

Comments