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

Tasker Bluetooth Off Issue

marshalex

Member
Hi

I have a tasker profile which has the following settings
State Bluetooth = On and State Bluetooth = Not Connected
Entry task = wait 2 minutes, turn bluetooth off
Exit task = stop turn bluetooth off task

The problem seems to be that when the bluetooth is on and it connects to a device the exit task does not run (as the bluetooth not connected state now is false) and as a result despite being connected the entry task finishes and turns the bluetooth off.

The only way I can think around this is to have a separate profile which runs the stop bluetooth off task when state = bluetooth connected

I've attached a screenshot of the profile. Any help would be great

Screenshot_2015-08-24-11-47-33.png
 
I'm not sure I fully understand your problem, but I think as soon as you connect you're firing the exit task which disconnects the device.

First thought is to get rid of the exit task and that action to the entry task. So the whole thing becomes:
State Bluetooth = On and State Bluetooth = Not Connected
Entry task
wait 2 minutes
turn bluetooth off IF b/t not connected

I haven't checked if there is a variable to indicate when b/t is connected. If not you can create a separate profile
profile TestBT
State Bluetooth =Connected
Entry task STOP
Then just test whether that profile is active. ie
State Bluetooth = On and State Bluetooth = Not Connected
Entry task
wait 2 minutes
turn bluetooth off IF PACTIVE ~ %TestBT%
 
Last edited:
Hi

The exit task should stop the entry task (the entry task is wait 2 minutes then turn off bluetooth) so if something connects to the device then one of the state conditions are no longer met and (in theory) the exit task should run and stop the entry task.

I think I've managed to work around this with a separate Bluetooth Connected profile which stops the Bluetooth Off task.

Tasker is a great app, just seems to be many ways to achieve the same thing!
 
Back
Top Bottom