How to stop a profile from continuing to run - Tasker Tips & Tricks

I created a profile that basically waits until I am outside of a Geofence location and is connected to my car BT. If both conditions are met, it will automatically close the garage door for me. I have another profile that does the opposite but opens the garage door when I am inside the Geofence location.
What I am wondering is that profile still shows as active even if the task runs and what I would like to do is stop the profile but since I am still connected to BlueTooth while driving, one of the conditions is still true so it still keeps the profile active. Is there a way to run the tasks one time then stop the profile?

steelersmb said:
I created a profile that basically waits until I am outside of a Geofence location and is connected to my car BT. If both conditions are met, it will automatically close the garage door for me. I have another profile that does the opposite but opens the garage door when I am inside the Geofence location.
What I am wondering is that profile still shows as active even if the task runs and what I would like to do is stop the profile but since I am still connected to BlueTooth while driving, one of the conditions is still true so it still keeps the profile active. Is there a way to run the tasks one time then stop the profile?
Click to expand...
Click to collapse
My answer to you may not be helpful ..................
I'm thinking to use Tasker build-in varilable " PROFILE ACTIVE ". This is %PACTIVE ( sort of like.
so that you may be able to puzzle around by adding an " if statement %PACTIVE > Profile name of your above either one > Matches "~" > "on".
Then, do something .......
hope other members has another quicker solution to your need.
Thank you very much., edmond
Thank you very much., edmond

Hello there!
simply add an action in your task to disable the profile once the task is executed. action Tasker-profile status-set profile name and disable,thats all.
You will have to set another task to enable the profile again if needed,like time context etc...

Related

tasker

Edited original post as now getting. a collection of tasker tasks i have going on and easier to keep them in the first post but Will help below if anybody wants to copy them, also if anyone else wants to post there's that will be good.
1st) have tasker to toggle settings like wifi brightness etc when i get to work. Reverts settings back when i get home. Produces notifications on watch.
2nd) sends a message to my wife when i say launch task 1 that tells her im on my way home.
3) launches a autowear location menu on the watch. In the menu i can select wether i want high accuracy or low and wether i want location services on or off atall.
4) when i charge my phone between 2230hrs and 0625hrs the watch is switched to screen off, Bluetooth off and phone set to vibrate. When its unplugged or after 0625 the watch is switched to always on and phone is muted.
5) mobile data on and off options via autowear.
6) detects when i have lost connection to the watch and immediately turns on GPS to record the location. Then notifies me on my phone with a map view. I fix generators for a living so i need to take my watch of sometimes or when i have a shower in the gym etc. If for whatever reason i forget it which is unlikely i will know where i last had it.
7) every morning when i take my phone and watch off charge it selects a different watchface every morning at random from a predefined list. (needs watchmaker to be installed)
8) using autowear so that when i start My Tracks on the watch it automatically starts my gps task for me.
9) little on screen widget that i can control my Xbox/sky/tv changing channels, volume, play and pause, go to Fifa 15, record that, turn everything off. Accomplished using autowear, autoremote, autoinput, and a redundant tablet.
I have only just began with tasker so my methods won't be the most efficient but they work. If anyone has better ways as i mainly using auto input then please get in touch.
Could you describe which apps you used to pull this off? Thank you
Yeah sure, was a app called Tasker that i used on my phone to create it all and then a tasker plugin called tasker wear i think.
I have since been tinkering with it.
The updated version now has the following options;
1) text the wife I'm on my way home.
2) turns Wi-Fi of, auto brightness on, sync off
3) opposite of 2.
4) closes and returns back to watch face.
With option 2 and 3 i get a notification of what has beebeen switched on/ off.
With option 1 it also activates option 3 ready for when i get home.
Also if i forget to do the above especially switch evereverything on it detects when I'm nearly home and does it for me.
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
TheKaser said:
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
Click to expand...
Click to collapse
I'll have a look at that thanks, currently going to create a task that switches between gps and battery saving location as you can't turn location of anymore. So will have it switch to gps when needed and back to battery saving when not.
Also going to see if i can switch to cinema mode when charging and lost connection to the phone together and to revert back to previous or new watch face when undocked and regains connection to phone.
Hi Phil, would love to hear how you get on with that.
Hi rusty,
Just finished putting something together.
I have tasker detect when it's on charge and if between 2230 and 0625, and if so it switches the watch screen to off, and Bluetooth of.
using a profile manger, that detects that the watch it's no longer connected so switches notifications on the phone back on.
The opposite is when it's unplugged it switches Bluetooth back on, turns the watch screen to always on and the profile manager then detects the watch so turns the phone to mute but watch still vibrates.
I can now sleep at night with no lights keeping me awake and the only thing i have to do is plug my phone in.
Just to note it was pretty simple to set up with tasker and autoinput.
TheKaser said:
check AutoWear tasker plugin from joao, you can do anything with it in combination with the other Autoapps.
Click to expand...
Click to collapse
Hi kaser, as you recommended autowear do you have any experience with it as i can't get my head round it and there isn't much on YouTube or Google to help out.
phil gpx said:
Hi kaser, as you recommended autowear do you have any experience with it as i can't get my head round it and there isn't much on YouTube or Google to help out.
Click to expand...
Click to collapse
Hi, sorry for the late reply, I was on holidays.
I do have some experience. You need to download AutoApps from Google Play and suscribe to the alpha testing. Then you can download AutoWear. For this you also need to joing the Google+ community where the developer is always nice and reactive when posting bugs, questions or guidelines. Posting at the community is the best thing you can do since AutoWear is still in Alpha and it improves every day and it is not too straight forward to understand, especially how it communicates with AutoVoice and how commands and parameters are passed to Tasker.
By the way, I have a similar profile telling my girlfriend when I get to work, when I leave work and when I have parked at home coming from work, which automatically trigger depending on my location and connection to my car's bluetooth or work's WiFi. You don't really need your watch for that
Cheers for replying.
I have already downloaded it and played around but can't get my head around the processes of the app.
I followed the guide for the voice screen but cant get new screens up or start tasks etc.
I'm usually pretty good at working things out but cant with autowear.
what is it you are trying to do? Do you have the latest version of tasker?
Yeah i have the updated tasker but just can't work out how to get from the voice screen too say a "4 menu screen" that has tasks i have set up. Not sure what i want to accomplish with tasker next but i know if i can understand autowear it would help.
Have you done anything with autowear.
I have done the above tasks in the first post with autoinput and taskerwear but that is just a series of notifications that you can select to start tasks.
my main use for autowear is to send whatsapp messages from scratch (whatsapp currently only allows to reply to messages).
To achieve this I open an AutoWear Voice Screen by shaking the watch, and say "write to XXXX and say YYYY". This triggers an AutoVoice profile configured to react to "write to (?<contact>.+) and say (?<message>.+) (using Regex)
Inside the task, I do an WhatsTasker plugin contact search of the variable %contact generated by the regex command. Once found, I text the %message to this contact using whatstasker.
The best thing to do is to read the variable descriptions in the task. For example, you create your profile of AutoVoice Recognized. Inside it, before clicking configuration, you can see all the local variables available and their description. These are usable within the task. Same thing goes for any autowear task, they are usable after calling the task.
For example, in my task, after finding the contact, I have an AutoWear confirmation screen with the picture of my contact, his name, and the message I dictated. And following that I have an if %awmessage (the output of this confirmation screen) is different to cancel, then send the message.
Hope this helps a bit!
Thanks buddy, i will try and emulate this tonight once the kids are in bed. Whatsapp was one of the things i have been thinking of doing, just wish there was a way of bringing up a previous conversation without waiting for a new message.
well maybe you can capture the messages as they come, along with the sender's name, and save them in a temp file. Then create an autowear screen that shows the content of this file when requested... but I guess it would be very difficult to make it work perfectly (especially with groups).
I have managed to create and implement a mobile data on and off switch into my interactive notification popup for system settings using tasker, taskerwear and autoinput.
I now have the ability to switch wifi, mobile data, gps on and off as well as high and low accuracy location services and change profiles from one notifaction popping up.
left watch behind
Currently trying to set up a tasker profile that when i get disconnected from my watch will activate gps, stores the location, notifies you where it is and shows you on the map.
Hopefully will never need it but you never know. I.e you leave it in the gym, at work etc
Is there already something that does something similar as struggling at the moment but will crack on if there isn't.
Any one let me know about how to get nearby cell tower ID in a single variable.
Otherwise, how to convert the context in profile as a task.
Ty
Sent from my Micromax A58 using XDA Free mobile app
I'm sorrlearning tasker but i think if you create a new profile that activates when you connect to that cell tower. Then create a task and set variable %whateveryouwantto to %CellID.
You should only have to do that profile once and the variable will be set and you can use it in your profiles and tasks.
On another note i got my lost watch profile working like a charm.
Great Job
TheKaser said:
my main use for autowear is to send whatsapp messages from scratch (whatsapp currently only allows to reply to messages).
To achieve this I open an AutoWear Voice Screen by shaking the watch, and say "write to XXXX and say YYYY". This triggers an AutoVoice profile configured to react to "write to (?<contact>.+) and say (?<message>.+) (using Regex)
Inside the task, I do an WhatsTasker plugin contact search of the variable %contact generated by the regex command. Once found, I text the %message to this contact using whatstasker.
The best thing to do is to read the variable descriptions in the task. For example, you create your profile of AutoVoice Recognized. Inside it, before clicking configuration, you can see all the local variables available and their description. These are usable within the task. Same thing goes for any autowear task, they are usable after calling the task.
For example, in my task, after finding the contact, I have an AutoWear confirmation screen with the picture of my contact, his name, and the message I dictated. And following that I have an if %awmessage (the output of this confirmation screen) is different to cancel, then send the message.
Hope this helps a bit!
Click to expand...
Click to collapse
It sounds great :good:
May you please share your work with screenshots or something else so I can make it work for me?
Thanks in advance and best regards

What Would You Like Tasker To Do?

Hey everyone,
I'm trying to get an idea of how everyone uses tasker or how they want tasker to work for them. Let me know in a comment everything that you have tasker setup to do right now. Also, what tasks do you want but are unsure of how to create a profile for them?
How would I...get my phone to tell me the weather whenever I open my closet? I let the weather determine what I wear and usually I check the weather on my phone right before getting dressed. Would be nice to automate that!
I'm using Tasker for:
-auto-rotate the screen when I launch some apps
-switch off when I'm connected to specific Wi-Fis
-auto-sync my Google account every 2 hours (without night tome)
-auto-sync Google and weather information 30 minutes before my alarm in the morning
I made a tutorial how to do the last one here: http://forum.xda-developers.com/showthread.php?t=3277729
Wysłane z mojego LG-D405 przy użyciu Tapatalka
svetius said:
How would I...get my phone to tell me the weather whenever I open my closet? I let the weather determine what I wear and usually I check the weather on my phone right before getting dressed. Would be nice to automate that!
Click to expand...
Click to collapse
After looking into it quite a bit, I cannot find any way that a task could be triggered by opening your closet door. I don't know how to go about making this work that would be more efficient than just using Google Now.
DrGreenway said:
After looking into it quite a bit, I cannot find any way that a task could be triggered by opening your closet door. I don't know how to go about making this work that would be more efficient than just using Google Now.
Click to expand...
Click to collapse
I figured it out, Greenway. All I need is a SmartThings open/close sensor to monitor when I open my closet door. It uses magnets to do this. Then, I can have Tasker "listen" for the notification that my closet door has opened, and then it will tell me the weather. Heck yah!
svetius said:
I figured it out, Greenway. All I need is a SmartThings open/close sensor to monitor when I open my closet door. It uses magnets to do this. Then, I can have Tasker "listen" for the notification that my closet door has opened, and then it will tell me the weather. Heck yah!
Click to expand...
Click to collapse
This also can be done using a Z-wave door sensor + a Vera hub and the AutoVera plug-in for Tasker. AutoVera can monitor all your Z-wave devices in real time to trigger a Tasker task.
In this example, The tasker profile would be:
if the closet door status change from "closed" to "open" (AutoVera) between 7:00 and 8:00 a.m.,
And it would launch the task to say aloud the weather on your phone. Already explained how to get and use weather data in this post
I guess your SmartThings setup is working pretty much the same way
NFC tags
svetius said:
How would I...get my phone to tell me the weather whenever I open my closet? I let the weather determine what I wear and usually I check the weather on my phone right before getting dressed. Would be nice to automate that!
Click to expand...
Click to collapse
Off the top of my head, I would suggest NFC tags, they are cheep, and you could stick one on your closet door. I believe tasker has an auto NFC function now that will let you create a task based on a NFC scan.
I could be mistaken though.
I do know that you can get the "auto barcode" pluggin which will allow you to automate a task from a barcode scan - just stick a barcode on the door and scan it in the morning!
I'm actually working on creating a personal assistant app that could give you these kind of contextual updates - it pretty easy now with api.ai pluggins.
---------- Post added at 02:49 PM ---------- Previous post was at 02:47 PM ----------
alray said:
This also can be done using a Z-wave door sensor + a Vera hub and the AutoVera plug-in for Tasker. AutoVera can monitor all your Z-wave devices in real time to trigger a Tasker task.
In this example, The tasker profile would be:
if the closet door status change from "closed" to "open" (AutoVera) between 7:00 and 8:00 a.m.,
And it would launch the task to say aloud the weather on your phone. Already explained how to get and use weather data in this post
I guess your SmartThings setup is working pretty much the same way
Click to expand...
Click to collapse
I didn't see your reply before I posted - yes that would be the ideal solution.
My basic tasks are
- silent when between midnight and 8am, if charger plugged in;
- silent during meetings
- launch Radardroid if connected to car BT
- send an automated Whatsapp saying "I'm driving, can't read messages, call me", if I am connected to my car BT and receive a message (using Whatstasker plugin). Yes I have teenage girls...
I have also automated a series of tasks for when I go out mountain-biking on my own:
scan NFC tag (using Trigger)
start Strava
send a Glympse by SMS to my wife, so she can find me if I do myself some serious damage in the middle of nowhere (using Autoinput to simulate keypresses since there are no intents to actually send the Glympse)
And the reverse when I get back:
scan a different NFC tag using Trigger
stop Strava
stop Glympse (using Autoinput again, as above)
send a Whatsapp to the missus, saying I'm home (using Whatstasker).
paul c said:
- silent during meetings
Click to expand...
Click to collapse
Do you take the data from calendar? If yes which one?
Thank you
D_Angelos said:
Do you take the data from calendar? If yes which one?
Thank you
Click to expand...
Click to collapse
Yes, from the Profile page, hit the plus sign, then state, and in the filter area start to write calendar. click on calendar entry, and the 5th entry is "calendar".
Hit the search icon, and you can then choose the calendar from the calendars you currently have.
I use it for:
* Rotate screen for certain apps
*Play music when connected to certain Blutooth devices
* Change volume when connected to certain wifi connections.
I'd like to learn how to use it with AutoAlarm to configure my Lifx light.
I've been trying to find a way to automate the voice recording app via nfc... has anyone seen this done?
paul c said:
My basic tasks are
- silent when between midnight and 8am, if charger plugged in;
- silent during meetings
- launch Radardroid if connected to car BT
- send an automated Whatsapp saying "I'm driving, can't read messages, call me", if I am connected to my car BT and receive a message (using Whatstasker plugin). Yes I have teenage girls...
I have also automated a series of tasks for when I go out mountain-biking on my own:
scan NFC tag (using Trigger)
start Strava
send a Glympse by SMS to my wife, so she can find me if I do myself some serious damage in the middle of nowhere (using Autoinput to simulate keypresses since there are no intents to actually send the Glympse)
And the reverse when I get back:
scan a different NFC tag using Trigger
stop Strava
stop Glympse (using Autoinput again, as above)
send a Whatsapp to the missus, saying I'm home (using Whatstasker).
Click to expand...
Click to collapse
how did u create this task . . . ."send an automated Whatsapp saying "I'm driving, can't read messages, call me", if I am connected to my car BT and receive a message (using Whatstasker plugin)"???
I would like , How I can use tasker with-in my Android phone using either my K9 mail client of the gmail apps .
First to check mail every certain mins , once a key word is search ( i.e. from my boss's email ) , takser use my Android phone's build-in SMS client to send myself an SMS.
Thank you very much.
Is it possible, that tasker would lower the priority of ongoing notifications on a condition (e.g. location), so that notification will run, but hides from lockscreen and showing only, if phone is unlocked (and rise after location change)?
i want to use tasker for spying...all activities sms,calls,open applications,locations,call recordings etc forwarded to me on my number/cloud etc with no traces there in their mobile. is it possible with no traces?
Auto reset Mobile Data Cycle on fresh purchase of data.
I know that Android automatically updates the data cycle every thirty one days.
However my carrier only allows a 28 day monthly data plan. Moreover if I do run out of data before that, the system does not account for it. This causes problems for my data cap management unless I manually reset it myself.
Now I think I have one half of it down. After each data plan purchase the carrier sends an sms conformation. I've set up a profile that is triggered when it reads the first half of the confirmation message from the carrier. I cannot however, find the necessary action to reset the data cycle.
Any and all help is appreciated. Thank you for putting up this thread.
taking pictures by fingerprint? this would be awesome
Diceware
I want to run a Diceware password generator from within Tasker. This could read from a Google Sheet, or from an internal file, or could have all the words stored in Tasker. I'm not exactly sure how to build it in Tasker. I can make a Google Sheet that will use a pseudo-random number generator to choose the values that will be used to select the words from the Diceware list.
Any ideas?
My dream would be picking up the phone from say desk unlocks the screen.
As far as I know it's a no go. Shame...

[Question] Best Practise to make a profile based on more than one variable state?

I would like to change my audio profiles based on different situations:
Audioprofile Normal
Normal audiosettings at daytime, when car is not connected and no meeting in calendar.
Audioprofile Night.
Silent audiosettings at nighttime, but only when I'm at home and car is not connected.
Audioprofile Car
Audioprofile in car when connected to bluetooth. Overwrites every other audioprofile.
Audioprofile Silent
Audioprofiles for meetings and special locations.
Every state has his own variable, like the daytime, the bluetooth connection, my location etc..
So I tought I could combine the variable states in a profile with "Variable Value" and the operator AND:
"[email protected]"
Variable Value
%Day=1
AND
%Meeting=1
AND
%Car=0
Enter Task=Audioprofile Silent
But I read this in the Tasker Wiki:
...
Warning: if you want to trigger on a variable and then take some action which sets the thing the variable represents you should use the Variable Set event instead. A Variable Value state will cause complications when the state exits and tries to restore the value again.
...
With "Variable Set" I can only query the value of one variable. That's not enough for my profiles.
How could I do this? Is the warning still valid?
JasMan78 said:
I would like to change my audio profiles based on different situations:
Audioprofile Normal
Normal audiosettings at daytime, when car is not connected and no meeting in calendar.
Audioprofile Night.
Silent audiosettings at nighttime, but only when I'm at home and car is not connected.
Audioprofile Car
Audioprofile in car when connected to bluetooth. Overwrites every other audioprofile.
Audioprofile Silent
Audioprofiles for meetings and special locations.
Every state has his own variable, like the daytime, the bluetooth connection, my location etc..
So I tought I could combine the variable states in a profile with "Variable Value" and the operator AND:
"[email protected]"
Variable Value
%Day=1
AND
%Meeting=1
AND
%Car=0
Enter Task=Audioprofile Silent
But I read this in the Tasker Wiki:
...
Warning: if you want to trigger on a variable and then take some action which sets the thing the variable represents you should use the Variable Set event instead. A Variable Value state will cause complications when the state exits and tries to restore the value again.
...
With "Variable Set" I can only query the value of one variable. That's not enough for my profiles.
How could I do this? Is the warning still valid?
Click to expand...
Click to collapse
What i would do create individual profiles based on time of day, power supply connection, wifi network connection, bluetooth device connection, etc. Each one of those trigger their own individual task which:
1. Sets a specific variable to "1".
2. Sets other settings specific to that profile (if needed).
3. Performs a separate task that change common settings all profiles share.
Then create exit tasks for each profile to:
1. Set specific variables to "0".
2. Set other settings specific to that profile no longer being active (if needed).
3. Performs that same separate task that changes common settings all profiles share.
The common task should be set up with a series of if/else statements for each condition you want. So if variables time of day and home wifi connected are "1", do this, else do nothing. if car Bluetooth connected set to "1", do this, else do nothing. Etc etc etc.
LeftyGR said:
What i would do create individual profiles based on time of day, power supply connection, wifi network connection, bluetooth device connection, etc. Each one of those trigger their own individual task which:
1. Sets a specific variable to "1".
2. Sets other settings specific to that profile (if needed).
3. Performs a separate task that change common settings all profiles share.
Then create exit tasks for each profile to:
1. Set specific variables to "0".
2. Set other settings specific to that profile no longer being active (if needed).
3. Performs that same separate task that changes common settings all profiles share.
The common task should be set up with a series of if/else statements for each condition you want. So if variables time of day and home wifi connected are "1", do this, else do nothing. if car Bluetooth connected set to "1", do this, else do nothing. Etc etc etc.
Click to expand...
Click to collapse
Thank you for your answer.
That could be a way to do it. I must think about it.
But is the warning still valid? I've a lot of profiles which base on variable states. I never have had any problems with them.
JasMan78 said:
Thank you for your answer.
That could be a way to do it. I must think about it.
But is the warning still valid? I've a lot of profiles which base on variable states. I never have had any problems with them.
Click to expand...
Click to collapse
I could be wrong, but I think it is saying not to trigger based on a variable. Meaning, a variable set to x causes y to happen. You can have a profile set a variable, but can get problems if a variable triggers a profile.
At least I think that's what it's saying...lol
That's exactly what I'm doing. A variable is set to 1, and a profile gets active because it checks the state "Variable Value" of this variable. This works fine for me, also the exit task as soon as the value is not longer 1.
The advantage of this method is, that I need only one profil which checks my location, appointments, bluetooth connection, etc.. The profile then sets the variable e.g. $Appointment to 1, and I can work with this variable in any other profile where I need to check if I've an appointment. If the name of the calendar change, I need only to change the name of the calendar in one profile.
And I can simply combine different variables to complex profiles.
Also, the wiki is old-ish, and not really all that up to date. So it is possible tasker has been updated to fix that issue since it was posted.
I found a good solution for me.
I've created a Tasker task, which checks the needed variables and executes the associated audio profile.
E.g. if %Day=1 then execute the task "Profil Normal", if %BluetoothConnected=Car then execute the task "Profil Car".
To execute the task I created Tasker profiles with the event "Variable Set" for every variable, which I query to choose the right audio profile. I left the value field emtpy, so everty time the variable changed the profile executes my task.
Now every time one of this variables changes, the task, which checks the values of the variables and calls the audio profile task, is executed.

can tasker diferenciate between state contexts and trigger contexts?

Hi,
I'm new to tasker, i downloaded it like a week ago. So any help will be apreciated.
I want to know if it is possible to make some contexts to trigger a profile (trigger contexts), while others not (they must be true for the profile to get activated, but they must not trigger it (state contexts)).
For example, i want to try this:
- When waze is active and at certain locations (like my home), run and intent to cleanly exit waze.
This is intented so when i arrive at destination, waze gets closed automatically. The problem arises if i'm at home and then open waze to drive somewhere, then it gets closed immediatly. Therefore, i'd like that only the location context triggers the profile.
Is this even possible? I want to create other profiles and task under this premise too.
Regards
Make a profile that only activates on location.
Make a second, separate profile for Waze running.
Method 1:
1. Give a custom name to the Waze profile (necessary), e.g. "Waze is Running".
2. Set the Waze profile to run a dummy task like "wait 10 milliseconds".
3. In the first step of your location task, add a Task > Stop > if %PACTIVE doesn't match regex .*Waze is Running.*
4. After this first step, the location task has to stop Waze.
Alternatively, instead of adding a Task > Stop, you can put the "if condition" in the step that closes Waze. Just change it from "doesn't match regex" to "matches regex".
Method 2:
1. Waze profile sets a global variable like %Waze to yes or 1 when Waze is running (enter task)
2. Waze profile clears the global variable when Waze quits (exit task)
3. Location profile checks %Waze instead of checking %PACTIVE
%PACTIVE contains a list of all currently active profiles, but you can only check for those profiles to which you've given a custom name.
Ok, thanks. I had already started with method 2, the only thing i was missing was the third step.
I think this is a task for the state event "Variable Set". As soon as an variable has changed, the task will be executed once. There is no exit task.
Example:
1. Create profiles which set your location to a variable, e.g. %Location
2. New Profile with event "Variable Set" and the variable %Location
3. If %Location change, execute Task which checks if %Location is equal Home or not. If Home, kill Waze. If not, do nothing.
4. When you are at home and start Waze, it will not get killed because the variable %Location has not changed. Therefore the profile will not be triggered. Only when you left home the variable changes and the task will be executed. When you come back to your home, the task will be executed again.
Thanks!! , this is more consistent and more easily applied to others profiles given the way I handle my profiles and tasks.

[Tasker Help] Detact - Activity detection

Recently, I stumbled upon this nice little app, called Detact. It uses the new Activity Recognition Transition API to detect your current activity (driving, running, biking,...). I use this app to automatically enable Bluetooth while I am driving, so that it connects to my car's Bluetooth system. Until now, it does the job properly.
The thing is: it will always enable Bluetooth while I am inside a driving vehicle. I would like to have it enabled while connected to my own car, but not while I am driving any other car. My idea would be some kind of task that will (periodically?) check if I am connected to my car. If not connected after a pre-defined amount of time (say, three minutes), the task (named "driving mode" for example) should be aborted and not re-enabled by the initial profile afterwards.
Any help would be highly appreciated.
So this takes 2 profiles to accomplish.
The first one is a check that the car BT is connected. The profile context is a BT Connected state and enter the connection information for your car. The associated entry task should set a variable (e.g. %CarBT to true). In this case, you must have at least one capital letter in the variable so its available to other tasks. The associated exit task is a variable clear for the above variable.
The second profile is your existing plugin context for Detact. The entry task I assume starts with a BT on action. Then add a 3 minute wait then a BT off action which has an if statement: IF %CarBT does not match true.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
So this takes 2 profiles to accomplish.
The first one is a check that the car BT is connected. The profile context is a BT Connected state and enter the connection information for your car. The associated entry task should set a variable (e.g. %CarBT to true). In this case, you must have at least one capital letter in the variable so its available to other tasks. The associated exit task is a variable clear for the above variable.
The second profile is your existing plugin context for Detact. The entry task I assume starts with a BT on action. Then add a 3 minute wait then a BT off action which has an if statement: IF %CarBT does not match true.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Thank you for your explanation :good: I will give it a try and report back if any question arises.
Short feedback from my side: the above mentioned solution by setting up two different profiles works as I intended it to run. Thanks again, @ktmom :good:

Categories

Resources