Tasker: Total Automation for Android

52 readers
0 users here now

The tasker community on Reddit. Reddit gives you the best of the internet in one place.

founded 2 years ago
MODERATORS
151
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/JD_Number_6 on 2023-08-24 22:22:45.


Yesterday I started getting "Task doesn't exist" errors when trying to call a new task from the Perform Task action.

Tasker had recently resumed throwing "out of memory" errors, but not wanting to get rid of anything, I tried a number of things that failed.

Here's what finally worked:

(0. Confirm the error still occurs after choosing the task from Perform Task's task selection menu to avoid typos)

  1. Back up Tasker
  2. Export unneeded projects
  3. Delete the exported projects
  4. Exit Tasker
  5. Restart Tasker

Hopefully this will save others' time if they find themselves in the same situation and are resisting doing housecleaning.

BACKGROUND INFO FOR ANYONE WHO WANTS IT:

It didn't matter how I created the new task or whether I copied and pasted its name into the Perform or chose it from the selection menu: I still got the error.

No combination of backing up, exiting completely out of Tasker, or even restarting Android fixed the problem.

I had been getting the Tasker out of memory errors off and on for months. They went away for a month or two after getting rid of 4 or 5 global vars ranging in size from 100K to 800K, but started reappearing in the last few days.

In desperation, I backed up Tasker again, exported and deleted about 15 projects I wasn't using, then exited and restarted Tasker, and the Perform Task executed without error.

Until now, I'd worried about the out of memory errors, but hadn't found any evidence of something actually failing. Sigh.

152
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Chumuscus on 2023-08-24 09:00:42.


Hi, I have a task that takes a screenshot and I want to upload that to Google Drive. Now, I'm not sure how that is supposed to work.

A21: Take Screenshot [

File: %Screenshot ]

A22: GD Upload [

Google Drive Account: %GoogleDriveAccount

Data / File: %Screenshot

**It does have a valid filename and Folder**

I tried this but it only uploads an unusable 11 byte file to Drive.

Help is really appreciated

153
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Rich_D_sr on 2023-08-23 02:06:33.


I have been working with u/Nirmitlamed trying to get Telegram notifications to play nice with Tasker to be able to make a simple "Respond When Driving" project. Telegram Has a fairly complex notification system that makes it difficult to itercept there notifications. They have the normal Grouping issues that the Autonotification "Ignore Group Summaries" cures for the most part. However you will still get multiple activations for the same message for other reasons. One of these is a strange issue when you recieve a message from "Channels". I have seen other posters push the notifications to an array and simply skip any consecutive notifications with the same Text and Title.

The approach we came up with is much simpler and Handles all of the multi triggering issues. By using AutoNotifications %anwhentime variable you can test the exact epoch milliseconds when this notification was created. Any duplicate notifications will have the exact same or lower value. So simply testing the value of %anwhentime in the current notification against the value of %anwhentime from the last notification will allow for a very simple filter. So a simple set of actions like this is all that is neededdd..

Task: Telegram Filter

A1: Stop [ ]
    If  [ %anwhentime < %Last_when_time | %anwhentime = %Last_when_time ]

A2: Variable Set [
     Name: %Last_when_time
     To: %anwhentime
     Structure Output (JSON, etc): On ]

For this type of project where you are dealing with the notifications as they come in I prefer to Queu up Task iterations instead of trying to push to an array. Some of these notifications trigger so fast that pushing to the Array will fail. This approach is explained here in section 8

Here is a very simple example of this working.

Project: Telegram Stop Multi Notification Activation

Profiles
    Profile: Telegram Test Notification
        Event: AutoNotification Intercept [ Configuration:Event Behaviour: true
    Notification Type: Only Created Notifications
    Persistency Type: Non-Persistent Only
    Notification Apps: Telegram ]

    Enter Task: Telegram Filter
    Settings: Run Both Together

    A1: Stop [ ]
        If  [ %anwhentime < %Last_when_time | %anwhentime = %Last_when_time ]

    A2: Variable Set [
         Name: %Last_when_time
         To: %anwhentime
         Structure Output (JSON, etc): On ]

    A3: Notify [
         Title: Telegram Notification Received %TIMEMS
         Text: Title   -   %antitle
         Text   -  %antext
         Number: 0
         Priority: 3
         LED Colour: Red
         LED Rate: 0 ]

    A4: Flash [
         Text: Telegram Notification

         Title   -   %antitle
         Text   -  %antext
         Dismiss On Click: On ]

154
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/HunterXProgrammer on 2023-08-22 20:11:44.


Description

Send WhatsApp Text/Images/Videos/PDF/Documents/Voice Notes/Poll Messages/Mute/Unmute, plus many more, automatically using Tasker.

Previous post intro:-

Recently I've been getting a lot of inquiries on how to send images, videos or documents in WhatsApp using Tasker.

Possibly with the screen off, phone locked, without unlocking, etc. Had some time to make this so here it is.

For The New Timers

Here is a video demo:-

Video:- Sending - Text, Images, Videos, Voice and Documents in WhatsApp using Tasker

For The Old Timers

For those following the old V4, this is the new Project Mdtest V5.

As per requests, I've added many new features like downloading media(images, videos, documents, status, contact .vcf file, link previews, location previews, etc.), receiving location message co-ordinates, sending link previews, streamlined Tasker subtask system, reusable templates, etc. The list of improvements goes on.

Reddit website UI is painful to read for long texts, so you can check out the details in the GitHub repo -

-> GitHub Repo - Tasker-MdtestV5

Much more readable and easy on the eyes.

List Of Supported Features

  • Send Text Messages
  • Send Images
  • Send Videos
  • Send Audio
  • Send PDF/Documents
  • Send Link Previews (New!)
  • Send Poll messages
  • Mark as read
  • Revoke messages
  • Download Media Messages (New!)

Now includes downloading media like:- + Images + Videos + Audio + Documents + Status + Contacts + Link previews + Location previews

  • Mute/Unmute chats (New!)
  • Pin/Unpin chats (New!)
  • Archive/Unarchive chats (New!)
  • Multi-Number/User support (New!)
    • Previously Mdtest could support only one WhatsApp number, but now you can have as many as you want
  • Receive details of incoming messages as Tasker variables. Can use this for automated replies.

-> Be sure to check VARIABLE.md for all the available variables.

Note:- Don't forget to update Tasker to Tasker 6.2.13 RC as older/outdated Tasker doesn't have required HTTP Events.

Getting Started:-

Import these two Taskernet projects:-

Mdtest (V5) Project - Subtask Centre

WhatsApp - Receive Messages [Mdtest V5]

For Tasker users:-

  1. From the "Receive Messages [Mdtest V5]" Project, run this Task once "#(1) Main - Setup Pair With WhatsApp (V5)" -

Now to connect it to WhatsApp -

Running the Task "#(1) Main - Setup Pair With WhatsApp (V5)" will generate the linking code.

You can copy the linking code and paste it in WhatsApp via notification.

Or by open WhatsApp -> ⋮ (menu) -> Linked Devices -> Link with phone number

Wait about 20s for pairing to complete. All done.

This prepares Tasker to use Mdtest(V5) and finishes the setup. 2. Run the Task "#(2) Mdtest - Start (V5)" to start Mdtest. 3. Generate the basic template for sending messages by running the

Task #(3) Generate [Send Messages] Project (V5).

I made it super simplified, so you can easily and directly try any of the generated message template Tasks to send a message.

All done. Happy automation!

For CLI Users:-

Check out the GitHub repo for this.

Updates

(new updates posted here)

Enjoy :-)

155
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Tokyo-and-Rio on 2023-08-22 13:04:09.


When I use AutoWear to update a complication on my GW5 with , the value is completely different from the value displayed on my watch. 5667 vs 278. On the other hand, when I walk 100 steps, both get updated by 100. How do I fix this?

156
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Illustrious_Ad4914 on 2023-08-21 22:49:06.


I need some help with a very simple "wait for" action in Tasker. I would like Tasker to wait up to 10 seconds until the text "Door" appears in the app Nest and then proceed with the following steps. Otherwise, end the task.

I've tried adding Autoinput UI Query with "Door" in the Text field and a 10 second timeout. No other config parameters. This doesn't work.

I'm new at this and appreciate any help.

157
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/bahcodad on 2023-08-21 00:46:39.


I have a task that changes the display size when triggered. It used to work but now I get an error "The source did not signal an event for 30 seconds and has been terminated". Tasker and tasker settings are up to date and after searching this sub it doesn't seem like anyone has the same issue. This is also the only action in the task.

Any ideas?

158
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/joaomgcd on 2023-08-18 11:21:44.


In this post I announced that I'm going away for some time. I also said this:

I hope everything is stable while I'm gone... I know Google usually likes to issue a Policy Warning this time of the year (I repeatedly got Policy issue notices that I need to fix when I'm just about to go on vacation in the past), so fingers crossed it won't happen again... 😅

Like clockwork, today I got this email:

Geez Google, stop being so predictable... 🤪

159
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/joaomgcd on 2023-08-14 16:05:03.


Hi!

Just wanted to give everyone a heads-up that after the upcoming Friday I'll be away for about 4 weeks.

I plan on putting out an additional beta release for Tasker this week before heading out, with a bunch of fixes and tweaks.

I hope everything is stable while I'm gone... I know Google usually likes to issue a Policy Warning this time of the year (I repeatedly got Policy issue notices that I need to fix when I'm just about to go on vacation in the past), so fingers crossed it won't happen again... 😅

Let me know if there are any super important issues that I need to address before the week is over.

Cheers!

160
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Logansfury on 2023-08-12 21:50:24.


Good Afternoon,

I am trying to tweak a project in progress and it would help tremendously if there was a way to tell that the USB C cable plugged in has activated File Sharing between devices, as opposed to just delivering a power charge. I played around in Custom Settings and found under System a setting called "quickshare_enabled" with a value of 1. It seemed to work as a Profile trigger for an alert Task, but it's not reliable, sometimes failing to fire, and both the adding of an exit Task to announce disabled state, and making a second profile with the quickshare_enabled value set to 0 are failing to announce when the sharing stops.

Do I have any other options on a non-rooted but ADB Wifi capable android?

Thanks for reading,

Logan

161
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/tb36cn on 2023-08-12 07:43:38.


Banking app says my Tasker direct version had too many dangerous permissions granted and it is not installed from play store. For my security, the Banking app is disabled. How can I get around these restrictions?

162
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/GDCWatchFaces on 2023-08-10 04:37:55.


Background...

I am a T1 Diabetic. I started this project a couple of months ago. I wanted a watch face that would display the readings from my Continuous Glucose Monitor (CGM). Its a Dexcom G6 Sensor. That was the easy part. That data is readily available from a couple of apps. (xDrip+ and G-Watch Wear). I am insulin dependent and use an Omnipod 5 insulin pump. The manufacturer Insulet does not provide the data called Insulin on Board (IOB). That is where I began my journey with tasker.

With the assistance from members of this group I was able to create a task that would grab the data from the Omnipod 5 application that displayed the IOB and pass it to the watch via AutoWear as a complications both a text and ranged values.

I now want to be able to share this complication with other diabetics. Most of which do not have the technical skills of the folks reading this post. Sure they can install Tasker and AutoWear and use taskernet to import my Profile and Tasks. I have done that with some. But I would like this to be simple for the common user.

Here is what I have been able to do

  1. Use Tasker App Factory to export my profile as an App

  2. I have been able to toggle off the profile so that the task does not run. The complication updates on my watch... - GREAT

    1. However, the complication still comes across as the AutoWear complications (Text and Icon 1 / Ranged Value 1)

This is great, I have those apps installed. What does the common user need to do to be able to get this IOB data on their watch face? My watch faces for diabetics are FREE. I do this as a hobby. I am not a developer. I have had to muddle my way through the Google Play Console.

Below is the code from my Tasker Task. The Profile just looks at the App when a notification is present

Task: OP5_IOB

A1: Variable Set [

Name: %text

To: %NTITLE

Structure Output (JSON, etc): On ]

A2: Simple Match/Regex [

Type: Regex

Text: %text

Regex: (IOB:* (?[\d.]+) U) ]

A3: Variable Set [

Name: %iob_pass

To: %IOB

Recurse Variables: On

Structure Output (JSON, etc): On ]

A4: Notify [

Title: IOB

Text: %IOB

Icon: %IOB

Number: 0

Priority: 5

LED Colour: Red

LED Rate: 0 ]

A5: AutoWear Complications [

Configuration: Clear Unset: true

Text: %IOB

Subtitle: IOB

Complication To Update: Text And Icon 1

Icon: /storage/emulated/0/Tasker/Widgets/icons/white_syrninge.png

Doze Icon: /storage/emulated/0/Tasker/Widgets/icons/IMG_20230623_185529.png

Apply Now: true

Name: OP5_IOB

Timeout (Seconds): 20

Structure Output (JSON, etc): On

Continue Task After Error:On ]

A6: AutoWear Complications [

Configuration: Clear Unset: true

Text: %IOB

Complication To Update: Ranged Value 1

Icon: /storage/emulated/0/Tasker/Widgets/icons/white_syrninge.png

Doze Icon: /storage/emulated/0/Tasker/Widgets/icons/white_syrninge.png

Ranged Value: %IOB

Min Value: 0

Max Value: 30

Apply Now: true

Name: OP5_RV_IOB

Timeout (Seconds): 20

Structure Output (JSON, etc): On ]

Any guidance would be greatly appreciated.

GDC

163
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/mikthinker on 2023-08-09 18:03:54.


MapTasker is a program that will display your entire Tasker configuration (Projects/Profiles/Tasks/Actions/Scenes) in a browser on your MAC.

The latest version 2.1 includes the following improvements:

  • Support for Tasker version 6.2.12.rc
  • New '-directory' option to show a directory of hot-links to all of your Projects/Profiles/Tasks/Scenes
  • New '-names {bold,italicize,underline,highlight}' option to display all names in the specified attributes(s).
  • New '-appearance {light,dark} option to change from the system appearance mode.
  • New color options for name highlighting and headings

To install: pip install maptasker

To run from the GUI: maptasker -g

For a list of all changes, refer to the full change log

Program details can be found here.

164
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/EVILxMANIAC on 2023-08-09 07:05:03.


As the title says my pixel is only Granting tasker permission temporarily and I need to know how to override this. Any ideas?

165
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Rich_D_sr on 2023-08-08 20:53:09.


I have been using this for a while now and find it very handy and did not see anything like it on Taskernet, so I figured I would put it on the public share. I use it all the time to select all my local variables to add them to the scoped variables lists. It is much easier to paste a big list and delete unnecessary ones, then go back and forth...

  • This project will Append all clippings to the Clipboard.
  • To Toggle the project on or off, Run the 'Toggle Append Clipboard' Task.
  • When Active, it will post a permanent Notification showing the current appended clipboard contents.
  • Tapping the Notification will turn off the project.
  • The notification has 2 Buttons:
  • Clear: clears the current appended clipboard.
  • Turn Off: toggles the project off.
  • When the Project is turned on, it will post a dialog asking if you want to keep the current Clipboard contents or if you want to start with the next clipping.

Suggested quick start methods:

  • Use a Quick Toggle in the Notify bar.
  • Use Autoshare to gain quick access from the copy / paste menu.
  • Home screen Task shortcut or Widget.
  • Monitor the clipboard for a trigger word -> type trigger word and copy it.

Project Link

166
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/knn130 on 2023-08-07 22:16:38.


I have a samsung s23+. Basically what i want to do is this: In oneui5.1, you can set to swipe down in homescreen to launch finder app, which does a device search. What i want to do with tasker is make it so that when i swipe down, instead of the finder to open sesame, a different search app. Is this even doable?

167
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/mariavasquez111 on 2023-08-07 08:14:27.

Original Title: When I use auto input to long click so that the copy dialog shows up, my other auto input action to click on the exact word "copy" does not work, any workaround besides using pixel pointer dimensions.


When I use auto input to long click so that the copy dialog shows up, my other auto input action to click on the exact word "copy" does not work, any workaround besides using pixel dimensions. Sometimes the "copy" button is not in the same location, so using pixel pointer dimensions often do not work

168
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/The_IMPERIAL_One on 2023-08-06 23:11:10.


What is ReVanced?

It's an open source organization which provide patches for some applications. If you know about Vanced, then you can say it continues the legacy of Vanced. Here's the official site.

What exactly is it?

A tool to integrate building ReVanced apps with Tasker for automation. The repository does the big work like patching & building apks while the tasker project acts as a Remote controller to it & adds the functionality of automation.

Overview

Are you tired of patching ReVanced apps on your mobile devices? Which version to patch and which apk to provide for patching? Is the waiting period long enough and still the patch doesn't work as it should? Device compatibility issues? Auto-updates?... All that can be done with the help of this github repository (for patching & building) and this RVX-Builds project in Tasker (for interactive selection & automation).

Note: Neither the mentioned github repository nor the Tasker project are in anyway officially related to ReVanced Team. All this work falls under 3rd party so please don't ask for support from ReVanced Team regarding it.

Requirements

Credits

Feedback

It's very much welcomed. Do let me know of any issues you face regarding the project. I hope you find this useful!!

169
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/CarelessMuscle1470 on 2023-08-06 14:33:03.


Hi. How to automatically add numbers to variable results displayed in a list? for example: if the result is: Dimitris,Tharenos how can it be: 1Dimitris,2Tharenos ? Thank you very much.

170
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/FondantEasy on 2023-08-06 11:01:51.


Hi,

Watch: Samsung Galaxy Watch 6 Classic

Wear OS 4.0 One UI 5.0

Autowear: 3.0.2

Tasker: 6.2.12-rc

Via Tasker Action I am fetching data from the watch, e.g. .

It works several times, but after a while it fails. See TaskerScreenshot

To solve it, I need to close all apps on the watch, then it works again for a while.

So it seems something is hanging or eating up cache on the watch.

Is there a way to trigger “Close all apps” on the watch via tasker?

171
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/WhichSomewhere5119 on 2023-08-05 18:35:33.


Hi, sorry for ma english language. I use translator.

Tasker 6.2.12-rc

App Factory 6.2.12-rc

Simple project. One task->Alert Flash. I try export to App, receive a message:Error:sorry,export failed.

I tried with icons Holo and with files (local images) *.png.

Anyone know a solution to this problem?

video

172
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/ghajni-returns on 2023-08-04 18:58:48.


There is no working way to sync settings like dnd etc. between phones and smartwatches of different brands, and this project aims to fix that. I originally used this project on GitHub, however it did not work for me, and so this project was created. Also note that although the project is named galaxy watch, it will work across all anroid devices and wearos watches as long as they support the requirements.

REQUIREMENTS

  • Autotools, with the Bottom Buttons web screen imported.
  • AutoApps (for the command event - at web screens are currently NOT triggering the native command system - I've sent a bug report to Joao regarding this)
  • AutoWear
  • (Optional) KWGT - some of the profiles I've used here are for kwgt and the main menu task is triggered through kwgt. Feel free to customize this if you don't use kwgt.

The first profile sets the WatchConnected variable, which must be true for all the remaining profiles to run. The reason it is set up in this manner, instead of a simple BT Connected event/state condition is because that did not work reliably for me.

The project can be divided into three main sections -

  1. Changing settings from the watch itself
  2. Changing settings through the phone (via this project)
  3. Syncing settings to maintain a constant state

Changing settings from the watch itself

The Watch Setting: profile is responsible for monitoring these changes. Each setting has an associated variable in the project section. These profiles have been setup using the autowear command system, and each setting has an associated autowear settings rule which sends a command with a prefix on setting change (I've attached screenshots for that below). When a setting changes, these change the variable associated with that setting also - which is only for correctly displaying the setting in the menu. For the three sync settings - battery saver, dnd and location, there is an additional if block which will be explained in the sync section.

SUMMARY - Changing these setting sends a command, which changes the value of the variable associated with the setting, which ensures that the value of the setting is displayed properly in the menu.

Changing settings through the phone (via this project)

The Watch Menu task is the main task. Call it using kwgt, or a keypress or whatever. It calls the icon configuration task first, which just sets the icon values for the menu web screen. It then creates the Menu (Screenshot added below). The Menu allows control of 7 settings - ADB, AOD, Battery Saver, Bedtime Mode, Brightness, DND and Location. The Sync button is used to enable settings sync.

Clicking on any setting sends a respective command, which is picked up by the Menu command received profile. It has various IF blocks for each setting, which more or less follow the same pattern.

All settings apart from DND and Bedtime mode can be controlled via the secure settings action. For DND and Bedtime Mode, toggling is done using autowear input action - by clicking the quick setting icon. For my watch the DND is on the first quick setting page and the bedtime mode is on the second - please adjust accordingly. Only the page matters and the position does not matter.

After toggling each setting, the associated tasker project variable is also changed. This is so because the watch setting profiles used above do not reliably run when the setting is changed via autowear, and so the variables might not be accurate. Thus, by this way the variables are always accurate.

Syncing settings

Syncing is only added for three settings right now - Battery Saver, Do not disturb and Location. Sync is controlled by a variable wsync (project variable). Only when it is enabled will sync work. This can be controlled via the sync button in the main menu (Watch Menu task). Once sync has been enabled, the three Watch Setting: Sync from phone profiles will run. Sync works by three ways:

  • If the phone's setting is changed, then the above three profiles will also change the setting on the watch.
  • If the watch's setting is changed, then the Watch Setting: profiles will change the setting on the phone.
  • If the watch's setting is changed via the menu in this project, and sync is on, then the menu command received task itself will change the setting on the phone.

Extras

The pull steps and get watch battery are for displaying data in kwgt widgets (I've attached photos). These can be removed. The Unlock watch task is also just a helpful task and is non-essential.

This project can be expanded further to include more settings, however this serves as a good base. Sorry for the writeup being so long.

Link to some images and a screen recording: images

Taskernet link: link

EDIT: Link to autowear secure settings screen

173
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/Throawiewie on 2023-08-04 13:07:03.


This is for the tinkerers. Every now and then I see semi-related posts on both r/tasker and r/galaxybuds and I figured I would finally share my findings. Here's how to take FULL CONTROL of your Samsung earbuds (any version), by using Tasker's logcat! Respond to any type of tap on any of your buds! Interested, but not sure what Tasker is or how its logcat functionality works? Google "tasker logcat how to" to get up to speed. Okay, here goes...

BLOCK TOUCHES (OR NOT)

First, block touches in Samsung's Wear app or make a media button state profile in Tasker and tick Stop Event. Touches will still register and show up in logcat, but blocking them keeps Samsung from responding. Of course, you can choose not to block them, if you have some other type of functionality in mind.

Anyway, then logcat filter your heart out and make Tasker respond with tasks of your choosing.

LOGCAT ENTRY EVENT

Component

Popcorn_SppRecvThread

Filter

'2D 00 01'

(Include the quotes, set Grep Filter checked)

That's it! You can replace "Popcorn", which is Samsung's codename for Buds+, with "NeoBean" for Buds Live or "Zenith" for Buds Pro 2. You can find out what your buds are called by searching for SppRecvThread in your logcat.

FILTER OPTIONS

Finally, replace the middle and/or right set of characters in Filter to your liking with any of the below:

Left set of characters

* 2D - id purpose, don't change

Middle set of characters

* 00 - Right bud only

* 01 - Left bud only

* 0. - Both left and right buds

Right set of characters

* 01 - One tap

* 02 - Two taps

* 03 - Three taps

* 04 - Long tap

* 05 - Long tap (couldn't find difference with 04)

* 06 - Tap, then Long tap

* 07 - Hold, fires continually

* 08 - ?

* 09 - Two or more ear taps (fires motor sensor aka "double tap earbud edge")

* 00 - Fires when finger stops touching bud (aka "KEY UP")

* 0. - All of the above

So, for example, filtering for '2D 01 03' can have Tasker respond to three taps on the left earbud. Nice, huh? The list above is specifically for Buds+, but most of these will work with Samsung's other buds. Now, if you filter for '2D 0. 0.' and have Tasker respond by flashing %lc_text (Tasker Layout checked), you can find the characters and their corresponding functionality for your buds by trying out different types of taps.

TIPS AND EVEN MORE TIPS

Of course, logcat filtering will also work with bluetooth devices that are not Samsung's, just with other strings, so there's that. Some testing and trial and error will go a long way. Good luck!

Extra logcat tip: find whatever shows up in your logcat under Component Popcorn_Preferences (or Zenith_Preferences, et cetera) to listen and respond to changes in Buds settings (ambient, noise cancelling, et cetera).

Tasker pro-tip! Replace your Component or Filter with variables for more flexibility. For example: set Component to %BUDSTYPE_%TOUCHORSET with its values alternatively being Zenith or Popcorn (in case you use both types of buds) and SppRecvThread or Preferences respectively.

And here's another extremely useful tip I read on r/tasker that I would like to repeat: have Tasker send and cancel notifications to which Bixby Routines can respond by toggling noise cancelling or whatever for your buds. Happy tinkering!

Love Tasker, love Pent, love Joao. Bye!

Edit: Formatting.

Edit2: Added %lc_text tip.

174
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/ashirviskas on 2023-08-03 21:26:20.


Recently, I was working on a project to automate my desk LED strip using Tasker, a strip powered by WLED running on an ESP32. I found the available resources lacking in clarity about whether this was even feasible. After accomplishing it myself, I thought it would be helpful to others to have a answer to this question and a little guide. So, I've put together this brief manual.

Step 1: Set Up Presets in WLED

Open WLED and create two presets:

  • Preset 1: For the default state
  • Preset 2: For the notification preset

Step 2: Create a Task in Tasker

Below are the steps to create a Task in Tasker. Replace {WLED_IP} with your device's IP:

A1: HTTP Request [
     Method: POST
     URL: http://{WLED_IP}/json/state
     Headers: Content-Type:application/json
     Body: {"v":true,"ps":"2"}
     Timeout (Seconds): 30
     Trust Any Certificate: On
     Structure Output (JSON, etc): On ]

A2: Wait [
     MS: 0
     Seconds: 3
     Minutes: 0
     Hours: 0
     Days: 0 ]

A3: HTTP Request [
     Method: POST
     URL: http://{WLED_IP}/json/state
     Headers: Content-Type:application/json
     Body: {"v":true,"ps":"1"}
     Timeout (Seconds): 30
     Trust Any Certificate: On
     Structure Output (JSON, etc): On ]

That's it! You now have a simple setup for your notifications using WLED and Tasker.

I'd love to see how you build on this. Please feel free to share your ideas and improvements in the comments section below. ;)

WLED JSON API Documentation

175
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/tasker by /u/jrjmpls on 2023-08-03 01:08:53.


I need to change the data in a cell on a google spreadsheet. I know to get the data from a cell. But how do I change a cell to have new data?

Thanx

view more: ‹ prev next ›