Toggles Using Voice - X 2014 Q&A, Help & Troubleshooting

Is there a way I can turn on/off mobile data and sync and maybe other stuff on the go with my voice?
I'm often connected to my works wifi network when in the office but when I leave, I want to be able to use my voice to turn off wifi & sync and turn on mobile data so I can get directions to get home using the power of Maps to keep me away from heavy traffic. At the moment, I have to manually unlock my phone using my PIN, use the toggle shortcuts to disable wifi and enable mobile data, then go into Settings to turn sync off. Trying to find a simpler way of doing it with just my voice to save me some time fiddling around the OS.
Is this possible?
Note: Please bear in mind that I'm not rooted and don't want to root my phone at all to achieve the above

It's not via voice, but you could look into using an app such as Locale (https://play.google.com/store/apps/details?id=com.twofortyfouram.locale). I have a similar issue, so I used Locale to automatically disable WiFi at 4:45PM (I leave work between 4:45p and 5:15p every day). There's also a Locale plugin for toggling sync: https://play.google.com/store/apps/details?id=net.andvari.android.syncsetting.
So you could setup a Locale "situation" that triggers at a specific time each day (only on the days you're at work), or you could use an NFC tag at your desk if you wanted to get fancy. Set it up so that when this situation is triggered, it disables WiFi and enables auto-sync. You could even have it automatically launch Google Maps if you wanted to make it even more smooth.
I've used Locale for years and found it's really handy for automating things that I do everyday. Here's some of my other "situations" http://rickycadden.com/2011/06/how-i-use-locale-to-automate-my-android/

I use the app Commandr. It's pretty good so far. https://play.google.com/store/apps/details?id=com.RSen.Commandr

Commandr is what I'm looking for. The ability to schedule when wifi is activated and not activated is something I already have but it's hard to schedule when my work schedule is different all the time.
I've installed and set Commandr up but not tested it yet. Hopefully it works well with Moto Voice.

Commandr didn't work properly as telling it to turn on or off mobile data doesn't do anything! Looks like it's an incomplete app or there's not proper support for the Moto X.
I've managed to put something in place using an app called Tasker. This amazing app allowed me to turn wifi and sync off when I activate my mobile data. When mobile data is disabled, the wifi and sync are turned back on. Ideally I wanted it to be done via my voice but doesn't look like that's possible.
It's also allowed me to set up a timed schedule for the wifi & GPS to turn off during the night to save myself some battery power. Very cool app!

Wutang200 said:
Commandr didn't work properly as telling it to turn on or off mobile data doesn't do anything! Looks like it's an incomplete app or there's not proper support for the Moto X.
I've managed to put something in place using an app called Tasker. This amazing app allowed me to turn wifi and sync off when I activate my mobile data. When mobile data is disabled, the wifi and sync are turned back on. Ideally I wanted it to be done via my voice but doesn't look like that's possible.
It's also allowed me to set up a timed schedule for the wifi & GPS to turn off during the night to save myself some battery power. Very cool app!
Click to expand...
Click to collapse
With a plugin called Tasker Now, you can activate any Tasker task with voice commands. I use it all of the time.

Wow that's perfect thanks!

Related

Anyone know of a widget for roaming mode?

Does anyone know of a widget I can use to switch roaming mode between "automatic" and "force roaming?" I'm running Viper 1.1 with nova launcher. I tried to dig out the settings shortcut but they dont have the option to select "mobile data." I also tried to use a nova launcher "activity" but I couldn't find that shortcut either- I dont think mobile data is a usable activity. I have beautiful widgets installed but you cannot set up a switch for that.
I'm thinking it would need to be a specific app cause none of the other routes I've tried has yeilded a workable solution (currently I have a settings shorcut and I navigate to mobile data, select roaming and then force it... booo)
...My apartment is perfectly placed that its too weak for receiving calls on sprint signal but not quite weak enough to reliably switch to roaming (full bars roaming and able to receive calls) Its really annoying and I've missed a ton of calls because of this. (I did talk to sprint about an airave and they want to charge $10 a month for access...ONTOP of buying the damn thing... to augment their ****ty signal? Get real.)
super annoying.
Roam Control does a great job, although I'm guessing you don't really want to buy an app that essentially duplicates your ROM's functionality.
Rirere said:
Roam Control does a great job, although I'm guessing you don't really want to buy an app that essentially duplicates your ROM's functionality.
Click to expand...
Click to collapse
I actually had looked into that app but it didn't seem to fit what I was looking for... I'll check it out again
I just downlaoded "secure settings" and in that app I enabled "helper" (root required). Then you can press and hold on the mainscreen to make a "shortcut" and select secure settings, then you can select "data roaming" in the helper menu which is now enabled. Then you'll have to download an Icon pack (free) which the app directs you too (there are tons to match just about any theme). You can name the widget, pick the icon, save and...
...It didn't work. I'm going to keep working at it... Will update if I find anything.
CarbolDroid said:
I actually had looked into that app but it didn't seem to fit what I was looking for... I'll check it out again
I just downlaoded "secure settings" and in that app I enabled "helper" (root required). Then you can press and hold on the mainscreen to make a "shortcut" and select secure settings, then you can select "data roaming" in the helper menu which is now enabled. Then you'll have to download an Icon pack (free) which the app directs you too (there are tons to match just about any theme). You can name the widget, pick the icon, save and...
...It didn't work. I'm going to keep working at it... Will update if I find anything.
Click to expand...
Click to collapse
Roam Control comes with a pretty simple 4x1 widget that lets you toggle between Home, Automatic, and Roaming. That's the end of that as far as Roam Control's widgets go. You can also create a Tasker task to toggle Roam Control and use Tasker's widgets if you want.
Secure Settings is great, but Data Roaming is not at all what you want. Data Roaming simply allows you to use mobile data (3G/4G) when you're already on a roaming provider.
Tasker and Roam Control together come close to $10 (at least, they did when I picked them up-- I think that Tasker now is actually $3.49), but I now have a profile that checks every half hour for the phone's service state. If the signal received is below a certain threshold (10% of optimum), the phone switches to roam, so long as a call is not active. If you get Roam Control and it works for you (can't see why it wouldn't, it does for me), I can package my profile as a separate APK and send it to you for use.
CarbolDroid said:
Does anyone know of a widget I can use to switch roaming mode between "automatic" and "force roaming?" I'm running Viper 1.1 with nova launcher. I tried to dig out the settings shortcut but they dont have the option to select "mobile data." I also tried to use a nova launcher "activity" but I couldn't find that shortcut either- I dont think mobile data is a usable activity. I have beautiful widgets installed but you cannot set up a switch for that.
I'm thinking it would need to be a specific app cause none of the other routes I've tried has yeilded a workable solution (currently I have a settings shorcut and I navigate to mobile data, select roaming and then force it... booo)
...My apartment is perfectly placed that its too weak for receiving calls on sprint signal but not quite weak enough to reliably switch to roaming (full bars roaming and able to receive calls) Its really annoying and I've missed a ton of calls because of this. (I did talk to sprint about an airave and they want to charge $10 a month for access...ONTOP of buying the damn thing... to augment their ****ty signal? Get real.)
super annoying.
Click to expand...
Click to collapse
Another way to go assuming you have a wireless router, setup Google voice and download groove ip from Google play and you can use WiFi to make and receive calls when you are home
Sent from my HTCONE using xda premium
Rirere said:
Roam Control comes with a pretty simple 4x1 widget that lets you toggle between Home, Automatic, and Roaming. That's the end of that as far as Roam Control's widgets go. You can also create a Tasker task to toggle Roam Control and use Tasker's widgets if you want.
Secure Settings is great, but Data Roaming is not at all what you want. Data Roaming simply allows you to use mobile data (3G/4G) when you're already on a roaming provider.
Tasker and Roam Control together come close to $10 (at least, they did when I picked them up-- I think that Tasker now is actually $3.49), but I now have a profile that checks every half hour for the phone's service state. If the signal received is below a certain threshold (10% of optimum), the phone switches to roam, so long as a call is not active. If you get Roam Control and it works for you (can't see why it wouldn't, it does for me), I can package my profile as a separate APK and send it to you for use.
Click to expand...
Click to collapse
Thank you! I'll have to look into tasker, I could only find "not roam control" in the market, Is RC only availible via paypal on the devs website? I keep hearing about tasker and it sounds like a powerful tool that I really need to look into. I'll take a look at it and see if I cant figure it out, I may end up taking you up on your offer- I'll let you know.
*edit* looks like RC keeps getting pulled from the market... I'll look into it further. weird.
What you said about secure settings was a thought I had in the back of my mind after it didn't work... to bad, but still a nice little utility.
josh030181 said:
Another way to go assuming you have a wireless router, setup Google voice and download groove ip from Google play and you can use WiFi to make and receive calls when you are home
Sent from my HTCONE using xda premium
Click to expand...
Click to collapse
This had crossed my mind as well, thank you for the suggestion
CarbolDroid said:
Thank you! I'll have to look into tasker, I could only find "not roam control" in the market, Is RC only availible via paypal on the devs website? I keep hearing about tasker and it sounds like a powerful tool that I really need to look into. I'll take a look at it and see if I cant figure it out, I may end up taking you up on your offer- I'll let you know.
*edit* looks like RC keeps getting pulled from the market... I'll look into it further. weird.
What you said about secure settings was a thought I had in the back of my mind after it didn't work... to bad, but still a nice little utility.
Click to expand...
Click to collapse
Unfortunately so, after Google pulled Roam Control from the market. And Tasker has a learning curve, but it's incredibly rewarding once you learn to use it-- and it's much less complicated than many people make it sound. If you choose to use Roam Control, let me know and I can package up my roam check routine (it'll work without Tasker).
CarbolDroid said:
This had crossed my mind as well, thank you for the suggestion
Click to expand...
Click to collapse
GrooVeIP is an excellent program, but holding an open Wi-Fi connection can be a hit to your battery life, and no matter what codec I used the other party always felt I sounded a bit hazy. But it certainly is a good option if you're in a signal-less area for long periods of time (especially in teh basement of buildings).

Open issues to be solved

Just thought it was a good idea to open a thread with "issues" to be solved or things we want to get working on the Gear. I myself have a thing of two that I want to solve. For this I searched through some threads, saw some people mention the problems but never found a solution (although apparently other people were working on it to).
Because I like to be part of the solution but don't want to reinvent the wheel I thought it is maybe a good idea to sum some things up that need a solution in one thread.
Basic thing that I'm looking for and not sure if it is solved is
enable/disable BT tethering with just one tap (so to speak). Ideally automagically when opening an app that needs an internet connection
(If the problem isn't solved I was thinking to write an app for this)
(Reserved : list with open issues )
Id love someone to be able to rewrite the newest gear manager to work with people not on 4.3.
Or someone to get the things not working on 4.2 like weAther etc.
A native sms app that syncs with the phone properly. or get tablet talk to display names.
appelflap said:
enable/disable BT tethering with just one tap (so to speak). Ideally automagically when opening an app that needs an internet connection
Click to expand...
Click to collapse
Very easy with Tasker & Bluetooth Auto Connect.
Iv set up so if my device is locked & the screen is off for 30 seconds, it will disable bluetooth tethering for battery reasons. Iv also setup so if I slide two fingers up on my Novalauncher homescreen it will enable bluetooth tethering. Alternatively you can also enable a launcher shortcut which will execute the task.
You can also setup so bluetooth tethering will automatically be activated when launching certain applications.
If you need further instructions, dont hesitate. Tasker can be a little intimidating at first if this is your first time using it.
I'd quite like to be able to swipe away notifications, both individually and per app. Currently it's a bit of a hassle..!
fOmey said:
Very easy with Tasker & Bluetooth Auto Connect.
Iv set up so if my device is locked & the screen is off for 30 seconds, it will disable bluetooth tethering for battery reasons. Iv also setup so if I slide two fingers up on my Novalauncher homescreen it will enable bluetooth tethering. Alternatively you can also enable a launcher shortcut which will execute the task.
You can also setup so bluetooth tethering will automatically be activated when launching certain applications.
If you need further instructions, dont hesitate. Tasker can be a little intimidating at first if this is your first time using it.
Click to expand...
Click to collapse
I've never used tasker before. Maybe worthwhile to dive into it.
Also played with Bluetooth Auto Connect. I used it to maintain a connection. (But concluded very quickly that that will drain the battery of the Gear like hell LoL). Where do you use Bluetooth Auto Connect for in this scenario? I mean,if I understand you correctly everything can be done with Tasker.
appelflap said:
I've never used tasker before. Maybe worthwhile to dive into it.
Also played with Bluetooth Auto Connect. I used it to maintain a connection. (But concluded very quickly that that will drain the battery of the Gear like hell LoL). Where do you use Bluetooth Auto Connect for in this scenario? I mean,if I understand you correctly everything can be done with Tasker.
Click to expand...
Click to collapse
Bluetooth auto connect works as a plugin for tasker also, so you can incorporate bluetooth auto connect functions in your tasks.
You must get tasker, its a device changer.. both phone & gear.
fOmey said:
Bluetooth auto connect works as a plugin for tasker also, so you can incorporate bluetooth auto connect functions in your tasks.
You must get tasker, its a device changer.. both phone & gear.
Click to expand...
Click to collapse
Downloaded tasker. That's a f**ing brilliant app!
appelflap said:
Downloaded tasker. That's a f**ing brilliant app!
Click to expand...
Click to collapse
Its great isn't it.. opens up so many possibility's.
I'd also quite like to have 2 finger double tap to show recent apps and 2 finger long press to show battery info.
i would love to have double tap on the watch to wake.
fOmey said:
Very easy with Tasker & Bluetooth Auto Connect.
Iv set up so if my device is locked & the screen is off for 30 seconds, it will disable bluetooth tethering for battery reasons. Iv also setup so if I slide two fingers up on my Novalauncher homescreen it will enable bluetooth tethering. Alternatively you can also enable a launcher shortcut which will execute the task.
You can also setup so bluetooth tethering will automatically be activated when launching certain applications.
If you need further instructions, dont hesitate. Tasker can be a little intimidating at first if this is your first time using it.
Click to expand...
Click to collapse
fOmey do i only need tasker on the phone in order to do that? The way i am manually doing it is i first enable tether on the phone ands then dive into the full settings on the Gear.
If the phone stops tethering then the Gear option automatically gets unticked, but it does not work the other way around.
I have tasked installed on both phone and gear. Could you please provide some instructions?
Also, have you checked Atooma? I have it both on the S4 and the Gear and i can do stuff on the phone with three triggers from the watch:
1) Horizontal movement
2) Vertical movement
3) Photo taken
Does tasker integrate with the watch the way Atooma does?
Thanx again for everything you have done.
YOU ARE THE MAN!
I'd like to be able to scroll down and see a playlist and pick a song
Sent from my SAMSUNG-SM-N900A using xda premium
Functionality improvement - (we just need a piece of software for that) - to display on the GEAR atmospheric pressure, humidity, temperature - all of those sensors are in NOTE3

Bluetooth Tether/Internet

I am going to have a play with htis tonight using Tasker and Secure Settings as Secure can turn blue tooth tether on or off.
What im looking for as an example I have one page of my Gear with a todo app called Google Tasks Organizer, this app in my opinion is far superior than any other one out there now, I want it to sync with the web based setup say every hour, reason for this is leaving the bluetooth internet on permanently will use more battery, this way once an hour it turns on and syncs, I have installed Tasker successfully on the gear
I'd really love something like this.
Enabling the bluetooth tether on the phone and watch for say 5 mind (or X mins) every hour or something would be awesome.
Edit: I'm sure I read somewhere that fOmey had a tasker script to enable bluetooth tether when the watch screen was on or something, but it caused massive wake locks on the phone..
Sent from my GT-N7100 using Tapatalk
le3ky said:
I'd really love something like this.
Enabling the bluetooth tether on the phone and watch for say 5 mind (or X mins) every hour or something would be awesome.
Edit: I'm sure I read somewhere that fOmey had a tasker script to enable bluetooth tether when the watch screen was on or something, but it caused massive wake locks on the phone..
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
i can see a need, i did come across a thread using apps but rather use tasker
I've been using Tasker on the GEAR and the watch to auto-tether...
The one thing I cannot find is the Tasker (or Secure Setting ) setting, once tethered/paired, to switch on the Internet Access
under "Paired Device, Settings, Profiles "internet Access" to enable the GEAR to actually automatically connect to the internet
Tethering is easy, but you have to tick a box to get the paired device to use the Internet Access and I'm struggling to do that in Tasker...
Any tips ?
kashortiexda said:
I've been using Tasker on the GEAR and the watch to auto-tether...
The one thing I cannot find is the Tasker (or Secure Setting ) setting, once tethered/paired, to switch on the Internet Access
under "Paired Device, Settings, Profiles "internet Access" to enable the GEAR to actually automatically connect to the internet
Tethering is easy, but you have to tick a box to get the paired device to use the Internet Access and I'm struggling to do that in Tasker...
Any tips ?
Click to expand...
Click to collapse
cant seem to get Secure settings to enable tethering on the phone, setting this up first
https://play.google.com/store/apps/details?id=de.refluxa.android.bat&hl=en
problem with this app being free you get adds.... not good to have on the phone or the watch as they suck bandwidth and power
Tasker wont do it by itself you need secure settings and install the helper
NZ_Nitro said:
cant seem to get Secure settings to enable tethering on the phone, setting this up first
https://play.google.com/store/apps/details?id=de.refluxa.android.bat&hl=en
problem with this app being free you get adds.... not good to have on the phone or the watch as they suck bandwidth and power
Tasker wont do it by itself you need secure settings and install the helper
Click to expand...
Click to collapse
I've got Secure Settings and Helper already and the Tasker auto tether working 100% .... I'm just struggling to get the paired device (GEAR) to automatically enable Internet Access ( ie tick the box on the GEAR to enable Internet Aceess under Profile (on the GEAR )
kashortiexda said:
I've got Secure Settings and Helper already and the Tasker auto tether working 100% .... I'm just struggling to get the paired device (GEAR) to automatically enable Internet Access ( ie tick the box on the GEAR to enable Internet Aceess under Profile (on the GEAR )
Click to expand...
Click to collapse
I see what you are saying, not sure about that one
NZ_Nitro said:
I see what you are saying, not sure about that one
Click to expand...
Click to collapse
I wonder how much power leaving it tethered or internet on actually uses?
well that failed... secure settings wont work on the watch
going to try this one for the PHONE and this one on the WATCH
NZ_Nitro said:
I wonder how much power leaving it tethered or internet on actually uses?
Click to expand...
Click to collapse
A lot in my experience.. Without internet tethering enabled I end up with about 60% left at end of day. With it enabled, the watch dies before I leave work
I have some example tasker profile stuff here:
http://forum.xda-developers.com/showthread.php?t=2542050
Brendo said:
I have some example tasker profile stuff here:
http://forum.xda-developers.com/showthread.php?t=2542050
Click to expand...
Click to collapse
Hi Brendo, yes already installed your stuff, was looking if you could avoid the apps but it seems you cant

[TASKER] Looking for some tasker profile ideas. Post your tasker profiles here!

So I just discovered the magical world of tasker, and am loving it! Totally worth the money, and one of the best apps to have (the best if you know how to maximise its use)! I have been experimenting a bit with it, so I don't have many profiles. I'm sure many folks here will be using tasker and would be having some great profiles, so I'm looking forward to hearing some suggestions! The profiles I use are:
1. WiFi off at night, from 00:45 to 08:00, except WhatsApp, Play Store, Quora
2. Airplane mode at night, from 00:30 to 07:00
3. Use of interactive CPU governor when using Real Racing 3, and revert to lionfish governor after exiting app(Kernel adiutor profiles do this for me). I also added a condition to use auto-rotate when playing the game, and revert to portrait orientation after closing the app.
4. Auto-sync every two hours, from 08:00 to 20:00 (I would like to improve this to auto-sync only Gmail, would welcome suggestions on how to do this from any tasker experts out here )
I would love to implement more profiles and automate my phone, so looking for ideas.
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Nothing very fancy for me - right now just have it turning on my wifi hotspot when it detects my car's bluetooth connection so my stereo can use the internet.
It sounds like you are taking it pretty far, @varunadi. You should check out https://www.reddit.com/r/tasker for more cool ideas.
koimr said:
Nothing very fancy for me - right now just have it turning on my wifi hotspot when it detects my car's bluetooth connection so my stereo can use the internet.
It sounds like you are taking it pretty far, @varunadi. You should check out https://www.reddit.com/r/tasker for more cool ideas.
Click to expand...
Click to collapse
Yep, I am looking to maximise the use of this app, so thanks for that link, will check it out!
anks095 said:
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Click to expand...
Click to collapse
I'm still finding my way around tasker, reading a lot of tutorials so once I figure it out I'll let you know.
anks095 said:
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Click to expand...
Click to collapse
I don't know if you can disable mobile data entirely (not just background which Android can do already) for just certain apps.
Perhaps it would be easier to use something like Netguard.
I've never used it but the description says "Applications can individually be allowed or denied access to your Wi-Fi and/or mobile connection."
koimr said:
I don't know if you can disable mobile data entirely (not just background which Android can do already) for just certain apps.
Perhaps it would be easier to use something like Netguard.
I've never used it but the description says "Applications can individually be allowed or denied access to your Wi-Fi and/or mobile connection."
Click to expand...
Click to collapse
Can't the secure settings plugin be used for that purpose? Toggle data on/off I mean.
varunadi said:
Can't the secure settings plugin be used for that purpose? Toggle data on/off I mean.
Click to expand...
Click to collapse
I was actually going to suggest that as I have it installed already but when I tried it didn't work.
The "Mobile data" toggle was unavailable because it claims I don't have root. However, I'm definitely rooted and there's no listing (saying denied or otherwise) in SuperSU for Secure Settings so it didn't even ask for root. I'm not too surprised as SS hasn't been updated in over a year and a lot of the Play Store comments mention mobile data toggle specifically not working either (among other things). Too bad as it was pretty powerful and of course I think I paid for it right after its last update.
Not getting SS working for me might just be my problem and perhaps someone else can get it going.
I was also going to suggest [APP][2.2+][ROOT] Toggle Data 5.0 (xda-exclusive free version) but then I read more about what @anks095 said which was "can disable my mobile data only for some specific apps" so I'm guessing he just wants certain apps restricted and not all (although the next sentence seems to say otherwise but I might be reading it incorrectly). I'm not too sure that can be done via Tasker/SS - my guess is that it's an "all-or-nothing" kinda thing for mobile data so the VPN thing might be the only way.
I use a similiar app called automagic but some of the things that I got my tasker like program to do are: lockscreen enable/disable through wi-fi at trusted places (don't like geofencing due to battery), when connected to the bluetooth of my car. Auto silent 5 min before a meeting, but if not connected to my smartwatch then vibrate. And lastly sms emergency location request where my family can send a keyword and my phone will automatically send location.
joeanca said:
I use a similiar app called automagic but some of the things that I got my tasker like program to do are: lockscreen enable/disable through wi-fi at trusted places (don't like geofencing due to battery), when connected to the bluetooth of my car. Auto silent 5 min before a meeting, but if not connected to my smartwatch then vibrate. And lastly sms emergency location request where my family can send a keyword and my phone will automatically send location.
Click to expand...
Click to collapse
How is the lockscreen one working for you? I find the built-in SmartLock to be really unreliable but when I tried to do lockscreen stuff before (last year) there was some bug in either Tasker or Secure Settings that would sometimes keep your screen black with just the nav buttons visible present. I'll have to re-try now.
That sms emergency request thing sounds cool! Can the recipient open the location in Maps to see exactly where you are?
Without issues I set it so that it clears the password. Makes it so that I have to swipe to unlock. As for the location, yes it sends coordinates and the user in the other end taps it to bring up Google maps.
Sent from my XT1563 using Tapatalk
joeanca said:
Without issues I set it so that it clears the password. Makes it so that I have to swipe to unlock. As for the location, yes it sends coordinates and the user in the other end taps it to bring up Google maps.
Sent from my XT1563 using Tapatalk
Click to expand...
Click to collapse
Thank you very much - clearing the password was the key! I had been trying before to disable the keyguard entirely so I wouldn't even have to swipe but that's where the problem/bug came in. Thinking about it that makes more sense to have at least a swipe because I'd end up calling people from my pocket by mistake. So thanks again!
Tasker...hmmm. Bought it, but much to complicated for me. Macrodroid is much easier to understand and can also do complicated automation with a normal user friendly interface. I tried to like Tasker, but the more and more I tried the more stupid I felt.

Bluetooth status dependent tasks?

Hi everone,
I am quite new to tasker and I am trying to manage the following:
1. If my phone connects to my car via bluetooth it should enable wifi tethering
2. Once I leave the car and it disconnects it should disable tethering and enable the ordinary wifi again
However, when I leave my car it automatically disables tethering but it does not additionally enable wifi.
I have one profile (bluetooth connection to car) and one task (enable tethering).
I tried adding a decond task enabling wifi, but that will then disable tehtering and stop the first task.
I tried adding a second profile that enables wifi when not connected to car. But that then aaaalways enables wifi even if i manually disabled it.
Tasker automatically disables tethering once the original profile condition no longer applies. But how do I also make it reinstate the wifi status?
Sorry if this sounds too nooby
Could you possibly export the profile and task as an XML file and share it?
Sent from my Nexus 5X using XDA-Developers mobile app
Of course
I think you've done a full backup of your Tasker. I can't import that without overwriting all my data
Instead, export the individual profiles. Tap and hold the profile to highlight, tap the menu button, export.
Sent from my Nexus 5X using XDA-Developers mobile app
Sorry about that
Here's the profile itself.
I tried adding a wifi on/off switch but that will not reinstate the wifi state it had before the profile jumped into action.
Of course I would like tasker to reinstate the wifi status my phone had before the car connected. So off if off and on if on.
Try this
I uploaded the XML file here
https://drive.google.com/file/d/0B8uRFO5wFVFKNW42cnpNOHl0UlU/view?usp=drivesdk
Tasker will set a variable %WIFI_STATUS recording the current wifi status, then enable the hotspot. I then added an exit task which should trigger once your phone disconnects from the car's bluetooth, disconnecting the hotspot and re-enabling wifi if %WIFI_STATUS was set to "on".
Thank you
Would you mind uploading it here instead of google drive? I cannot access it there.
Sure thing. Attached.
Thank you very much!
I have not figured out how you created the second step (red arrow) yet, but I will soon, hopefully
It seems to be working except that sometimes the second step of turning off the tethering and re-enabling the wifi won't work. Maybe this was just a thing of how fast I turned the radio back off. I will try a real life test over the next few days
Most welcome!
Here's how to create an exit task (red arrow)
https://youtu.be/xbB3INzOz1M
You can find more details here.
http://www.pocketables.com/2013/05/beginners-guide-to-tasker-part-1-5-tasker-basics-new-ui.html
Pocketables' 8 part guide is excellent if you have the time you go through it.
As for wifi not always re-enabling, I would suggest increasing the wait time on the exit task from 3 seconds to 5 or even 10. Android automatically disables wifi when you activate tethering, so I figured you would need give the task enough time to be sure the tethering is fully deactivated before enabling wifi again.
I have found that the problem is in fact tether not disabling.
I am trying to write a If task. At the end of which I added a For loop checking whether or not the variables are identical and if not a Goto will jump back to the beginning... or so I hope ^^
OK, now that I have this running, the final remaining problem is the fact that tasker has to run in foreground. otherwise it will not work reliably. is there a way around this?
this issue seems to mainly concern the exit task. the starting task almosz always works but the exit task does not.
is it possible to enable tasker foreground on the starting task and then disable it in the exit task?
edit: i thought of a temporary workaround
since for some reason the starting tasks always work, I end those with opening tasker^^
since I'm driving I do not really care if it is open or not. and the exit task then closes it so it is gone by the time I use my phone again
but if you or anybody knows of a cleaner solution, I would be happy to give it a try
Why don't you want Tasker to run in the foreground? I've never had any noticeable battery drain from leaving that setting on (Preferences > Run in foreground). I've been using Tasker for years and never had to open the app in order to guarantee tasks would run.
If you're on marshmallow you may need to disable Doze for Tasker though, because that can occasionally interfere with the app too.
Are you sure the exit task isn't running at all? I'm assuming you've tested this by having Tasker do something menial at the start of the exit task such as display a notification.
Sent from my Nexus 5X using XDA-Developers mobile app
The problem with running in foreground is that you always have the two lines
"Tasker
1 profile active"
in the dropdown menu. Like a permanent norification. Unless one can disable this dropdown notification and basically just keep the icon, I do not really like it running in foreground.
P.S.: Yes, I made sure the exit task was not running.

Categories

Resources