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

Anyone using Tasker?

This seems like a basic question, but I have a car dock task set to crank up my ringer volume when in the docked state. I also have a task set up to turn my ringer off between certain hours monday-friday. So how do I set it up so that the car dock task overwrites the mon-fri task, and whenever I dock my phone during those hours, it will turn on the ringer anyway, and then when I exit the dock it goes back to the mon-fri task and turns the ringer off?

Additionally, I found the section to turn the ringer off under audio, but where do I find the option to change the phone to vibrate only? Ideally I would like to switch my phone to vibrate mon-fri during work hours rather than cut the ringer off. Thanks a lot.

It will overwrite the task automatically once you put the phone in the dock and return to the previous task once you remove it from the dock. I have a similar set up and didn't need to set anything up special to do it. Also, under Audio, there's an option called "Vibrate on Ringer". That should do what you need. You actually have an easier option. Just choose "Silent Mode" option and in the drop-down box, choose "Vibrate". This option will supress all sounds except media and alarms, but won't change the underlying volume settings.
 
This seems like a basic question, but I have a car dock task set to crank up my ringer volume when in the docked state. I also have a task set up to turn my ringer off between certain hours monday-friday. So how do I set it up so that the car dock task overwrites the mon-fri task, and whenever I dock my phone during those hours, it will turn on the ringer anyway, and then when I exit the dock it goes back to the mon-fri task and turns the ringer off?

Additionally, I found the section to turn the ringer off under audio, but where do I find the option to change the phone to vibrate only? Ideally I would like to switch my phone to vibrate mon-fri during work hours rather than cut the ringer off. Thanks a lot.

Duffin is right - Vibrate on Ringer and/or Silent Mode Vibrate will make the phone vibrate.

With regard to the car dock profile having priority over the day/time profile, if you dock when the day/time profile is active, the dock profile with supersede the day/time profile. But if you happen to be docked when the day/time profile kicks in, it will supersede the dock profile. The easiest way around this problem is to add a "Not Docked Car" context to the day/time profile. This way it will only be active when your phone is not in the car dock, and won't conflict with the car dock profile at all.
 
Duffin is right - Vibrate on Ringer and/or Silent Mode Vibrate will make the phone vibrate.

With regard to the car dock profile having priority over the day/time profile, if you dock when the day/time profile is active, the dock profile with supersede the day/time profile. But if you happen to be docked when the day/time profile kicks in, it will supersede the dock profile. The easiest way around this problem is to add a "Not Docked Car" context to the day/time profile. This way it will only be active when your phone is not in the car dock, and won't conflict with the car dock profile at all.

Yeah, I didn't even think to mention that last part. Yeah, essentially a new profile activation will always supersede a profile already running and return to the first profile once the second is deactivated.
 
The easiest way around this problem is to add a "Not Docked Car" context to the day/time profile. This way it will only be active when your phone is not in the car dock, and won't conflict with the car dock profile at all.

Can you elaborate on what a "Not Docked Car" context is? Do you mean an entirely new profile, or setting a variable that is checked for, or something else?
 
Can you elaborate on what a "Not Docked Car" context is? Do you mean an entirely new profile, or setting a variable that is checked for, or something else?

You can set multiple contexts for profiles, so you'd have one for date and time. You can add a third for "State". Just choose "Docked" and make sure you tick the "Invert" box before hitting Done. That will invert it to mean whenever the phone is NOT docked.
 
Well, here are the results of my testing today. For those who joined us late and are following from home what I'm trying to achieve with Tasker is that I want the phone to send an email to the secretaries whenever I leave the office. I do not want this email sent when I return to the office, just when I leave.

I found a script that would generate this email and was looking for the proper contexts to call the script under. Uncle Mike offered me a solution that I was skeptical of. I came up with a solution that I was skeptical of as well. My car adapter is recognized as an AC adapter so I'm using that condition as being in my car.

UncleMike's solution:

Profile 1 - Set's work hours variable
Context - Day of week = M, T, W, Th, F
Context - Time of day = 0800 - 1700
Task - %WORKHOURS = 1
Exit Task - Variable reset %WORKHOURS

Profile 2 - sends the email
Context - %WORKHOURS = 1
Context - Power = not AC
Context - GPS Loc = Work
Task - Run email script

My solution

Profile 1 - Set power state variable
Context - Power = AC
Task - %PWRST = 1
Exit task - Variable reset - %PWRST

Profile 2 - While loop for Power that counts up while on AC power
Context - %PWRST = 1
Task - Stop if %PWRST = 0
%PWRCT = PWRCT + 1
Go to line 1

Profile 3 - Sends the email
Context - %WORKHOURS = 1
Context - PWRCT = 1
Context - GPS Loc = Work
Task - Send email

Now, my way is insanely more complicated and convoluted than UncleMike's. I freely admit this. Yesterday I tried it out and it didn't work, but there was an issue with my Workhours variable. So I fixed that.

Today I was running a few minutes late. My task sent me 7 emails by the time I pulled into the parking lot at 8:05. I may have set the GPS radius too wide. In any case, this wasn't what I was wanting. UncleMike's task did not send the email when I arrived at the office which is what I was wanting. When I left the office, my task generated an email, but did not generate an email when I returned.

So far, my task has generated 7 emails that were unwanted and all when I pulled in to work late. When I left for lunch, my task generated an email.

UncleMike's task has not sent me a single email. It may be interfering with my task though. I think for tomorrow I will backup the profile sending my email and try with just UncleMike's.

Edit: I'll also add that one of these two profiles is screwing with GPS on my phone. This morning I got to the office by 8 and my phone was dead by 11 and was running very, very hot the whole time. I suspect one or both of these profiles had GPS turned on constantly as I've made no other changes to the phone and installed no other programs recently. I have no idea which of these two profiles it is though.
 
Well, here are the results of my testing today. For those who joined us late and are following from home what I'm trying to achieve with Tasker is that I want the phone to send an email to the secretaries whenever I leave the office. I do not want this email sent when I return to the office, just when I leave.

I found a script that would generate this email and was looking for the proper contexts to call the script under. Uncle Mike offered me a solution that I was skeptical of. I came up with a solution that I was skeptical of as well. My car adapter is recognized as an AC adapter so I'm using that condition as being in my car.

UncleMike's solution:

Profile 1 - Set's work hours variable
Context - Day of week = M, T, W, Th, F
Context - Time of day = 0800 - 1700
Task - %WORKHOURS = 1
Exit Task - Variable reset %WORKHOURS

Profile 2 - sends the email
Context - %WORKHOURS = 1
Context - Power = not AC
Context - GPS Loc = Work
Task - Run email script

My solution

Profile 1 - Set power state variable
Context - Power = AC
Task - %PWRST = 1
Exit task - Variable reset - %PWRST

Profile 2 - While loop for Power that counts up while on AC power
Context - %PWRST = 1
Task - Stop if %PWRST = 0
%PWRCT = PWRCT + 1
Go to line 1

Profile 3 - Sends the email
Context - %WORKHOURS = 1
Context - PWRCT = 1
Context - GPS Loc = Work
Task - Send email

Now, my way is insanely more complicated and convoluted than UncleMike's. I freely admit this. Yesterday I tried it out and it didn't work, but there was an issue with my Workhours variable. So I fixed that.

Today I was running a few minutes late. My task sent me 7 emails by the time I pulled into the parking lot at 8:05. I may have set the GPS radius too wide. In any case, this wasn't what I was wanting. UncleMike's task did not send the email when I arrived at the office which is what I was wanting. When I left the office, my task generated an email, but did not generate an email when I returned.

So far, my task has generated 7 emails that were unwanted and all when I pulled in to work late. When I left for lunch, my task generated an email.

UncleMike's task has not sent me a single email. It may be interfering with my task though. I think for tomorrow I will backup the profile sending my email and try with just UncleMike's.

Edit: I'll also add that one of these two profiles is screwing with GPS on my phone. This morning I got to the office by 8 and my phone was dead by 11 and was running very, very hot the whole time. I suspect one or both of these profiles had GPS turned on constantly as I've made no other changes to the phone and installed no other programs recently. I have no idea which of these two profiles it is though.

Re: my profiles...

It may be just mis-typed in your post, but the task in my second profile should be an exit task. Aside from that, with the logic I used, the profile should have been active while you were at work and uplugged during work hours. Was it active at the right when it should be?

I'm at a loss at the moment as to why no emails were sent.

If you have GPS enabled in Android, my profile with Location and Not Power are likely causing battery drain.

Re: your profiles...

You're incrementing %POWERCT as a means of only sending the email at the moment you're powered, right? If so, it needs to be reset at some point, and I'm not seeing where that happens. I think it should happen in the enter task of profile 1.

Profile 2 could accomplish the same result (if I understand what you're doing) by waiting 1 minute and incrementing once, instead of constantly looping. I think this is an excellent solution to detecting the act of being plugged in as opposed to the state of being powered. This same function could be included in profile 1, eliminating the need for profile 2.

Your profile 3 generated one email when you left the office, and none when you returned... this is good, and I think your incrementing idea is responsible.

As above, I'm also at a loss as to why multiple emails were sent in the 5 minutes before you arrived at work. My first reaction was that the never-ending incrementing was somehow wrapping around after reaching the maximum allowed by the data type Tasker is using internally. But I've doubled a number many times in Tasker and now have a variable with a value of 17592186044416, while being unable to produce any type or wrapping effect.

Re: general...

How are you identifying which profile caused the email to be sent?

You can add use Notify actions in the tasks, so you can look at the notification bar to see when a task was last executed. This may help in tracking down what's happening when you can't look at your phone.

Keep up the good work. It will be worth it in the end. :)
 
I did not know they had a wiki for this? I've paid for this program like 4 weeks ago and still have yet to use it.

it's so confusing but what I want it to do is so simple.. turn on vibration going to one location and revert back to the normal settings when I leave.
 
I did not know they had a wiki for this? I've paid for this program like 4 weeks ago and still have yet to use it.

it's so confusing but what I want it to do is so simple.. turn on vibration going to one location and revert back to the normal settings when I leave.

All that takes is a single profile, but for this purpose there are several ways in which you can determine your location. You could use any one (or a combination) of the following contexts:

Location - Network only (cell tower traingulation)
Location - GPS
Wifi Near - if Wifi is normally off you can tell Tasker to turn it on to check nearby Wifi signals periodically, but recognizing that you're no longer "near" can take too long for some people/purposes
Wifi Connected - Wifi must be on before this will work
Bluetooth Connected - bluetooth must be on, has very limited range

Using a GPS location will run your battery down quickly, so Network only and Wifi Near are most commonly used.

Context: Location or Wifi Near
Enter Task:
Vibrate on Ringer (on)
Vibrate on Notify (on)
Silent Mode (vibrate)

Do you have Wifi in the area where you want these settings to apply? If so, do you normally connect to that Wifi when you're there?
 
I'm wondering if I can have tasker display some text in the notification bar (say, next to the tasker icon) at the top of the phone to indicate certain profiles which may be active? Can't seem to find if I can or not (I'm a gumby at the best of times)
 
I'm wondering if I can have tasker display some text in the notification bar (say, next to the tasker icon) at the top of the phone to indicate certain profiles which may be active? Can't seem to find if I can or not (I'm a gumby at the best of times)

There's no way within Tasker to add text to the notification bar. However, you can use the Notify action to place an icon in the notification bar, and when you pull down the notifications the title and text associated with the icon will be visible. Also, the names of active profiles are not available to Tasker tasks.

The Tasker notification itself contains a list of active profiles, provided that their combined names are short enough to list. Otherwise it will just say how many active profiles there are.
 
Re: my profiles...

It may be just mis-typed in your post, but the task in my second profile should be an exit task. Aside from that, with the logic I used, the profile should have been active while you were at work and uplugged during work hours. Was it active at the right when it should be?

I'm at a loss at the moment as to why no emails were sent.

If you have GPS enabled in Android, my profile with Location and Not Power are likely causing battery drain.

No, I had it set up that way. I obviously completely misunderstood you which is my fault. I've now fixed it. Your profiles are simpler than mine and I prefer simpler to more complicated. I don't have GPS turned on by default, but I'm assuming that Tasker activates it as needed. Is this correct?

Re: your profiles...

You're incrementing %POWERCT as a means of only sending the email at the moment you're powered, right? If so, it needs to be reset at some point, and I'm not seeing where that happens. I think it should happen in the enter task of profile 1.

You're right. I do need to reset it. I think I had it as an exit task originally on my profile that was incrementing it. The idea was that once I was no longer counting up (i.e. I was unplugged) it would reset.

Profile 2 could accomplish the same result (if I understand what you're doing) by waiting 1 minute and incrementing once, instead of constantly looping. I think this is an excellent solution to detecting the act of being plugged in as opposed to the state of being powered. This same function could be included in profile 1, eliminating the need for profile 2.

Your profile 3 generated one email when you left the office, and none when you returned... this is good, and I think your incrementing idea is responsible.

I've deleted these profiles for today to see how well your method works and to eliminate the possibility that my profiles are conflicting with yours. I pulled in to the office a few mins early this am and no emails were sent. This was expected with both solutions.

As above, I'm also at a loss as to why multiple emails were sent in the 5 minutes before you arrived at work. My first reaction was that the never-ending incrementing was somehow wrapping around after reaching the maximum allowed by the data type Tasker is using internally. But I've doubled a number many times in Tasker and now have a variable with a value of 17592186044416, while being unable to produce any type or wrapping effect.

I'm also at a loss. The only thing I could think of is that it's not incrementing fast enough. I had it incrementing every 15 seconds. When I pull into the office at 8:05, all of the contexts listed are true - I am on AC power, it is between 8-5, M-F and I am probably within the GPS radius I've sent. This triggers the task over and over again before the counter goes up and ends the task. In that 15 seconds, the task may be triggered 6-7 times. That's the only theory I've got at the moment. Otherwise I am also at a loss to explain it.

Re: general...

How are you identifying which profile caused the email to be sent?

You can add use Notify actions in the tasks, so you can look at the notification bar to see when a task was last executed. This may help in tracking down what's happening when you can't look at your phone.

Keep up the good work. It will be worth it in the end. :)

Basically I copied the email script and am sending a different email for each script. My profile calls script 1 and your profile calls script 2. The scripts are identical except for the emails they produce. My script generates an email telling me that my logic worked while yours generates an email saying that your logic worked. I've tested both scripts in Tasker and both work. This way I can see which script is sending the email in question.
 
No, I had it set up that way. I obviously completely misunderstood you which is my fault. I've now fixed it. Your profiles are simpler than mine and I prefer simpler to more complicated. I don't have GPS turned on by default, but I'm assuming that Tasker activates it as needed. Is this correct?

You can see (and I'm interested to see) how my profiles go, but I think your approach of incrementing a counter to determine whether you've been plugged in for a while or only recently plugged in, is a better approach and easier to understand than my inverted context and exit task.

Unlike Wifi Near (with its Toggle Wifi option) a Location context will not turn on GPS to get a location fix, even if GPS is enabled in a Location context. I don't know the specifics, but when GPS is not enabled in Android, Tasker does alter the logic it uses to determine whether you are (or still are) in the designated area.

I'm also at a loss. The only thing I could think of is that it's not incrementing fast enough. I had it incrementing every 15 seconds. When I pull into the office at 8:05, all of the contexts listed are true - I am on AC power, it is between 8-5, M-F and I am probably within the GPS radius I've sent. This triggers the task over and over again before the counter goes up and ends the task. In that 15 seconds, the task may be triggered 6-7 times. That's the only theory I've got at the moment. Otherwise I am also at a loss to explain it.

I didn't see a 15 second delay between increments, but I don't think that is the cause of repeated emails. An Enter Task will only be executed when all contexts become true. If you got 7 emails in 5 minutes, that means that your profile became active 7 times, which would require that it became inactive at least 6 times (it can't activate again without first deactivating).

In general, if you're trying to avoid having a profile frequently activate when there's a valid reason it is doing so, you can edit the profile properties and set the Cooldown value to prevent it from becoming active too frequently. After a profile becomes active, it will not be allowed to become active again for the specified number of minutes.

Basically I copied the email script and am sending a different email for each script. My profile calls script 1 and your profile calls script 2. The scripts are identical except for the emails they produce. My script generates an email telling me that my logic worked while yours generates an email saying that your logic worked. I've tested both scripts in Tasker and both work. This way I can see which script is sending the email in question.

Apparently you're using something external to Tasker to send the email, since Tasker only includes a Compose Email action. What are you using?
 
You can see (and I'm interested to see) how my profiles go, but I think your approach of incrementing a counter to determine whether you've been plugged in for a while or only recently plugged in, is a better approach and easier to understand than my inverted context and exit task.

I'm into stuff that works and is simple. If your profiles work then I'm willing to use them whether they make complete sense to me or not. Changing that to an exit task makes the whole thing make more sense to me.

Unlike Wifi Near (with its Toggle Wifi option) a Location context will not turn on GPS to get a location fix, even if GPS is enabled in a Location context. I don't know the specifics, but when GPS is not enabled in Android, Tasker does alter the logic it uses to determine whether you are (or still are) in the designated area.

So do I need to have GPS turned on when I get in my car then? I can easily set up my car profile to do this. I don't normally turn it on as I don't usually use it and does seem to make my phone get pretty hot.

I didn't see a 15 second delay between increments, but I don't think that is the cause of repeated emails. An Enter Task will only be executed when all contexts become true. If you got 7 emails in 5 minutes, that means that your profile became active 7 times, which would require that it became inactive at least 6 times (it can't activate again without first deactivating).

I forgot to include it in my post, but it's in there. It ups the count, waits 15 seconds, then ups the count again as long as it's still plugged into AC power.

In general, if you're trying to avoid having a profile frequently activate when there's a valid reason it is doing so, you can edit the profile properties and set the Cooldown value to prevent it from becoming active too frequently. After a profile becomes active, it will not be allowed to become active again for the specified number of minutes.

I had never seen this before. Very neat feature.

Apparently you're using something external to Tasker to send the email, since Tasker only includes a Compose Email action. What are you using?

I found a python script on the wiki that automatically generates a pre-canned email. My profiles simply call that script under the appropriate conditions.
 
I'd like to get some support for making this thread a sticky. Tasker is powerful enough (and technically challenging enough ) to warrant a top listing.

It also wouldn't be a bad idea to merge the growing number of Tasker Q&A threads into this one as a one-stop shop for Tasker help. :)
 
Current Tasks I have setup, no order:

1. If Maps is turned on, turn on GPS
2. If MyTracks is turned on, turn on GPS and turn BT, Sync and WiFi off (if on) to save battery and turn up brightness to 255 since I am outside
3. BT off at 9pm at night as no more need and on at 9am
4. mute phone while at church from 9:10 to 10:30 only on Sundays
5. turn Sync off ever night at 10:30 and back on at 7:30
6. use wifi near so that if it senses my home wifi, turn on wifi (and thus off 3G) as it is faster and only do this between 7:30 am and 10:30 PM
7. if the BT sense my car is connected, turn up brightness to 255 as it is easier to then see in the car
8. if I plug in a power cord (USB or dock) it disables the keyguard, stays on, cranks up display brightness.. if I unplug it reverts back

9. missed call - if I get a missed call it plays a tone AND flashes an LED. BUT, the problem with this task is that to do it you need to use a "notify" and that means you MUST get a notification message in the notification bar (with some associated text) and that means you get 2 notifications - 1 system and 1 Tasker. Since the system cannot do custom tone or LED I need Tasker, but since the system does show a missed call notification, I have to have 2 notifications and that irks me :( to bad no way to kill the stock notification and have inly the Tasker.. is there?
 
I'd like to get some support for making this thread a sticky. Tasker is powerful enough (and technically challenging enough ) to warrant a top listing.

It also wouldn't be a bad idea to merge the growing number of Tasker Q&A threads into this one as a one-stop shop for Tasker help. :)

I'd support that.
 
I would like to know if it is possible to set up a task that when i receive a text message from a certian person it kicks in my scanner app?
 
How does a "profile" differ from a "task" within Tasker? When would you use one over the other? Thanks.

A profile includes a Context and a Task. In Tasker you have two things:

Context - An event that triggers a task, i.e. time of day, headphones plugged in, app launching, phone ringing, etc....

Task - A task that is triggerd by an event, i.e. a program closing, GPS turning on/off, a sound playing, etc....

When you combine a Context and a Task, you get a profile. For example, let's say you want GPS to turn on when you launch Google Navigation. In this case the Context is launching Google Navigation and the Task is turning GPS on. The whole thing (Google Navigation launches and GPS turns on) is a profile. Make sense?
 
A profile includes a Context and a Task. In Tasker you have two things:

Context - An event that triggers a task, i.e. time of day, headphones plugged in, app launching, phone ringing, etc....

Task - A task that is triggerd by an event, i.e. a program closing, GPS turning on/off, a sound playing, etc....

When you combine a Context and a Task, you get a profile. For example, let's say you want GPS to turn on when you launch Google Navigation. In this case the Context is launching Google Navigation and the Task is turning GPS on. The whole thing (Google Navigation launches and GPS turns on) is a profile. Make sense?

So does that mean you would ALWAYS begin setting up something new in Tasker by first creating a Profile, then a Context, then a task(s)?
 
So does that mean you would ALWAYS begin setting up something new in Tasker by first creating a Profile, then a Context, then a task(s)?

No, you can set it up either way. It all depends on how you think. Take my GPS setup I mentioned earlier. The way I look at things I see X + Y = Z. I start by setting up my context (Navigation launches) then set my Task (GPS turns on). These create my profile automatically.

You can however set up a list of tasks first. For example, let's say that when I get in my car I want Brightness all the way up, GPS on and BT on and I also want to launch my navigation app. I could create a Task first and basically make a list of tasks, turn brightness up, turn GPS on, turn BT on, launch navigation. I could call this "Car List" for example. Then I could set my phone up so that when my charger was plugged in, the list would execute. I could take that same list and execute it under any context I chose. Make sense at all?
 
Make sense at all?

Hmmm...maybe an example of what I'm trying to do might help me understand...

Here's what I would like to happen when I plug in my headphones:

1. A menu appears with my 3 choices of music service (Music, Pandora, Rhapsody)
2. The music volume goes to 11
3. The phone ringer is silenced
4. The notification volume is also silenced

The first one is a menu and the last three are tasks to be executed. How would I set that up?
 
Hmmm...maybe an example of what I'm trying to do might help me understand...

Here's what I would like to happen when I plug in my headphones:

1. A menu appears with my 3 choices of music service (Music, Pandora, Rhapsody)
2. The music volume goes to 11
3. The phone ringer is silenced
4. The notification volume is also silenced

The first one is a menu and the last three are tasks to be executed. How would I set that up?

Ok. You'd have to set up a context first (at least that's how I do it anyway). In this case your context is going to be plugging in the headphones. So:

Profile
Context : State - Headset Plugged

Then you need the tasks. You can either set these up as one list so you can refer to it using multiple profiles (i.e. if you want the exact same things to happen when you connect a BT headset), or you can set all of them individually. In this case, I'd probably set them individually so you'll have:

Profile
Context : State - Headset plugged
Task - Click on the tools in the bottom left and change the Task Type to menu. Then just add Load App - name of 1st app, Load App - name of 2nd app, etc...
Task - Media Volume = 11
Task - Ringer volume = 0
Task - Notification Volume = 0

In this case, once you unplugged your headset, all your settings would turn up to what they were before.
 
Back
Top Bottom