Tasker Bluetooth connected Profile not triggering - G4 Q&A, Help & Troubleshooting

I have a Tasker Profile which should be activated based on a Bluetooth state - i.e. when connected to my car Bluetooth system. When creating the Profile I used a search to locate the correct Bluetooth device from the list. The problem is that this profile is not being activated when the phone is connected to the car Bluetooth system - the Tasker notification just says that there is no active profile.
I've tried adding both the Bluetooth device name and address using the Search function, and I've also left both the name and address blank to see if the Profile can be triggered by connecting to any Bluetooth device, but the Profile never gets triggered. Has anyone else had any success triggering a Bluetooth Connected Profile on their G4?
I'm running Tasker 4.7m on a rooted LG G4 TWN model (Android 5.1).
The Tasker Profile definition is below:
Profile: In Honda (17)
State: BT Connected [ Name:JVC Unit Address:00:10:601:AC:20/00:10:601:AC:20 ]
Enter: Gmail Notifications Off (14)
A1: Secure Settings [ Configuration:Gmail Notifications Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
Exit: Gmail Notifications On (15)
A1: Secure Settings [ Configuration:Gmail Notifications Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

I use Tasker to open Waze when connected to the Bluetooth in my car and it works no problem. The exit task to close/kill Waze doesn't seem to work for some reason.

rick09 said:
I use Tasker to open Waze when connected to the Bluetooth in my car and it works no problem. The exit task to close/kill Waze doesn't seem to work for some reason.
Click to expand...
Click to collapse
Any chance that you could paste an export of your Profile definition here so that I can compare it with mine?

Profile: Waze (2)
State: BT Connected [ Name:CAR KIT Address:00:13:04:Blah:Blah ]
Enter: Waze (3)
A1: Launch App [ App:Waze Data: Exclude From Recent Appsff Always Start New Copyff ]
Exit: Close Waze (5)
A1: [X] Kill App [ App:Waze Use Rootff ]
A2: [X] Say [ Text:KILLING WAZE Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ]
Is that what you're looking for?

rick09 said:
I use Tasker to open Waze when connected to the Bluetooth in my car and it works no problem. The exit task to close/kill Waze doesn't seem to work for some reason.
Click to expand...
Click to collapse
rick09 said:
Profile: Waze (2)
State: BT Connected [ Name:CAR KIT Address:00:13:04:Blah:Blah ]
Enter: Waze (3)
A1: Launch App [ App:Waze Data: Exclude From Recent Appsff Always Start New Copyff ]
Exit: Close Waze (5)
A1: [X] Kill App [ App:Waze Use Rootff ]
A2: [X] Say [ Text:KILLING WAZE Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ]
Is that what you're looking for?
Click to expand...
Click to collapse
Yes - thanks. It looks like you're doing it exactly the same way that I am, except for some reason mine isn't responding to the bluetooth connected event. Must be something on my phone that's interfering with it
???

itm said:
I have a Tasker Profile which should be activated based on a Bluetooth state - i.e. when connected to my car Bluetooth system.
Click to expand...
Click to collapse
Bluetooth Near works for me on my profile. I've not tried Bluetooth Connected.
Be aware that there is a lag exiting the profile though, based on the display off monitor interval. For my purposes however, the lag isn't important.

soyelmango said:
Bluetooth Near works for me on my profile. I've not tried Bluetooth Connected.
Be aware that there is a lag exiting the profile though, based on the display off monitor interval. For my purposes however, the lag isn't important.
Click to expand...
Click to collapse
Bluetooth Near doesn't trigger anything for me either, and I've tried this with a Bluetooth headset as well as the car Bluetooth. The Tasker logs don't register thing for any Bluetooth-related events it seems :0(

itm said:
Bluetooth Near doesn't trigger anything for me either, and I've tried this with a Bluetooth headset as well as the car Bluetooth. The Tasker logs don't register thing for any Bluetooth-related events it seems :0(
Click to expand...
Click to collapse
A few things to try, in no particular order...
Bluetooth hardware address is optional, try it without.
Select the Bluetooth name using the magnifying glass, to avoid typing errors.
Is the JVC unit always discoverable? (ie: broadcasting its name for tasker to see).
Are you giving the profile enough time to fire, according to either the screen on or screen off monitor values?
According to Bluetooth Connected help page, tasker only detects the act of connection or disconnection, but not the state of being connected.
Let us know how you get on... Good luck!

soyelmango said:
A few things to try, in no particular order...
Bluetooth hardware address is optional, try it without.
Select the Bluetooth name using the magnifying glass, to avoid typing errors.
Is the JVC unit always discoverable? (ie: broadcasting its name for tasker to see).
Are you giving the profile enough time to fire, according to either the screen on or screen off monitor values?
According to Bluetooth Connected help page, tasker only detects the act of connection or disconnection, but not the state of being connected.
Click to expand...
Click to collapse
Thanks for the suggestions. I did use the Search function to populate both the device name and address. I also tried specifying name only, and even leaving both blank (to test for any bluetooth device being connected, but none of these options worked.
The JVC Unit does seem to be discoverable - i.e. it always shows up when I scan for bluetooth devices. This problem isn't limited to the one unit however - I also can't get the profile to activate with the Parrot unit in my wife's car, or with a Sony MW600 headphone adapter.
Re. giving the profile enough time to fire - could you please elaborate on where I need to specify the appropriate values for this? (or do you mean am I waiting long enough? - in which case the answer is yes, I've waited 30 minutes after watching the unit connect to the JVC unit in the car!)

I just tried a different test. I created a simple profile with a single context of "BT Status on". I then turned off Bluetooth on the phone, turned it back on, and waited a few minutes. My new profile never activated. It seems that Tasker is completely blind to changes of Bluetooth state on my phone
???

itm said:
Re. giving the profile enough time to fire - could you please elaborate on where I need to specify the appropriate values for this? (or do you mean am I waiting long enough? - in which case the answer is yes, I've waited 30 minutes after watching the unit connect to the JVC unit in the car!)
Click to expand...
Click to collapse
You're definitely waiting long enough! See tasker preferences > monitor > display on monitoring, and display off monitoring. Tasker's help file explains how the values work.
itm said:
I just tried a different test. I created a simple profile with a single context of "BT Status on". I then turned off Bluetooth on the phone, turned it back on, and waited a few minutes. My new profile never activated. It seems that Tasker is completely blind to changes of Bluetooth state on my phone
???
Click to expand...
Click to collapse
Other things to try:
Watch out for battery savers, task killers, memory cleaners, background service freezers, phone boosters unwittingly killing Tasker.
Way back, when I used Titanium Backup to restore my apps, it did Secure Settings first then Tasker… didn't work! Long shot: Reinstall Tasker, then Secure Settings.
What a mystery!

itm said:
I have a Tasker Profile which should be activated based on a Bluetooth state - i.e. when connected to my car Bluetooth system. When creating the Profile I used a search to locate the correct Bluetooth device from the list. The problem is that this profile is not being activated when the phone is connected to the car Bluetooth system - the Tasker notification just says that there is no active profile.
Click to expand...
Click to collapse
you mentioned the tasker notification, but do you have "Run in Foreground" checked within the preferences? if you do not, then most likely the bluetooth trigger will not work.

I did have both Clean Master and Greenify installed, but have now uninstalled both of them and I still get the same problem. At this point I'm monitoring only for "BT Status On", but Tasker is not triggering my profile when I turn on Bluetooth (and wait for a few minutes).
I do also have the "Run in foreground" option set.

itm said:
I did have both Clean Master and Greenify installed, but have now uninstalled both of them and I still get the same problem. At this point I'm monitoring only for "BT Status On", but Tasker is not triggering my profile when I turn on Bluetooth (and wait for a few minutes).
I do also have the "Run in foreground" option set.
Click to expand...
Click to collapse
Did you ever figure out what the problem is? I'm seeing the same behavior. I can't get my Profile to activate when I connect my bluetooth headset.
I tried forgetting my bluetooth and re-adding it, no luck.
I'm currently on Marshmallow 6.0.1 on a Nexus 6 and Tasker v4.8

It turns out that the version Tasker that I purchased from the Amazon app store was not legitimate. I got a refund from Amazon, repurchased it from the Play Store, and now I don't have the problem

itm said:
It turns out that the version Tasker that I purchased from the Amazon app store was not legitimate. I got a refund from Amazon, repurchased it from the Play Store, and now I don't have the problem
Click to expand...
Click to collapse
Thank you very much. I downloaded a "mod" version and it didn't work until I downloaded from Play Store

Related

Bluetooth - how it handles calls / media

Hi all
I have the following setup:
Desire
Aux Input (for music)
SuperTooth One BlueTooth Hands Free
When I drive, I use the HTC Desire to play the sat nav instructions and music out of the Aux to the stereo however, if I enable Bluetooth, all music and commands are sent through the Bluetooth receiver instead.
On the iPhone, you have the option to route audio through headphones socket or through the BT device - but cannot find out how to do it on the Desire.
Are there any applications that make it possible to route calls out via BT and everything else out over the Aux?
I would really like this functionality too.
One option for you, is to long press the Supertooth in your Desire's bluetooth device list, and edit the options so that it's not a media bluetooth device but only a phone bluetooth device.
Thanks - didnt know about that option!
Does this option actually work for anyone?
I'm connecting to the bluetooth in my Mazda and every time I uncheck Media, it just re-checks it every time I reconnect.
matthewf01 said:
Does this option actually work for anyone?
I'm connecting to the bluetooth in my Mazda and every time I uncheck Media, it just re-checks it every time I reconnect.
Click to expand...
Click to collapse
+1
I'm having the same problem with my bluetooth. Every morning when i connect my bluetooth, i would have to go into the settings to uncheck the "media" part.
Really...is there a fix for this cos i've been doing it everyday for 3 weeks
Scann69 said:
+1
I'm having the same problem with my bluetooth. Every morning when i connect my bluetooth, i would have to go into the settings to uncheck the "media" part.
Really...is there a fix for this cos i've been doing it everyday for 3 weeks
Click to expand...
Click to collapse
Im new to Android so Im not sure which 'version' people reference when sharing firmware versions but my 'software number' is 1.21.405.2 and 'build number' 1.21.405.2CL174215release-keys if that helps anyone out who perhaps ISNT having this problem...

[Q] Bluetooth Discoverablility

Is there a way to keep bluetooth discovery mode on all the time?
I am aware that this will effect the battery, and that pairing with a device should allow it to connect automatically. In my case, what I need to connect to does not.
I've been searching online but can not find a good answer, other than this is possible in newer android versions. So I don't have my hopes up.
xxrzdxx said:
Is there a way to keep bluetooth discovery mode on all the time?
I am aware that this will effect the battery, and that pairing with a device should allow it to connect automatically. In my case, what I need to connect to does not.
I've been searching online but can not find a good answer, other than this is possible in newer android versions. So I don't have my hopes up.
Click to expand...
Click to collapse
Pretty simple actually... Settings -> Wireless & Network Settings -> Bluetooth Settings -> Check off Discoverable and then change the Discoverable timeout to Never.
I'm not seeing this option listed

[Q] A2DP bluetooth autoconnect immediately disconnects?

Hi, I've got a small issue with my bluetooth a2dp device. The device is this one:
BlackBerry Remote Stereo Bluetooth Gateway. It is made by RIM, but works with any device supporting a2dp. My issue with the Galaxy Nexus is that it no longer auto connects.
My setup is in my vehicle, I keep the bluetooth receiver connected to the aux power jack and aux audio in in the center console. This way, when I start the car, the receiver powers up and tries to auto-connect to the last device. On my vibrant with Android 2.1/2.2 this worked fine. When I dabbled with CyanogenMod and some other custom roms, it stopped working but I chalked it up to some problem with the custom rom.
Now, I'm seeing the same sort of problem: if I keep the screen of my nexus on, I can see the bluetooth icon change blue, and then immediately change back to gray. To me, this indicates that the receiver succeeds in connecting but is then disconnected for some reason. The device only supports a2dp, not the handsfree profile. When I looked into the Android kernel code, I found a place where the kernel will try to connect the handsfree profile if the a2dp profile is auto-connected, but it wasn't clear if that was the actual problem or not.
Anyone else have any similar experiences?
I have the same device in my 2008 Accord coupe which is placed in the center arm console. I had an Evo 3D that would automatically connect when I would start the car and BT was already enabled on my phone. I too switched to a different ROM and would have issues auto connecting so I switched back to a different ROM. Now on my stock GN, I have to manually go into settings and click the device to connect. I see no settings about auto connecting when in range. I will have to see if the BT icon turns blue and then back to gray... haven't looked for that. If anyone has thoughts on this, I'm all ears!!
bigdawgr6 said:
I have the same device in my 2008 Accord coupe which is placed in the center arm console. I had an Evo 3D that would automatically connect when I would start the car and BT was already enabled on my phone. I too switched to a different ROM and would have issues auto connecting so I switched back to a different ROM. Now on my stock GN, I have to manually go into settings and click the device to connect. I see no settings about auto connecting when in range. I will have to see if the BT icon turns blue and then back to gray... haven't looked for that. If anyone has thoughts on this, I'm all ears!!
Click to expand...
Click to collapse
I suspect it has something to do with Android's attempts to auto connect to the headset profile when a A2DP profile is connected.
See:
# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
#AutoConnect=true
Click to expand...
Click to collapse
from https://github.com/android/platform_system_bluetooth/blob/master/data/audio.conf
I have seen the code where this happens and it seemed that if the headset profile failed to connect, the A2DP connection was also disconnected. Though, I can't recall what file it was.
jjohns63 said:
I suspect it has something to do with Android's attempts to auto connect to the headset profile when a A2DP profile is connected.
See:
from https://github.com/android/platform_system_bluetooth/blob/master/data/audio.conf
I have seen the code where this happens and it seemed that if the headset profile failed to connect, the A2DP connection was also disconnected. Though, I can't recall what file it was.
Click to expand...
Click to collapse
Strangely enough, the phone paired with the device twice without issue yesterday and failed once later on that same day. I'm toggling BT off and then on to get connection for now.
It seems like the phone and device are connecting without issue but I know I haven't done anything to change it. I'm on AOKP M3 and Leankernel V1.8 if that helps. When I first flashed those two, I still had connections issues, so switching to them wasn't a resolution.
I am not sure this really helps your issue but it is related. I wrote an app that will auto-connect Bluetooth devices. It is free on the market and is called A2DP Volume. The current implementation of auto-connect looks for one device connection and then connects another. I started another widget that will simply connect a Bluetooth device but I have not finished that one. A2DP Volume is free, open source, and ad free. You can find the open source project on Google Code. Just search for A2DP Volume.
I have been trying this for weeks and this app solved it!!! Thanks for making the app!
jroal said:
I am not sure this really helps your issue but it is related. I wrote an app that will auto-connect Bluetooth devices. It is free on the market and is called A2DP Volume. The current implementation of auto-connect looks for one device connection and then connects another. I started another widget that will simply connect a Bluetooth device but I have not finished that one. A2DP Volume is free, open source, and ad free. You can find the open source project on Google Code. Just search for A2DP Volume.
Click to expand...
Click to collapse
jjohns63 and bigdawgr6,
Any update on this problem? I don't have the Nexus, but I have Droid Incredible 2. I also run into the same problem when I use CyanogenMod 7.2, which is a AOSP based ROM. The connection is fine with the stock ROM. I have tried to change things in the audio.config but it does not seem to help. I think I ran into a post somewhere saying HTC stock ROM uses a propietary bluetooth stack and AOSP and CyanogenMod uses BlueZ open source stack, and that is where the problem is.
Anyway, it would be nice if you guys can share some info.
Thanks!

see stored bluetooth connections?

I noticed on 4.0.4, the bluetooth connections aren't listed, rather they only show up when they are in range. Is there a way to see stored bluetooth connections (already paired but not conncted)? Even if there is like a text file somewhere I can open or an app even.
I just put ICS on my Glide last night, and when I open the main settings, and open up the Bluetooth options (to the left of the on/off switch), I still see my bluetooth pairings listed out.
Is there some place else to look?
TheDave78 said:
I just put ICS on my Glide last night, and when I open the main settings, and open up the Bluetooth options (to the left of the on/off switch), I still see my bluetooth pairings listed out.
Is there some place else to look?
Click to expand...
Click to collapse
I only see mine when they are in range.
if bluetooth is off it will not show them, you have to have bluetooth on, regardless if the devices are within range or not.
inthepit said:
if bluetooth is off it will not show them, you have to have bluetooth on, regardless if the devices are within range or not.
Click to expand...
Click to collapse
That's problem. Bluetooth is on but I don't see them, only when they are in range. I'm running LiteRom. I guess it's not really a big deal though.

[Q] Bluetooth Auto-Connect?

Quick question whether there is an app, mod, or even build.prop edit that would allow my Note II to automatically try to connect to my car's single din Kenwood KDC‑BT952HD. Only thing the head unit tries to do when connected is re-download contacts, but it turns on as soon as my car turns on and it'd be a lot faster if my Note automatically attempted to connect to the head unit instead of the bluetooth popup with listed devices, which I don't even have considering I'm running Whompasaurus V2.9. so if there's any way I could even get the pop up that'd be great too!
I use Tasker to turn on Bluetooth and connect to my earpiece. But I need a trigger and I need to turn on my earpiece. The trigger I use is activating my map app.
So without a trigger, I don't know how to do that.
I'm new to tasker and I'm not sure how to enable the auto-connect through tasker.
I am new to Tasker too.
Task / Net / Bluetooth
will turn on/off/ toggle Bluetooth
Task / plugin / Secure Settings (separate app) / BT Connect
Will connect to your chosen Bluetooth device.
My best advice is to play around. Also, here is the first of a 3 video series on Tasker.
http://www.youtube.com/watch?v=BEhnOJl5mTo&feature=youtube_gdata_player
maybe I'm missing something here, so may suggestion by be complete off.
Maybe leaving BT tunred on your GN2 before you get in your car. Or turned it on before you get in the car. I'm assuming the ROM you're using has a BT toggle. The thinking is that your headunit will try to automatically connect to any paired BT devices. If so, the GN2 should automatically connect when the deck does it's search.
This works for me when I try connecting to Jawborn Big Jambox or Jawbone Era or other BT devices I have paired on my GN2. It may be worth nothing I'm on a deoxidized stock rom. But I this also worked when I ran AOSP roms on my Evo 4G such as CM.
If the headunit does not do a pair device search and connect when it turns on, then I would definitely try suggest above. I have no clue, and that's better than nothing.
no autoconnect on GN2
Once you had a BT connection with your car and leave it at the gas station e.g. it won't reconnect when you're back!
Sad, but since then I tried the mighty Tasker and similar apps, but was happy with the app called "Bluetooth Auto Connect".
You can define the simple trigger, when display on....
So whenever I get back into the car, I hit either the menu or start button, that's it. Without unlocking you are back connected.
The only other annoying thing that you might be able to fix with Tasker is, that right after the A2DP establishes the connection the player starts playing the last song, which I obviously don't want most of the time.
Also Play Pause Next etc over BT doesn't work too well on android.
I have a Alpine head unit and as long as my bt is on before I start the car everything syncs automatically.
Sent from my SPH-L900 using Tapatalk 2
Lord Sekhmet said:
I am new to Tasker too.
Task / Net / Bluetooth
will turn on/off/ toggle Bluetooth
Task / plugin / Secure Settings (separate app) / BT Connect
Will connect to your chosen Bluetooth device.
My best advice is to play around. Also, here is the first of a 3 video series on Tasker.
http://www.youtube.com/watch?v=BEhnOJl5mTo&feature=youtube_gdata_player
Click to expand...
Click to collapse
That's interesting, I always wonder what exactly secure settings does, but this example helps.
Sent from my SPH-L900 using xda premium
1FstYOTA said:
I have a Alpine head unit and as long as my bt is on before I start the car everything syncs automatically.
Sent from my SPH-L900 using Tapatalk 2
Click to expand...
Click to collapse
I have a Kenwood Dnx6980, and my experience has been that once my phone has been setup to sync ... The Kenwood will talk to it automagically.
This is using AOSP or non stock roms. Ofc.
Sent from my SPH-L900 using Tapatalk 2
Tasker worked for me
Skripka said:
I have a Kenwood Dnx6980, and my experience has been that once my phone has been setup to sync ... The Kenwood will talk to it automagically.
This is using AOSP or non stock roms. Ofc.
Sent from my SPH-L900 using Tapatalk 2
Click to expand...
Click to collapse
Guys I have a Chinese brand double din...MobileVision...or something like that and using Tasker along with Bluetooth autoconnect worked for me. The posts above describe exactly how to set it up and it worked for me.
[email protected] said:
Guys I have a Chinese brand double din...MobileVision...or something like that and using Tasker along with Bluetooth autoconnect worked for me. The posts above describe exactly how to set it up and it worked for me.
Click to expand...
Click to collapse
Bluetooth autoconnect's main feature works for my xperia pro (turn on bluetooth, connect to your selected devices in automatic)
Bluetooth autoconnect's tasker plugin is not working for me. I can use it, sort off, but it does nothing. Like, "Press the button, but there was no reply!"
Well that is odd. I have a Pioneer unit and my phone connects to it as soon as it detects it in range. Even if I turn off BT and then power it on, the phone automatically connects to the head unit without any intervention on my part. Sounds like an issue with your stereo.
No stereo issue. On some of the touch wiz based roms bluetooth DOES NOT auto connect. On most (if not all) aosp roms bluetooth DOES auto connect. Currently on ma7 stock with root and it auto connects. When I was on whomp, jellybombed, and labrats
Sent from my SPH-L900 using Tapatalk 4 Beta
Bluetooth Connection
Hi Guys,
Im glad i found this thread, im wondering if anyone could help me out.
My scenario is, my bluetooth is connected to my car radio playing files. When a call comes in, i need it to disconnect from the car radio and connect to my bluetooth headset, all without turning off bluetooth ( preferable )
My possible solutions are:
1 ) By using automagic, ive managed to get alot done with this app, but this seems beyond it.
2 ) Getting automagic to start an application when a call comes in which will force bluetooth connection to a specific bluetooth device and disconnected from other devices.
Anyone got any suggestions?
devilshady said:
Hi Guys,
Im glad i found this thread, im wondering if anyone could help me out.
My scenario is, my bluetooth is connected to my car radio playing files. When a call comes in, i need it to disconnect from the car radio and connect to my bluetooth headset, all without turning off bluetooth ( preferable )
My possible solutions are:
1 ) By using automagic, ive managed to get alot done with this app, but this seems beyond it.
2 ) Getting automagic to start an application when a call comes in which will force bluetooth connection to a specific bluetooth device and disconnected from other devices.
Anyone got any suggestions?
Click to expand...
Click to collapse
not sure of your rom, but both TW and CM allow you to set whether each connection is Media or Phone. put your headset to phone and your car to media only. when you answer the phone the headset should take over.
Lord Sekhmet said:
I use Tasker to turn on Bluetooth and connect to my earpiece. But I need a trigger and I need to turn on my earpiece. The trigger I use is activating my map app.
So without a trigger, I don't know how to do that.
Click to expand...
Click to collapse
Could you share how you did this? I am completely confused by the interface.
I am wanting the same setup but also for music player and Pandora
I haven't found an example to follow that even comes close.
---------- Post added at 09:54 AM ---------- Previous post was at 09:43 AM ----------
Lord Sekhmet said:
I am new to Tasker too.
Task / Net / Bluetooth
will turn on/off/ toggle Bluetooth
Task / plugin / Secure Settings (separate app) / BT Connect
Will connect to your chosen Bluetooth device.
My best advice is to play around. Also, here is the first of a 3 video series on Tasker.
http://www.youtube.com/watch?v=BEhnOJl5mTo&feature=youtube_gdata_player
Click to expand...
Click to collapse
That helps,
I was going task / setting / Bluetooth
Still not sure how to set the trigger however.
[EDIT]
The first few minutes of that video answered my questions.
Sorry, I partied late last night and still kinda loopy.
Sent from my Jedi MasterX Note 2

Categories

Resources