Tasker Not Recognizing Newly Paired Bluetooth Device - Tasker Tips & Tricks

I've been searching for an answer for a while now with no luck,
Basically, I have a couple of Bluetooth profiles:
1. Turn off Bluetooth if on and not connected to anything after 3 minutes (taken straight from the Tasker Wiki)
2. My own created profile to open an app and put my phone in vibrate mode once Bluetooth is connected
Both of these profiles work great if I'm turning Bluetooth on and connecting to a device that's already paired. However, if I'm pairing a new device, tasker won't recognize that my bluetooth is connected (it will just recognize that it's on).
This results in my Bluetooth turning off after 3 minutes (my first profile firing) even though I'm connected to something. As soon as I manually turn Bluetooth back on, both profiles start working normally.
I've come to the conclusion that Tasker/my profiles have trouble knowing Bluetooth is on and connected only when pairing a new device.
Does anyone know a fix/workaround for this? Thanks in advance

This is expected behavior. From tasker's user manual:
Connections to non-paired devices (e.g. while pairing is taking place) are ignored.
Warning: Tasker can't directly detect when a BT device is connected, only when a connection or disconnection is made.
Click to expand...
Click to collapse
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

ktmom said:
This is expected behavior. From tasker's user manual:
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Ahh, I can't believe I missed that, thank you!!
Looks like I'll just have to disable and re-enable the profile whenever pairing a new Bluetooth device. Since pairing new devices aren't an everyday thing, I guess it's a small inconvenience. Thanks again, I really appreciate it

You might make the process easier by creating a task that toggles BT off, waits a few seconds then toggles it back on again. Then trigger that task from a tasker widget. That would at least be fewer clicks when pairing a device.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

[Q]/[HELP] Xperia Z-SBH20 connection issue

Hello!
I bought an SBH20, paired with my XZ via NFC, listened to music, then disconnected the headset, using the NFC.
After a while, i tred to connect again via NFC but all i get is a 'connecting' message, BT turning on -white BT icon- but no real connection, therefore the BT turns off.
After several tries it finally connects, but it's not reliable this way.
I noticed, if i enter to settings(not turning anytihng on/off) and trying to connect (still using NFC), everything works fine: connects, disconnects perfectly, and handles the BT as it should.
I've reseted the headset, tried single and multi point modes aswell. Deleted the BT devices, then repaired, still got the problem.
Am i doing sth wrong? I want to connect and disconnect the headset with a simple touch, and not toggling the BT manually (NFC yeah...) Is this something, SBH20 is not compatible with?
(btw sony support says: "For subsequent connections between devices that have already been paired once, make sure that Bluetooth™ is turned on so that the devices can connect automatically." If it's a "must" , then what is the [email protected] use of the NFC??? Just to pair once???)
Please share your experiences! Any advice would be greatly appreciated!
Thanks for reading ( and sorry for my english)
I actually have the same problem using the SBH50. For me sometimes it connects perfectly fine, other times it doesn't and I have to go into bluetooth settings after which it seems to connect properly.
I have noticed that it also depends on how I disconnect it; if I remember to touch the headset to disconnect then next time when I try to connect I have more chance of it being successful. Also, when I try to connect I hold the headset aganist the phone even after the ‘connecting’ popup until I get the 'connected' popup.
These are just work-arounds which aren’t always 100% successful though so would be good to find out what the proper method is.
fl4r3 said:
I actually have the same problem using the SBH50. For me sometimes it connects perfectly fine, other times it doesn't and I have to go into bluetooth settings after which it seems to connect properly.
I have noticed that it also depends on how I disconnect it; if I remember to touch the headset to disconnect then next time when I try to connect I have more chance of it being successful. Also, when I try to connect I hold the headset aganist the phone even after the ‘connecting’ popup until I get the 'connected' popup.
These are just work-arounds which aren’t always 100% successful though so would be good to find out what the proper method is.
Click to expand...
Click to collapse
It is a real shame... In my case it's the opposite, if i touch the headset to disconnect, the next nfc-connect tends to be less successful.
(and i noticed that it also matters if i turn off the headset after disconnected, or not)
And what is really odd, that i don't have to do anything in the settings menu ( or bluetooth settings) just open it, and everything works like a charm...( all connect or disconnect tries are succesfull, no exception, even if i push the headset repeatedly to the pohone's back)
I'm not affraid to mod some system files, apps, maybe build.prop tweaks, but i don't know where to start. In bulild.prop there are only a few nfc related lines (tried to enable/disble those)
So i'm not alone...maybe even more people are in the same boat, trying to solve this.
Again; any related info is welcome
I also have a sbh50 but i normally disconnect by turning off the headset. I have set it in smartconnect to turn off bluetooth automatically when the connection shuts off but it doesnt always do that.
It reconnects with no issues when bluetooth is on and i turn the headset on again. I use the nfc tap only for the initial pairing.
The only issues I have is the google music skipping issue that i posted the other day and the gmail smart connect not working on the sbh50
swtam said:
I also have a sbh50 but i normally disconnect by turning off the headset. I have set it in smartconnect to turn off bluetooth automatically when the connection shuts off but it doesnt always do that.
It reconnects with no issues when bluetooth is on and i turn the headset on again. I use the nfc tap only for the initial pairing.
The only issues I have is the google music skipping issue that i posted the other day and the gmail smart connect not working on the sbh50
Click to expand...
Click to collapse
Well, then we don't have the same issue. I tought i could use the nfc for connect/disconnect (i actually still think it is capable of that, just sony messed up sth)
Could you try to connect/disconnect and connect again with your devices, please :angel:
I'm really curious about this whole nfc story ( why does the headset have the chip/tag if it only works for initial pairing -its not a big deal to pair manually, especially that it has to be done just once-, and on the other hand: if i put nfc in the device, why not put in this functoin too- not a big deal: a proper working BT toggle, but it brings a tad more functionality-

Automated In-Car Wifi Hotspot with Tasker

About a year ago I mounted my Nexus 7 2012 Wifi in my car, and came up with some Tasker scripts to have my phone automatically start wifi tethering as soon as I turn the key. I’d like to share with you all how I did it, and answer any questions anybody might have.
I made a video to provide a overview of my setup that can be found here. I can't post links yet so you'll have to copy and paste!
Code:
youtu.be (slash) jkDr9mLY568
Hardware
Nexus 7 Wifi 2012 rooted running stock KitKat with Xposed Framework installed.
Nexus 5 rooted running stock KitKat with Xposed. I’ve also tested this with a GNex and G2 and it worked great with both of those.
Previously I ran CM on both my phone and tablet and it worked fine.
Software
Connectivity:
Tasker
Secure Settings (I use Pro, but I don’t think it’s necessary, correct me if I’m wrong)
Tablet Talk
Tasker/Locale Plugin for Tablet Talk
SSID Selector (Tasker plugin)
All these except for SSID Selector need to be installed on both the phone and tablet.​
Apps:
AutoVoice - allows you to create your own voice commands and have Tasker parse them.
GMD Gesture Control Create custom multitouch gestures.
Waze
Spotify
Waze and Spotify are the only apps I have in focus 99% of the time. I have Torque installed and it works great, but I rarely use it.​
Tasker
Tablet
Profile: Wifi Tether Control
State: Power any
Entry task: Powered On
Wifi Off: This disconnects me from my home network in case I’m using my home wifi
Brightness up if Daytime profile active, turn down otherwise
Tablet Talk Action: Start BT Mode - start Tablet Talk connection to phone, this tells the phone to turn on the hotspot.
Display timeout: 20 min
Wait 4 secs - this gives the phone time to start the hotspot. I’ve found everything works better if there is a pause here.
SSID Selector - only connect to my phones wifi network
Wifi on
Secure Settings: GPS on
Auto-Sync on
Exit task: Unpowered
Stop task if the powered on task is running. This is to prevent a problem I was having where if I turned the car key too slow, it would start this task while the entry task was still running, leaving the car running but the tablet and hotspot off.
Get location and use Pushbullet to send location to phone
Tablet Talk: Disable - this triggers the exit task on the phone that turns the hotspot off
Wifi, GPS, autosync off.
Send intent to close Waze - Waze doesn’t seem to respond well to being killed, so I use an intent to turn it off. If I don’t do this it is a MAJOR battery drain.
Media Utilities Action: Pause - the built in media actions don’t seem to pause Spotify reliably, so I use this plugin
Lock screen and set lockscreen PIN with Secure Settings
Phone
Profile: Car Tethering
Entry task: Start Wifi Tethering
Ringer on
Wifi Tether on
Notify Sound
Exit Task: Stop Wifi Tethering
Wifi Tether Off
Notify Cancel: Tethering on notification
Notify Sound: Tethering off
Wait 5 secs
Turn wifi back on
Notify Cancel
I've attached all the tasks and profiles I use on my tablet. I'll add some explanations for the rest of them later on if anyone is interested. They include things like:
Gathering sunset/sunrise times to automatically adjusting brightness
Switching to Waze if there is no touches detected for x number of seconds
AutoVoice tasks and profiles for searching Spotify, Waze, and Google Maps
I really want to know how to so this
Gathering sunset/sunrise times to automatically adjusting brightness
braddaniels said:
About a year ago I mounted my Nexus 7 2012 Wifi in my car, and came up with some Tasker scripts to have my phone automatically start wifi tethering as soon as I turn the key. I’d like to share with you all how I did it, and answer any questions anybody might have.
Click to expand...
Click to collapse
So I assume your car turns off the charge port (ie: lighter port) when the ignition is off? That certainly makes this sort of thing a little easier, and sounds like your N7 is dedicated to car duties.
I like the idea of switching back to Waze when otherwise idle, I might do that myself. I do all of the rest, including the backlight management using a tiny web service I wrote for myself to get sunrise/sunset times.
My do it on my phone, however, I don't mount the N7 itself. So I use an NFC tag as my "Start car mode" context.
khaytsus said:
So I assume your car turns off the charge port (ie: lighter port) when the ignition is off? That certainly makes this sort of thing a little easier, and sounds like your N7 is dedicated to car duties.
I like the idea of switching back to Waze when otherwise idle, I might do that myself. I do all of the rest, including the backlight management using a tiny web service I wrote for myself to get sunrise/sunset times.
My do it on my phone, however, I don't mount the N7 itself. So I use an NFC tag as my "Start car mode" context.
Click to expand...
Click to collapse
Yes it stays in my car mounted on the dash unless I'm in a bad neighborhood or something. I live in Central Florida, and so far the heat has not been an issue. The battery still works fine even after sitting my dash for a year now. I know that it is a risk though, a friend of mine had a bargain bin Android tablet that blew up in her car a few weeks ago just sitting on the backseat.
Like I mentioned in the video, I just want it to work without thinking about it, I got sick of fumbling with my phone whenever I got into my car, and I didn't use my Nexus 7 that much anyway, so I decided to do this. Yes my lighter ports only work when the ignition is on. I don't think this is necessarily the most ideal way to detect when to turn the car is on though. I'd like for Tasker to implement Bluetooth proximity as a state, that might be useful. I recall seeing it on their todo list, but I'm not holding my breath.
I have an ODBII BT dongle, and I tried using that to detect when the car was on, but I found it to be clumsy and unreliable. I even experimented with the accelerometer to detect the vibration of the car running, but that wouldn't have worked too well.
In case you were wondering about battery drain while it's off, it's negligible. I'm sure if I left it off for a week or so it would probably die, but my 3.1 A charger charges it even with the screen on full brightness. The only time I've had to charge it while the car's not running is when some service doesn't shut down right due to a bug in my Tasker setup. I have had some bad luck with crappy USB cables, so make sure you get the highest quality and shortest length possible to maximize charging.
Thanks
I know this is an old post now, but this is exactly what I've been trying to achieve with my car setup with Note 3 / Galaxy Tab 8.4. Thank you for posting. This should save me a lot of time.
I have bluetooth in my Jeep and will be sending all tablet audio to the Jeep to play. I've had mixed results with it working and with it playing on the tablet so I may need to tweek Bluetooth Auto Connect. If that still wont work well I'll have to AUX cable it.
I just downloaded all your profiles and tasks and will give this a try with my setup. I really like how you have it auto start wifi tethering on the phone and then open Waze. I have an added step of activating Foxfi and then clicking a few boxes before that activates, so I need to figure that one out.
I also installed all your other profiles/tasks, though I don't know what all of them do yet. I'll need to go through them and see which ones apply to how I use my phone. Do you have any of those on your tablet as well, or are the extras just for your phone?
TheBlueDuck said:
I know this is an old post now, but this is exactly what I've been trying to achieve with my car setup with Note 3 / Galaxy Tab 8.4. Thank you for posting. This should save me a lot of time.
I have bluetooth in my Jeep and will be sending all tablet audio to the Jeep to play. I've had mixed results with it working and with it playing on the tablet so I may need to tweek Bluetooth Auto Connect. If that still wont work well I'll have to AUX cable it.
I just downloaded all your profiles and tasks and will give this a try with my setup. I really like how you have it auto start wifi tethering on the phone and then open Waze. I have an added step of activating Foxfi and then clicking a few boxes before that activates, so I need to figure that one out.
I also installed all your other profiles/tasks, though I don't know what all of them do yet. I'll need to go through them and see which ones apply to how I use my phone. Do you have any of those on your tablet as well, or are the extras just for your phone?
Click to expand...
Click to collapse
I didn't post the profiles and tasks from my phone because it should be relatively simple to implement yourself. I would highly recommend you try to build most of these profiles yourself and just use mine as a template. It'll make troubleshooting much easier if something doesn't work right.
Find My Phone
Hi Brad,
Just like to say thank you for sharing... you are streaks ahead in using tasker! I bought tasker about 1 year ago and fooled around with it and got the basic stuff I needed to work just fine. However, now I will be installing a nexus 7 as a fixed in dash carpc... replacing my old actual carpc running windows with centrafuse/riderunner, I will need to automatize pretty much everything as I will not have access to the side buttons.
I have imported your profiles and task and I am tweaking them for my needs. Only thing it complaining about is "Find My Phone", could you give me some pointers, if you can remember.
Thanks again...
Jared.
braddaniels said:
About a year ago I mounted my Nexus 7 2012 Wifi in my car, and came up with some Tasker scripts to have my phone automatically start wifi tethering as soon as I turn the key. I’d like to share with you all how I did it, and answer any questions anybody might have.
I made a video to provide a overview of my setup that can be found here. I can't post links yet so you'll have to copy and paste!
Code:
youtu.be (slash) jkDr9mLY568
Hardware
Nexus 7 Wifi 2012 rooted running stock KitKat with Xposed Framework installed.
Nexus 5 rooted running stock KitKat with Xposed. I’ve also tested this with a GNex and G2 and it worked great with both of those.
Previously I ran CM on both my phone and tablet and it worked fine.
Software
Connectivity:
Tasker
Secure Settings (I use Pro, but I don’t think it’s necessary, correct me if I’m wrong)
Tablet Talk
Tasker/Locale Plugin for Tablet Talk
SSID Selector (Tasker plugin)
All these except for SSID Selector need to be installed on both the phone and tablet.​
Apps:
AutoVoice - allows you to create your own voice commands and have Tasker parse them.
GMD Gesture Control Create custom multitouch gestures.
Waze
Spotify
Waze and Spotify are the only apps I have in focus 99% of the time. I have Torque installed and it works great, but I rarely use it.​
Tasker
Tablet
Profile: Wifi Tether Control
State: Power any
Entry task: Powered On
Wifi Off: This disconnects me from my home network in case I’m using my home wifi
Brightness up if Daytime profile active, turn down otherwise
Tablet Talk Action: Start BT Mode - start Tablet Talk connection to phone, this tells the phone to turn on the hotspot.
Display timeout: 20 min
Wait 4 secs - this gives the phone time to start the hotspot. I’ve found everything works better if there is a pause here.
SSID Selector - only connect to my phones wifi network
Wifi on
Secure Settings: GPS on
Auto-Sync on
Exit task: Unpowered
Stop task if the powered on task is running. This is to prevent a problem I was having where if I turned the car key too slow, it would start this task while the entry task was still running, leaving the car running but the tablet and hotspot off.
Get location and use Pushbullet to send location to phone
Tablet Talk: Disable - this triggers the exit task on the phone that turns the hotspot off
Wifi, GPS, autosync off.
Send intent to close Waze - Waze doesn’t seem to respond well to being killed, so I use an intent to turn it off. If I don’t do this it is a MAJOR battery drain.
Media Utilities Action: Pause - the built in media actions don’t seem to pause Spotify reliably, so I use this plugin
Lock screen and set lockscreen PIN with Secure Settings
Phone
Profile: Car Tethering
Entry task: Start Wifi Tethering
Ringer on
Wifi Tether on
Notify Sound
Exit Task: Stop Wifi Tethering
Wifi Tether Off
Notify Cancel: Tethering on notification
Notify Sound: Tethering off
Wait 5 secs
Turn wifi back on
Notify Cancel
I've attached all the tasks and profiles I use on my tablet. I'll add some explanations for the rest of them later on if anyone is interested. They include things like:
Gathering sunset/sunrise times to automatically adjusting brightness
Switching to Waze if there is no touches detected for x number of seconds
AutoVoice tasks and profiles for searching Spotify, Waze, and Google Maps
Click to expand...
Click to collapse
Thanks for all the info and stuff. I'll have to check out the GMD and Autovoice apps. I just got a Nexus 7 set up in my car and am loving it so far. I have Tasker helping me out greatly because I too don't want to take my S6 out of my pocket when I'm driving.
My Nexus 7 has "screen always on while charging" enabled in Dev options. I haven't set the fastboot oem off-mode-charge to a zero yet since I don't think I need it to turn off completely, though I will probably do this since I can't reach the power button with a decent amount of effort.
Turn car key, Nexus 7 comes on and turns on wifi (state -> power any = wifi on). This is mostly because it stopped connecting to my S6 tether unless I toggled wifi off and on. I plan on using airplane-mode but haven't set that up yet since it was not available in Tasker (maybe it is in Secure Settings, I hope).
My S6 turns on wifi hotspot when bluetooth connects to "Alpine CD Receiver". I added an Exit task of "wait 5 seconds, then wifi on" to get wifi to enable again since it wasn't automatically.
The Nexus 7 bases some tasks off of the state = wifi connected to S6 tether. Tasks include turning on bluetooth (I need it to connect to Alpine head-unit AFTER the S6 or else the Alpine goes wonky), setting car mode to ON and going home (Car Home Ultra), launching the speed volume app so my volume fluctuates with speed (I don't want to have to touch the Alpine volume knob), and performs the media key operation of "play" to resume whatever music I had playing.
One difference for me is that I want to still use my phone for talking and don't want to do any texting from the car, so I don't use Tablet Talk. Although...texting via voice commands on the tablet would be handy. I will definitely set that up, so thanks for that idea.
It all works pretty well, but I'm only a day or two into doing all of this so I need to tweak stuff still.
Can anyone explain how automatic exit tasks work, like on my S6 - if it loses BT connection for just a second, wifi hotspot turns off, which then triggers the Nexus to perform a bunch of automatic tasks like exiting car mode, turn off bluetooth thus stopping music, etc. It seems to me like Tasker should show you the tasks it will perform when the State is exited. Sure, you can add exit tasks...does adding an exit task cause it to no longer perform its own invisible/assumed exit tasks? I am still a Tasker newb. In fact, this post clued me into the fact that Tasker has exit tasks, haha. I'd like it if it had some threshold so it wouldn't start doing these exit tasks so quickly. Like, maybe a "wait 5 seconds" exit task to see if the State turns on again. I'll do some reading and testing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(imgur and google photos links don't work on XDA???)
link
Exit task not running
I was able to get the auto_connect to my hotspot with the waits. :victory: So thank you for the tip. However, I am running into issues of the task running an exit. It just doesn't seem to run when I disconnect from my Bluetooth device. Any ideas?
By the way, I am able to run each individual task and it works
Hey. I'm having a really hard time (5h) now figuring how to trigger the tether or in my phone. My car doesnt habe a bluetooth so i've been trying to trigger the tether with my tablets bluetooth. The problem is that the bluetooth needs to be activates from the settings each time. I tried with bluetooth suto connect addon but couldnt get that work either. I have Samsung s8+ and lenovo tab 4. Someone please help me
since i am such a cheap bastard, i opted not to pay for tasker and ended up doing it with llama and e-robot, except it was for my g2 dedictated to nav duty rather than a nexus 7.
with bt auto connect on the g2and autotether on my main phone (bacon), it is a pretty much a hands free affair as long as i leave bt on on the bacon. presence of charging source and screen on/off are being used as the triggers to toggle airplane mode, bt, gps and the nav app
the only problem is, i get a massive battery drain with this setup. i usually find my phone either fully discharged or almost there when i come back on the next day. did the exact same on my mom's galaxy note 3 and thay one fares much better albeit not great (about -10% overnight). the battery on the g2 was replaced not too long ago. dunno, maybe it is the version of lineageos i am using (14.1 for d802/f320)

Tasker/Trigger NFC on Nexus 6

hi all
need some help with Tasker/NFC to run bluetooth in my car...here is what i have set up:
-Trigger set to run Tasker task (turn bluetooth on+set variable)
-Tasker profile to switch off bluetooth once disconnected from car bluetooth (wait 5 secs+turn off bluetooth+variable cleared)
the NFC trigger works flawlessly...its the exit task which doesnt! any suggestions/ideas??
thanks!
PS: Moderators please feel free to move this to another forum if posted incorrectly
When you say "exit task" do you actually mean exit task? Because that wouldn't make sense. An exit task is what is triggered when the context in the profile is no longer true and not part of a profile on its own.
Perhaps share some screenshots of your profiles
to clarify, its not an exit task but a separate profile...sorry for the misleading context.
have been playing around a bit with my setup..i noticed the following: when i place my phone on the nfc tag, Trigger launches the Tasker task of switching on bluetooth, the bluetooth indication comes on for about 3 secs and then disappears. during this time, the bluetooth off Tasker profile stays green (active) although i have a wait command of 20 secs before it should switch off bluetooth if not connected to any device.
hope that helps
kayeng said:
to clarify, its not an exit task but a separate profile...sorry for the misleading context.
have been playing around a bit with my setup..i noticed the following: when i place my phone on the nfc tag, Trigger launches the Tasker task of switching on bluetooth, the bluetooth indication comes on for about 3 secs and then disappears. during this time, the bluetooth off Tasker profile stays green (active) although i have a wait command of 20 secs before it should switch off bluetooth if not connected to any device.
hope that helps
Click to expand...
Click to collapse
I haven't got any nfc so can't test. What I'd recommend though is disable the off profile for now and make sure your nfc works properly and doesn't turn off after 3 seconds. Once that's done. We can look at the second profile.
For what its worth, I had lots of trouble with Bluetooth profiles.
Things for you to consider are that as soon as you turn on your BT, it will be *disconnected* which will trigger your 2nd profile. So you'll need to put a wait in there for a couple of minutes, THEN you will need to run an "IF" task, that then looks to check it is still disconnected before turning off bluetooth.
I found with BT that unnoticeable disconnections can happen for 1ms that will trigger the 2nd profile. It may be worth setting collision handling up to only run the newest task or the oldest task (whichever you think best)
i think i finally got things to work the way i want them to (well, not really, more on that later on)
1-use Trigger to run Tasker Task when tagged with nfc : Bluetooth on-->variable set (BT)
2-run Tasker Profile when connected to car to set new variable (Car)
3-run Tasker Profile when disconnected from car : wait 15 secs-->Bluetooth off-->variable clear BT and Car
the above setup worked 3 time without error and has me convinced that i have things setup correctly. not really sure if the variables are necessary, but have always used them so continuing with that theme.
the next and final step is to have Bluetooth turn on once sitting in the car without having to use nfc or touching the phone. had experimented with Secure settings and Tasker itself (BT near) but neither worked consistently. any Tasker plugin or separate app that i can use for that purpose? [running a rooted phone on stock 5.1.1 rom]
kayeng said:
i think i finally got things to work the way i want them to (well, not really, more on that later on)
1-use Trigger to run Tasker Task when tagged with nfc : Bluetooth on-->variable set (BT)
2-run Tasker Profile when connected to car to set new variable (Car)
3-run Tasker Profile when disconnected from car : wait 15 secs-->Bluetooth off-->variable clear BT and Car
the above setup worked 3 time without error and has me convinced that i have things setup correctly. not really sure if the variables are necessary, but have always used them so continuing with that theme.
the next and final step is to have Bluetooth turn on once sitting in the car without having to use nfc or touching the phone. had experimented with Secure settings and Tasker itself (BT near) but neither worked consistently. any Tasker plugin or separate app that i can use for that purpose? [running a rooted phone on stock 5.1.1 rom]
Click to expand...
Click to collapse
You can't use a Bluetooth trigger to turn on Bluetooth, because Bluetooth is off so can't be a trigger..

The Unofficial Android Auto Thread

Hi All,
I've been extremely excited about the integration of my smartphone with my car for a while. Almost anyone who would be in the market for a motor vehicle with an advanced head unit would also already own a smartphone with data access.
However, like any new use of technology, there are growing pains and Android Auto is no different. I have struggled through a few issues already and continue to grapple with others. A huge difficulty I had was simply finding discussion threads. Do I look on sites that focus on cars? On Android Auto? On Android OS?
So here it is. I'm starting a thread to pull together the most common problems and their solutions. Also, please note - I am not an expert in any of these things, just a user. I will give credit where I have a source but I am just gathering the info into one place and adding it to my own observations.
I haven't decided how this thread is going to look or if it will be small or big, so I will save the first few message placeholders in case and I will add known problems, work-arounds, and identified solutions as they come.
Hopefully this helps out some other users!
Troubleshooting:
I strongly suggest you make sure you have a good quality USB cable and confirm that you are able to connect your phone to your computer and transfer a file (some cables will allow charging but not data transfer).
1. Problem: Bluetooth won't pair, won't connect, etc.
Possible Solution:
It appears that Android Auto will attempt to create a BT profile. So
a) Delete the pairing on your cell phone
b) Delete the pairing on your car head unit
c) Turn OFF bluetooth on your phone
d) Plug your phone into your car's head unit. Depending on your settings, you may need to tell your car to launch Android Auto and you may need to select the device. If so, make sure you are selecting it in Android Auto (NOT Bluetooth pairing). Respond appropriately to any requests for authorization on your phone and car.
This should leave you with a properly paired device and car.
2. Problem: Every time I launch Android Auto, I have to pair my phone again!
Work-around: Once you have a working AA connection between the car and your device, go into the settings in the Android Auto app on your device and turn off the option to "Add new cars to Android Auto."
3. Problem: Android Auto notifies me of a new message but won't read it out loud/but starts to read it and cuts off.
It looks like there is a conflict between Google Now, Android Auto, and the Bluetooth handoff with the car head unit. Kudos to XDA member BuildaWall for discovering that turning off the BT headset option in Google Now fixed it for some people. I did a little more testing and found that forcing Android Auto to make your phone the primary source of audio seems to be the other piece.
UPDATE:I applied the August CM-13 Snapshot and this workaround no longer fixes the problem. I have reheaded it as a possible work-around as it might fix the issue for people on slightly older ROMs
UPDATE Sept 27/2016: I have upgraded to stock Nougat (Android 7). This issue still exists. However, after reading this XDA article, I tested an accessibility option. AA began reading the messages once again.
Possible Work-arounds:
A) Several people reported that their Media volume on their phone was being changed to zero when they plugged into AA. Some also reported that turning USB Debugging OFF fixed this issue. If you don't know what USB debugging is, don't worry about it; you would have to have intentionally turned it on. For volume, tap your volume rocker but then tap the drop down on the pop up volume notification.. It will expand to multiple volume sliders. For simplicity, make sure none are zero.
B) On your phone, go into Google Now, Options, Settings, Voice and then turn off Bluetooth Headset. This was reported to help by some but not didn't help for me.
C) On your car's head unit, in Android Auto, select a music option (I have Spotify and Google Play Music, but I think any audio source app within AA will work). If you don't want to listen to anything, just play and then pause/stop it but you CANNOT go back to the car as a primary source (eg radio or sirusXM).
D) On Nougat (Android 7) go to settings, accessibility, and enable one of the options (I have tested Voice Access, but in theory, activating any accessibility option should reactivate the message reading in AA.
4. Reported with work-around by @ReppinTheSouth - Android auto either being laggy or flat-out disconnecting
ReppinTheSouth observed this on a Pioneer avh 4100 and a galaxy s4 and reported August 7, 2016
Suggested Work-Around: Clearing the phone's cache periodically seems to help a lot. I also added a swap file which has seemed to help even more.
5. Reported by @ReppinTheSouth - When driving in maps with voice commands enabled, it will freeze sometimes right when a voice command is about to come on. My GPS will no longer track and my head unit at least an Android auto is completely unresponsive.
I'm not listing this as a work-around, as it doesn't resolve the problem, but is still good to know: @ReppinTheSouth advises: This only happens when voice commands are enabled & Unplugging and replugging the phone gets the head unit out of its frozen state.
More to come!
Tips and Tricks:
I will use this page to list tips to improve performance or usability that don't fit under troubleshooting.
1. Keeping the phone screen alive and accessible.
Please exercise safe driving habits.
TL; DR:
Turn on Developer options
Turn on Stay Awake
Optional: if you have a security lock you may want to add your car Bluetooth as a trusted device for smart lock so it doesn't lock you out.
Details:
Android Auto changes your screen timeout to 15 seconds every time it is activated. When combined with its flaws with hangouts chat notification (no groups, can't initiate a new chat without certain contact book entries, can't access chats that began before connecting to AA) it is VERY frustrating.
Access the Developer Options menu
Settings >>> About Phone
Scroll to the bottom and tap the Build Number option seven times in a row. You will get some sort of message saying you have access to developer options. You only need to do this once.
Settings >>> Developer Options
Make sure they are turned on. Next turn on the Stay Awake option.
Your phone will now allow dimming but won't turn off the display.
Optional:
If you use a security lock on your device, you may want to authorize your car Bluetooth connection as a trusted device under smart lock so it won't lock while connected.
==============================
Links to Other Resources:
https://forums.oneplus.net/threads/...to-connected-to-the-cara-infotainment.488786/
Thanks for this thread Mad Medik.
However, I also have the same problem as number 3, but the workaround doesn't work.... I changed my phone Bluetooth Headset setting to off and I was playing my spotify music through Android Auto. Am I forgetting something here? what versions of AA and Whatsapp do you use?
Good thread and it is much needed as far as I am concerned. I have a Pioneer avh 4100 and a galaxy s4. One of the issues I have had is with Android auto either being laggy or flat-out disconnecting for no reason. One of the things I have noticed is Android auto seems to be a resource hog. Clearing the phone's cache periodically seems to help a lot. I also added a swap file which has seemed to help even more.
The other issue I'm having which I can't solve is when driving in maps with voice commands enabled, it will freeze sometimes right when a voice command is about to come on. My GPS will no longer track and my head unit at least an Android auto is completely unresponsive. I have to unplug my phone and then plug it back up to get it to work. This only happens when voice commands are enabled. I have not been able to resolve this issue.
Sent from my SPH-L720T using XDA-Developers mobile app
NLatuny said:
Thanks for this thread Mad Medik.
However, I also have the same problem as number 3, but the workaround doesn't work
Click to expand...
Click to collapse
Hi NLatuny & ReppinTheSouth!
@NLatuny - Thanks for the info. I just updated my Nexus 6p to the latest (august 2016) CM13 Snapshot, and the work-around no longer fixes the problem for me either. I've updated the original post. I think your request for version numbers is probably a good idea moving forward. I will update the original post to suggest that people include that in their posts.
@ReppinTheSouth - Thanks! I will look at adding those problems and your possible solutions for the lag to the top of the thread
Might be good to add a list of things you can and cannot do. For example, I found the other day through just trying you could ask various questions.
How old is (enter famous person here). = Correct answer.
I need to remember some of the other ones I've done. Good thread.
---------- Post added at 10:42 AM ---------- Previous post was at 10:40 AM ----------
Perhaps also add how to get into Developer Mode, and what the settings in there do? The Force Day or Night mode thing is super useful.
I am not sure if this is the righjt place to ask, but I have been everywhere with no answer.
I Have a Galaxy s7 edge in a Mercedes a class. It connects just fine, but I cannot make calls saying "call >name>". Maps, Music, weather works just fine, but when I try to make a call, the woman just replies "not sure how to help you with "call..."". I can dial numbers as well BTW.
Making calls through Google Now works fine as well.
Any help would be much apiciated.
duze76 said:
I am not sure if this is the righjt place to ask, but I have been everywhere with no answer.
I Have a Galaxy s7 edge in a Mercedes a class. It connects just fine, but I cannot make calls saying "call >name>". Maps, Music, weather works just fine, but when I try to make a call, the woman just replies "not sure how to help you with "call..."". I can dial numbers as well BTW.
Making calls through Google Now works fine as well.
Any help would be much apiciated.
Click to expand...
Click to collapse
Check your permissions for Android Auto, you may have missed a few.
You can also uninstall and reinstall it.
I have tried all that, with no luck unfortunately
Having had a courtesy car for a few days that had an android auto system in I'm looking to purchase an android auto headunit for my car, probably after Christmas.
Until then I've been using my handsets connected to the aux input on my factory system. However since I got my Pixel handset last week I've encountered a couple of issues that weren't an issue on my m9 handset previously. I've reported then to the relevant support sites but as yet have received no response, so thought I would try you knowledgeable lot.
Firstly, when making or recurving phone calls with the aux cable connected the Pixel defaults to using the loudspeaker on the handset rather than putting through the aux to my car speakers.
Secondly, when receiving a message on WhatsApp i touch the screen too get it to read the message, it does so fine, then tells me I can press the mic soon symbol and say reply. When I do so I'm told "this chat app is not installed or needs an update". The app is installed and is up to date. I can send WhatsApp messages by saying "send a WhatsApp message to...." but can't reply.
Lastly, when I ask it to play specific tracks on Spotify it often comes back with no search results. Songs that I used to ask it to play regularly on my previous device come back as no search results found. Searching manually the tracks are there and can be played. And it isn't all tracks, some tracks are found without issue.
Thanks in advance.
Also hope this is in the right thread, I notice you seem to be taking mainly about the in car systems but as it can now be used on most android phones without a dedicated in car system I figured many would be doing so.
Hi folks, sorry for the absence. My N6P died on me in November and was sent away for warranty repair. Long story short, I'm very disappointed with Huawei and futuretel. Two months later, the process ended with me owning an unfixed Nexus 6P which is still under warranty until February 2017. It has a defective motherboard according the repair center but they will not repair it. So, after 2 months of making do with an iPhone 6 with a broken screen (wife's old phone), I have moved on to a One Plus 3T.
Irritatingly, Apple Carplay worked flawlessly for that time. Typical of Apple it was very locked down and had limited options. But in fairness, it executed those few features very well. Come on Google!
[/end rant]
I'm back and will try to get the thread up to date.
MM
Sent from my ONEPLUS A3000 using Tapatalk
Hello, thank you very much for this information, is very useful.
In my case, I have a Le Pro 3 X720 and is nightmare with AA, when I plug the phone on my Hyundai car the phone only charge so I had to change their ROM to lineage is 14.1 (Android 7.1.2) and with this AA starts quickly but after 5 minutes the screen is freeze then change the cable but it doesn't work, I change the cable again with the same result, so I back to use the original leeco cable and change their ROM again, with the same result, after 5 minutes the screen is freeze, the last one is AICP 12.1 (Android 7.1.2).
Do you know how to fix this?
Thank you in advance for your response.
Hello everyone,
i found this thread and i hope that is the correct one for my problem.
In the first page i read that AA set the screen timeout to 15sec when activate, but in my case, the timeout remain also after when i unplug the phone from my car.
If i manually set the timeout to 5 minutes, after the first screen lock, it return to 15sec and this is so frustrating.
So i tried to set the stay awke mode in the developer options, but i see that the description of this setting is "when is on charge" (i'm italian, i don't know the english description, sorry), there is some walkaround to fix the 15sec also after the unplug ?
Thanks in advance
mikefavro said:
Hello everyone,
i found this thread and i hope that is the correct one for my problem.
In the first page i read that AA set the screen timeout to 15sec when activate, but in my case, the timeout remain also after when i unplug the phone from my car.
If i manually set the timeout to 5 minutes, after the first screen lock, it return to 15sec and this is so frustrating.
So i tried to set the stay awke mode in the developer options, but i see that the description of this setting is "when is on charge" (i'm italian, i don't know the english description, sorry), there is some walkaround to fix the 15sec also after the unplug ?
Thanks in advance
Click to expand...
Click to collapse
Hi Mike,
You should say what phone and android version you are using. I have used both a One Plus 3T on Oreo beta and an LG V30 on 7.1.2.
The screen timeout sets to 15 sec when I plug in, but returns to normal when I unplug.
Sent from my LG-H933 using Tapatalk

Turn on Bluetooth from Lockscreen on Galaxy S8

Hi there,
I want to turn on Bluetooth automatically, when I leave a certain area, using the Cell Near state.
I have SecureTask set as the device administrator. AFAIK you have to disable the Lockscreen, to turn on Bluetooth.
When I map the task to a button with bxactions it works and turns on Bluetooth.
When I set it as an Exit Task to my Cell Near State, it only turns off WiFi, but doesn't turn on Bluetooth.
The Exit Task looks like this:
1. Keyguard: Disable (SecureTask)
2. WiFi: Set Off
3. Bluetooth: Set On
4. Keyguard: Enable (SecureTask)
5. Set password: Set password (SecureTask)
The point of this task is to connect to my car, whenever I leave home or office.
Anyone has an idea why this task does not run, when I set it as an Exit Task to a Cell Near profile?
Thanks very much in advance for your ideas!
Greetings from snowy germany!
For testing purposes, pause everything in the exit task except for Bluetooth on. Then see if it works as expected. If it does, then I'd try putting a wait for several seconds between 2 and 3.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Categories

Resources