Hey guys. I have two different power saving profiles that I use for home and work to turn on/off Autosync. My work-profile does not work properly, and I think it has to do with the repeating option in the time context. My home-profile works perfect, and the only difference between these profiles is that the repeat-interval is much shorter in my home-profile. Sometimes the work-profile fires, sometimes not. I tried experimenting with the repeat-interval and if I change it to 10,15 or 20 minutes (for example) it works every time. This is why I am pretty convinced it has to do with the repeat-interval.
This is how my work-profile looks like. The other contexts (Wifi connected and weekdays) are always activated when I test the profile, so they are not the issue.
{
"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"
}
My home-profile has repeat-interval of 20 minutes, and that works as I said flawless.
Has anyone else experienced any problems using longer intervals with repeating contexts, or could it be anything else?
Repeating time context seems to be an issue on Samsung devices running Android 5.1 ->, in THIS thread there is a lot of people with exatcly the same issue.. Not good.
Did you already try activating the option "Use Reliable Alarms" in settings/preferences/monitor?
This feature solved the problem with my time context profiles on MM occasionally not activating.
Also it's best to exclude Tasker and Secure Settings in Battery Optimization feature of MM.
GrippingSphere said:
Did you already try activating the option "Use Reliable Alarms" in settings/preferences/monitor?
This feature solved the problem with my time context profiles on MM occasionally not activating.
Also it's best to exclude Tasker and Secure Settings in Battery Optimization feature of MM.
Click to expand...
Click to collapse
I have not activated Reliable alarms, I will look into this! I have already excluded Tasker and Secure Settings (and all other plugins I use for Tasker) from Doze though.
I tried a different solution yesterday though, to only have a single context (State) since the Time context seems to be the problem;
State -> connected to work-Wifi.
Action 1 -> Sync ON
Action 2 -> Wait 5 min
Action 3 -> Sync OFF
Action 4 -> Wait 2hours
REPEAT ALL ACTIONS FOUR TIMES
EXIT TASK - > Sync OFF
In this way I get the same result since it covering the hours I am at work. The same could be done when connected to Home-Wifi but with a lot more repeats. Since the Task only will activate when connected to Wifi (and end when disconnected) I don`t need any specific hours when the Profile should run. So this should work in the same way..
Anyway, I will try your suggestions as well and see if it fixes the issue.
Thanks!
GrippingSphere said:
Did you already try activating the option "Use Reliable Alarms" in settings/preferences/monitor?
This feature solved the problem with my time context profiles on MM occasionally not activating.
Also it's best to exclude Tasker and Secure Settings in Battery Optimization feature of MM.
Click to expand...
Click to collapse
Tried set ``Use Reliable Alarms´´ to ``Always´´, but dint work. Repeat works the first 1-3 times but after that it will stop or only activate the task sporadically. I think I have some serious bug in Tasker since this is not the only issue I have for the moment. Will probably try to reinstall and load a older backup and see what happens..
Problem solved. See HERE for info.
Related
Getting Started With Tasker
Many of us have probably had a similar experience with the first time we used Tasker. We download the app, take our clothes off, get into bed and then realize we just aren't ready for this. So I thought I'd put together a small getting started guide for Tasker.
What is Tasker?
Tasker is an Android app that allows you to create automated tasks that are triggered based on selected circumstances... Ok that's already confusing so let me give you an example. I can program tasker to open up my shopping list every time my GPS location shows that I'm at the grocery store. I can also program my phone to to lock my texting app when I go to sleep so my girlfriend doesn't snoop through my phone. Now all I need is a girlfriend.
First be sure to download the app from the Play store.
{
"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"
}
Scenes
Scenes are user interfaces that you can create in Tasker. Think of a scene as a box that contains various elements that you would normally find in an app interface, like buttons, text, text input, images, sliders, and so on. Normal Tasker actions can be tied to these elements, so that you can have a button that runs a task, a text field that lets you write text to a variable, or a slider that controls screen brightness.
Scenes can be all kinds of sizes, and be displayed in different ways: As a pop-up box, full screen like an app, as an overlay over another app, and so on. The size and type of scene depends on what you need the scene to do. I will quickly go through the basics of creating a scene, and then I will go through multiple examples at the end to show how everything works in practice and for different uses.
Tasks
Tasks are a set of customized actions. You can create tasks like "If the battery is below 50%, mute volume." Creating tasks is usually the part where most people give up. After all it looks like you're solving advanced algebra problems. Stick with it and mess around with it until you get the hang of it.
Profiles
Profiles are conditions that will trigger your tasks that you've created. I can create a profile that will trigger my mute volume task that I created above to only activate on the weekends. So then I know that every Saturday and Sunday my volume will mute if my battery is below 50%.
These settings will also take a bit to get used to. Don't worry, you wont hurt anything by messing around with them until it all makes sense.
This will get you started to the point where you can create your first automated task. Just start simple and then experiment with more complex tasks.
I think that I know a way to accomplish what I am looking to do but it would require several profiles and several tasks. I'm new at this so I'm still working on wrapping my head around how tasker thinks and what it takes to get from point A to point B. I'm not looking for a step by step how to but more 1) to know if what I am trying to do is even possible 2) some pointers to get me pointed in the right direction if it is.
What I'm trying to accomplish, is a work profile that connects to wifi (that is the easy part) but then between the hours of say, 6 and 8, turn the volume down, turn the volume back up at break, turn the volume back down after break until 11am for lunch, turn it back up at lunch, and then back down for the remainder of the work day. What I am hoping, is that there is a way to create a task that allows me to turn the volume down if the time is between x and x or x and x or x and x.
Create two tasks. Task1 will put your phone on vibrate. Task2 will take phone off vibrate.
Create profiles for the time you want on vibrate calling for task1. On the profile you created, long-press the task and select an exit task. This will be task2.
Do this for all times you want using the same tasks.
Here is an example of how it should look...
{
"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"
}
Thanks! That was exactly what I had done. I was just wondering if inside of the tasks themselves, you could set up time frames to do the specific tasks.. Its probably not an intelligent way to think or go about it.. I was just curious.
pulgoki said:
Thanks! That was exactly what I had done. I was just wondering if inside of the tasks themselves, you could set up time frames to do the specific tasks.. Its probably not an intelligent way to think or go about it.. I was just curious.
Click to expand...
Click to collapse
Well as long as it is all set to specific lengths of time, you could use task/wait and have the task actually running all day. But I don't know what that would do to battery life...
Can't you do it by time and have conditions? For example
IF %TIME > 07.59 And %TIME < 09.00
ELSE %TIME > 08.59 And %TIME < 10.00
ELSE %TIME > 09.59 And %TIME < 11.00
End if
Also just to mention the time stated in that variable seems to be 24hr format, regardless of system settings.
Hi everyone. I set up an activity that should be activated with the location via GPS and the network. however it does not work even if they are in the exact position. Could someone tell me if these functions on the position work immediately and with the screen off or is it useless that I continue to study? thank you
Yeah, it works. I use it every day.
Can you explain your profile? Maybe I can help.
aleavenger said:
Yeah, it works. I use it every day.
Can you explain your profile? Maybe I can help.
Click to expand...
Click to collapse
please help me:
i have the necessity to open google assistant and then play a media of a command with my voice. this when i arrive near my door elecric automatic that opens with a scene of IHC app (broadlink). i already tested the command and it works. now i set the tasker so:
in profiles i set position (network and gps) set at 30 mt. range.
in activity i set: open app (google assistant) and play media (my registration vocal)
when i execute the activity voices all work, but if i go near the door nothing execute.....
perhaps i wrong something, please can you help me step by step?
i hope and thank you
myabc said:
please help me:
i have the necessity to open google assistant and then play a media of a command with my voice. this when i arrive near my door elecric automatic that opens with a scene of IHC app (broadlink). i already tested the command and it works. now i set the tasker so:
in profiles i set position (network and gps) set at 30 mt. range.
in activity i set: open app (google assistant) and play media (my registration vocal)
when i execute the activity voices all work, but if i go near the door nothing execute.....
perhaps i wrong something, please can you help me step by step?
i hope and thank you
Click to expand...
Click to collapse
Tasker location is not precise like that, you can try a geofence with autolocation plug-in, but you can't make it precisely activate when you are near the door. And Tasker checks locations based in configuration (check in Tasker preferences, monitor: GPS check seconds and Network location check seconds).
In your situation a NFC trigger is better.
{
"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"
}
aleavenger said:
Tasker location is not precise like that, you can try a geofence with autolocation plug-in, but you can't make it precisely activate when you are near the door. And Tasker checks locations based in configuration (check in Tasker preferences, monitor: GPS check seconds and Network location check seconds).
In your situation a NFC trigger is better.
Click to expand...
Click to collapse
NFC or auto barcode for that matter
Hi everyone
I have a weird problem, when I'm using my phone and let's say on Instagram sometimes when i refresh the feed it's just doesn't.. i doesn't say you don't have internet connection it just won't load the new posts and keeps the loading indicator rotating
Another app is Spotify when it's randomly playing songs that haven't being played before (not cached) it's stops suddenly of loading the next song and resumes after a couple of minutes
Same problem with tinder not loading the incoming messages
Only can be solved by disconnecting and reconnecting WIFI or using cellular data
My phone is fully stock with the least official update
I've checked:
Background restrictions.
When Spotify or Instagram stuck I swhich to another app say YouTube and it's perfectly working and loading, going back to Instagram and it's still stuck and not loading.
WiFi router is not far away from me so the Signal is strong.
Do you have any idea how can I solve this without resetting the phone ?
Thanks
Did it start with csd1 update?
Thanks for the reply
I actually don't remember but here's the version I'm on now
Current version: N960FXXS2CSBA/N960FOXM2CSA2/N960FXXU2CRLT
Having same issue. One UI. Has been an issue since latest update.
Sent from my SM-N960U using Tapatalk
In Android Pie v9.0 in app settings you can turn off battery optimization and it should prevent the app from being put to sleep. Maybe this may help. Or if wifi data saver is turned on this can cause issues also. There is one other menu/screen that allows you to change settings of when/why/which apps and how they are controlled by Android to save power and allows apps to be put to sleep after a certain amount of app unused time, or when it predicts that you are not normally using a particular app at a particular time. I cant seem to recall where I saw it or how I got to it but if I track it down I'll be sure to post the info because I think it may be a likely cause or fix for your issue. Only other thing I could figure it could be the modem firmware that your on is buggy and hopefully it will be fixed in a future update.
{
"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"
}
Here is what I was looking for. You go to settings>device care>tap on battery>tap three dots top right>tap settings. In there is some stuff that may help with your issue.
Thanks for the reply, I've actually already done that I've disabled all the settings related with putting apps to sleep at device care/battery which doesn't solve the issue
Yet i still have to try un-optimizing the apps surly this would lead to battery drain but let's see what happens.
I'll keep you updated with the results
So I have disabled all of power efficiency related settings in device care/battery section
And also disabled doze optimization for the effected
İ can say it's a lot better now but the issue still occurs
In miui / android it seems that at least for my device/software version configuration it's not possible to set the build in function for vpn to "always-on" while on 3rd party app's there's such an option (which is depending on a use case i would say)
i have been browsing through the web to compose a tasker task to activate the VPN option on all (or all except home) networks and could not figure out to get it working.
most people seem to be using either
- tasker send intent function
- or similar attempts with shell am start (some intent formular)
- load application function
- tasker plugins (i would appreciate not using third party plugins)
however it seemed like whatever i tried, the option never triggered.
So inside Settings > VPN
i have setup the integrated VPN called Fritz (which is working manually obviously)
as well as another APP which has VPN Capabilities but is not the case to use...
In my Screenshot here, you can find the Setting which needs to be enabled / what i want to get done with tasker
{
"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"
}
Detail Page of Build in VPN (you can see there's no always on Option)
The other App listed there has other options which give settings like "always-on", "block connection without vpn" as seen here:
Anyone has enough experience to help me out?
Looking around a bit, I think you are using the MyFRITZ!App to connect to a FRITZ!Box. Do I have that right?
I'm guessing that most of what your finding related to tasker and VPN is OpenVPN configurations. OpenVPN is programmed with Tasker integration in mind. Through tasker plugins, or by sending intents, it's possible to control OpenVPN.
I'm not finding similar integration for the MyFRITZ!App. The answer may be that you need to automate touches with AutoInput. Another option is to contact the developers of MyFRITZ!App and request intents to command the connection/disconnection which tasker could then use.
That's not the case here.
Yes myfritz app has vpn connectivity and it's properly set up, however I have also set up another vpn with the built-in vpn functions from Android. On miui this can be found on settings > Vpn .... Regardless of the myfritz app.
To demonstrate, I have uninstalled myfritz.
As seen in my screenshot the built-in settings are still available.
On miui the settings package seems to be available on android.net.vpn.settings which seems to be used in tasker with intents for other vpn clients such as vpncilla.
However it's not clear how tasker could access the toggle switch by intent.
I have no tasker plugin yet so if I had the choice I would want to get it done by intent or shell.
Gesendet von meinem MI 9 mit Tapatalk
I think the only solution is a possible work around using openVPN to access your VPN provider's servers. Then you can use an intent or plugin to manage OpenVPN.
Tasker can't manage what it doesn't have access to.