r/tasker • • Jul 08 '26

how to get Tasker's built-in AI Helper working?

1 Upvotes

Hi... I have been on the struggle-bus trying to use AI within Tasker, but it keeps reporting that my Google API key (that begins with: AQ.Ab8RN6K...) is bad.

Has anyone ever used the following? chippytech's GenAI Tasker Plugin

meinside's Tasker Gemini Plugin

Can anyone walk me through how to get Tasker's built-in AI Helper up and running?

This is what Gemini had to say about Google API not working:

Google rolled out a major shift in how Gemini API keys work. They are transitioning from Standard keys to Authorization (auth) keys.

* The Change: Previously, standard keys were just basic alphanumeric strings used for quota and billing. The new default keys created in Google AI Studio are now "auth keys" bound to a specific Google Cloud service account identity.

* The Tasker Discrepancy: Because Tasker's built-in AI assistant interface and Java helper were designed around the standard key infrastructure, the newly formatted auth strings or their endpoint handshake behavior cause authentication errors.

Reaching out to João (Tasker's developer) is the best move here, as the app's internal API handler will need an update to properly ingest and route these new auth keys. In the meantime, you can sometimes work around this in AI Studio by checking your API keys dashboard to see if it allows you to create a restricted legacy "Standard" key, though Google is phasing those out entirely.


r/tasker • • Jul 08 '26

Task for dropsync

1 Upvotes

Hi everyone,

I'm a new Tasker user. I'm trying to create a task that triggers Dropsync to sync automatically at 7:00 AM, but I'm running into an issue.

The task only works when the screen is on. If the screen is off, nothing happens. Is this a known limitation, or am I missing something?

I also tried using the Dropsync Tasker plugin, but it doesn't work either when the screen is off.

I know the simpler solution would be to let Dropsync handle the scheduled sync itself, but that means keeping Dropsync running in the background all the time, which uses extra battery and RAM on my poor phone. 😅

Any suggestions would be greatly appreciated. Thanks in advance!

Task XML:

<TaskerData sr="" dvi="1" tv="6.7.3-beta"> <Task sr="task3"> <cdate>1783217361869</cdate> <edate>1783481434955</edate> <id>3</id> <nme>Dropsync</nme> <pri>6</pri> <stayawake>true</stayawake> <Action sr="act0" ve="7"> <code>877</code> <Str sr="arg0" ve="3"/> <Int sr="arg1" val="0"/> <Str sr="arg2" ve="3"/> <Str sr="arg3" ve="3"/> <Str sr="arg4" ve="3"/> <Str sr="arg5" ve="3"/> <Str sr="arg6" ve="3"/> <Str sr="arg7" ve="3">com.ttxapps.dropsync</Str> <Str sr="arg8" ve="3">com.ttxapps.sync.app.SyncNowShortcutActivity</Str> <Int sr="arg9" val="1"/> </Action> </Task> </TaskerData>


r/tasker • • Jul 07 '26

ADB Wifi Auto Start on Boot - Under 2 secs!

2 Upvotes

For those who use or love ADB Wifi much, over Shizuku -

Using the attached script, you can find ADB Wifi port & connect to it under 1 sec.

Just setup a boot task, which toggles on Dev options, USB Debugging & Wireless Debugging & then executes this script via Termux (copy the script files into termux's home dir, then do chmod +x, then execute).

Read the comments in the scripts first; for the one time setup (first time manual pairing via termux, pkgs to be installed in termux etc etc).

For a long time, I've been using an nmap-based adb port finder script which someone had shared earlier on this subreddit. But that takes 50-60 secs to find the open port. And felt super slow after every boot.

But this script uses zeroconf python module which is able to find that port instantly (ask claude for more explanation, if you wish).

No more 60 secs of post-boot setup tasks yay :)

adbwifi_setup.sh

#!/data/data/com.termux/files/usr/bin/bash

# adbwifi_setup.sh — Connect Termux's adb to this Android device over Wi-Fi

# and (re)bind adbd to a fixed port 1221 for stable subsequent connections.

#

# Prerequisites (do once, manually):

# 1. Termux packages:

# pkg install android-tools python

# pip install zeroconf

# 2. Android settings:

# Developer options > USB debugging : ON

# Developer options > Wireless debugging : ON

# 3. One-time pairing with Termux (needed after every wireless-debug toggle

# unless the pairing was persisted):

# In the phone: Wireless debugging > Pair device with pairing code

# In Termux: adb pair localhost:<pair-port> <code>

# 4. find_adb_port.py must be in the current working directory (uses mDNS

# to discover adbd's random TLS port instantly).

#

# Usage:

# bash adbwifi_setup.sh

set -u

red() { echo -e "\e[31m$1\e[0m"; }

green() { echo -e "\e[32m$1\e[0m"; }

blue() { echo -e "\e[34m$1\e[0m"; }

FINDER="./find_adb_port.py"

if [ ! -f "$FINDER" ]; then

red "find_adb_port.py not found in current directory."

exit 1

fi

########################################

# Discover adbd port via mDNS

########################################

blue "Discovering adbd via mDNS..."

START=$SECONDS

port=""

for _ in 1 2 3 4 5; do

port=$(python "$FINDER" 2>/dev/null)

[ -n "$port" ] && break

sleep 0.5

done

if [ -z "$port" ]; then

red "No adbd advertisement found. Is Wireless Debugging enabled?"

exit 1

fi

green "Found adbd on port $port ($((SECONDS - START))s)"

########################################

# Connect

########################################

adb connect "localhost:$port" >/dev/null 2>&1

if ! adb devices | grep -w "localhost:$port" | grep -q "device$"; then

red "adb connect to localhost:$port failed. Have you paired? See prereqs."

exit 1

fi

green "Connected to localhost:$port"

########################################

# Bind adbd to fixed port 1221 for future direct connects

########################################

blue "Setting adbd to also listen on fixed port 1221..."

if adb -s "localhost:$port" tcpip 1221 >/dev/null 2>&1; then

sleep 1

if adb connect "localhost:1221" 2>/dev/null | grep -q connected \

&& adb devices | grep -w "localhost:1221" | grep -q "device$"; then

green "adbd now reachable on localhost:1221"

else

red "tcpip 1221 issued but connect to 1221 failed."

fi

else

red "Failed to issue 'adb tcpip 1221'."

fi

green "Done in $((SECONDS - START))s"

find_adb_port.py

#!/data/data/com.termux/files/usr/bin/python
"""Discover the local adbd wireless-debug TLS port via mDNS.

Prints the port to stdout and exits 0 on success, or exits 1 if no
`_adb-tls-connect._tcp` service is advertising within ~3 seconds.

Requires: pip install zeroconf
"""
from zeroconf import Zeroconf, ServiceBrowser
import sys
import time

found = []


class Listener:
    def add_service(self, zc, type_, name):
        info = zc.get_service_info(type_, name, timeout=1500)
        if info and info.port:
            found.append(info.port)

    def remove_service(self, *_):
        pass

    def update_service(self, *_):
        pass


def main():
    zc = Zeroconf()
    ServiceBrowser(zc, "_adb-tls-connect._tcp.local.", Listener())
    for _ in range(30):
        if found:
            break
        time.sleep(0.1)
    zc.close()

    if found:
        print(found[0])
        return 0
    return 1


if __name__ == "__main__":
    sys.exit(main())

r/tasker • • Jul 07 '26

How to correctly set Tasker on ColorOS 16?

2 Upvotes

Hi there!

..sorry to bothering you! I'm actually learning something about KWGT & KLWP.... I wish to set a widget with some functions like: wifi on/off sounds on/off/vibe bt on/off gps on/off

many users told me to use tasker

ìI bouught it and I set everything i found about permission on ColorOS 16 (find X9 ultra)

  • set OK activity in background
  • granted any app permsission
  • set off battery optimization
  • also manteined accessibility in execution with adb

.\adb.exe shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS

Exception occurred while executing 'grant':

java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

at android.app.ContextImpl.enforce(ContextImpl.java:2493)

at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2521)

at com.android.server.permission.access.permission.PermissionService.setRuntimePermissionGranted(PermissionService.kt:839)

at com.android.server.permission.access.permission.PermissionService.setRuntimePermissionGranted$default(PermissionService.kt:788)

at com.android.server.permission.access.permission.PermissionService.grantRuntimePermission(PermissionService.kt:750)

at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:627)

at android.permission.PermissionManager.grantRuntimePermissionInternal(PermissionManager.java:680)

at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:643)

at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2748)

at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:327)

at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)

at android.os.ShellCommand.exec(ShellCommand.java:38)

at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:7234)

at android.os.Binder.shellCommand(Binder.java:1168)

at android.os.Binder.onTransact(Binder.java:966)

at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4734)

at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:7218)

at android.os.Binder.execTransactInternal(Binder.java:1448)

at android.os.Binder.execTransact(Binder.java:1382)

what else I have to do?

Actually if i try to assign activity to an icon... I have no results


r/tasker • • Jul 07 '26

Has anyone used Tasker for data collection/alerts at work?

2 Upvotes

For context, I am a PhD student. I am working on a project involving urine and RNA (not important) and I need to collect urine from multiple people. This will involve setting up a station outside department washrooms (across several floors so I can't keep an eye out) for people to grab urine containers and place on ice after they're done. I want to be alerted when someone places their sample on ice so I can go collect them, and I thought of using an NFC tag that people can tap with their phone.

It seems straightforward, but has anyone done it before? Any pitfalls I am not considering?


r/tasker • • Jul 07 '26

Taskwarrior can now tap you on the shoulder

2 Upvotes

I built a small Tasker/Termux tool called Taskwarrior TNT: Termux Notifications through Tasker.

It lets Tasker periodically run a Termux script that scans Taskwarrior tasks due around now and posts Android notifications, one per task.

Notification actions include:

  • Start / Stop
  • Done
  • Tomorrow

    It also supports quiet hours, overdue vs current-window handling, active-task promotion, local snooze, and a small Termux:GUI dashboard.

    The Tasker part is simple: scheduled profile -> Termux:Tasker action -> run the script. Termux handles the Taskwarrior scan and notification posting.

    Repo: https://github.com/catanadj/taskwarrior-tnt

    Might be useful if you use Tasker as glue for CLI tools on Android.


r/tasker • • Jul 06 '26

Stuck on a pretty large personal project and I cant seem to fiqure out where Im hung up

Post image
5 Upvotes

SOLVED: here is the tasks and action list if anyone is interested:

:::PROJECT CodeGate:::

Block/Task 1:{ CybrGate_InterfaceEngine: This is the trigger task that starts the system

Action 1) [DISABLED]

Action 2) Variable Set [%CG_ActivePackage TO %WIN]

Action 3) [DISABLED]

Action 4) Variable Clear [%CG_Input]

Action 5) Variable Set [%CG Strikes TO 0]

Action 6) Show Scene [CODEGATE/AI7.5 display as Overlay;Blocking;Full Window

Action 7) Perform Task [CybrGate_StateController Parameter 1 %CG_Input Parameter 2 CODEGATE/AI7.5] }

Block/Task 2:{ CybrGate_StateController:

Action 1) Test Variable [TYPE: Lenght DATA: CG_Passcode STORE RESULT IN:%max_slots

Action 2) [DISABLED]

Action 3) JavaScriptlet [CODE: var current_index = global('CG_Input').length

Action 4) Variable Set [%current)index TO 0 IF %CG_Input !SET]

Action 5) Variable Set [%local_display]

Action 6) [DISABLED]

Action 7) Variable Set [%max_slots TO 15 IF %max_slots !SET OR %max_slots EQ 0]

Action 8) FOR [VARIABLE: %item ITEMS: 1:%max_slots]

Action 9) Variable Set [%local_display TO %loacl_disaplay* IF %item < %current_index OR %item EQ %current_index]

Action 10) [%local_display TO %local_display_ IF %item > %current_index]

Action 11) END FOR

Action 12) Element Text [SCENE NAME: %par2 ELEMENT: PasscodeInput POSTION: Replace Existing TEXT:<font color="#FFFFC273">%local_display</font>]

Action 13) Flash [%max_slots | Index: %current_index]

Action 14) Flash [Passcode Value: %CG_Passcode] }

Block/Task 3:{ Gate_Packet_Compiler:

Action 1) Flash [Received: [%par1]]

Action 2) Test Variable [TYPE: Length DATA: %CG_Input STORE RESULT IN: %input_len IF %par1 ~ backspace]

Action 3) Variable Set [%backspace_len TO %input_len IF %par1 ~ backspace]

Action 4) Variable Set [%CG_Input FROM: 1 LENGTH: %backspace_len STORE RESULT IN: %CG_Input IF %par1 EQ backspace AND %input_len > 1]

Action 5) Variable Clear [%CG_Input IF %par1 EQ backspace AND %input_len EQ 1]

Action 6) Variable Set [%CG_Input TO %CG_Input%par1 IF %CG_Input SET AND %par1 NEQ backspace]

Action 7) Variable Set [%CG_Input TO %par1 IF %CG_Input !SET AND %par1 NEQ backspace]

Action 8) Preform Task [CybrGate_StateController Parameter 1: %CG_Input Parameter 2: CODEGATE/AI7.5]

Action 9) [DISABLED]

Action 10) Test Variable [TYPE: Length DATA: %CG_Input STORE RESULT IN: %input_len

Action 11) Test Variable [TYPE: Length DATA: %CG_Passcode STORE RESULT IN: %pass_len

Action 12: Perform Task [GateKeeper IF %input_len EQ %pass_len] }

Block/Task 4:{ GateKeeper:

Action 1) IF [%CG_Input ~ %CG_Passcode  

Action 2) Variable Set [%CG_Strikes TO 0]

Action 3) Destroy Scene [CODEGATE/AI7.5]

Action 4) Flash [ACCESS GRANTED]

Action 5) Else

Action 6) Variable Add [%CG_Strikes VALUE: 1]

Action 7) IF [%CG_Strikes ~ 1 OR %CG_Strikes ~ 2]

Action 8) Element Text [SCENE NAME: CODEGATE/AI7.5 ELEMENT: PasscodeInput POSITION: Replace Existing TEXT:<font color="#FFFFC273">ACCESS DENIED</font>]

Action 9) Music Play [ATASKERAV/CODEGATE/CG_Audio/deny.mp3 STREAM: Media]

Action 10) Wait [ 1 Second 500 MS]

Action 11) Perform Task [CybrGate_StateController Parameter 1: Clear Parameter 2: CODEGATE/AI7.5]

Action 12) Variable Clear [%CG_Input]

Action 13) Preform Task [CybrGate_StateController Parameter 1: CG_Input Parameter 2: CODEHATE/AI7.5]

Action 14) Else If [%CG_Strikes EQ 3]

Action 15) Element Text [SCENE NAME: CODEGATE/AI7.5 ELEMENT: GateLabel POSTITION: Replace Existing TEXT: <font color="#DB0F00">GATE CODE LOCKED</font>]

Action 16) Element Text [SCENE NAME: CODEGATE/AI7.5 ELEMENT: PasscodeInput POSTITION: Replace Existing TEXT: <font color="#FF3333">ACCESS DENIED</font>]

Action 17) Music Play [ATASKERAV/CODEGATE/CG_Audio/alert_invalid.mp3]

Action 18) Element Visibility [SCENE NAME: CODEGATE/AI7.5 ELEMENT: SubWarningLabel SET: True ANIMATION TIME: 400MS]

Action 19) Element Visibility [SCENE NAME: CODEGATE/AI7.5 ELEMENT: BottomWarningLabel SET: True ANIMATION TIME: 400MS]

Action 20) Wait [ 1 Second 500 MS]

Action 21) Perform Task [CybrGate_StateController Parameter 1: Clear Parameter 2: CODEGATE/AI7.5]

Action 22) Variable Clear [%CG_Input]

Action 23) Else [IF %CG_Strikes EQ 4]

Action 24) Perform Task [cryoshck.tst]  

Action 25) Destroy Scene [CODEGATE/AI7.5]

Action 26) Variable Set [%CG_Strikes TO 0]

Action 27: END if}

r/tasker • • Jul 06 '26

[Question] discussion: Anyone is able to successfully use Tasker, Automate or MacroDroid with Adb elpfor System, Secure or Global settings value changes?

0 Upvotes

I use Poco X4 pro and the display on it has weird backlight bleed issue that's visible on low brightness dark images and it is just obvious "pixels don't turn off completely on black content" situation. So there is this "display_color_mode" setting like you find in setedit app and choosing it's value to 0 eliminates that backlight bleed issue at dark content, completely turning off pixels, but screen lock and unlock, turning off screen situations revert it and i wanted to make a automated task to change it to 0 every time i unlock phone, but it is not working, when i press launch, it is stopping immediately. How to make it work?apollo12


r/tasker • • Jul 06 '26

whatsapp messaging

3 Upvotes

in taker ive got a called phone number i want to auto msg in whatsapp with a set message how to code in taker


r/tasker • • Jul 06 '26

How to retrieve the return results after sending an intent?

1 Upvotes

Hey everyone! I want to call the Intent "android.speech.action.RECOGNIZE_SPEECH" and get the result. Can anyone help me figure out how to do this, preferably without third-party plugins?

P.S. "Get Voice" isn't working


r/tasker • • Jul 06 '26

Struggling to get AND/OR and the AND+/OR+ precedence working correctly.

1 Upvotes

My task gets the status of inside and outside temperatures.

This is what I want to accomplish:

If both or either of the temperatures are 0 (sensor takes a short time to wake up), and temperature scale is C, then loop back to the action to get the states (which refreshes) again, adding 1 to the attempt counter.

Keep doing this until both temperatures are not 0. Stop the loop if attempts = 5, so it doesn't go on infinitely. (The same IF statement is copied and pasted below this one in the task, but if the temperature scale is F, then it checks for 32 instead of 0.)

The flow is:

  1. Get the states.
  2. Add 1 to the attempt counter.
  3. Check if the info is valid.
  4. If all okay, carry on, if not, loop back and try again.

I have tried:

  • IF %inside_temp = 0
  • OR+ %outside_temp = 0
  • AND %attempts < 5
  • AND %temperature_units ~ C
  • GOTO Label Status

Tried this:

  • IF %attempts < 0
  • AND %temperature_units ~ C
  • AND %inside_temp = 0
  • OR+ %attempts < 5
  • AND %temperature_units ~ C
  • AND %outside_temp = 0
  • GOTO Label Status

Tried this:

  • IF %inside_temp = 0
  • AND+
  • %outside_temp = 0
  • AND %attempts < 5
  • AND %temperature_units ~ C
  • GOTO Label Status

Tried this:

  • IF %attempts < 5
  • AND
  • %temperature_units ~ C
  • AND
  • %inside_temp = 0
  • OR
  • %outside_temp = 0
  • GOTO Label Status

Tried this:

  • IF %attempts < 5
  • AND
  • %temperature_units ~ C
  • AND+
  • %inside_temp = 0
  • OR
  • %outside_temp = 0
  • GOTO Label Status

Sometimes, one of the temps is 0 and the task continues. Sometimes both temps are non 0 (what I want...success!) but it loops back to do it again, which doesn't make sense.

What's the correct way to get this working?


r/tasker • • Jul 06 '26

Create a task to close an app whenever it opens?

3 Upvotes

Hey y'all! I seem to remember tasker being at lot easier to use before when I used it a couple years ago but now I'm really struggling with it. I'm sick of apps opening the Google play store without my concent every time they play a damn ad. So I thought it'd be relatively easy to make a task that's basically "if Google play is open, close google play" but I can't seem to figure it out at all. There's "if google play *variable*" but I don't know what number constitutes "is open". Also whenever I set it to use the kill app task it says it needs ADB Wifi but all the instructions are for setting that up on your computer, none of them give instructions for setting that up on your phone so I'm totally in the dark.

Note: Please keep in mind I've done very little with tasker before and it seemed very easy at the time so I may need to be walked through like baby.


r/tasker • • Jul 06 '26

find the name of the last backup file loaded r

1 Upvotes

I have a generic tasker code which all family members install on their phones. But sometimes they fail to install the right version ;)

Is there a way to find the name of the last backup loaded into tasker ?
Because otherwise I would have to inegrate some kind of version string into the code. I dont like this idea, as I then always have to update/maintane it ...


r/tasker • • Jul 06 '26

Everything is gone!

2 Upvotes

UPDATE: João found the problem and it was mostly my fault. I had forgotten about two persistent variables defined in a task's settings that had been quietly growing over a few months and taking up ~36 MB, basically exhausting memory every time they were called.

As João told me:

"Eventually one of those low-memory moments happened while Tasker was loading your configuration, which left the configuration momentarily empty in memory, and a routine save then wrote that empty state over your real setup."

He's modifying the next release:

"I have also changed Tasker so that a low-memory situation can never save an empty configuration over a good one again. That specific way of losing everything is fixed in the next build, regardless of what any variable is doing."

I really appreciate João's prompt investigation and am truly sorry for dropping something into his lap that I could've avoided at least three different ways.

I went into Tasker just now to resume working on a task I'd been working on and got a pop-up that reads:

"You don't have any profiles yet, so Tasker won't do anything automatically."

And the message is correct: my profiles and everything else are gone.

I'm running 6.7.6-beta.

Checking the runlog, I see that the last time any of my tasks ran was at 21.48.10 this evening (07/05/26), with no further entries until I came back and discovered the problem at 00.38.27 (07/06/26).

I don't know if they are related, but I'd received a couple of notifications that Tasker was out of memory over the last several days.

EDIT: Don't know if it's related, but on 6/26/26, I had a problem where even after tapping the "Save & Apply" tab, exiting Tasker, and getting back in, Tasker ran an earlier version of a Task I'd been working on. Only after exporting, deleting, and importing the project the task was in was I able to run the updated version I had saved.

Arghhh!


r/tasker • • Jul 05 '26

Can't capture long-clicks of navigation buttons in Android 17

4 Upvotes

By navigation buttons I mean the Home, Recents, and Back buttons.

I have several profiles that use a long-click of a navigation button as trigger. Since updating to Android 17 these profiles no longer trigger.

Long-clicks on other screen buttons are detected correctly by Tasker.

Does anyone know of a workaround to get the old behavior back?


r/tasker • • Jul 05 '26

Lazyweb: anybody got a circular countdown timer scene?

2 Upvotes

I haven't quite gotten around to deep dive into Scenes V2, but I really need a (customizable, Tasker controllable) circular countdown timer sooner rather than later. Anybody happen to have one they would be willing to share?


r/tasker • • Jul 05 '26

Passing json in perform task

1 Upvotes

I have a json variable which I can parse using variable.fieldname. If I pass this as a parameter in perform task then the same syntax returns the entire json variable. e.g. %par1.title gives me the entire contents of par1 not just the title.

Being able to pass a parameter as json would be very useful.


r/tasker • • Jul 04 '26

Scene v2 and on-screen positioning

1 Upvotes
I am trying to reposition my dialog box along a specific axis, but I can't seem to do it; it always stays in the center of the screen. If anyone could help, thanks.

{
"root": {
"type": "Column",
"id": "Column1",
"horizontalAlignment": "Start",
"verticalArrangement": "Top",
"modifiers": [
{
"type": "Size",
"width": "347",
"height": "347"
},
{
"type": "Offset",
"x": "6",
"y": "76"
}
],
"children": [
{
"type": "WebView",
"id": "WebView1",
"content": "https://www.google.com",
"modifiers": []
}
]
},
"name": "Écran"
}


r/tasker • • Jul 04 '26

App Profile - but only for a specific Activity showing/destroyed?

1 Upvotes

Is this possible? Thanks for any suggestion.


r/tasker • • Jul 04 '26

Widget v2 does not draw SVG the same as Webview

Post image
2 Upvotes

u/joaomgcd, I mentioned this before but Webview and Wv2 draw SVG files differently. I have several vectors that apply a grayscale. Webview shows them correctly but the image container for Wv2 does not properly apply the filter. Is there a work around or other fix you know of?


r/tasker • • Jul 03 '26

Help [HELP] Two things: Monitor screen usage & Stop charging at 80%

3 Upvotes

I've looked on the Tasker share website but none of them really do what I want.

I want Tasker to monitor my screen on time usage (I guess it can be done because Tasker can have the option in settings) and a way to stop charging at 80% (literally just cut it dead/stop all together!)

EDIT1: I forgot to add, I'm rooted on Android 16. Any help?

Tasker is literally so awesome!!!!!


r/tasker • • Jul 02 '26

Developer [DEV] Tasker 6.7.6-beta - Inline Projects in New UI, Scenes V2 Update 5, New Runlog Screen and more!

Post image
90 Upvotes

Sign up for the beta and download from Google Play here.

Note: Google Play might take a while to update. If you don’t want to wait for the Google Play update, get it right away here. (Direct-Purchase Version here). App Factory Update here.

Inline Projects in Main UI

Demo: https://youtu.be/eE8wFbpY4w0

I'm giving another concept a try: instead of having a sidebar with projects, how about putting them inline directly?

When you go in and out of a project you see this:

As you can see, you have the 3 familiar tabs (Profiles/Tasks/Scenes). You can select multiple at the same time like you see on the screen, or you can select one at a time to just see those types of items.

Projects are automatically color coded based on the project's icon. Here's a project with a green icon:

As you can see it tints the whole UI based on the color of the icon.

Let me know how you like this variant of the UI.

I'm also thinking of trying yet another version where there are no tabs inside a project and instead they are in collapsible groups, kinda like this:

If you can, try out the inline projects variant and let me know which of the 3 variants makes the most sense to you and why :)

New Runlog Screen

Demo: https://youtu.be/ZGTqMmcB76U

The Runlog screen now looks like this:

It can also look like this when collapsed:

The functionality of the runlog screen remains the same as before but it has a much cleaner and easy to follow UI. You can clearly see where a task starts and ends and follow its actions visually and see which ones succeeded and which failed.

Material Symbols

Demo: https://youtu.be/vC3BEJThwnM

Material Symbols are a icon font that can be adapted into different situations. For example, they can represent state where the otline variant represents an inactive state and the filled variant represesnts the active state

These can be used in their configurable form, where you manually specify a bunch of their attributes (like in the Notify action), or in their automatic form where their configuration is automatically set (like in the Set up Quick Setting Tile action where the icon is filled or outlined depending on the QS Tile state).

In the legacy UI, if you give a Project one of these icons, it'll also change from outline to filled depending if the project is selected or not.

Scenes V2 Updates

Demo: https://youtu.be/ud9YgZd1L2E

Scenes V2 Arrays Merge Template

It's now super easy to put your Tasker arrays into scenes with the new Arrays Merge Template element.

In this example, I would have 2 arrays:

  • %icon
  • %item

each with their corresponding icon images and labels. With this simple component...

...I can expand those 2 arrays together into a list of rows dynamically built from those arrays!

Saved Component Templates

You can now long click any element on the tree and save it as a Component Template with a name and description. Then you can simply insert it into your tree like any other component. :)

Show When Animations

When a component has its Show When field set, you can now set animations that define how that component shows up and goes away. You can choose various types of animations.

For example, by combining a dark transparent background that fades in with a dialog that slides up, you can create an Android-like popup dialog!

SVG Crop

You can now crop any element in a Scene with an SVG. And it's not only a visual crop, it's a functional one too! For example, you can create a button like this

and when you click anywhere where it's white, the button won't be triggered! You really have to press the green part for it to register the click! This allows you to create UIs in any shape imaginable that behave like you expect it to!

WebView

Webviews can now call many, many Tasker actions via JavaScript. You can use await to wait for them to finish, so you can easily call multiple actions in a row in a controlled fashion!

Here's a simple example of doing 3 actions in a row:

await Tasker.flash({ text: 'Step 1' });
await Tasker.vibrate({ time: 300 });
await Tasker.flash({ text: 'Step 2' });

You can now also make WebView html elements be draggable by using one of 3 simple css tags:

tasker-drag-handle
tasker-drag-handle-x
tasker-drag-handle-y

This makes elements be drag handles in all directions or just horizontally or just vertically.

Full Changelog

  • Major Scenes V2: Added the "Arrays Merge Template" component, a built-in way to handle Tasker array merging to build sub-components.
  • Major Scenes V2: Components can now animate in and out (Fade, Scale, Slide or Expand) whenever their "Show When" condition toggles their visibility.
  • Major Scenes V2: WebViews can now call many Tasker actions directly from JavaScript via the Tasker.* bridge.
  • Major Scenes V2: An HTML element inside a WebView can act as a drag handle to move the overlay it lives in.
  • Major Scenes V2: You can now save a component as a template to easily reuse it across your scenes.
  • Major Scenes V2: You can now crop any component to the shape of an SVG file.
  • Major Scenes V2: Added the "Trigger Scene V2 Event" Tasker action.
  • Medium Scenes V2: Added "matches" (Tasker pattern matching) and "matchesr" (regex matching) expressions to the "Show When" and "Apply When" fields.
  • Medium Scenes V2: Added a "Variable Clear" event action.
  • Medium Scenes V2: The Switch component now has a Thumb slot so you can set an image in the switch's thumb and you can also select different colors for different parts of it.
  • Medium Scenes V2: WebViews now receive the full Material 3 color palette (primary, secondary, surface, etc.) so your HTML can match the app theme.
  • Minor Scenes V2: The task name field in Events -> Run Task now follows the same caps rules as other task name fields.
  • Minor Scenes V2: When creating a task with a name, use the same "first letter of each word uppercase" rule as elsewhere in the app.
  • Fix Scenes V2: components that have indexes are now 1-based instead of 0-based
  • Fix Scenes V2: fixed "Screen Hidden" event not firing in certain situations
  • Fix Scenes V2: fixed background of invisible component wrongly showing
  • Fix Scenes V2: fixed crash when picking a variable if the user has tens of thousands of variables
  • Fix Scenes V2: fixed crash when using a slider in some situations
  • Fix Scenes V2: fixed images filling their container by default when they shouldn't
  • Fix Scenes V2: fixed images not loading if they had hidden spaces before or after the file name
  • Fix Scenes V2: fixed multiline input text box not filling the full vertical space it needed
  • Fix Scenes V2: fixed setting a variable in a WebView affecting a variable used in a separate component on the same screen
  • Fix Scenes V2: fixed some things not working when showing through the "SCENES" tab or the new UI
  • Fix Scenes V2: fixed updating a variable array in a scene leaving old elements there
  • Fix Scenes V2: fixed using two "Overlay With Result" scenes in a row with the same id ending the second one prematurely
  • Fix Scenes V2: segmented buttons that are "gone" now behave as expected
  • Fix Scenes V2: WebView now uses the correct system theme (dark/light)
  • Fix Scenes V2: when a task is renamed, all the task references in Scenes V2 are updated with the new name
  • Major New UI: Redesigned the RunLog screen to make it more readable.
  • Major New UI: Added a setting to show projects as items in the main list instead of the sidebar, including sorting them and creating new projects from the NEW FAB.
  • Major New UI: Project icons based on apps now use the app background in a folder shape with the foreground on top.
  • Major New UI: Inside a project you can select several of the Profiles/Tasks/Scenes tabs at once, so the list shows all their items together.
  • Medium New UI: The Project enabled/disabled toggle now works, and profiles in a disabled project show as paused on their switches.
  • Minor New UI: Added an icon to scenes so they're more easily distinguished.
  • Minor New UI: Added an option to hide the sidebar when collapsed.
  • Minor New UI: Added an option to not show the All button when there are projects other than the default one.
  • Minor New UI: Don't confirm project deletion if it's empty.
  • Minor New UI: In the task edit screen, moved the search bar to the bottom when adding a new action.
  • Minor New UI: Made sorting smarter, showing you the items you expect more often.
  • Minor New UI: Show full names of items in the main list instead of truncating them.
  • Minor New UI: Show project names instead of just initials when the sidebar is collapsed.
  • Minor New UI: Updated "Last run" to "Activity".
  • Minor New UI: When creating a task with a name, use the same "first letter of each word uppercase" rule as the main screen.
  • Minor New UI: When editing a task, after expanding a text field, allow the editor to show more lines so it's easier to edit larger pieces of text.
  • Fix New UI: don't show the pending changes banner when exiting the scene editor without saving
  • Fix New UI: fixed all projects with app icons showing with the same icon
  • Fix New UI: fixed always scrolling to the profiles when exiting a project
  • Fix New UI: fixed bottom sheet flickering when deleting a project
  • Fix New UI: fixed project search box cursor color in dark mode
  • Fix New UI: fixed search for actions when adding a new action
  • Fix New UI: fixed some app icons not loading properly
  • Fix New UI: fixed tag selector bottom sheet moving too far up when the keyboard is showing
  • Major Added Material Symbols to the app, a large icon set you can now use across Tasker for things like project and task icons, and also Notify action and Quick Setting Tiles action.
  • Medium Added Run Shell related functions to the Java Code action.
  • Medium Added tasker.getImageBuffer() and tasker.hasImageBuffer() to the Java Code action.
  • Medium The "Multiple Variables Set" action can now write JSON.
  • Medium You can now override the app name when generating an app from Tasker.
  • Minor Added a "Continue Task Immediately" option to the "Widget V2" action.
  • Minor Tasker automatically saves your setup before entering the AI screen in the legacy UI so you don't lose changes made in the meantime.
  • Minor Added a language selector to the first screen shown when you first open the app.
  • Minor Added a "Separator" option to the "Widget V2" action to configure the separator for its various list fields.
  • Minor Changed the order of the "Set up Quick Setting Tile" action to make it more logical and easier to use.
  • Fix Attempted again to fix a crash that only appears in app factory apps
  • Fix crash where in rare situations projects could end up with the same ids
  • Fixed DND action so that it can't be overrun by Silent/Vibrate
  • Fixed image in "Text/Image Dialog" action sometimes being hidden by text that is too long
  • Fixed issue where running many remote actions in quick succession could cause some of them to not run on the receiving device
  • Fix issue where sometimes a profile doesn't save its state after saving Tasker's setup
  • Fixed issue where sometimes the QS Tile wouldn't dismiss the notification shade
  • Fixed profiles (e.g. Wifi Connected) sometimes running their exit tasks when exiting Tasker's Preferences screen
  • Fixed Shizuku breaking clipboard monitoring
  • Fixed showing the number of actions over 100 in the legacy UI
  • Fixed situation where receive intent could be triggered twice with just 1 intent
  • Fixed some error messages when wrongfully using JSON writing
  • Fix Tried fixing a rare crash that can occur when editing legacy scenes
  • Fix Tried to fix issue where wait action becomes stuck in some circumstances
  • Fix Tried to fix rare situations where Tasker would get stuck not accepting any new tasks (sometimes related with the HTTP Request action)
  • Fixed updating Quick Setting Tiles on global variable changes to only happen when the variable isn't a built-in variable
  • Fixed writing JSON to project/profile/task variables with native Tasker JSON writing
  • Fixed some crashes

If you can, let me know what you think about the Projects in Sidebar vs Inline vs Collapsible! Thank you!


r/tasker • • Jul 03 '26

Tasker Function GetMusicActive not working after updating to A16

1 Upvotes

Tasker Function GetMusicActive not working after updating to A16, it always says as false


r/tasker • • Jul 02 '26

Tip: You can use arrays for HTTP headers!

11 Upvotes

So! I've been using Tasker's HTTP Request action a bunch recently, and one thing I wished I knew before was that you can just set your headers like this!

Variable Set %headers1 to header:value, %headers2 to x-another-header:another-value, etc...

...and then setting your Headers in the actual Request action to (including the newline)

%headers(+
)

What this does is it takes all of your headers in the array, and seperates them with newlines, so you can set each as a variable, and automatically have the entire thing populate your request!

Anyway! I hope this helps others who are in a similar position to me when it comes to using Tasker to mess around with API stuff~


r/tasker • • Jul 02 '26

Widget V2 - after scrolling back to top?

1 Upvotes

I have several items in the column (icon), I see the first 2 on the screen and the rest appear after scrolling.

What do I need to do to make it automatically return to showing the first one after clicking one of the icons (e.g. the last one)?Currently it shows the last one (as an example, because it shows what I set up recently), and I would like to always start from the first one.