• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

What Tasker profiles is everyone using?? (This thread is NOT for requesting help with profiles)

Hi everyone,

I'd love some help figuring out if punching in and out from work can be automated with Tasker. I'm a Tasker amateur... hopefully one of you pros is up to the challenge.

Here's my punch in procedure:

1) Dial my company's punch clock phone number.
2) Wait approximately five seconds for pick up/first prompt.
3) Enter my four digit employee code and then press #.
4) Wait approx. two seconds.
5) Press 1 and then #.
6) Wait approx. two seconds.
7) Hang up.

Can Tasker simplify the process?

Any advice would be appreciated. Thanks.

Tasker can be made to make a call at the touch of a button widget placed on your homescreen, using speakerphone to get the confirmation. I imagine you could set that call up to match your punch out process - just keep adding the whole string of numbers and pauses in the field for phone number when you set up the widget. Add a wait for 20 sec task, then a exit task to hang up.

Try using your home phone first, to make sure all the settings work (especially the waits - don't know exactly how to phrase those.
 
Upvote 0
Hello folks. Here are the profiles I'm using now, taken from my other thread:

Max Revson said:
To follow up on my last post, I'd test-driven a couple of profiling apps and was not fully satisfied with the results.

And then I came across what is considered to be the Holy Grail of all profiling apps: Tasker.

Tasker allows the Android phone owner to completely automate tasks that would otherwise require manual intervention. This is how I've set Tasker up in my phone (edited 13 May '12 to remove superfluous profiles):

Profile Name: Not Home Vicinity

What it does: Turn off WiFi.

When it kicks on: When I'm out of my home vicinity.

Context
01. State -> Phone -> Cell Near (cell towers in my area) INVERTED

Entry Task Name: Not Home Vicinity Value
01. Net -> WiFi -> Off



Profile Name: Home Vicinity

What it does: Set WiFi to toggle.

When it kicks on: When I'm in range of my home vicinity.

Context
01. State -> Phone -> Cell Near (cell towers in my area)
02. State -> Net -> WiFi Connected (SSID: my router's ssid) INVERTED

Entry Task Name: Home Vicinity Value
01. Net -> WiFi -> Toggle



Profile Name: At Home

What it does: Turn on WiFi & Auto-sync, turn off gps and mobile data when at home. Do the reverse (less WiFi settings) when leaving home.

When it kicks on: I'm connected to my home WiFi AND one of the GSM cells in my area

Context
01. State -> Net -> Wifi Connected (SSID: my router's ssid)
02. State -> Phone -> Cell Near (cell towers in my area)

Entry Task Name: Home Values
01. 3rd Party -> WidgetLocker -> Suspend
02. Variable -> Variable Set -> %atHome To 1 //tells phone its at home for use in later profiles
03. Net -> WiFi -> On
04. Net -> Mobile Data -> Off
05. Net -> Auto-Sync -> On
06. Plugin -> Secure Settings -> Edit -> GPS -> Off //requires Secure Settings Plugin & rooted device
07. Display -> Display Timeout -> 1 min.
08. Misc -> Say -> "Welcome home!"

Exit Task Name: Exit Home
01. Variable -> Variable Set -> %atHome To 0
02. Net -> Mobile Data -> O,
03. Net -> Auto-Sync -> Off
04. Plugin -> Secure Settings -> Edit -> GPS -> On
05. Display -> Display Timeout -> 30 sec.
06. Misc -> Say -> "Have a great day."
07. 3rd Party -> WidgetLocker -> Resume




Profile: Jabra Bluetooth Audio

What it does: Kicks on Poweramp, sets BT Voice and Media volumes to maximum. Turns bluetooth off and kills Poweramp once headphones are disconnected.

When it kicks on: Once bluetooth connection to Jabra headphones is established

Context
01. State -> Net -> Bluetooth Connected (Name: Jabra Halo)

Entry Task Name: Home With Bluetooth Values
01. Audio -> BT Voice Volume -> Level 15
02. Audio -> Media Volume -> Level 15
03. Misc -> Say -> "Bluetooth audio activated." (if %pAmp = 0)
06. App -> Load App -> Poweramp (if %pAmp = 0) //so that it doesn't try to load Poweramp if it is already loaded
07. Variable -> Variable Set -> %pAmp To 1

Exit Task Name: Exit Bluetooth Audio
01. Task -> Wait -> 5 sec.
02. Net -> Bluetooth -> Off
03. Misc -> Say -> "Bluetooth headset disconnected."
04. App -> Kill App -> Poweramp (if %pAmp = 1, Use Root On) //so that it doesn't try to kill Poweramp if it is already killed
05. Variable -> Variable Set -> %pAmp To 0

Note: Both "At Home" and "Jabra Bluetooth Audio" are active together when listening to music wirelessly at home. When outdoors, only the latter is active.



Profile: Vibrate Only At Client's Place

What it does: Set phone to vibration mode only, disable GPS.

When it kicks on: When the GPS picks up my current location as within a 30-meter radius of my client's office building.

Context
01. Location -> New Location -> Client's Office Location (name: <insert your preferred location name here after browsing to said location on map>)

Entry Task Name: Vibration Values
01. Plugin -> Secure Settings -> Edit -> GPS -> Off
02. Audio -> Silent Mode -> Vibrate
03. Misc -> Say -> "Vibration mode active"

Exit Task Name: Exit Vibration
01. Plugin -> Secure Settings -> Edit -> GPS -> On
02. Audio -> Silent Mode -> Off
03. Misc -> Say -> "Vibration mode deactivated"



Profile: Goodnight!

What it does: Set phone to silent mode when its time to go to bed.

When it kicks on: When the room is dark AND phone is facing up. The latter prevents this mode from kicking on when in my holster or pocket.

Context
01. State -> Sensor -> Light Level (from 0 to 1)
02. State -> Sensor -> Orientation (Face Up)

Entry Task Name: Night Mode Values
01. Task -> Wait -> 15 sec.
02. Variable -> Variable Set -> %sleepOrAwake To 1 //tells phone I'm asleep for use in later profiles
03. Audio -> Silent Mode -> On
04. Display -> Night Mode -> On
05. Display -> Display Timeout -> 30 sec.
06. Misc -> Say -> "Goodnight and sweet dreams!"

Exit Task Name: Day Mode Values
01. Variable -> Variable Set -> %sleepOrAwake To 0 //tells phone I'm awake for use in later profiles
02. Audio -> Silent Mode -> Off
03. Display -> Night Mode -> Off
04. Display -> Display Timeout -> 1 min.
05. Misc -> Say -> "Good day!"

Note: For afternoon naps, all I have to do is draw the curtains and *BAM!* night mode kicks on. You might have to play with the Light Level value to get something that works for you.



Profile: Urgent Calls

What it does: Always receive phonecalls from chosen loved ones.

When it kicks on: When chosen loved ones call when the phone is in "Goodnight!" mode.

Context
01. State -> Phone -> Incoming Call -> (magnifying glass) -> A Single Contact (repeat for all desired contacts)

Entry Task Name: Urgent Caller Value
01. Task -> If -> %VOLR < 5
02. Audio -> Media Volume -> Level 15
03. Media -> Music Play -> (your chosen ringtone music file)
04. Task -> End If

Exit Task Name: Urgent Caller Exit
01. Media -> Music Stop



The next 3 profiles work together since the first of these cannot have an exit task.

Profile: Announce Caller

What it does: Announces the name (if in contact list) or number of caller when at home AND awake.

When it kicks on: When the phone is ringing.

Context
01. Event -> Phone -> Phone Ringing

Entry Task Name: Announce Caller Name
01. Variable -> Variable Set -> %Ringing To 1
02. Task -> If -> %atHome = 1
03. Task -> If -> %sleepOrAwake = 0
04. Task -> If -> %CNAME Is Set //i.e. caller exists in phonebook
05. Misc -> Say -> "Call from %CNAME"
06. Task -> Else
07. Misc -> Say -> "Call from %CNUM"
08. Task -> End If
09. Task -> End If
10. Task -> End If


Profile: Call Answered

What it does: To re-set the variable %Ringing, used above, to zero.

When it kicks on: When the call is answered.

Context
01. Event -> Phone -> Phone Offhook

Entry Task Name: CallFinished Value
01. Variable -> Variable Set -> %Ringing To 0


Profile: Phone Idle

What it does: To re-set the variable %Ringing, used above, to zero.

When it kicks in: When the call is not answered (missed call).

Context
01. Event -> Phone -> Phone Idle

Entry Task Name: CallFinished Value
01. Variable -> Variable Set -> %Ringing To 0



Profile: Missed Call Reminder

What it does: Our SGNs have no blinking LEDs to tell us if we've missed a call. This plays the "Notify Sound" at 2-minute intervals upon missed call and should do as a substitute.

When it kicks on: When the call is not answered (missed call).

Context
01. State -> Phone -> Missed Call

Entry Task Name: Missed Call Values
01. Task -> Wait -> 2 min.
02. Task -> Stop (if %PACTIVE Doesn't Match[!~] *missed call reminder*)
03. Alert -> Notify Sound (Title: Missed Call Reminder)
04. Task -> Goto (Type: Action Number, Number: 1)

Exit Task Name: Clear Missed Call Values
01. Misc -> Say -> "You have missed calls"
02. Alert -> Notify Cancel (Title: Missed Call Reminder)



Profile: Shake For Bluetooth

What it does: To turn on bluetooth without having to pull down the notification bar.

When it kicks on: When the phone's screen is switched on and phone is shaken left to right.

Context
01. Event -> Sensor -> Shake (Axis: Left-Right, Sensitivity: Medium, Duration:Short)

Entry Task Name: Bluetooth Values
01. Net -> Bluetooth -> On
02. Misc -> Say -> "Bluetooth activated. Please turn on your device."

Note: Once my bluetooth headset is connected, profile automatically changes to "Home With Bluetooth" or "Outdoor With Bluetooth" and kicks on Poweramp.

Also note: "Say" in all the above examples will only work when the screen is turned on. It will not work when the phone is asleep.

Many of these are examples taken from Tasker wiki as well as the huge Takser thread in this forum. Many thanks to the original contributors to the above ideas that were shared.
 
  • Like
Reactions: Matt31 and bruce73
Upvote 0
Programming-ese. Every IF statement has to have an END IF. I don't know how it would affect Tasker if you didn't include END IF in there but in usual programming, the compiler would complain and not even compile the source code for execution.

You're most welcome, but the thanks should go to those who came before, the ones who really toiled through understanding and setting up profiles. I simply followed their lead. :)
 
Upvote 0
I have Tasker configured to take a picture via the front and rear camera whenever someone tries to unlock my phone, and fails (while also announcing 'Access Denied' at max volume).

This works great, and I would like to forward the photo to my personal e-mail address, in case the phone was stolen. However it looks like I need to rely on a python script for this (really don't want deal with this, as I want to keep the tasker configuration portable), or find a cheap plugin to do this.

Has anyone else figured out how to e-mail attachments via Tasker? I would settle for being able to upload it via DropBox right away as well.
 
Upvote 0
I have Tasker configured to take a picture via the front and rear camera whenever someone tries to unlock my phone, and fails (while also announcing 'Access Denied' at max volume).

This works great, and I would like to forward the photo to my personal e-mail address, in case the phone was stolen. However it looks like I need to rely on a python script for this (really don't want deal with this, as I want to keep the tasker configuration portable), or find a cheap plugin to do this.

Has anyone else figured out how to e-mail attachments via Tasker? I would settle for being able to upload it via DropBox right away as well.

I would love to know a walkthrough for this. Any chance of emailing the profile?
In terms of sending a photo, dies your dropbox not auto upload pictures, there is a setting in the drop box app. Creates a folder called photo uploads.
 
  • Like
Reactions: higge
Upvote 0
I would love to know a walkthrough for this. Any chance of emailing the profile?
In terms of sending a photo, dies your dropbox not auto upload pictures, there is a setting in the drop box app. Creates a folder called photo uploads.
I don't want to upload all my pictures, just the failed unlock attempt ones, so I am not sure if DropBox will work. Unless I can force DropBox to synchronize certain folders via Tasker, not sure what else I can do.

As for how to do this, it's easy, but you have to use the 'Secure Settings' plugin (not sure if you need root for this specific task, since I was rooted already).

  1. Install the free Secure Settings plugin and add a new profile to Tasker.
  2. Select 'State > Plugin > Secure Settings' as the trigger, and pick the 'Failed Login Attempts' condition.
  3. Now you have to create the action which will take the picture, which you can find under 'Media'. If you want a new file every time a pic is taken, use the 'Photo Series Time' action, or if you want to use the same name every time, use 'Photo'. I use both methods, in case there are multiple attempts, while also having access to the latest pic using a static file name. Don't forget to select the 'Discrete' option.
 
Upvote 0
I don't want to upload all my pictures, just the failed unlock attempt ones, so I am not sure if DropBox will work. Unless I can force DropBox to synchronize certain folders via Tasker, not sure what else I can do.

As for how to do this, it's easy, but you have to use the 'Secure Settings' plugin (not sure if you need root for this specific task, since I was rooted already).

  1. Install the free Secure Settings plugin and add a new profile to Tasker.
  2. Select 'State > Plugin > Secure Settings' as the trigger, and pick the 'Failed Login Attempts' condition.
  3. Now you have to create the action which will take the picture, which you can find under 'Media'. If you want a new file every time a pic is taken, use the 'Photo Series Time' action, or if you want to use the same name every time, use 'Photo'. I use both methods, in case there are multiple attempts, while also having access to the latest pic using a static file name. Don't forget to select the 'Discrete' option.

Thanks for this,

i already have all photos uploading to dropbox so for this would wrk well, I am however using widget locker, so ill have to work out if this works with this, (i am assuming not) or if ill have to revert back to stock lockscreen. hmmmmm
 
Upvote 0
I am using the LiquidSmooth ROM which has a modified lock screen (supporting up to 8 lock 'buttons, so I am far from stock), and it still works. Definitely worth a shot!


Hi again, thank you for the profile, I've got it working and for nothing else its great to now have that extra settings app.

Now, I do have a question which is less about tasker and more about lockscreens, so I will post a new thread, hopefully if you can help you can find it and offer suggestions there as it us related to the above.
 
Upvote 0
I only have a few profiles. I have one that turn on auto-rotate whenever I open my gallery or YouTube app. I have one that silences my phone overnight, but allows calls from my ICE contacts. And I have one that turns on my wifi overnight so that certain things can sync.

There is still a lot I wish it could do, like turn on Bluetooth when I hop in my car (I don't have a dock), mute the ringer when I get to work and unmute the ringer when I leave. I can get it to toggle the ringer on a timer, but a timer doesn't take holidays into account so I want it to trigger off of some other signal, but I haven't put enough thought or energy into it to configure it. Overall, it's the best app ever.
 
Upvote 0
I've been reading the various Android forums relating to Tasker support, and have found all sorts of useful tips that I have used on my phone.


To give back to the communities for all the nifty things I've found in these forums, I'm posting this trick I worked out that addresses a problem that I have seen complained about several times on multiple forums. I am posting this exact same thing to multiple forums that I have gotten tips from.


Tasker is a very nifty package, but the priority feature seems to cause problems, rather than solve them. The complaint that I've seen about this is that there is no guaranteed way to insure that a procedure invoked with Perform Task has finished other than waiting a while then going on.


I've had strange results about which tasks complete when when I'm using Perform Task. Part of the problem for me is that I have some tasks that are started both with a profile and a Tasker widget, which have different launching priorities. I finally decided to see if I could figure out a way to make task processing more predictable.


As I have had happen several times, Tasker didn't have a built-in tool for what I wanted to do, so I built one out of the parts Tasker had available.


To get on to the solution to the child task completion problem, I figured out a way to make a parent process block itself until the child is done, this involves a bit of tinkering in both parent and child, but is surprisingly simple.


In your parent task:


Variable Set %block to 1
Perform Task {Your Task Here} {Optional Parameters} Return Variable %block
Wait Until: 1 second - %block ~ 0


In your child task:


{your stuff here}
Return 0


In the case where you need a result back from the child process, your blocking variable and your result variable are the same. Just set your return variable to something your child will not send back, then set the Wait Until to watch for the return to not match your blocking value.


Parent:


Variable Set %fruit to Wombat
Perform Task "Identify Fruit" Return Variable %fruit
Wait Until: 1 second - %fruit !~ Wombat


The parent task then blocks until your child process returns something like "Pineapple", which then no longer matches "Wombat" and the parent goes on.


What this little trick does is to remove priorities from the equation. Use this and it no longer matters what priorities are assigned where, your parent task will be blocked, either by the Tasker priority system or its own code, until the child task finishes.


If the child task is of higher priority than the parent, unless it contains a Wait of some kind, it will run to completion, the parent will be unblocked, it will hit the Wait Until, count off one second, see that the requirement is met, and release control. If there is a wait, the parent hits Wait Until, and blocks until it gets a return.


If the child and the parent have the same priority, the parent will hit the Wait Until and wait for the blocking value to change.


If the child is lower priority than the parent, the Wait Until will allow the child to run during those fractions of a second when it is not checking the variable for the blocking value, and the child eventually returns a value and the parent goes on.


The upshot of this is that your parent task will reliably wait for the child to finish, and you don''t have to care about the exact way it happens.


Since returning a value when none is expected is harmless, you can use the same child tasks in different parent tasks and the parent can wait or not as needed. No need to wait? Just Perform Task and don't set up the blocking statements.


Easy to implement and solid as a rock. I've tested this several ways, including a descending nested priority stack, and everything waited for what it was supposed to.
 
  • Like
Reactions: Flumme
Upvote 0
What I've been doing is using a different way:

For example I have a "Personal Assistant" Task which updates the weather, any calendar events for the day, my horoscope, and the Amazon free app of the day and speaks some of the items to me as I go about my morning business. It does the last 2 only once a day, the others are updated every hour which I use with Minimalistic Text and/or a widget.

When I was first designing it, the various calls would get mixed up and the information was getting set wrong because different websites took longer to poll from.

Anyhow, when my "PA" task runs, I use the various Perform Tasks to call whichever items are being updated, then before the next one is called I use Wait Until TRUN !~ "PA Weather". So the primary task waits until my weather task is completed by seeing if "PA Weather" is not running (TRUN !~), then moves on to the next.

Perform Task "PA Weather"
Wait Until TRUN !~ "PA Weather"
Perform Task "PA Calendar"
Wait Until TRUN !~ "PA Calendar"
Etc...

Never had a problem with it that way since then.
 
  • Like
Reactions: Flumme
Upvote 0
Given the complaints I'd seen I'd have thought that a solution would have been so visible that I couldn't miss it, but I read so much in a few weeks I did miss it. Still, multiple solutions for a problem is a good thing. Now I'll have to look up TRUN, since that is something I've missed that I can probably find uses for once I understand it.
 
Upvote 0
Hi everyone,

I'd love some help figuring out if punching in and out from work can be automated with Tasker. I'm a Tasker amateur... hopefully one of you pros is up to the challenge.

Here's my punch in procedure:

1) Dial my company's punch clock phone number.
2) Wait approximately five seconds for pick up/first prompt.
3) Enter my four digit employee code and then press #.
4) Wait approx. two seconds.
5) Press 1 and then #.
6) Wait approx. two seconds.
7) Hang up.

Can Tasker simplify the process?

Any advice would be appreciated. Thanks.

This little task is really giving me a run for my money...

Does anyone know what action(s) in Tasker simulate a press of the dialpad? I can't just have multiple dial actions separated by waits.
 
Upvote 0
Does anyone know of some basic instructions that are in text format rather than video? I just got Tasker and am baffled by interacting with it, but in this case, instructional videos don't really fit with how my mind works.

The immediate things I'd like to do are to play particular sound files (on my phone's SD card as ringtones) at startup and shutdown.
 
Upvote 0
This little task is really giving me a run for my money...

Does anyone know what action(s) in Tasker simulate a press of the dialpad? I can't just have multiple dial actions separated by waits.

I can't see what you would do differently through Tasker regarding this, You would either use waits or pauses in Tasker just the same as with a phone number with a "wait" or a "pause until keypress" inserted in the number string, but...

You can have Tasker simulate a keypress, however, you must be rooted to be able to access this function because Android natively doesn't allow one program to interfere with another.

If you are ready to head down that alley, there is a pretty good tutorial to start you off in the Tasker Google Group:> I figured out how to emulate key presses - Tasker | Google Groups
 
Upvote 0
Does anyone know of some basic instructions that are in text format rather than video? I just got Tasker and am baffled by interacting with it, but in this case, instructional videos don't really fit with how my mind works.

The immediate things I'd like to do are to play particular sound files (on my phone's SD card as ringtones) at startup and shutdown.

I wasn't aware there were video tutorials for Tasker, but I'm sure someone somewhere did it.

The Tasker Wiki is text-based:> Step-Throughs & How-Tos - Tasker Wiki

For doing this be warned that Tasker won't be able to play a sound right when your device turns on. Programs are put in a queue until the system is finished it's startup routine. So it could take up to 1 minute or so until Tasker gets resources and is allowed to play a sound.

Your Profile would be:
Event > System > Device Boot
+ > Media > Play Ringtone, select your sound

Also, when powering off, Tasker MAY not be able to play a sound because the device uses it's resources to close all the programs running, so again it is put in a queue and may not get a chance to run until it is too late.
 
  • Like
Reactions: Seanette
Upvote 0
I can't see what you would do differently through Tasker regarding this, You would either use waits or pauses in Tasker just the same as with a phone number with a "wait" or a "pause until keypress" inserted in the number string, but...

You can have Tasker simulate a keypress, however, you must be rooted to be able to access this function because Android natively doesn't allow one program to interfere with another.

If you are ready to head down that alley, there is a pretty good tutorial to start you off in the Tasker Google Group:> I figured out how to emulate key presses - Tasker | Google Groups

Exactly what I'm looking for. Thanks!
 
Upvote 0
What I've been doing is using a different way:

[stuff deleted]

Perform Task "PA Weather"
Wait Until TRUN !~ "PA Weather"
Perform Task "PA Calendar"
Wait Until TRUN !~ "PA Calendar"
Etc...

Never had a problem with it that way since then.

Well, apparently Tasker is bent on being unpredictable. For no obvious reason, my blocking system has broken because, for some but not all tasks, Tasker fails to return a value to the parent, which causes the parent to block until stopped. It gets worse, the same child task will return a value to some parent tasks but not others. I don't know what changed, Tasker did not update.

Until either I can figure out why this is happening, or Tasker is fixed, I'm running some experiments based on your method, with an idea of creating a global variable when I need a result returned, since I can't count on the Return function to work correctly.
 
Upvote 0
I would like a profile while I am driving ("Driving") with these features:

- I want the SMS to be read when I am in my car (so, the context is: Bluetooth on), but not when I am on the phone (that's the part I can't work
mad.gif
).

- No ringtone and no vibration.

- No wifi, no GPS and no Data.

Then, when I switch off Bluetooth (either manually or because the car is engined off), it should switch to another profile ("home" or "outside", depending on the location / the variables set in the other profiles).

How can I do this? Do I have to use variables (I think so)?
confused.gif


thanks!
 
Upvote 0
I am new to Tasker and I have been reading through this thread to find some more profiles to make. I am currently on page 10 of this thread so I apoligize if some of my questions have already been answered.

The profiles I currently have are GPS automation, a plugged in profile, and a night profile.

I would like to add several new profiles, but there are a few that are really giving me trouble.
1) Dim or turn off softkey backlight (I have an HTC Amaze and the buttons cause bad light bleed on the screen)
I tried running a command from secure settings to turn the keys off (echo 0 > /sys/class/leds/button-backlight/brightness), but it didn't do anything. I also tried an app called screen filter that works with tasker and the softkey lights remained on even when I unchecked the enable softkey backlight box.
2) Restart phone every few nights
I tried using the reboot action from the misc section of tasker, but it doesn't work. When I test the profile a prompt comes up saying it is asking for SU permission and I grant it, but then nothing happens. I have waited at least a few minutes and nothing happens. I also tried a command to do this from the Secure Settings plug in and it didn't work.
3) Display on when unplugged
Is there a way to make the display turn on when the phone is unplugged and then time out and turn off after the regular amount of time as set in settings? My Blackberry used to do this and I miss this feature.

The phone is rooted so I don't really understand why the reboot profile is not working.
Thanks in advance for the help
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones