Hello guys, despite having bought this app for years, I never used it because I was never able to create simple sound profiles.
I'd like to create basic timer tasks like:
- at 23h59 every day, enable DND
- at 7h30 on MTWTF, disable DND, volume at 1, no vibrate mode
+ other tasks based on week day and time of the day.
The thing is, with Tasker, it looks like you have to put an end to a time schedule, but I don't want that. I just don't know when it will ends. If I keep only "from" and don't enable "to", it just goes to midnight, which I don't want.
I wan't a profile to do a one time action at a given time, no end. Is there a way ?
Feel free to answer even in 1 year, I'm sure it would allow me to use this app.
Just use a time profile to set a variable. Then use the variable as the context to trigger the task. You can use a non-time related method (e. g. a widget) to clear the variable to end the task.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
But I don't want to use a widget to end a task. I just want an action to be done at a precise time and that's it.
Nojevah said:
But I don't want to use a widget to end a task. I just want an action to be done at a precise time and that's it.
Click to expand...
Click to collapse
So you want the task to run at a specific time every day? Set the time context start and end times to the same time. It will run every day at that time.
By the way, all of this type of information is available on how to use these contexts and actions in the online [URL="http://tasker.dinglisch.net/userguide/en/" ]user guide[/URL]. Specifically, what I just posted above is on the [URL="http://tasker.dinglisch.net/userguide/en/timecontext.html" ]profile - > time context page [/URL], at the end under notes.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
I've tried this, but it does not work !
If I set a rule: at 07:30 use vibrate mode (with end at 7:30), it will put the phone in vibrate mode (btw it does not always work since tasker is late sometimes and miss the right time and will trigger at 07:32 but that's another problem).
Then at 07:31, it will remove vibrate mode. I never asked for this, but it considers that at 07:31 it has to stop profile and so it has to remove vibrate mode, surely because it considers it was not in vibrate mode before 07:30.
Nojevah said:
I've tried this, but it does not work !
If I set a rule: at 07:30 use vibrate mode (with end at 7:30), it will put the phone in vibrate mode (btw it does not always work since tasker is late sometimes and miss the right time and will trigger at 07:32 but that's another problem).
Then at 07:31, it will remove vibrate mode. I never asked for this, but it considers that at 07:31 it has to stop profile and so it has to remove vibrate mode, surely because it considers it was not in vibrate mode before 07:30.
Click to expand...
Click to collapse
Ok, now we get to the real problem. Long press the profile so it is highlighted then tap the gear icon top, right. Unchecked restore settings.
As far as accurate times, preferences -> monitor -> reliable alarms -> always.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Wow, thanks for this ! I don't know why it's in a hidden setting in "advanced mode", since I prefer to use beginner mode but if it works, I'm fine with this. I'll create my profiles again soon with this new setting.
Concerning "reliable alarms", I had tried this, but it adds an alarm icon in the notification bar, and I don't want that. But that's not a problem, now that I know how to prevent settings to change when profile ends, I'll use a 5 minutes delta between beginning and end.
Thanks for your patience and your useful help !
If you run in beginner mode, you should preface your questions with that info. It limits the things you can do.
As far as the status bar icon goes, in preferences -> monitor, make sure "run in foreground" is checked, set reliable alarms to always and then uncheck "show notification icon".
Is possible you have to take the additional steps described in the pop-up that appears. It's also possible, depending on device and OS, that the Tasker notifications for tasks will also be hidden.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Nojevah said:
...
I'll use a 5 minutes delta between beginning and end.
...
Click to expand...
Click to collapse
If what you mean by this comment is the end time of the profile context will be set 5 minutes after the start time, and you have an exit task, the exit task will run at the end time. The only way to make a time context instantaneous is for the start and end times to be identical.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
This 5 minutes delta is for Tasker to trigger the task, since sometimes it misses the precise time.
For example, if I put
"From 7:30 To 7:30" -> Vibrate mode On
It won't necessarily work since Tasker will miss 7:30 (since I don't use "reliable alarm" because of the alarm clock icon in notification bar next to time). But If I put
"From 7:30 To 7:35" -> Vibrate mode On
It will work. Because Tasker might miss 7:30, but it won't miss 31 or 32 or ... 35
When 7:36 happens, profile is ended, but like it does nothing, I'm good, that's what I want !
So for now, my profiles work great, I'm happy.
That's interesting behavior. What device is this?
The only time I get a clock icon is for future alarms. I disable that in my ROM's settings. Tasker has never impacted that icon on any of my devices.
Running Tasker in foreground causes the Tasker icon to display but using the feature in preferences to disable the icon works for me.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
The phone is a Samsung Galaxy A3 2017.
Here is the clock icon in notification bar (I have the same if I set an alarm in a Clock app): https://i.imgur.com/8jBURTJ.jpg
And if I enable "run in foreground", I have an extra icon thanks to Android 8, and in notification, it's said "Tasker is running in background":
https://i.imgur.com/qJHRvb8.jpg
FWIW, there is a way to hide status bar icons using Tasker. Here a tutorial.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Related
Hi guys
Tried importing a profile which will recognise three repeat keys and trigger an action, but, unfortunately this isn't working.
I created two test profiles, one based on camera button press, another based on shake. Simple result is beep and pop-up, but even that isn't working.
I have heard about key guard and not sure if this may be related tasker is enabled, but on swipe down 'no profiles are enabled' even though all three are checked orange and should be switched on. Phone has been restarted and its still not working...
Any ideas?
Sent from my D6603 using Tapatalk
A profile is active only when it's context(s) are all meet. That's different than being enabled.
Assuming you're using tasker 5, the toggles switched to the right and colored indicate enabled. The profile name being colored indicates active. When active, the tasker notification will show the name of the profile as active.
Try a simple test. Create a profile that has a context of application -> select one app like calculator or something -> use the arrow top left to exit the app list. Now create a new task when prompted and add an alert -> popup action. Just put testing in the text field and save. Now back out of tasker using the device back button multiple times. Open calculator and a pop-up should appear. The tasker notification should show the profile as active.
Now, it's hard to know what is happening with the profiles you're attempting without more information. You should export and post the DESCRIPTION of the profile whenever asking for help with a profile or task.
Long press on the profile name -> 3-dot menu -> export -> export "DESCRIPTION" to clipboard (not XML). Then paste here.
Beginner mode must be off and the profile must be named. If you didn't name it, there will be a default name created from the first context. You need to actually name the profile by long pressing and tapping the "A" at the top.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Long story short, I have a friend who has a slight skin condition (little keratinous bumps). Much like someone who is a habitual nail biter, she will start picking at them, and will actually end up going too far and bleeding/potentially scarring.
She uses her flashlight on her phone to do it, for the contrast. She has asked me for help, to ask if there is a way for me to receive an automated notification (SMS would be preferable, but email is okay if it is easier) when she uses her flashlight on her phone.
Preferable would be "if flashlight is on for more than 30 seconds, send notification" to avoid false positives, but if it's easier to just do it every time the flashlight is on, all the better.
I know Tasker can likely do this, with plugins or without, but my first experience with Tasker was literally downloading the app and dicking around in it last night.
Any and all help sincerely welcomed.
It's not straight forward to attempt to monitor the torch state. So a quick way to do what you want is to remove the quick tile she uses to turn on the torch and replace it with one that turns the torch on through tasker.
Create a task that toggles the torch on then on the next run of the task back off again. That same task sets a variable, then on the next run clears the variable. This task gets assigned to a quick setting button or widget on the home screen.
Then use a profile to monitor the state of the variable, when the variable is set do a wait action for 30 seconds, and send the SMS. Inside the action to send the SMS, use an if statement that the variable is still set. This way of the torch had been turned off, the message won't be sent.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Hi Everyone!
On my Galaxy S9+ running Oreo, I'm getting a similar pop-up window prompt every time I press the sync button:
Turn on Auto sync
Any changes you make to your accounts on the web will be automatically copied to your phone...
I've known about this pop up window ever since my Galaxy S7 (Marshmallow), it annoys the heck out of me. However, using the same code with Tasker and AutoInput doesn't seem to automatically press OK for me like it used to. In a nutshell, an event profile with %WIN (new window, dialog window) with the label "Turn on auto sync" linked to a task to press OK using the AutoInput plugin. There were many user guides created back then about this, such as this one: http://tech-rg.blogspot.com/2016/04/disable-auto-sync-pop-up-message-on.html
Any ideas as to what internally has changed in Oreo that I need to modify to make this work now?
Thanks for your help!
Try flashing the %WIN variable at the start of your task. It's possible that had changed. There have been increasing difficulties picking up the value.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Thanks for the reply. I think this is a lost cause...after looking at the %WIN variable a bit more today, it appears this one no longer works after Google revises the accessibility service. https://www.androidpolice.com/2017/...vices-anything-except-helping-disabled-users/
From another thread...
The only things effected in core Tasker (even with the work-around in place) will be the following few actions:
Events: Button Clicked, Notification Clicked, New Window
Variables: %WIN
Actions: Long Power, Back Button, Toggle App Dock, Quick Settings, Show Recents, Status Bar
Have you tried going to:
Menu -> Preferences -> Monitor -> Display On Monitoring -> App Check Method and selecting "Accessibility"
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
There is so much do not disturb customization in this version of android or perhaps specific to oneplus. I am not sure which. That I'm not sure how to make this do what I'm used to it doing on my previous device LG G4. During the day I have it more or less as follows I may be forgetting some things:
Only ring if the phone call is from someone in my contacts.
Text messages always sound etc no matter who sent them.
Email always sounds.
Calendar always sounds.
What I need is the profile to silence everything while I sleep. To do this on the LG G4 I had a sleep profile from 12am to 12pm that set all volume controls to zero. And somehow though I can't remember ended that sleep profile early if I had an alarm go off during that time frame so that I could be disturbed because I was no longer sleeping after the alarm went off. The reason for the 12am to 12pm time frame was to give leeway to time going to bed and also time for waking up without an alarm. The idea was so that I didn't forget to silence things before going to be and forget to undo that once I was awake.
So typically DND settings built into android allow at least close to this level of control. I'm not sure how Oxygen OS is configured, but on a Pixel I can configure DND to ring only for starred contacts, but allow text and other notifications through. Or, silence everything.
All of that said, you should be able to manage volume levels through Tasker, reject (send to voicemail) calls that are not in your contacts.
If you import your old profile, doesn't it work on the OnePlus?
ktmom said:
So typically DND settings built into android allow at least close to this level of control. I'm not sure how Oxygen OS is configured, but on a Pixel I can configure DND to ring only for starred contacts, but allow text and other notifications through. Or, silence everything.
All of that said, you should be able to manage volume levels through Tasker, reject (send to voicemail) calls that are not in your contacts.
If you import your old profile, doesn't it work on the OnePlus?
Click to expand...
Click to collapse
Stupid me I forgot to backup my old tasker stuff so I have to start from scratch again.
In the do not disturb setting UI of the settings UI there are the following:
Toggle DND on/off: this is toggled on and is set to stay on all the time.
Behavior heading
Notifications: tapping it opens a new UI giving you some default choices for notifications in general. I have this set to no sound at all. And override DND in specific areas outside of this part of settings regarding notifications from SMS/MMS messages, email, voicemail, calendar alarms. Might be one or two I am forgetting to mention.
Exception heading
Calls: tapping here brings up settings to allow calls from (anyone, contacts only, starred contacts only, none.) I have this set to contacts only.
Messages: same detail as calls. Set same as calls.
Other sounds: toggles to allow alarms, media, and touch sounds. I have these toggled to allow.
As for the other stuff that overrides DND I accessed that setting from within each of the apps settings. Not sure if that was a redirect from the app settings to a system settings area that I'm not aware of how to get to otherwise. So what I need is a profile that will mute everything while I sleep and return to how everything is currently set. On the LG G4 I accomplished this by turning all volumes to zero for sleep and then restored them all to 100% upon either the end time trigger of the sleep profile on upon an alarm I set to get up before the end of the timeframe of the profile.
What I was wondering if this was the way to go or if a more simple toggle one setting would accomplish it. I didn't see any DND setting in the system setting for no interruptions at all despite the overrides set. What I'm thinking is the same approach as before and set media, notification, ringer, and system volumes to zero and restore to 100% at end. The part I can't remember how I did it was ending the sleep profile when an alarm goes off that I set to a time prior to the end of the timeframe of the profile. Any idea how I would have done that?
I think which ever way gets you where you want to be is the way to go [emoji6]
On my Google phone, that's the ability to mute everything except alarms. There is also a toggle to disable DND when an alarm goes off.
As far as using tasker to turn volumes back up when an alarm goes off, my way of doing that is to intercept the notification for the alarm. Again, I'm using Google clock, and the way the notifications work may be different on your device.
Here is a taskernet share of a basic project using a notification intercept of the Google Clock alarm. Because there can be namespace collisions with imported projects, I append a variant of my username into variables, task and project names.
For everything to work the way it did I would need the sleep profile to end when an alarm goes off. The problem is I can't remember how that was done. I don't see an end condition that can be added to the sleep profile. The actual sleep profile is the only part I can remember enough to have replicated at this point. It being a from 12am to 12pm with a start task that turns all the volumes down to zero and an end task that turns them all back up. The alarm part I can't recall how it was done.
What was wrong with the notification intercept I shared?
That particular project was to put a large dismiss/snooze on the screen for a low vision individual, but it intercepts the alarm firing notification (for Google clock) and as I already said, intercepting the notification is the way I would do it.
It looks like it is a nice project, but it is requiring a plug-in. However the toggle was made before didn't require any additional things to be added. Isn't there a native event or state that a profile can trigger when an alarm goes off?
I assumed you tried using the native alarm clock or alarm done events in a profile and those didn't work. If you haven't, then try them. They don't work on my devices.
You could research java functions to get the next alarm and use the native java function action to then set a profile time context.
Remembered that tasker was designed to be a framework into which functionality could be added through plugins.
One of those is probably what was used on my LG G4. Now to figure out if this was a part of the one profile or a separate profile. I assume 2nd profile as I don't see any way of adding a 2nd end condition to the first. I remember when it was originally designed the conversation arriving at a solution to function as wanted was a long one. What bothered me is that the thread it took place in is missing from the forum it took place in. I even attempted to inquire there again about making it but after a week of no response I figured it was no longer a good place to post at.
StoneRyno said:
One of those is probably what was used on my LG G4. Now to figure out if this was a part of the one profile or a separate profile. I assume 2nd profile as I don't see any way of adding a 2nd end condition to the first. I remember when it was originally designed the conversation arriving at a solution to function as wanted was a long one. What bothered me is that the thread it took place in is missing from the forum it took place in. I even attempted to inquire there again about making it but after a week of no response I figured it was no longer a good place to post at.
Click to expand...
Click to collapse
What do you mean "2nd end condition"? A second context (condition) in the profile? Long press the first context.
The sleep profile uses time condition 12am to 12pm. I only need a 2nd condition that ends it but doesn't impact the start. I know for sure I can do that with a second profile now that I know what I needed to use to as event trigger. I can run a task that toggles off the sleep profile and toggles it back on some hours later to trigger again at 12am. I wasn't sure if the alarm event could be an alternative condition for end so that the sleep profile was 12am to alarm done or 12pm.
Hi all,
I had a nifty feature back in LLama where I could set my phone to silent and it would ask me how long. It came in handy at the movies or other private events, I know it's really easy to do, and there is even this guide:
https://forum.xda-developers.com/showthread.php?t=3829624
On how to just set a toggle and set it as a tile in the exact location I wanted. The thing I'd like to add is a popup asking me how long to set it to vibrate for, and then have it return to its previous state when that time has expired. Minutes and hours would be preferable. If this isn't possible to do with a tile in the settings pulldown, then just setting up a widget would be cool.
So, to clarify:
Open the settings and click on the tile, or activate the widget on my screen
Popup appears
Choose how many hours minutes I'd like it to be on vibrate, hit 'Done'
At the end of that time, it returns to normal(Or, failing that, it just returns to a setting I choose if I can't just have it return to its last state.
I'm sure that this one is super easy, still learning Tasker, so I'm not sure where to start. As always, I appreciate all of the help in this AWESOME community! Every time I come to XDA, no matter what the subject is, I remember what community help forums used to be like.
The simple answer is to set vibration mode on then create a scene with two data entries (number, text field, whatever) one for hours and the other for minutes. Use those values to create a wait in the task and after the wait, switch vibration mode off.
What I personally hate about that method is the task is just sitting there counting down. I prefer to make use of a time context in a profile. That means the time entered in a scene needs to be converted to a future time so the profile will trigger at that time.
I didn't feel like writing everything that covered the methods of creating a task like this. The following link is to a project you can import that covers the bases of turning on vibration mode and turning it off again. It's toggled from one of Tasker's quick settings tiles (#2). The vibration mode can be cancelled either based on the delay entered (time), or through a cancel button in a notification, or by tapping the same quick settings tile again.
The actions in this project are heavily commented.
Vibrate Mode Project