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

Help Simple Tasker profile not running properly.

jsnh7076

Lurker
Mar 6, 2011
9
1
I've been having problems with the bluetooth on my HTC One A9 (running nougat) randomly turning itself off for some inexplicable reason. I figured if I set up a simple profile to check if bluetooth is off and to have it run a task to switch it on, that would fix the issue. However, it doesn't appear to actually work...

If I activate the profile while bluetooth is off, it never switches on by itself, but it'll show the profile is active in the tasker notification. If i start it with bluetooth already on, and manually switch it off sometimes it'll turn back on like it's supposed to, but the vast majority of the time it won't. I'd appreciate any help y'all could give on fixing this up.

Thanks in advance!
 
Last edited:
Welcome to Android Forums.

Are you sure you switched it on or off.

When you make a change a check mark appears at the top of the Tasker display. You need to click that. A flash will report that the change was Applied.

This needs to be done even when throwing the switch in the Profiles list.

(The old way of doing this still works, make the change, choose Exit, choose Save First.)

... Thom
 
Upvote 0
Are you sure you switched it on or off.

When you make a change a check mark appears at the top of the Tasker display. You need to click that. A flash will report that the change was Applied.

This needs to be done even when throwing the switch in the Profiles list.

(The old way of doing this still works, make the change, choose Exit, choose Save First.)

... Thom

Yup, I picked up on that one pretty quickly. soon as the profile gets switched on or if i try to make a change to get it to work I hit that check mark and still get nothing :(
 
Upvote 0
Posting your Tasker Task/Profile would help.

I don;t use BT. Perhaps a BT user will join in.

... Thom


here's the description export I got from it:

Profile: BT On (7)
Priority: 50 Restore: No
State: BT Status [Status:Off]
Enter: Bluetooth On (6)
Stay Awake
A1: Bluetooth [Set: On Continue Task After Error: On]
If [%BLUE eq off]

Does this help or is more information needed?
 
Last edited:
Upvote 0
Welcome to the forums!

The "restore settings" option is the key for this task that you require, but I see you have that disabled, so all should be good.

I would advise you to try a "wait" action, for say 30 seconds as the first action of your entry task. This should sort it out for you.

You don't need that "if" condition.

In any case, I would advise that you need to see what turns your BT off (power saving of phone or some app?) rather than do this through tasker?

Edit: Yes, description was very useful and always is! Thanks for that. : )
 
  • Like
Reactions: jsnh7076 and Thom
Upvote 0
Welcome to the forums!

The "restore settings" option is the key for this task that you require, but I see you have that disabled, so all should be good.

I would advise you to try a "wait" action, for say 30 seconds as the first action of your entry task. This should sort it out for you.

You don't need that "if" condition.

In any case, I would advise that you need to see what turns your BT off (power saving of phone or some app?) rather than do this through tasker?

Edit: Yes, description was very useful and always is! Thanks for that. : )

I think i figured out how to do it.. can you tell me if this setup looks right to you?

Profile: Bluetooth Always On (9)
Priority: 50 Restore: no
State: BT Status [ Status:Off ]
Enter: Wait And Bt On (10)
A1: Wait [ MS:0 Seconds:15 Minutes:0 Hours:0 Days:0 ]
A2: Bluetooth [ Set:On ]

As for your advice on figuring out whats turning it off, sadly theres nothing I can do there. As it turns out theres a bug with certain models and versions of android where the bluetooth just switches itself off randomly. Google's working on a fix now from what I've read but I'm tired of waiting for it and dealing with this in the meantime, so I figured I'd fix it at least temporarily on my own for now. This started several weeks ago on my HTC one A9. last week I broke the screen and replaced the device figuring this issue was isolated to that phone.. Turns out its not. New one was doing it after a few updates (including the one to nougat) got flashed when I activated it.
 
Upvote 0
I'm confused, you mean it worked or it didn't work? :p

If you want to know whether the task is triggering or not, you can add a counter variable (e.g. %Counter) and always add 1 to it.

Once you have that, go to variables and you should see it there being empty. Just initialise it to 0. At the end of your work day, go back to variables and see its content to see if and how many times it has triggered.
 
Upvote 0
It might be working now, but there have been a couple times I've popped in back where I keep my phone at work and it wasn't on. Just twice so far.

The whole reason I like leaving the bluetooth on is because at work we're technically not supposed to have our phones on us.. So I'll use my garmin vivosmart to check notifications from outside the backroom to avoid getting in trouble. Kind of hard to do this when theres a bug constantly turning bluetooth off.

Good idea on the counter though! I'll add that in to see. Thank you!
 
Last edited:
Upvote 0
Maybe increase from 15 secs to 20, just in case. Trying the same profile on my phone, it made it impossible to turn off Bluetooth entirely, as few seconds later it was back on. So of we keep on it, we'll certainly fix it.

Are you sure that Tasker service is not being killed by Android by the way?

Once you get this working as desired, you could also start playing with the BT near trigger, so only turn on your BT when your watch is near and connect to it. : - )
 
Upvote 0

BEST TECH IN 2023

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

Smartphones