/r/tasker

Photograph via snooOG

Welcome to /r/Tasker

In addition to the Official Tasker Wiki, User Guide, and Google Groups, this subReddit is a place for fellow Redditors to discuss, share, and submit Profiles, Tasks & Walkthroughs for Tasker, or to ask for help creating your own Profiles, Tasks, and questions in general related to Tasker (including plugins etc).

Subreddit Resources:

* [Read Me] Using Tags in Your Thread Titles

Formatting Tasker Code for use in reddit comments

How to Export / Import Files Into Tasker - Guide

** Tasks that Help You Use Tasker Itself

Free Alpha Autoapps and Tasker Icon Sets

Generate Tasker Direct-Purchase Licenses Yourself

Tasker Feature Request Submissions

Quick Search Links:

"How-To / Project" Threads

"Need Help" Threads

"Weekly / Monthly & Discussion" Threads

"Developer" - Tasker Updates & Releases

* List of Tasker Plugins and 3rd Party Apps

Learning Guide Links:

* 1,001 Tasks and Profiles - Best, Coolest, Most Common and Useful

Pocketables.com Beginner’s guide to Tasker (New UI)

RoryCodes.com Tasker Tips & Tutorials from /u/froryrory

Tasker Quick Start Setup Guide from /u/Quintaar

Pocketables.com Tasker Guide List

Some Tasker Technical Stuff:

Toggling Wifi or Bluetooth via Tasker In Recent Android Versions using the Tasker Settings app

Granting ALL Special Permissions - ADB & Tasker

IFTTT Tasker Integration via AutoRemote

ADB over Wifi - Enabling Without a MAC or PC

AutoApps Command System Tutorial and Reference

Tasker Scheduling/Priority System - A Detailed Guide

New Project/Profile/Task "PPT Variables" - Quickly Find The Variables' Location, Names & Values!

All Previous Versions of Tasker With Notes For Features & Changes In Each

List of all Tasker Built-In Variables


TaskerNet Search Bot - How to use here

TaskerNet Search Engine Website


Learning Guide Videos:

AutoApps YouTube Channel and João Dias Channel

Tasker 101 Tutorials on YouTube by HollywoodFrodo

Tasker 101 Tutorials on YouTube by /u/Quintaar

Tasker How-To Videos on YouTube by /u/-Juan_M-

Tasker Tutorials on G+ & YouTube by /u/ryoendeprouw

Tasker Video Tutorials by /u/techentourage

Have more useful links you think should be in the sidebar? Send a modmail!

Related Subreddits:

/r/TaskerNet
/r/JoinApp
/r/Android
/r/AndroidRoot
/r/AndroidTechSupport
/r/AndroidApps
/r/AndroidUsers
/r/AndroidQuestions
/r/TaskerFiles
/r/Not_Enough_Tech

/r/tasker

92,257 Subscribers

1

Pixel 9 private space

Can anybody help I want to use the trigger of when private space is unlocked and locked to run automations

0 Comments
2025/02/03
19:18 UTC

1

Auto reply when incoming message (IN GROUPCHAT)

Hello everyone, I’m fairly new to Tasker and would like some help.

I’d like to know if it’s possible to automatically reply to a message whenever the group owner sends one.

If so, how can I set it up?

Also, is it possible to add a delay of 1–2 seconds before the auto-reply?

Thanks!

0 Comments
2025/02/03
16:39 UTC

1

Automated phone call with voice message

Hello. I don't know if this is the right place to post, but I need a tool that can make an automated phone call that i can schedule when I want it to happen, or set a timer, that plays a voice message, preferably text-to-speech, or a pre-recorded message whatever it works. Note that i'm not a programmer. I'm just a layman who needs a tool. I've found some other apps that do the job, but they don't have the ability of voice message. So i figure you can help me.

0 Comments
2025/02/03
16:18 UTC

4

Looking for a Tasker Plugin Developer – Integrating a Local LLM with Tasker

Hey everyone,

I found a promising project on GitHub that allows running a local LLM on Android. It uses models like gemma2.gguf or similar, essentially letting you have a small personal "ChatGPT" on your device.

I had an idea to integrate this with Tasker by creating a plugin. This could enable tasks like:

  • Copying an article's content from a browser and automatically generating a summary.
  • Understanding any written message within a task and using Tasker to act accordingly on the phone.

Everything would remain local, running directly on the device. The project is available here:
🔗 GitHub - Android-Document-QA

Unfortunately, I lack the skills to create this plugin myself, but I believe that if someone capable of developing it steps in, they could find great synergy with the APK creator of the LLM project.

Would anyone be interested in working on this?

2 Comments
2025/02/03
13:11 UTC

1

I need help please

I want to make it so that when I send a message in a specific WhatsApp group, the message will automatically be sent as an SMS to specific contacts. Can anyone help me with this?

2 Comments
2025/02/03
09:55 UTC

0

Buzkill-block toast notifications?

Got buzzkill for 1 phone. Works well blocks dumb notificationa os does. But can it block toast notification. Those are far worse cause you cant dismiss them. Best way to block toast notifications?

2 Comments
2025/02/03
09:28 UTC

2

Sleep As Android wake-up event

Hi all.

I didn't found the event in tasker to fire a task when we click the "I'm awake" button into the wake-up check notification from Sleep As Android.

Maybe with AutoNotification, but I can only fire something when the notification is canceled, whatever the button clicked.

Can you guys can hep me ? Thanks a lot.

4 Comments
2025/02/03
09:25 UTC

3

How do i fully stop a task thats running with autoinput.

Sometimes if i have a long script it will just keep going and going. IS there a way I can stop it immediately ?

3 Comments
2025/02/03
06:09 UTC

1

App Factory - Export Hidden Apps

Is it possible to export an app and make it hidden. So that when installed on another phone, the application won't appear in the launcher's list of applications?

3 Comments
2025/02/03
02:49 UTC

1

Where are my task going ??

I'm making them in the app but when I leave it goes away

2 Comments
2025/02/03
01:54 UTC

1

How can I implement a loop into my autoinput moves v2?

It does the action once then stops. The only thing I can think of is copy and paste the code multiple times.

5 Comments
2025/02/03
01:33 UTC

1

Using Variables in optional parameters

I'm working on a Tasker setup where a Parent task calls a Child task via the Perform Task action, passing parameters using %par1 (a comma-separated list) and %par2 (a custom separator if needed). The Child task processes these parameters and uses them in an action, such as Variable Query, which has optional fields.

However, I’ve run into a problem: I want to pass a value (stored in %par1(2)) into the Default field of Variable Query (or any optional field), but only if it has a value. If %par1(2) is blank, I want Variable Query to behave as if the Default field was never filled in at all.

The issue is that Tasker doesn’t seem to have a way to make an optional field truly behave as if unset when passing a variable into it. Using a space gets close, but is noticeably different in some cases, and a cleared or unset variable resolves to its name (as expected).

The only solution I can think of is using if-else logic to call the Variable Query either with or without the Default parameter, but that scales poorly when multiple optional parameters are involved. Is there a cleaner way to handle this? Maybe a trick to make Tasker treat an empty variable as truly omitted in an action parameter?

Here's the code for the task I've got:

    Settings: Run Both Together
    
    <par1 Inputs (comma separated):
    Title, Type, Default, Background, Timeout
    
    All are optional. Type defaults to 1 (Normal Text), Timeout defaults to 40, and the rest default to blank.
    
    Valid inputs for Type: numbers 1-8, as well as the exact text of the items in the "type" field of the variable query action (names included for better readability of calling actions).
    
    par2: if set, par1 is interpreted as separated by the contents of par2 instead of a comma.
    
    Output: the user input, or "🥫📱" if the user clicks the X button.>
    A1: Anchor
    
    A2: If [ %second_level !Set ]
    
        A3: If [ %par2 Set ]
    
            A4: Variable Set [
                 Name: %separator
                 To: %par2
                 Structure Output (JSON, etc): On ]
    
        A5: Else
    
            A6: Variable Set [
                 Name: %separator
                 To: ,
                 Structure Output (JSON, etc): On ]
    
        A7: End If
    
        A8: Variable Set [
             Name: %second_level
             To: 1
             Structure Output (JSON, etc): On ]
    
        A9: Perform Task [
             Name: Tower Var Querry
             Priority: %priority
             Parameter 1 (%par1): %par1
             Parameter 2 (%par2): %separator
             Return Value Variable: %return
             Local Variable Passthrough: On
             Limit Passthrough To: %second_level
             Structure Output (JSON, etc): On
             Continue Task After Error:On ]
    
        A10: Variable Set [
              Name: %return
              To: 🥫📱
              Structure Output (JSON, etc): On ]
            If  [ %return !Set ]
    
        A11: Return [
              Value: %return
              Stop: On ]
    
    A12: Else
    
        A13: [X] Variable Set [
              Name: %par1
              To: Set to:
              Recurse Variables: On
              Structure Output (JSON, etc): On ]
    
        A14: Variable Split [
              Name: %par1
              Splitter: %par2
              Delete Base: On ]
            If  [ %par1 Set ]
    
        A15: For [
              Variable: %item
              Items: 1,3,4
              Structure Output (JSON, etc): On ]
    
            A16: Variable Set [
                  Name: %par1(%item)
                  To:  
                  Structure Output (JSON, etc): On ]
                If  [ %par1(%item) !Set ]
    
            A17: [X] Flash [
                  Text: %par1(%item,0)
                  Tasker Layout: On
                  Dismiss On Click: On
                  ID: var_querry_flash ]
    
        A18: End For
    
        A19: Variable Set [
              Name: %par1(5)
              To:  40
              Structure Output (JSON, etc): On ]
            If  [ %par1(5) !Set ]
    
        <Type 1: Normal Text>
        A20: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Normal Text
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 1 | %par1(2) ~ Normal Text | %par1(2) !Set ]
    
        <Type 2: Caps/Word>
        A21: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Caps / Word
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 2 | %par1(2) ~ Caps/Word ]
    
        <Type 3: Caps/All>
        A22: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Caps / All
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 3 | %par1(2) ~ Caps/All ]
    
        <Type 4: Numeric/Decimal>
        A23: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Numeric / Decimal
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 4 | %par1(2) ~ Numeric/Decimal ]
    
        <Type 5: Numeric/Integer>
        A24: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Numeric / Integer
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 5 | %par1(2) ~ Numeric/Integer ]
    
        <Type 6: Password>
        A25: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Password
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 6 | %par1(2) ~ Password ]
    
        <Type 7: Phone Number>
        A26: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Phone Number
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 7 | %par1(2) ~ Phone Number ]
    
        <Type 7: Passcode>
        A27: Variable Query [
              Title: %par1(1)
              Variable: %return
              Input Type: Passcode
              Default: %par1(3)
              Background Image: %par1(4)
              Layout: Variable Query
              Timeout (Seconds): %par1(5)
              Show Over Keyguard: On ]
            If  [ %par1(2) eq 8 | %par1(2) ~ Passcode ]
    
        A28: Return [
              Value: %return
              Stop: On ]
    
    A29: End If
10 Comments
2025/02/02
21:11 UTC

5

Raspberry Pi to Tasker project

Crossposting to share a neat project I just threw together. Uses Python on a Raspberry Pi to get a variable that gets sent to my phone. Tasker does the magic of converting the data.

https://www.reddit.com/r/RASPBERRY_PI_PROJECTS/s/SDt5UhDZNh

Here is the task that runs when I get the AutoRemote message of "dogfood|x.xx" where the x.xx is the weight in pounds.

Task: Dog Food

A1: Variable Set [
     Name: %DOGFOOD
     To: %armessage
     Structure Output (JSON, etc): On ]

A2: Variable Split [
     Name: %DOGFOOD
     Splitter: | ]

A3: Variable Set [
     Name: %DOGFOODPERCENT
     To: %DOGFOOD3 / 15
     Do Maths: On
     Max Rounding Digits: 3
     Structure Output (JSON, etc): On ]

A4: Variable Set [
     Name: %DOGFOODPERCENT
     To: %DOGFOODPERCENT * 100
     Do Maths: On
     Max Rounding Digits: 3
     Structure Output (JSON, etc): On ]

A5: Run Shell [
     Command: date +"%d%b%y"
     Timeout (Seconds): 0
     Store Output In: %DOGFOODLOGDATE
     Use Global Namespace: On ]

A6: Run Shell [
     Command: date +"%H:%M"
     Timeout (Seconds): 0
     Store Output In: %DOGFOODLOGTIME
     Use Global Namespace: On ]

A7: Notify [
     Title: Dog Food Level
     Text: %DOGFOODPERCENT% (%DOGFOOD3) at %DOGFOODLOGTIME, %DOGFOODLOGDATE
     Icon: mw_maps_local_drink
     Number: 0
     Priority: 3
     LED Colour: Purple
     LED Rate: 0 ]
    If  [ %DOGFOODPERCENT < 15 ]

A8: Minimalistic Text [
     Configuration: %DOGFOODPERCENT = %DOGFOODPERCENT%
     Timeout (Seconds): 0
     Structure Output (JSON, etc): On ]

A9: Minimalistic Text [
     Configuration: %DOGFOODLOGTIME = %DOGFOODLOGTIME
     Timeout (Seconds): 0
     Structure Output (JSON, etc): On ]

A10: Minimalistic Text [
      Configuration: %DOGFOODLOGDATE = %DOGFOODLOGDATE
      Timeout (Seconds): 0
      Structure Output (JSON, etc): On ]

I also have a similar scale project on a water cooler where the scale is under the water jug.

2 Comments
2025/02/02
20:12 UTC

0

Need help for setting up task and autoinput for a fishing game.

The fish can appear randomly on the screen in a rectangular area and when the fish pop up its a shadow, when you click the shadow a minigame pops up at the bottom with a blue circle that slides at random speed across a small slider. Is this possible to automate?

0 Comments
2025/02/02
18:58 UTC

2

Help with app Factory

I made something to get random wallpaper from API and set it, it worked on testing but when I make an app with App Factory it's an error when setting wallpaper.

0 Comments
2025/02/02
15:58 UTC

2

Smart watches, smart bands, bluetooth two way comm

My objective is a two way bluetooth communication between a device (smart band , smartwatch, etc. ) and Tasker on my non rooted phone using GrapheneOS (i can adb grant some rights if necessary).

So I need to be able

  • to send notifications from tasker to the device.
  • to receive events on the phone from the device, like pushed buttons, app or widget selected on the device, etc.
  • to be able to detect when both the phone and the device are near, far, disconnected, etc.

I did some research and this is what I found:

  • there is some logcat thing that can detect an event on a bluetooth device and then the bluetooth signature can be recognized by tasker. Is this correct ? Is it that easy ?
  • hybrid smartwatches like Casio or Fossil seem to work but only from the watch to the phone.
  • smart bands seem to be a good option. Specially Xiaomi smartbands have apps that can allow 2-way communication. And maybe amazon bands too.
  • wearos watches can work and then I can make a simple menu on the watch that sends different events. 

Am I correct ? What am I missing ?

The two options I consider are 

  1. A watch IF I can indeed make a menu on it and choose and run differrnt events and have a feedback. 
  2. A cheap smartband but they dont have physical buttons so I dont see how I can run things from the watch. 

Any advice is welcome !

Thanks

Edit: I also have AsteroidOS watches. But I sadly haven't found anything on that front.

13 Comments
2025/02/02
10:11 UTC

1

So I want to modify a system table setting called k2hd_effect to 1 value and stay it to force on, help me with please, complete beginner here

So I just got Tasker and have zero experience or clue how it works or how I should get it working, help pls, this K2HD_EFFECT 1 setting currently I can't get working on SetEdit app and reverts to "0" value alltime. Help pls!

2 Comments
2025/02/02
09:44 UTC

1

Help with JSON Read

Could someone help me with the JSON Read feature please?

I tried for a few hours last night but am not too familiar with JSON and am stuck

I've used a URL tracer, where I put in a shortened URL from Amazon, and it returns something like this:

{ "timestamp": 123456, "apiVersion": "1.0", "apiStatus": "success", "apiCode": 200, "meta": {...}, "data": [ { "url": "https://amzn.eu/d/a1b2c3", "status": 301, "headers": [ { "name": "server", "value": "Server" }, { "name": "location", "value": "https://www.amazon.co.uk/dp/ABC12345?..." } ] } ] }

There are a lot more name / value entries, but hopefully this is a decent simple example

I can get everything under headers, each name and value, but I'm trying to get the value = ? where name = location

What do I need to do please? Again I'm not too familiar with it and have read all the guides and examples I can find, but just can't do it

Thank you

8 Comments
2025/02/02
09:41 UTC

5

%Date - i want to launch an app only if the date in first 5 days of the month. Is there a regex function that will do this?

I only need the app to open if it's the first 5 days of the month. Basically it's a finance app and i want to check if interest got credited.

5 Comments
2025/02/02
06:50 UTC

1

Passing variables from Tasker to macrodroid

I am using intents in Tasker to trigger macros in macrodroid but I can't figure out how to pass Tasker variables/data to macrodroid variables using the intent

12 Comments
2025/02/01
22:13 UTC

2

Nerfed notifications?

I haven't bothered trying to make new tasks for awhile as the essentials that I've been using for years work fine maybe with just a modification for new phones or android versions... On to the point. I remember being able to create a custom Tasker notifications that I could use to perform simple little tasks like killing persistent media apps or display information or whatever and it used to be quite customizable but now this feature seems to be nerfed. Is this android restrictions or am I missing something?

1 Comment
2025/02/01
21:08 UTC

11

Another update to my Notes/Reminder WidgetV2 Project

To check for more details about my project i recommend to go here:

https://www.reddit.com/r/tasker/comments/1i9nqqm/updating_my_notesreminder_widget_v2_project/

What's new

  • Checked and Unchecked are now split. If you check a note it will go down the list below the unchecked notes. Thanks for u/Rich_D_sr for the help to get this one working.
  • Renamed project and global variable so it won't be a casual name that will make a problem with your already existing names. Again thanks for u/Rich_D_sr for the tip.
  • Longer timeout for input dialog.

Remember to backup your notes list before importing!

Link to import the project from Taskernet:

https://taskernet.com/shares/?user=AS35m8ldOi25DBPGs3x5M9llABde8mEdfnX4bJ6fN5Lg8%2BvH2Sm43qhz6lWDu72sGl2jGexo&id=Project%3ANotes+Widget

5 Comments
2025/02/01
20:03 UTC

0

Swipeocalypse Unleashed!

Bumble premium’s almost up, and guess what? Not a single like. Not one! So, I did what any unhinged genius would do -- unleashed a Tasker swipepocalypse!

Video: https://www.reddit.com/r/BumbleGirls/s/5nDmURLsDa

Profile: Auto Bumble Swipe
     Event: Volume Long Press [ Type:Volume Down Additional Time (Check Help):* ]
     Application: Bumble
    
    Enter Task: Perform Swipe
    
    A1: Flash [
         Text: Auto Swipe On
         Continue Task Immediately: On
         Dismiss On Click: On ]
    
    A2: App Info [ ]
    
    A3: Perform Task [
         Name: AutoInput Swipe Right Gesture
         Priority: %priority ]
    
    A4: Wait [
         MS: 135
         Seconds: 0
         Minutes: 0
         Hours: 0
         Days: 0 ]
    
    A5: If [ %app_package eq com.bumble.app ]
    
        A6: Goto [
             Type: Action Number
             Number: 2 ]
    
    A7: End If
    
    A8: Flash [
         Text: Auto Swipe Off
         Continue Task Immediately: On
         Dismiss On Click: On ]
3 Comments
2025/02/01
19:17 UTC

2

I want to find an application/solution that will allow me to make photos that I take during specific hours of the day (or based on my location at work) to be saved to a separate folder and then to have the photos in the folder be auto deleted at the end of the day.

I work at a job where I have to take lots of photos to help me remember information, and I'm tired of manually deleting them everyday.

10 Comments
2025/02/01
17:33 UTC

3

I want to create a profile when I unlock my phone and when both wifi and mobile data are off, I want to show connectivity panel.

I want to create a profile when I unlock my phone and when both wifi and mobile data are off, I want to show connectivity panel.

I am able to set unlock option and show connectivity panel. The condition that when both wifi and mobile data are off is messing me up. I tried going to if in task function and set %WIFI0 AND %MOBILE0

But it is showing connectivity panel every time I unlock the phone.

P. S I am just a beginner in tasker

  1. Tasker Function

Function No Net
If %WIFI ~ off & %MOBILE ~ off
2. Settings Panel
Type Connectivity

Edit:

A big thanks and shout out to u/Cascading_Neurons for helping me (in another thread)

Profile Link

3 Comments
2025/02/01
16:48 UTC

0

Redirecionamento com tasker

Alguém poderia me informar se é possível montar um redirecionamento de aplicativo com o tasker, por exemplo, do whatsapp para o anki, sendo que aquele só será liberado após uma quantidade de minutos específica?

0 Comments
2025/02/01
16:26 UTC

3

I want to show media volume panel when I open an app

Hey guys, so I am new to tasker. Basically I am learning tasker by creating simple tasks and importing preexisting tasks.

So what I want is when I open an app (I hope profile trigger is Application-launch app) I need the device to show my media volume panel.

Any help would be appreciated

Edit:

A big thanks and shout out to u/Cascading_Neurons for the help. Also for u/mehPhone for inspiring u/Cascading_Neurons

Profile Link

If you need any edit refer this comment

20 Comments
2025/02/01
14:38 UTC

4

Invoke task when outside radius of bounding box

How to do to do this? Thanks on advance

2 Comments
2025/02/01
06:42 UTC

0

Task "class" variables?

Currently we have two type of variable. Global and local. But one thing I think could be useful are a form of "class" variables, that are only accessible within the task that created them, but persistent between runs of the task

A lot of my global vars hold the last successful run time of a task, to be used earlier in the task as a throttle/debounce for some particular conditional part of the task, and it would be nice to have a way to organize them

4 Comments
2025/02/01
01:55 UTC

1

[HELP] string.match(/regular expression/) not working in JavaScriptlet

Answer: The .match(regex) method was working, but its output is an array object and I mistakenly assumed js would convert it to a string (doh!). If I really wanted a string, adding the .ToString() method to .match() (text.match(regex).ToString()) would do that, but creating an array in Tasker before calling the scriptlet and assigning .match(regex)'s output to it was what I ultimately did. Many thanks to u/Cascading_Neurons for setting me straight.

According to W3schools.com, string.match(/ai/gi) is supposed to return an array of every match in "string", but I've tried lots of variations of the following statement and nothing's worked update: (with and without the g and i qualifiers). Do I need to specify a different js library or something? All help appreciated.

matchvar = string.match(/regular expression/)
5 Comments
2025/01/31
22:01 UTC

Back To Top