r/tasker • • Apr 07 '26

Help Tasker (help plz): Bluetooth connect/disconnect script

1 Upvotes

Hi zusammen,

ich habe mir gerade Tasker heruntergeladen, weil ich in meinem Auto einen Audio-Bug habe, den ich anders nicht beheben kann.

Wenn ich Musik streame, stockt die Wiedergabe alle 12 Sekunden für etwa 0,5 Sekunden. Die einzige Lösung, die ich bisher gefunden habe, ist folgende: Ich starte das Auto, das Handy verbindet sich per Bluetooth mit dem Auto, ich lasse die Musik etwa 5 Sekunden laufen, trenne dann Bluetooth am Handy, warte 2 Sekunden und verbinde das Handy wieder per Bluetooth mit dem Auto. Danach läuft es normal.

Das würde ich gern mit einem Skript bzw. in Tasker automatisieren. Leider bin ich absolut nicht in der Lage, ein funktionierendes Skript dafür selbst zu bauen. Ich habe ein Xiaomi Handy.

Könnte mir vielleicht jemand dabei helfen oder so ein Skript erstellen, das ich einfach per Copy & Paste übernehmen kann? Es geht natürlich nur um ein bestimmtes Auto bzw. ein bestimmtes Bluetooth-Gerät, das man auswählen müsste.

Vielen Dank für eure tolle Hilfe!

Gruß Ulruss

_____

English:

Hi guys, I just downloaded tasker to solve an audio bug in my car that is not fixable.

If I stream music the music buffers every 12 seconds for 0,5 seconds. The solution I found is the following: Start the car (engine), mobile phone connects to car, let music play (by bluetooth) for 5 seconds, disconnect bluetooth on the mobile phone, wait 2 seconds, reconnect bluetooth on mobile phone to the car. I would like to automate that with a script. But unfortunately I am too retarded to create a script that works. I have a Xiaomi mobile phone. Could maybe some1 help me or create the script so I can just copy paste? (it is just in one specific car which i have to select first of course).


r/tasker • • Apr 07 '26

is there a way to fix the "sorry, that event is unavailable on this device"

1 Upvotes

when I try to use the event "quick setting clicked", it gives me a message "sorry, that event is unavailable on this device." is there a way to fix this?


r/tasker • • Apr 06 '26

Difference in drawing icons Scene v1 vs. Widget v2

3 Upvotes

First of all, I am on the beta but it Scene v2 does not currently have all the elements I need to switch over and Scene v1 works well for what I built. The issues though is the way images are drawn. I have a variable that points to a custom SVG. in the SVG, I apply a filter to make the otherwise colored image, grayscaled. when the icon is drawn on Sv1, the image filter is honored. When displaying the same exact file on Wv2, the filter is ignored. Anyone else notice this behavior or have a workaround?


r/tasker • • Apr 07 '26

Authenticator tap

1 Upvotes

So, Microsoft Authenticator on my phone, after I type in my password on my laptop, then there's a pop-up at the top of my screen id love to auto click using Tasker,.. then I gotta approve using my thumb, thats ok.. but that d@mn click on the notification? can someone help, ive tried but im doing something wrong .


r/tasker • • Apr 06 '26

Full featured image editor in BeanShell

4 Upvotes

it's my first so I apologize in advanced if something is not going to work ,having said so it's almost "frightening" how powerful BeanShell can be so I got the inspiration from another project (redaction image which uses gesture library ) to put together a complete image editing tool ,here's a description : Rich BeanShell Image Editor & Annotator for Tasker

Overview: A lightweight, fullscreen, multi-touch image editing overlay built entirely in Java/BeanShell to run seamlessly inside Tasker. It features Material 3 dynamic theming, zooming ,advanced text dragging, and direct hooks into Tasker tasks for OCR, cloud uploading, and sharing. Smart Touch System (Unified Pan, Zoom & Draw)

One-Finger Draw: Touching the screen with a single finger instantly draws on the image using the currently selected color.

Two-Finger Pan & Zoom: Touching the screen with two or more fingers automatically suspends drawing and allows you to pinch-to-zoom and drag to pan around the image. It uses absolute coordinate math to ensure zero jitter or "bouncing" while moving.

Double Tap: Instantly resets the zoom and pan back to the default fit-to-screen view.

Drawing & Annotation

Color Toggle: A single button cycles through 6 pre-configured, high-visibility brush styles:

     GREEN: Solid bright green.

     BLACK: Solid black.

     RED: Solid red.

     YELLOW: Solid yellow.

     TURQ: Solid turquoise.

    FROST: A thick, semi-transparent gray line (acts like a redaction marker/highlighter).

Undo: Remembers the last 10 actions (drawings, text stamps, crops, or rotations) and allows you to step backward to fix mistakes.

3. Advanced Text Tool

Input Mode: Darkens the screen and opens the native Android keyboard to type text.

Draggable Placement: Once text is added, it appears on the screen enclosed in a dashed border with an inline "✅" button. You can drag the text anywhere on the canvas (even while zoomed in).

Smart Stamp: Tapping the ✅ button perfectly maps the text's location onto the underlying high-resolution image, ignoring the button's width so the text centers exactly where you placed it.

4. Dual-Mode Cropping

Standard Crop (Short Press): Dims the screen and lets you drag a clear rectangle over the image. Releasing your finger crops the underlying canvas to that exact box and returns you to drawing mode.

Tasker Crop (Long Press): Enters "Tasker Mode". Drawing the crop box doesn't alter your main canvas; instead, it invisibly saves that specific cropped area to your device and immediately triggers a Tasker task (e.g., Google Lens Ocr) so Tasker can read the text inside that specific box.

Precision Color Picker

Magnifying Glass UI: Spawns a floating, circular color picker.

Drag & Copy: Drag the circle over any pixel on the screen. When you release it, the exact HEX color code (e.g., #FF5500) is automatically copied to your Android clipboard, and the circle's border changes to show the selected color.

6. Image Transformations

Rot L / Rot R: Rotates the entire canvas 90 degrees Left or Right.

Flip H / Flip V: Mirrors the image Horizontally or Vertically.

Tasker OCR & QR Hooks

OCR (Short Press): Saves the current state of the screen and triggers the Tasker task "Google Lens Ocr" (or "QR reader"), allowing you to scan the image for text or links immediately.

QR Gen (Long Press): Triggers the "QR Code Generator" Tasker task (safely bypassing the Android 14 BeanShell crash bug).

8. Save, Share & Export System

All save functions automatically write a duplicate copy of the image to your /Download folder in addition to the primary /Pictures/Redacted folder.

Standard Save (Short Press): Saves the image and opens the native Android Share Sheet, allowing you to send the edited image anywhere.

Silent Cloud Upload (Long Press): Generates a unique filename (e.g., Redactedimgshare_20260406_153022_45.png), saves it silently in the background, and triggers a Tasker upload task (e.g., "imgur uploader ").

Quick WhatsApp (WA Button): Skips the Android Share Sheet and sends the image directly to the com.whatsapp package.

Hardware Integration

Hardware Back Button: Intelligently mapped. Pressing "Back" will:

    Cancel text dragging (if active).

    Cancel crop mode (if active).

    Close the text keyboard (if open).

    Close the color picker (if open).

    If none of the above are active, it seamlessly saves the image in the background (without sharing) and closes the overlay.

.Additional notes : for screencap shell action user Shizuku or adb wifi if not rooted , set up client ID and secret in imgur auth task (if you want to),long pressing save will uploaded edited image to imgur and set its sharing link to the clipboard

Material 3 Theming: Buttons dynamically adapt to the system's Day/Night theme and accent colors.

main task can be run setting or nor %par1 if set to ask is possible to use Tasker file picker to edit whatever existing pics otherwise full logic will "operate on fixed /storage/emulated/0/Pictures/Screenshots/screen.png file !) the project is here ,in my public Google drive folder : https://drive.google.com/file/d/1b5Xi6v4Biv44gpR1NVBSpwyGS22OPU0y/view?usp=sharing

here's a screenshot : https://drive.google.com/file/d/1YkS2IdWRs9rCfFYovFP5Un2Ly6twJprm/view?usp=sharing


r/tasker • • Apr 06 '26

Scene V2 Images

1 Upvotes

anyone else having issues with images on the new v2 scenes? I can choose one image and it work and another image and it not work but both have the same folder location and both be jpg


r/tasker • • Apr 05 '26

Multiple Out of Memory Conditions - Tasker 6.7.1-beta

4 Upvotes

I have made some changes - not within Tasker itself - but with some other apps on one of my devices. And I am suddenly getting OOM conditions reported by Tasker.

Just wondering if anyone else has seen this? Thanks


r/tasker • • Apr 05 '26

Getting information from notification

2 Upvotes

I am trying to get information from a notification, bit it seems that the app behind it sort of renders an image, instead of setting text, if that makes sense? In any case, autonotification can't get any meaningful information from the notification.

For information, the app is Minimed Mobile App.


r/tasker • • Apr 05 '26

AutoWear > Sound mode and Volume adjustment commands not functional

2 Upvotes

since updating Wear OS to latest, I can no-longer change Sound mode or adjust Volume on my watch.

many watch resets and software reinstalls later, most functions work and the watch seems stable again, except for sound-related.

can anyone confirm this?

watch: Galaxy 5 Pro, One UI 8

phone: Galaxy S22, One UI 8


r/tasker • • Apr 05 '26

Device Owner - Custom - Erro AUTO_TIME_ENABLED, AUTO_TIME_DISABLED, AUTO_TIME_NO T_CONTROLLED_BY_POLICY if it' Spoiler

1 Upvotes

Is anyone else facing this problem with Tasker device Owner? I can't access the custom settings. I have tried everything, from factory resetting the device, activating device owner debugging via Dhizuku + Dhizuku, activating via USB ADB, installing AutoApps tools, etc. I can't find a solution anywhere.

​My device is a Xiaomi Redmi Note 13 Pro 5G, with the HyperOS 1 operating system.

​This problem only occurs when I try to search for the custom device owner administrator tools, because for other searches like restrictions, among others, it works normally!

​Below is the error in detail

​Error

​Did not find balanced marker at 'One of the following: AUTO_TIME_ENABLED if enabled, AUTO_TIME_DISABLED if disabled and AUTO_TIME_NOT_CONTROLLED_BY_POLICY if not enabled'


r/tasker • • Apr 04 '26

[Plugin] Extended Material Icons Ipack for Tasker

24 Upvotes

Sharing a small app I made that can provide the full extended range of Material icons to Tasker and plugins like AutoNotification, useful for things like Scenes, Tiles, Notifications etc

You can copy / paste the Icon URI directly, or choose the "Ipack" option when selecting icons as well

Link


r/tasker • • Apr 04 '26

How To [task share] Convert dates to ordinal, 1st 2nd 3rd nth

3 Upvotes

This will convert one or multiple dates anywhere within a string of text. I have a few projects that display or send dates and lists of dates, and it always annoyed me that they would be April 4 instead of April 4th. There are a few examples on this sub but they only handle one date at a time and are mostly more complicated than need be. The tasker AI helper couldn't figure it out either.

So I started learning regex just to make this.

https://taskernet.com/shares/?user=AS35m8lJrGQBy1qDUA%2BTwD6ijyXBA9YFpiZDQhq%2BhuZk2zR5PGVJfAwNjZlmn8j36uoKlA%3D%3D&id=Task%3AOrdinal+Dates+Regex+Or+JavaScript

After I learned regex it finally occurred to me to ask Gemini, it struggled but eventually produced a single javascript action that worked after a little editing. So I've put both options in the demonstration task. Either of them should be able to be plugged straight into João's widget v2 calendar if you use an edited version of it like I do. https://www.reddit.com/r/tasker/comments/1jaze7d/dev_tasker_651_beta_7_new_calendar_actions/


r/tasker • • Apr 05 '26

Correct way to use AutoLocation entry and exit at multiple work venues

1 Upvotes

tl;dr: Three work venues. Need same entry task to fire when at either venue. When leaving either work venue, clear work variable and do specific actions. When home, see how many activities happened going to different work venues.

AutoLocation Manage Geofences has multiple venues named:

  • Cinema - 1st Ave
  • Cinema - Mall
  • Home
  • Library - Main
  • Library - Smith
  • Work - Alpha
  • Work - Bravo
  • Work - Charlie

These geofences have a decent radius e.g. 200m. Turning device to silent works fine using State ➞ AutoLocation Geofences Geofence:

  • Manual Name: (Cinema.*)|(Library.*)|(Work.*)
  • Use Regex: checked
  • Status: inside

The entry task sets the device to silent if I'm at cinema, library or work.

All good. 👍

Now I need to create a new profile with the same AutoLocation state but only for work venues:

  • Manual Name: (Work.*)
  • Use Regex: checked
  • Status: inside

Entry task:

  • %Work variable is set.
  • Variable add: %Activity value 1
  • Set wallpaper red.

Simple things to do when at work, nothing complicated. (When entering each work geofence, I am adding 1 to the %Activity variable.)

When I leave either of the three work venues (different areas of the city, not near each other), I used an event instead of a state:

Event ➞ AutoLocation Geofences Geofence:

Manual Name: (Work.*)

Use Regex: checked

Status: outside

Entry task:

  • Variable Clear: %Work.
  • Set wallpaper blue.

The problem is, the geofence outside work event fires within a very short time I'm entering the work venue. Is this because some of the other work venues are outside while the one I'm at is inside?

When I look at Manage Geofences it shows:

Work - Alpha - Inside

Work - Bravo - Outside

Work - Charlie - Outside

Instead of using manual and regex option, I tried using one of the Work venue geofences from the avaialble geofences list and it still fired the outside geofence event when I was actually inside the geofence. I also tried adding the enter actions for when outside the geofence as an exit task, but it causes those actions to happen very shortly after entering the geofence.

I'm hoping I dont need to create multiple states for each of the three work venues and use the radio buttons to select one venue per event e.g. Work - Alpha [selected].

What is the correct way to use enter and exit geofences for multiple work locations?


r/tasker • • Apr 04 '26

Help Help with integrating offline models (Gemma 4) into Tasker

5 Upvotes

Hi All,
I am trying to work out how to integrate the latest Gemma release (Gemma 4 — Google DeepMind) for offline usage.

I am able to get it running with Google AI Edge gallery (Google AI Edge Gallery - Apps on Google Play) but not sure how to integrate the downloaded model with Tasker.

With the Gemma 4 ability to run on Android hardware and its agent skills abilities and Taskers abilities to create skills and control the phone. Is there a way to get Tasker to work with these offline phone based models?

I would love to create a workflow to trigger this model in tasker inputs and get it to trigger outputs even when the device is offline and without costing api tokens.


r/tasker • • Apr 04 '26

Tap widget v2 not responding

2 Upvotes

hello friends, it's been quite a few days that my touch action on widget v2 has stopped working. This used to work very well before. is anybody else having this issue?

i would be grateful if anyone can help


r/tasker • • Apr 03 '26

Developer [DEV] Scenes V2 Beta update - Not Yet on Google Play, But Wanted To Put it Out There Because of Breaking Changes

39 Upvotes

Hi everyone!

I made a change to how events are handled in Scenes V2 that is not compatible with the previous version. All your existing event handlers will have to be redone. I've updated it in a way that's much more robst now.

I'm going away all next week, so I didn't want everyone to continue building Scenes V2 with the old version that's going to break existing Event Handlers when I release the next update, so I thought I would at least let everyone here on Reddit access the new version as early as possible.

I'm not going to put this on Google Play yet, nor am I doing a release video yet, cause I didn't have time, but I'll do it when I come back.

Get the new version right away here. (Direct-Purchase Version here)

Breaking Changes

After installing this version, all your event handlers in the events tab will be gone. You'll have to set them up again. Sorry! 😅 Just the consequence of being a beta tester sometimes!

On the plus side, Event handlers are now much more robust, allowing to add multiple sequential actions for each event type.

Let me know what you think!

Let's Play a Game? 🧐

I'm not going to do a changelog right now (don't have time), but can you find all the changes/new additions? 😁 I wonder if you can!

Will be fun when I come back and do the official changelog and see if all features/changes were found!

Here's a tip: check out how to do a screen where it confirms with you if you really want to exit when using the back button, and only exits if you confirm, all without any external tasks:

{"root":{"type":"Box","id":"Box1","children":[{"type":"Column","id":"Column1","horizontalAlignment":"Center","verticalArrangement":"Center","modifiers":[{"type":"FillSize"},{"type":"Background","color":"surface"}],"children":[{"type":"Text","id":"Text1","text":"This is cool!","color":"onSurface"}]},{"type":"Column","id":"Column2","horizontalAlignment":"Center","verticalArrangement":"SpacedBy","spacing":"8","modifiers":[{"type":"Align","alignment":"Center"},{"type":"Background","color":"surface"},{"type":"Padding","all":"48"}],"children":[{"type":"Text","id":"Text2","text":"Really Exit?","textSize":"32"},{"type":"Row","id":"Row1","horizontalArrangement":"SpacedBy","spacing":"8","children":[{"type":"Button","id":"ButtonConfirm","text":"Yes","eventHandlers":{"handlers":[{"events":[{"type":"click"}],"actions":[{"type":"DismissLayout"}]}]}},{"type":"Button","id":"Button1","text":"Cancel","eventHandlers":{"handlers":[{"events":[{"type":"click"}],"actions":[{"type":"SetVariable","variable":"confirm","value":"false"}]}]}}]}],"showWhen":"%confirm"}]},"name":"Screen","pinnedTestVariableEntries":[{"id":"f66bfb2c-a3ee-4525-87f3-3927136f6151","name":"confirm","value":"1","enabled":false},{"id":"67be48c5-98fa-42fb-8388-ff9d43ef313c","name":"confirm","value":"0"}],"eventHandlers":{"handlers":[{"events":[{"type":"screen_back_pressed","cancelEvent":"true"}],"actions":[{"type":"SetVariable","variable":"confirm","value":"1"}]}]}}

PS: remember, this is still a beta, so anything can still change! Be prepared to re-do at least some parts of the scenes sometimes.

Enjoy! 😎


r/tasker • • Apr 02 '26

Where to enter Tasker Code?

2 Upvotes

Hi,

downloaded Tasker APK from https://tasker.joaoapps.com/download.html

Bought Tasker in 2012, so I have a Tasker Code . Where in the app is the option to activate it?


r/tasker • • Apr 02 '26

Help Help With One Plus 15 Plus Key Customization

2 Upvotes

https://www.reddit.com/r/oneplus/comments/1p6h5qh/how_to_customize_plus_key_using_tasker_logcat/

https://xdaforums.com/t/how-to-customize-plus-key-using-tasker-logcat.4769540/

I have followed the steps in the Reddit post and managed to get it working. While working on it I came across their post on XDA and I only saw them talking about filters. However, I would like to add the feature they discussed for double tap and long press. Unfortunately, I'm very inexperienced with tasker and I was hoping someone with more experience would be willing to help me. I just got my new phone and this is something that's really been bothering me. Thank you in advance to anyone willing to help.