Deactivate Bluetooth after time

6,255 views
Skip to first unread message

Peleke

unread,
Dec 5, 2010, 6:39:40 PM12/5/10
to Tasker
I want to deactivate Bluetooth after 10 minutes of inactivity (no
device connected).
How can I achieve that?
Thanks in advance.

Daoth

unread,
Dec 6, 2010, 8:20:19 AM12/6/10
to Tasker
I think i just setup this profile myself, haven't been using it very
loing, som am not 100% sure it does what it should
I setup the followoing logic, if anybody has any suggestions or
improvements, theyre welcome:

-Profile 1: BTConnected?
Contect: State, Bluetooth Connected
Start Task: Variable Set %BTC = 1
Exit Task: Variable Set %BTC = 0

- Profile 2: BTAutoOff
Context: Variable Set %BLUE Value On
Start Task: 1 - Wait 10 min
2 Set Bluetooth Off If %BTC != 1

-Profile 3: BTDisconnected
Context: Variable Set %BTC Value 0
Start Task: 1 - Wait 10 Min
2 Set Bluetooth Off If %BTC != 1


Profile 2 Disables bluetooth when a connection hasn't happened at all
after 10min
Profile 3 Disables bluetooth 10min after losing a connection, checking
if it hasn;t been restored since then

Daoth

unread,
Dec 6, 2010, 8:55:25 AM12/6/10
to Tasker
Recently setup something for that, not thougoughly tested, so if
anyone has any useful additons, there more than welcome
Profile 2 Disables bluetooth, when no connection has occured at all
Profile 3 Disables after losing a connection, checking if it hasn't
resumed since losing it.

I have it 'Linked' to my WiFi Near/Cell Near profiles, which actually
enable bluetooth when Wifi Connection is lost.
Assuming i might be heading to my car, connecting bluetooth with the
carkit.


Profile 1: BTConnected
Context: State Bluetooth Connected
Enter Task, Variable Set %BTC = 1
Exit Task, Variable Set %BTC = 0

Profile 2: BTAutoOff
Context: Variable Set %BLUE Value on
Task Wait 10 min
Bluetooth Off If BTC != 1

Profile3: BTDisconnected
Contect: Variable Set %BTC Value 0
Task Wait 10min
Bluetooth Off If BTC != 1

Peleke

unread,
Dec 9, 2010, 5:40:05 PM12/9/10
to Tasker
Sadly it doesn't work for me.
Why do you have a "%BLUE" variable only once? Tasker always says "no
actives tasks" even if I activate Bluetooth after that...

Daoth

unread,
Dec 10, 2010, 4:49:11 AM12/10/10
to Tasker
I think an active profile will never show up, since the 'Variable Set'
context is instantanous.
See http://tasker.dinglisch.net/userguide_summary.html#eventcontext.html

So it will work, it's only not visibile as being active.
(Maybe a wait statement in a event context is not the best way to
go... it works fine however)

Frederik Niedernolte

unread,
Dec 10, 2010, 5:24:52 AM12/10/10
to tas...@googlegroups.com
Yeah, sorry it works with newly established connections but is it also possible to deactivate Bluetooth x minutes after activation if no connection was established?
I cannot find an option for "Bluetooth activated", only for "Bluetooth connected".
_______________________________________________________________________________________

Daoth

unread,
Dec 10, 2010, 6:19:01 AM12/10/10
to Tasker
The %BLUE variable is actually a dynamic system variable,
This means that it will be autmatically set to 'on' at the moment you
manually, or an automated profile turn on bluetooth.
So the timer in profile 2 starts running as soon as bluetooth is
switched on and turns it off if nothing has been connected.(based on
user variable %BTC)


On Dec 10, 11:24 am, Frederik Niedernolte <f.niederno...@gmail.com>
wrote:
> Yeah, sorry it works with newly established connections but is it also
> possible to deactivate Bluetooth x minutes after activation if no
> connection was established?
> I cannot find an option for "Bluetooth activated", only for "Bluetooth
> connected".
> _______________________________________________________________________________________
> Am 10.12.2010 um 10:49:11 schrieb Daoth <arjanvdbr...@googlemail.com>:
>
> > I think an active profile will never show up, since the 'Variable Set'
> > context is instantanous.
> > Seehttp://tasker.dinglisch.net/userguide_summary.html#eventcontext.html

tomm

unread,
Dec 10, 2010, 10:41:27 AM12/10/10
to Tasker
I noticed this too, if I turn on bt and a connection wasn't made, it
never turns off. If a connection was made and then ended, bt will
turn off.

On Dec 10, 5:24 am, Frederik Niedernolte <f.niederno...@gmail.com>
wrote:
> Yeah, sorry it works with newly established connections but is it also
> possible to deactivate Bluetooth x minutes after activation if no
> connection was established?
> I cannot find an option for "Bluetooth activated", only for "Bluetooth
> connected".
> ___________________________________________________________________________ ____________
> Am 10.12.2010 um 10:49:11 schrieb Daoth <arjanvdbr...@googlemail.com>:
>
>
>
> > I think an active profile will never show up, since the 'Variable Set'
> > context is instantanous.
> > Seehttp://tasker.dinglisch.net/userguide_summary.html#eventcontext.html

RobinH

unread,
Dec 10, 2010, 4:15:33 PM12/10/10
to Tasker
I have been struggling with a profile like this also. I set it up
slightly differently, so that when I am not connected to my home wifi
or in airplane mode, BT gets turned on. Then it gets turned off again
when I arrive back home and get connected to wifi. That part works
great. The part that I can't figure out is that I want it turn BT back
on when I get back into my car, but I can't seem to set that up
correctly. I tried doing a BT scan every 5 mins and asking it to turn
BT on if my car BT pairing was seen in the scan. Doesn't work. Not
sure why.

Anyone have any ideas about how I could set it up so BT got turned on
again? I don't use a dock or a charger in the car, so I can't use
those contexts.

Thanks.

Daoth

unread,
Dec 13, 2010, 4:02:35 AM12/13/10
to Tasker
I don't know for you, but the 2nd profile, being as follows
Profile 2: BTAutoOff
Context: Variable Set %BLUE Value on
Task Wait 10 min
Bluetooth Off If BTC != 1

Automatically switches off bluetooth after 10m when i manually
switched it on and no connection has taken place

ga

unread,
Dec 13, 2010, 6:34:40 AM12/13/10
to Tasker
I'm trying to do the same thing, but I don't get profile #2 and 3
part. How do I get a Context that is variable set?

There is only app, date, time, state and event??

Daoth

unread,
Dec 13, 2010, 9:08:43 AM12/13/10
to Tasker
Look at Event -> Variable, and you'll find it.

Jennifer Johnson

unread,
Dec 18, 2010, 9:21:39 PM12/18/10
to Tasker
I am trying to do what you have described but still cannot figure this
out. I am using the Cell Near state
to turn WiFi on (and Bluetooth off) when I am home and then WiFi off
(and Bluetooth on) when I leave my house. This is working great. I
would like to add one element to this though. I want Bluetooth to
turn on when I leave my house but turn back off if Bluetooth does not
connect to a device within 10 minutes. I have tried multiple times
with no success.

I understand how to create the new Bluetooth Connected context
profile. Do I leave everything blank in the settings and then just
create the Variable Set task? When I open Variable Set I see
"Variable and %" and then "Value". Where are you entering %BTC = 1"?

> Profile 1: BTConnected
> Context: StateBluetoothConnected
> Enter Task, Variable Set %BTC = 1
> Exit Task, Variable Set %BTC = 0


On Dec 6, 7:55 am, Daoth <arjanvdbr...@googlemail.com> wrote:
> Recently setup something for that, not thougoughly tested, so if
> anyone has any useful additons, there more than welcome
> Profile 2 Disablesbluetooth, when no connection has occured at all
> Profile 3 Disables after losing a connection, checking if it hasn't
> resumed since losing it.
>
> I have it 'Linked' to my WiFi Near/Cell Near profiles, which actually
> enablebluetoothwhen Wifi Connection is lost.
> Assuming i might be heading to my car, connectingbluetoothwith the
> carkit.
>
> Profile 1: BTConnected
> Context: StateBluetoothConnected
> Enter Task, Variable Set %BTC = 1
> Exit Task, Variable Set %BTC = 0
>
> Profile 2: BTAutoOff
> Context: Variable Set %BLUE Value on
> Task   Wait 10 min
>          BluetoothOff If BTC != 1

Daoth

unread,
Dec 20, 2010, 4:05:30 AM12/20/10
to Tasker
With "Enter Task, Variable Set %BTC = 1" i mean offcourse:
Create a task with action Variable Set, and set the variable %BTC to
value 1
Otherwise, take a look at the help pages to see how to set variables
to a specific value



On Dec 19, 3:21 am, Jennifer Johnson <arribatransaccio...@gmail.com>
wrote:
> I am trying to do what you have described but still cannot figure this
> out. I am using the Cell Near state
> to turn WiFi on (andBluetoothoff) when I am home and then WiFioff
> (andBluetoothon) when I leave my house.  This is working great.  I
> would like to add one element to this though.  I wantBluetoothto
> turn on when I leave my house but turn backoffifBluetoothdoes not
> connect to a device within 10 minutes.  I have tried multiple times
> with no success.
>
> I understand how to create the newBluetoothConnected context

Peleke

unread,
Jan 21, 2011, 12:21:15 PM1/21/11
to Tasker
I always have a WIFI activation/Bluetooth deactivation <-> WIFI
deactivation/Bluetooth activation loop problem together with the
following two profiles:

Profile: Anon (11)
State: Wifi Connected
Enter: Anon (12)
A1: Bluetooth [ Set:Off ] If [ %BTC != 1 ]

Exit: Anon (30)
A1: Bluetooth [ Set:On ] If [ %AIR != on ]
A2: Profile Status [ Name:BTAutoOff Set:On ]


Profile: WiFi Saver (16)
State: Wifi Near
State: Cell Near
Enter: Anon (17)
A1: WiFi [ Set:On ]

Exit: Anon (21)
A1: WiFi [ Set:Off ]

Do you know why and how I can fix it?
Thanks in advance!
Cheers,

Frederik

Peleke

unread,
Jan 26, 2011, 11:08:21 AM1/26/11
to Tasker
I have solved the loop problem now but Bluetooth won't be turned off
after 10 minutes if it was turned on by the exit task of "WiFi
Connected". Do I have to add the "BTAutoOff" profile to the exit task
of WiFi connected or how can I use it together?
Thanks!

soods...@gmail.com

unread,
Feb 10, 2011, 2:45:16 AM2/10/11
to tas...@googlegroups.com
I was able to successfully achieve thsis task with a single profile.

Profile: Auto Off Unpaired Bluetooth (61)
    State: Not Bluetooth Connected
    State: Variable Value
Enter: Anon (63)
    A1: Wait [ MS:0 Seconds:0 Minutes:10 Hours:0 Days:0 ]
    A2: Flash [ Text:Auto Bluetooth Off Long:Off ]
    A3: Bluetooth [ Set:Off ]

Exit: Anon (53)
    A1: Bluetooth [ Set:Off ] If [ %BLUE ~ off ]




Tasker exported the profile state "variable value" incompletely...the "variable value" should have a variable "%blue" that "matches" to "on"
the exit task is very imp in this profile, otherwise the bluetooth will keep automatically turning on and off or it will turn off when the device pairs.

T1one

unread,
Feb 16, 2011, 12:56:14 PM2/16/11
to Tasker
I am having a hard time recreating your below profile, are the steps
in order?
Thanks.

On Feb 10, 2:45 am, soodsah...@gmail.com wrote:
> I was able to successfully achieve thsis task with a single profile.
>
> *Profile: Auto Off Unpaired Bluetooth (61)
>     State: Not Bluetooth Connected
>     State: Variable Value
> Enter: Anon (63)
>     A1: Wait [ MS:0 Seconds:0 Minutes:10 Hours:0 Days:0 ]
>     A2: Flash [ Text:Auto Bluetooth Off Long:Off ]
>     A3: Bluetooth [ Set:Off ]
>
> Exit: Anon (53)
>     A1: Bluetooth [ Set:Off ] If [ %BLUE ~ off ]*

soods...@gmail.com

unread,
Feb 17, 2011, 3:27:24 AM2/17/11
to tas...@googlegroups.com
i am uploading the profile...you can import it in tasker
hope that helps
Auto_Off_Unpaired_Bluetooth.prf.xml

J.

unread,
Feb 17, 2011, 9:50:27 AM2/17/11
to Tasker
I corrected your profile below for visual reference in this post:

On Feb 10, 2:45 am, soodsah...@gmail.com wrote:
> I was able to successfully achieve thsis task with a single profile.
>
> *Profile: Auto Off Unpaired Bluetooth (61)
>     State: Not Bluetooth Connected
>     State: %BLUE ~ on
> Enter: Anon (63)
>     A1: Wait [ MS:0 Seconds:0 Minutes:10 Hours:0 Days:0 ]
>     A2: Flash [ Text:Auto Bluetooth Off Long:Off ]
>     A3: Bluetooth [ Set:Off ]
>
> Exit: Anon (53)
>     A1: Bluetooth [ Set:Off ] If [ %BLUE ~ off ]*


The above works great if you manually turn on BT and no connection is
made, OR if you get in the car and turn on BT so that it connects
immediately. Where it has trouble is if I toggle BT to "on" as I'm
gathering my things in the morning before walking out the door. I get
to the car in about 3 minutes, phone connects, and 10 minutes later
(the time interval for auto off) the BT gets killed. It's as if the
phone doesn't connect up immediately, the timer in the profile is
going and kills bluetooth with no regard that one of the states for it
being active is no longer satisfied....ie !BT connected..

Any ideas?

soods...@gmail.com

unread,
Feb 20, 2011, 9:10:19 AM2/20/11
to tas...@googlegroups.com
Yup, the previous profile was causing problems...(wait task especially)
anyways, heres a new profile..this should work perfectly

Profile: 2Auto Off Unpaired Bluetooth (47)
    State: Not Bluetooth Connected
    State: Variable Value
Enter: Anon (43)
    A1: Variable Set [ Name:%TIMCOUNTER To:%TIMES + 600 Do Maths:On Append:Off ]
    A2: Wait Until [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ] If [ %TIMES > %TIMCOUNTER ]
    A3: Bluetooth [ Set:Off ] If [ %PACTIVE ~ *Auto Off Unpaired Bluetooth* ]

Exit: Anon (46)

    A1: Bluetooth [ Set:Off ] If [ %BLUE ~ off ]
    A2: Variable Clear [ Name:%TIMCOUNTER ]


Notes:
You can modify the wait time in the enter task--> variable %timcounter...
The default is 10 min i.e. 600 sec...
2Auto_Off_Unpaired_Bluetooth.prf.xml

Frederik Niedernolte

unread,
Feb 25, 2011, 5:34:47 AM2/25/11
to tas...@googlegroups.com
I was able to import the profile and use it.
It works as it should, thanks!
_______________________________________________________________________________________
Am 24.02.2011 um 23:33:21 schrieb PolishPauL11 <paulm...@gmail.com>:
The xml's you uploaded won't import. I replicated your profile manual
but it doesn't work at all.

I want my bluetooth to turn on with incoming and outgoing calls which
I did with the incoming call and offhook events. I want it to turn off
when:
1) Headset is disconnected
2) Headset not connected and phone idle for one minute

I tried making my own profiles but the problem I'm having is if a
headset is never connected, bluetooth doesn't turn off.

On Feb 20, 9:10 am, soodsah...@gmail.com wrote:
Yup, the previous profile was causing problems...(wait task especially)
anyways, heres a new profile..this should work perfectly

Profile: 2Auto Off Unpaired Bluetooth (47)
    State: Not Bluetooth Connected
    State: Variable Value
Enter: Anon (43)
    A1: Variable Set [ Name:%TIMCOUNTER To:%TIMES + *600* Do Maths:On
Append:Off ]
    A2: Wait Until [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ] If [ %TIMES >
%TIMCOUNTER ]
    A3: Bluetooth [ Set:Off ] If [ %PACTIVE ~ *Auto Off Unpaired Bluetooth*
]

Exit: Anon (46)
    A1: Bluetooth [ Set:Off ] If [ %BLUE ~ off ]
    A2: Variable Clear [ Name:%TIMCOUNTER ]

Notes:
You can modify the wait time in the enter task--> variable %timcounter...
The default is 10 min i.e. 600 sec...

 2Auto_Off_Unpaired_Bluetooth.prf.xml
1KViewDownload

soods...@gmail.com

unread,
Feb 25, 2011, 6:17:00 AM2/25/11
to tas...@googlegroups.com
Are u using the latest version of tasker???
I downloaded the profile and imported it myself..and its importing fine

Peleke also confirmed this..
Message has been deleted
Message has been deleted

Martín Alejandro Gomez

unread,
Apr 22, 2011, 11:25:57 PM4/22/11
to Tasker
I've tried all of the profiles posted in this thread and none of them
worked.

Using latest version of Tasker, when I turn on bluetooth, the profile
activates and it stays there forever, without turning it off according
to the timeout.

Would you help me in making this work? My goal would be to

1) turn off BT if it's been turned on and a device hasn't been
connected for x time
2) turn off BT when a device disconnect

I think both points could get solved by a simple "turn of after x
minutes without connection", but I don't know how to program that.

Thanks.

On Feb 25, 7:44 am, PolishPauL11 <paulmas...@gmail.com> wrote:
> On Feb 25, 6:17 am, soodsah...@gmail.com wrote:
>
> > Are u using the latest version of tasker???
> > I downloaded the profile and imported it myself..and its importing fine
>
> > *Peleke *also confirmed this..
>
> Sorry guys. The issue was the way my phone was downloading it.
> Importing worked fine when I downloaded some profiles from the wiki.
> The profile works great though. Thank you! ! !

Martín Alejandro Gomez

unread,
Apr 25, 2011, 6:11:47 PM4/25/11
to Tasker
Nevermind Paul, I've reinstalled the latest trial from the site and
now it works. Apparently, the version I had a problem or something.

I'll now test how reliable is this in the next couple of days and if
it works OK then I'll but it.

Thank you very much for your support!

On Apr 23, 11:57 am, Paul-M <paulmas...@gmail.com> wrote:
> Import soods's profile to turn it off bluetooth after a certain amount of
> time. I made another task to turn off bluetooth when a headset is
> disconnected.
>
> Profile: BTH
>
> Context: Bluetooth connected
>
> Enter task: Profile Status (2Auto Off Unpaired Bluetooth) - Set Off
>
> Exit task: Bluetooth - Set Off - If %PACTIVE!~*BTH*
>
>                  Profile Status () - Set On
>
> Or import the two attached profiles. BT_Off is just sood’s profile renamed.
>
>  BT_Off.prf.xml
> 1KViewDownload
>
>  BTH.prf.xml
> < 1KViewDownload

Martín Alejandro Gomez

unread,
Apr 25, 2011, 5:56:31 PM4/25/11
to Tasker
Thanks for your answer Paul but sadly neither profile work.

I reinstalled Tasker, imported both of them and tried first your
edition of soods's, then both together, and in neither case did it
turn of the BT module after some time neither after connecting /
disconnecting the headset.

What could be happening that this doesn't work at all for me? I'm the
edge of buying Tasker solely to achieve this but I can't get myself to
make it work!

Thanks again

Wally

unread,
Apr 26, 2011, 3:38:14 PM4/26/11
to tas...@googlegroups.com
This is a great set of solutions.  And, the main reason I am trying to do this, of course, is for battery savings.

So my question is, how could the first be modified so that it shuts off Bluetooth, if there is no connection for 10 minutes, IF the phone is not plugged in?  If the phone is plugged in, I am happy to have Bluetooth on whether it is connected or not.  Just makes connecting one step easier.
Thanks!

soods...@gmail.com

unread,
Apr 27, 2011, 9:37:46 AM4/27/11
to tas...@googlegroups.com
Wally, you can use my profile (posted in one of the above posts) for bluetooth auto on-off
for keeping bluetooth on when it is plugged in, create a new profile with "state" as "Power" and create an enter task as "profile status"-->
choose my profile--->set it to "off"...create an exit task as "profile status"--> choose my profile--->set it to "on"

hope this solves ur problem

Chiraagt

unread,
Jul 30, 2012, 7:05:03 AM7/30/12
to tas...@googlegroups.com
drsood Thanks for sharing this.. Its absolutely great and works a treat.. 

Now all I need is the Auto Bluetooth on feature.. I found a perfect one made by someone in a different thread. I have asked him to share his profile but I guess he hasn't seen my response and probably hasn't even logged in here since ages.. The thread was made in Jan and last responses were in Feb. So I am not harboring any hope of a response.. This is the thread  https://groups.google.com/forum/?fromgroups#!topic/tasker/FXjhZsz4JDM and this is the person who made the Auto on Profile plus his post.. Check it out.. Is there anyway to contact him? I am in need of his profile as I am a newbie and haven't managed to set up such complex profiles with Variables etc.. Can someone make this profile for me? or atleast point me in the right directions of how to make a profile as complex as this with the variables etc..? 

Dave Disser 

I dealt with this problem by turning on Bluetooth whenever I 
disconnect from my home or work Wi-Fi networks (since I'm using 
leaving one or the other in my car).  I also turn on BT automatically 
whenever a call comes in.  In any case, I also use a timeout so that 
BT will be turned off automatically in two minutes if I don't connect 
to anything.  The actual implementation is a little complicated 
because I use some variables to interact with other profiles: 

1. I have two variables, %NEARHOME and %NEARWORK, which I set based on 
Cell Near (for lowest power usage). 
2. On Variable Set event for either of those, I turn on Wi-Fi 
3. When connected to my home or work access points, I set %ATHOME or 
%ATWORK (cleared when not connected). 
4. On Variable Cleared for %ATHOME or %ATWORK (ie. I disconnected from 
the Wi-Fi), I turn on Bluetooth, because odds are that I'm leaving 
home or work in my car. 
5. My "turn on bluetooth" action sets %BTTIMEOUT = %TIMES + 120. 
6. I have another "watchdog" action that checks if BT is not connected 
and %BTTIMEOUT is set and %TIMES > %BTTIMEOUT, then turn off bluetooth 
and clear %BTTIMEOUT. If BT is connected, then reset %BTTIMEOUT to 
%TIMES + 120. 

--Dave
Message has been deleted

drsood

unread,
Jul 30, 2012, 8:35:40 AM7/30/12
to tas...@googlegroups.com
Hi Chiraagt
what features are you looking for in the "Auto Bluetooth on" profile??
is it just - whenever I 
disconnect from my home or work Wi-Fi networks (since I'm using 
leaving one or the other in my car).  I also turn on BT automatically 
whenever a call comes in ?

By the way, a better version of this profile is hosted at http://tasker.wikidot.com/bluetooth-auto-turn-off
you may wana try that


On Monday, July 30, 2012 4:35:03 PM UTC+5:30, Chiraagt wrote:drsood

Chiraagt

unread,
Jul 30, 2012, 8:47:35 AM7/30/12
to tas...@googlegroups.com
Hey thanks for the prompt response.. 

On my Tasker I have already have made: 

1. WIFI connect Profile in which basically I have all the cell towers near which I have Wifi connections.. Home, Office, Friends houses etc.. Exit task switch off 
2. I have your auto Blutooth off profile.
3. I have made a Car mode on profile which activated driving mode on my S3 plus a bunch of other stuff.. end task exits all the changes plus puts car mode off and basically reverts to as you were and puts bluetooth off too (I wanted to ask you if I should remove the bluetooth off considering you have already set up the auto bluetooth off on disconnecting from the paired bluetooth device?)

What I want is basically the bluetooth to come on automatically same as what Dave Disser made minus the "I also turn on BT automatically whenever a call comes in."  

i.e
Turn on Bluetooth whenever I disconnect from my home/work/friends Wi-Fi networks (since I'm usually leaving one or the other in my car). In any case, I also use a timeout so that BT will be turned off automatically in 10 minutes if I don't connect to anything. 

Also I saw that Auto BT off profile earlier suggested what is the basic difference between the one you provided and the one on the link? 

drsood

unread,
Jul 30, 2012, 10:02:27 AM7/30/12
to tas...@googlegroups.com
You are welcome..
1) In your "WIFI connect Profile" , add "bluetooth on" action inside the Exit Task. That way, whenever the profile exits, wifi will turn off and bluetooth will turn on ;)
2) The one in the link uses wait command which is technically more memory efficient and..of course cosmetically cleaner

Chiraagt

unread,
Jul 30, 2012, 10:16:30 AM7/30/12
to tas...@googlegroups.com
1. If I do that my bluetooth will only turn on once I leave the cell near area which isn't ideal as I get those major cell network towers on my entire street in effect meaning I have to drive a long distance before my wifi connect turns off and bluetooth comes on which is why I want the Auto Bluetooth to turn on (also there are certain areas in my house where I don't get wifi and I move there sometimes so I dont want to keep it to turn bluetooth on cause i am expecting wifi to connect again).. And when that turns on it normally means I am on my way to work which means my wifi can go off.. 

2. So functionality wise its the EXACT same? just more memory efficient.. Thus I should change it to the one in the link you suggested? just out of curiosity.. Why did you make another one?

drsood

unread,
Jul 30, 2012, 11:01:18 AM7/30/12
to tas...@googlegroups.com
1. So in that case, what do you want the trigger to be for turning on the bluetooth. Definitely its not "cell near"

2. When I made this profile, I was unaware as to how the "wait" setting works. Once I understood it completely, I used in in my profile :)
You can continue using the profile posted here. Functionally they are same

Chiraagt

unread,
Jul 30, 2012, 12:06:12 PM7/30/12
to tas...@googlegroups.com
I think I explained it wrong last time around.. My sincere apologies.. I want exactly what Dave Disser has made without the Automatically connect to BT if an incoming call is made.. Because I do not want that option..

I want 

BT to activate if not connected to home/work/friends wifi but wifi is on! 
If bluetooth connected to car/device within 5 mins turn wifi off.. 
If no bluetooth device is connected in 5 mins turn bluetooth back off 
If wifi reconnects within those 5 mins turn bluetooth off..

Repeat 

BT to activate if not connected to home/work/friends wifi but wifi is on! 
If bluetooth connected to car/device within 5 mins turn wifi off.. 
If no bluetooth device is connected in 5 mins turn bluetooth back off 
If wifi reconnects within those 5 mins turn bluetooth off..

I hope I explained it clearly.. I feel like I have made a mistake in putting that down.. Hahaha.. I have read it corrected it and re read it like 5-6 times now.. 

drsood

unread,
Jul 30, 2012, 1:18:52 PM7/30/12
to tas...@googlegroups.com
Chiraagt I am uploading a new Project here which has profiles designed for your needs. You dont need the Bluetooth Auto Off profile mentioned in the above posts.
Download the project file and import it into tasker. Their are a few things you have to note:

1. Long click on each of the 4 profiles, then select Properties and make sure that "Limit Repeats" and "Restore Settings" options are UNCHECKED

2. You may want to add the details of Home/work/friends in "Wifi Connected" and "Not Wifi Connected" states of profiles "WifiCon" and "WifiNotCon" profiles respectively

3. I HAVE NOT BEEN ABLE TO TEST THE PROFILES. You'll have to do that.

Hope these profiles work as per your needs. These profiles are highly specific for the conditions you mentioned in the above post. You change/delete/add any other condition/state, and these profiles may malfunction ;)
New.prj.xml

Chiraagt

unread,
Jul 30, 2012, 1:36:25 PM7/30/12
to tas...@googlegroups.com
drsood Thanks alot for this.. Seriously appreciate it but I am having one major problem I cannot import the file.. I tried quite a few times to import it but it just doesn't appear.. I opened the file with tasker from my solid explorer it says that its ready for import in the Tasker UI and then when I go there click on import and its no where to be found... I even tried to go to the downloads folder where it is clearly saved but its doesn't appear.. I have no idea why this is happening.. I have imported files before but this error has never occurred..

drsood

unread,
Jul 30, 2012, 1:53:11 PM7/30/12
to tas...@googlegroups.com
I think I know why you are not able to see the profiles. When you open tasker, you'll see the profiles, tasks,scenes and variables tab's on the top.
Just below the Tasks, Scenes tab, there is a translucent white arrow. Click and drag it downwards. A new tab row will show up which contains the projects. Select the "new" tab project

Chiraagt

unread,
Jul 30, 2012, 2:04:00 PM7/30/12
to tas...@googlegroups.com
Nope I can't drag it down.. I can only drag that same arrow upwards but only in the Variables section.. I can't drag it down in any of the the 4 sections.. 

Chiraagt

unread,
Jul 31, 2012, 4:38:22 AM7/31/12
to tas...@googlegroups.com
You there?

drsood

unread,
Jul 31, 2012, 7:07:17 AM7/31/12
to tas...@googlegroups.com
sorry I was busy

I am attaching screenshots instructions for the "new" project and the profiles...

If still not successful, download the zip file and import the profiles individually
1.png
2.png
3.png
Files.zip

Chiraagt

unread,
Jul 31, 2012, 7:34:54 AM7/31/12
to tas...@googlegroups.com
I am so glad I have someone so helpful to guide me through this.. I really can't Thank you enough...

Yes I tried doing what you asked but there was an error.. So I just manually imported the 4 profiles.. and I ensured that "Limit Repeats" and "Restore Settings" options are UNCHECKED.. 

Then I have to now  2. You may want to add the details of Home/work/friends in "Wifi Connected" and "Not Wifi Connected" states of profiles "WifiCon" and "WifiNotCon" profiles respectively - But I am stuck here.. what details am I supposed to add to these profiles? since there are multiple wifi ssid connections that I connect to i.e home, work, friends isn't it better if I leave these sections unfilled? Is there a way to enter multiple ssid's? or would I have to clone these profiles for each connection? I wouldn't mid leaving it to simply connected to wifi and not connected to wifi too.. what do you think? or am I thinking wrong?

Also one more question do these profiles have any effect on the wifi connect profile (near cell tower wifi on else off) that I have? I also forgot to mention that I also had another profile which puts my mobile data off when connected to a wifi connection and then puts my data back on when no wifi connection is there (to conserve battery).. These are 2 separate profiles..

Please advise further.. Also I no longer require the Auto Bluetooth off I gather.. So I have put that off as you suggested earlier.. I am testing this while I wait for your response.. Thanks in advance..    

drsood

unread,
Jul 31, 2012, 12:19:48 PM7/31/12
to tas...@googlegroups.com
Thanks

Yes, you can leave the wifi ssid sections unfilled. Although entering multiple ssid may be possible. Just add / after each one eg Home/Work. I think it should work as per the Pattern Matching mentioned in tasker's userguide

Regarding the conflict with other profiles, you will have to test them and accordingly modify them as per your need

Chiraagt

unread,
Jul 31, 2012, 2:42:29 PM7/31/12
to tas...@googlegroups.com
Ok so I tested it out a bunch of times and it works marvelously.. Thanks a bunch for this.. I seriously owe you for helping me out on this..

Also Sorry but one last question.. What are the time parameters? Can I change them? I only asked because I changed some around and that made the whole thing go haywire so I had to reset it to default.. So could you please tell me what are the parameters I can change and are there any complex rules within which I can change it? or is it fairly straightforward and simple? 

drsood

unread,
Aug 1, 2012, 7:32:51 AM8/1/12
to tas...@googlegroups.com
I am glad I could help

Time parameters are the "Wait" settings in profiles BlueCon and BlueNotCon. You can change them as per your needs
There is also a "Wait" setting in WifiNotCon profile. This one serves a special purpose. There is always a time lag when you Switch On the wifi on your cellphone and it Connects to a wifi such as home/work/friend. It usually ranges from 2-5 sec at my home. Currently it has been set to 2s. Feel free to modify it as per your needs
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages