Tasker/Trigger NFC on Nexus 6 - Nexus 6 Q&A, Help & Troubleshooting

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..

Related

Broadit Active Cradle and SPB Profiles

Hi All,
I've done a quick search and cant find anything relating to this. It may seem like an odd request but i like things to be automated
I have a broadit active cradle in my car for charging the kaiser, and a parrot car kit. Ideally what i am trying to achieve is when i dock the phone in the active cradle, an automatic profile kicks in and turns bluetooth on for the while its in the cradle only, and then turns it off once its undocked/disconnected from the car.
At the moment, i cannot get it to pick up when its in the cradle. SPB automatic profile does not change. If i put bluetooth on manually, it will switch over to Car. When i turn the car off, the parrot deactivates and the phone switches back to normal and turns bluetooth off.
Does anyone know of any other automatic profile apps which detect when the phone is on charge only (i.e. no data), or if it is possible in SPB at all?
Thanks
DC
PhoneAlarm is quite good for this I think. I currently have it, and it toggles profiles based on time and appointment categories really well. How I use it:
07:00 switches to 'work' profile vibrate only, bluetooth off
07:30 switches to 'bus' profile, similar to work, but activates WiFi (and internet explorer, you can chose 1 program to be activated per profile if you wish) since the bus I commute on has free Wifi on board)
8:40 back to 'work', auto deactivates WiFi
17:15 back to 'bus'
18:20 back to 'work' as I get a local bus at this time without Wifi
19:00 'Home' profile, all sounds on, and bluetooth
23:00 'night' profile, as per home, but the back light dims
and start again the next morning.
On weekends, it auto switches between day (07:00) and night (23:00)
If I have an appointment scheduled under the meeting category, it sets itself as per the 'work' profile, switches off the phone, auto activates Word. At the appointment end time, it goes back to whatever profile it was in before hand.
There are also settings to auto switch profiles based on activesync, external power (but no activesync), headset connection, appointment category, and geographical location (based on the cellsite ID that your connected to, both entering and leaving). Apart from the appointment category switch, I haven't tried these, but if they work aswell as the time and appointment options, it sounds like the power no activesync option could be exactly what your after? And I bet you will spend hours playing with all the different options to totally tailor profiles to every minute of your day!
Fantastic! That worked really well. The app seems to take 15 seconds to pick up that its on power without activesync, but it works really well!! Excellent app.
There are so many options too!!! That appeals to me
The fact that it actually does the profile switching makes it a killer for me. Several others I tried seemed to forget to do things.
The options, yeah, there seems to be thousands. I'm not even sure what half of them do! I think this is the profile tool to end all profile tools. Oh, and you can navigate the today plugin with your d-pad. Just click on the bluetooth, Wifi, data connection icons to toggle on/off. If the you like options, I think I was correct that you'll be playing with it for hours! Almost a shame your limited to about 7 profiles really...

Tasker question - how can I turn on Bluetooth when WiFi goes off

So I've been trying to set tasker to turn on my Bluetooth when I get out of range from my homes WiFi signal.
Problem is I have no idea how to set tasked to do that.
Has anyone done this and possibly shoot me some info.
Sent from my XT1060 using xda app-developers app
I would do something like this:
Profile: BT Off at Home
Context: Wifi Connected [SSID:<YourSSID>]
Enter:
Bluetooth Off
Exit:
Bluetooth On
The exit task isn't really necessary if the Bluetooth was on before you connected to your home Wifi, but it ensures that you get the results you're looking for regardless of the Bluetooth state before the profile activates.
UncleMike said:
I would do something like this:
Profile: BT Off at Home
Context: Wifi Connected [SSID:<YourSSID>]
Enter:
Bluetooth Off
Exit:
Bluetooth On
The exit task isn't really necessary if the Bluetooth was on before you connected to your home Wifi, but it ensures that you get the results you're looking for regardless of the Bluetooth state before the profile activates.
Click to expand...
Click to collapse
I have a similar tasker situation setup on mine where if I'm not on WiFi my phone turned BT on and enables BT tethering. It is a bit more complicated than that though. Let me know if you'd like me to post it.
titanshadow said:
I have a similar tasker situation setup on mine where if I'm not on WiFi my phone turned BT on and enables BT tethering. It is a bit more complicated than that though. Let me know if you'd like me to post it.
Click to expand...
Click to collapse
I would definitely appreciate if you posted it
Sent from my iPad using Tapatalk
I use 2 profiles.
Enable BT Tether 1 is triggered when not connected to WiFi and executes "Enable Bluetooth Tethering" on entry and "Disable Bluetooth Tethering" on exit.
Enable BT Tether 2 is triggered when BT is turned when Bluetooth is on and does the same as above.
I use 2 profiles so that if Bluetooth is turned off when WiFi is also off, tethering enables itself again once BT comes back on. This also requites the use of an app called "Secure Settings" which can turn tethering on and off. When you turn tethering on if you're running a stock OS for your device it will check with your carrier (the OS does it, not Secure Settings) to see if you have that feature. This does not work if you use a 3rd party app to do tethering outside of the native OS method. If you are on CyanogenMod it does not check.
Enable Bluetooth Tether:
Code:
Profile Status BT Tether 1 ON
Profile Status BT Tether 2 ON
Secure Settings BT Tether Enabled if %WIFII !~ *CONNECTION*
Disable Bluetooth Tether:
Code:
Profile Status BT Tether 2 OFF
Secure Settings BT Tether Disabled
Now, I also have a much more complicated tasker series set up on my tablet to make sure my tablet always connects when wifi fails, but it took a lot more work to not waste battery power.
Auto Tether is triggered when not connected to WiFi and executes "Tether to Phone" on entry and "Disconnect from Phone" on exit.
Please note that where it says "Secure Settings Connect to Phone" the Secure Settings action used is "BT Connection" and you select your already paired device from the dropdown list. You can also set Secure Settings to toggle Bluetooth to ON if it is off, I don't have it say that way but it could be handy. I also found myself getting a lot of errors popping up as Toast notifications, but they were meaningless as the connection was established. Thus, I didn't worry about them and ended up disabling all notifications from Secure Settings.
Tether to Phone:
Code:
If %PhoneConnected = 0
Profile Status Monitoring Phone Connection ON
Secure Settings Connect to Phone
Profile Status Tether Search ON
Else
Profile Status Tether Search OFF
End If
Monitoring Phone Connection is triggered when the phone is connected via Bluetooth and executes "Phone Connected" on entry and "Phone Disconnected" on Exit.
Phone Connected:
Code:
Wait 1 Second
HTTP Get www.google.com:80
If %HTTPR=200
Variable Set %PhoneFailed to 0
Variable Set %PhoneConnected to 1
Profile Tether Search OFF
Else
Variable Set %PhoneFailed to 1
Variable Set %PhoneConnected to 0
End If
PhoneDisconnected:
Code:
Variable Set %PhoneConnected to 0
If %WIFII !~ *connection*
Profile Status Tether Search ON
Perform Task Tether to Phone if %PhoneFailed=0
End If
Tether Search is triggered every 5 minutes and executes Tether to Phone and has no exit.
I basically had to set it up this way because there is no way to have the tablet aware that it is connected to the phone at any given time, it'll execute an event but unlike WiFi there is no tasker variable for what devices are connected via Bluetooth using %PhoneConnected to manage this works very well. Using %PhoneFailed allows the script to be able to tell that a connection was attempted but unsuccessful, without this the tablet gets stuck in a loop always trying to reconnect once the phone goes out of range. I found this happening a lot when I would go to the grocery store and leave the tablet in the car after school. The battery drain wasn't extreme but it was there.
It is a little complicated, which kind of annoys me. One of these days I may get into Android programming and just make an app. But for now, this works. If the phone or tablet disconnect and are out of range, every 5 minutes a connection is attempted. If the connection drops, it does try once right away to reconnect, but then trips the Failed variable which prevents the tablet from going hardcore at trying to reconnect.

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 and strange bluetooth behaviour (connect/disc/connect within 2 secs)

The bluetooth connection to my car stereo behaves strangely: It connects, disconnects and reconnects within 3-4 seconds at startup. After that, everything works.
Sadly this triggers my Tasker profile to switch to on, then off, then on. That means every app I start when entering the profile is often killed (due to exiting the profile) and won't restart in time so that I've to do it manually.
Is there some chance to set the profile to be "connected to device X for at least 5 seconds" or any other trick?
The bluetooth device is sadly always the same, so I can't set it to Trigger to the 2nd connection attempt.
I'm having a similar problem with my Sony car stereo. If I am connected to my Bluetooth hands-free and I switch on the engine the car stereo is trying to connect to my phone. Since the phone is already connected to my hands-free it doesn't allow the connection to the car stereo to become active but tasker has already fired up the profile I have made for when I have my phone connected to my car and had also excited that profile because it sensed the disconnect. A delay like the one you propose would probably be a solution but I have no idea how this could be implemented in a task.
Following this thread for a possible solution.
Στάλθηκε από το HTC One M9 μου χρησιμοποιώντας Tapatalk
Put a delay and then use an if profile active/notactive block within your task. I do this with a few profiles to ensure they have truly started/stopped before running the associated task.
Put a delay and then use an if profile active/notactive block within your task.
Click to expand...
Click to collapse
I could not locate the "if profile active" block but i found a solution:
I've set the Tasks collision handline to "Run both together" and instead of Setting a variable like "InCar" to 1 once the Bluetooth connects, I simply increment it by 1 and all my other Tasks have "if %InCar > 0"...
When the task exits i simply wait for 30 seconds and then subtract 1 from %InCar. That way once I'm in the car the value goes 0 -> 1 -> 2 -> 1 (stays there while in the car) -> (once I Exit it).
I just use something like this at the start of some of my tasks:
Wait 30
If %PACTIVE ~ *,My profile,*
Rest of task
End if
This way the task will not run if the profile was only momentarily triggered.
I do a similar thing with exit tasks exit except I obviously check the profile is not active.

How get tasker to go back to most recent profile when one is inactivated?

I have a profile that sets my phone in silent mode when I'm at work.
It is set up with 3 states: wifi near, NOT Bt connected (my car) and NOT headset plugged (any)
The task is simply all volume set to 0. (With the use of tasker plug-in Sound Mode.)
Then have a profile that changes the sound mode to Vibrate Mode when I connect my Samsung Galaxy Buds+ to the phone (Samsung Galaxy S8.)
BUT how do I get tasker to go back to the last profile that was activated when I disconnect my buds?
I have a separate Volumes Task that I run when say, BT connected/disconnected. In that Task, I have Actions set for the various situations.
You could also have a Profile set to watch for another Profiles Active status.
Sent from my Note8
cableghost said:
I have a separate Volumes Task that I run when say, BT connected/disconnected. In that Task, I have Actions set for the various situations.
You could also have a Profile set to watch for another Profiles Active status.
Sent from my Note8
Click to expand...
Click to collapse
Ok. But what I want if that if I'm at work and my work profile is enabled and I connect my BT headset, the profile changes to my BT profile, and that's as it should. But when a disconnect my BT headset I want tasker to go back to the previous set profile, in this case my work profile. I don't know how to do that in tasker.
You could use variables. You could set a certain variable when work Profile active, and when you disconnect the BT, check for that variable to set work Profile as Active again.
Personally, I wouldn't set your BT headset as a Profile. Instead, just use simple Tasks that would auto-adjust your volume, display brightness, display timeout, lock, etc. And set your Profiles as Home, Work, etc. and make them all auto, based on anything, i.e. near a certain wifi.
Sent from my Note8
cableghost said:
You could use variables. You could set a certain variable when work Profile active, and when you disconnect the BT, check for that variable to set work Profile as Active again.
Personally, I wouldn't set your BT headset as a Profile. Instead, just use simple Tasks that would auto-adjust your volume, display brightness, display timeout, lock, etc. And set your Profiles as Home, Work, etc. and make them all auto, based on anything, i.e. near a certain wifi.
Sent from my Note8
Click to expand...
Click to collapse

Categories

Resources