Have a task run when a certain app is closed - Tasker Tips & Tricks

I have tried running the display timeout option for certain apps but it doesn't, seems like an issue with either android 12 or oppo/oneplus phones.
So I tried a work around below.
I have tried using this on clash of clans, so my current system screen timeout option is set to 15 seconds. So I can got a task to run using autoinput that when I open clash of clans is opens my display option and changed the screen timeout to 5 minutes and then opens clash of clans.
However I have tried to get an exit task so that when I close clash of clans the screen timeout option reverts back to 15 seconds.
I have got a task using autoinput that changes the screen timeout option to 15 seconds but can find a way for it to run when the app is closed. I don't know what option to use for that.

Related

Best settings for Gravity Screen on Gear

I've been messing around with this app obsessively for a few days as a possible replacement for the Gear wake-up gesture. The app seems to be great for two things...
1.) Screen turns off immediately as you start to lower your arm instead of the watch having to wait a minimum of 5-7 seconds
2.) Keep Screen ON by Motion option to prevent a screen timeout for as long as you are looking at it.
I've realized however that the "Turn screen on by motion" option uses more energy and is NOT a good replacement for the normal wake-up gesture found in gear settings. The normal wake-up gesture seems to be better optimized for the watch. No matter how many times i've tried to set up Gravity Screen to do the same thing, the angles don't work right and the screen comes on a lot when it shouldn't.
So i've combined the two...using the wake-up gesture of the gear (keeping the "screen on by motion" unchecked in Gravity screen) and utilizing the Screen Off feature and "Keep Screen ON by motion" feature of Gravity Screen. This has worked the best for me.
Here are the settings i use for everthing...
In the Gear settings:
-Set screen timeout to 7 seconds or whatever you prefer (not important if you keep Gravity Screen running all the time)
-Wake-up gesture set to "Last screen viewed".
(I simply turn off Wake-up gesture and pause Gravity Screen before going to bed... Still looking for a way to toggle these actions as a widget without having to go into settings everytime. Possibly tasker could do it? If anybody knows a way please tell me!)
In the Gravity Screen settings from top to bottom:
Pocket Sensor = 90 degrees
Table Sensor = 90 degrees
Keep Screen ON by Motion = checked
Sensitivity set = 100
Booster = checked
Running During Call = checked (your preference)
Notification = checked
Low Priority (hide icon) = checked
Start at boot = checked
(Everything else leave unchecked)
So that's it. Manually turning on/off the screen is always the best battery saver...but if you want to have the automatic wake-up then using either the app or the gear settings by themselves isn't as good on battery as combining the two as I have described. Let me know what you guys think.
Thanks for sharing your findings.

Ring Doorbell Pro Integration With Tablet

I have the Ring Doorbell Pro and am generally happy with its performance. I also just mounted an older Samsung Galaxy Tab 4 10.1 on the wall, as a hub for my various home automation lights, switches, etc..
I am trying to get the Ring Doorbell app to open when there is a ring, or motion is detected, to show the image from the Ring's camera for 40 seconds, then to close and return to the tablet's Home page.
I purchased Tasker, but unfortunately, my recipe is not working well at all. Here is what I have as a Tasker profile:
The trigger is a Ring app Notification when either a ring or motion is detected.
1. Open Ring app
2. Wait 41 seconds
3. Go Home
This works sometimes, but most of the time it either does not open the app, or it does not close the Ring camera-view window, or it does not go to the Home page, but stays on the Ring app's list view of events.
Has anyone done what I am trying to do and how did they do it? Any other suggestions?
I also have a Smartthings hub, if this would help in anyway. And Amazon Echo
Thanks!
Try putting to "Always" the Use Reliable Alarms option in settings/preferences/monitor
GrippingSphere said:
Try putting to "Always" the Use Reliable Alarms option in settings/preferences/monitor
Click to expand...
Click to collapse
Thanks! I did it, restarted tasker and the notification trigger worked several times in a row.
But it still fails to close the camera window, or to Go Home
Anyone with a Ring Doorbell who has achieved the task of bringing up the view window to the front for 40 seconds (the standard recording duration of Ring), and then closing it and returning to the Home screen?
So, does this mean that Tasker is unable to reliably bring an app to the front for 40 seconds, then close it?
Bump! Interested as well..
I suggest checking two things:
1. Instead of just going home, try killing the app
2. Double check the priorities of actions and set the task to abort existing tasks
MacGuy2006 said:
Anyone with a Ring Doorbell who has achieved the task of bringing up the view window to the front for 40 seconds (the standard recording duration of Ring), and then closing it and returning to the Home screen?
Click to expand...
Click to collapse
have you looked into using IFTTT? there are ring recipes on there
To the OP. Did you ever get this to work?
I am trying the same thing with tasker, but tasker is new to me so im not sure how exactly to set this up. Are you able to assist?
Bump! Anyone have luck with this?
So far I have tasker doing the following on my wall mounted tablet near the front door upon receiving a Ring doorbell notification (motion or door bell):
Screen unlock
Secure settings > wake (screen & keyboard lights on 4 seconds)
Launch app > Ring
Wait 30 seconds
Go Home
All the tasks trigger except the wait for 30 seconds. Tasker ends up going home before the ring camera fires up and displays on the screen. This also has the unfortunate side effect of locking the ring doorbell and I have to manually go into the app and click the red hang up icon to “release” the doorbell. Any ideas on how to solve for the wait issue AND to gracefully close the Ring app after 40 seconds?
Thanks.
Me Too
I'm also trying to do the same thing with an old Samsung Galaxy 10.1 tablet so also very interested if someone has figured out how to get this to work.
Couple of additional questions:
1. If you have a wall mounted tablet how are you dealing with RING app wanting to run in Portrait mode only for navigation but landscape mode only for Live View
2. How to hve RING app immediately go to live camera via as right now I have to go from RING menu to Front Door and then Live View when motion is detected or click on notification if doorbell is rung. My goal is to be able to do what Amazon Echo Show can do which is give a voice command to Tablet .. "Show Front Door"
RING App combined with TASKER and/or IFTTT on an Android Tablet set-up as a KIOSK have a lot of potential if these issue can be resolved.
THanks,
Chris
zsyed said:
Bump! Anyone have luck with this?
So far I have tasker doing the following on my wall mounted tablet near the front door upon receiving a Ring doorbell notification (motion or door bell):
Screen unlock
Secure settings > wake (screen & keyboard lights on 4 seconds)
Launch app > Ring
Wait 30 seconds
Go Home
All the tasks trigger except the wait for 30 seconds. Tasker ends up going home before the ring camera fires up and displays on the screen. This also has the unfortunate side effect of locking the ring doorbell and I have to manually go into the app and click the red hang up icon to “release” the doorbell. Any ideas on how to solve for the wait issue AND to gracefully close the Ring app after 40 seconds?
Thanks.
Click to expand...
Click to collapse
Ring Doorbell automation with Tasker, Notification Listener and Rotation Controller
I have forced my RING App to run in Landscape Mode with an app called "Rotation Controller".
To have the RING App go directly to the live cam when the doorbell is rung, you can use the Tasker Plugin "Notification Listener" and make Tasker click on the notification as soon as it pops up. This makes the device switch directly to the camera view instead of the Ring App Homescreen.
This works fine so far, BUT yet I have found no way to close the camera view after a few seconds automatically. I can´t use the tasker "kill app" command, since my Xido X111 android device is not rootable. The "go home" command would bring up the home screen, but the camera window is still running in the background and thus blocking the doorbell until the hang-up symbol is clicked manually.
Any ideas how to close the camera view somehow on an unrooted device?
Greets
Michael
gomce said:
I'm also trying to do the same thing with an old Samsung Galaxy 10.1 tablet so also very interested if someone has figured out how to get this to work.
Couple of additional questions:
1. If you have a wall mounted tablet how are you dealing with RING app wanting to run in Portrait mode only for navigation but landscape mode only for Live View
2. How to hve RING app immediately go to live camera via as right now I have to go from RING menu to Front Door and then Live View when motion is detected or click on notification if doorbell is rung. My goal is to be able to do what Amazon Echo Show can do which is give a voice command to Tablet .. "Show Front Door"
RING App combined with TASKER and/or IFTTT on an Android Tablet set-up as a KIOSK have a lot of potential if these issue can be resolved.
THanks,
Chris
Click to expand...
Click to collapse
derschmock said:
This works fine so far, BUT yet I have found no way to close the camera view after a few seconds automatically. I can´t use the tasker "kill app" command, since my Xido X111 android device is not rootable. The "go home" command would bring up the home screen, but the camera window is still running in the background and thus blocking the doorbell until the hang-up symbol is clicked manually.
Any ideas how to close the camera view somehow on an unrooted device?
Greets
Michael
Click to expand...
Click to collapse
If you can access your tablet with ADB to do the set-up, look into AutoTools/AutoInput
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
AutoInput Point click didn‘t work for me, because the ring app doesn‘t seem to support accessibility from other apps (or maybe i was just too incompetent) BUT i found a very easy solution: after tasker fires up the ring camera and waits for x seconds, i let it just load the ring app again with the toggle „always start new copy“. This doesn‘t kill the ring app, but at least kills the camera screen and therefore prevent the doorbell from locking up. Now it just works as i wanted
zsyed said:
Bump! Anyone have luck with this?
So far I have tasker doing the following on my wall mounted tablet near the front door upon receiving a Ring doorbell notification (motion or door bell):
Screen unlock
Secure settings > wake (screen & keyboard lights on 4 seconds)
Launch app > Ring
Wait 30 seconds
Go Home
All the tasks trigger except the wait for 30 seconds. Tasker ends up going home before the ring camera fires up and displays on the screen. This also has the unfortunate side effect of locking the ring doorbell and I have to manually go into the app and click the red hang up icon to “release” the doorbell. Any ideas on how to solve for the wait issue AND to gracefully close the Ring app after 40 seconds?
Thanks.
Click to expand...
Click to collapse
can you share how you set this up.. i purchased tasker but not seeing the options you layed out.
raf1919 said:
can you share how you set this up.. i purchased tasker but not seeing the options you layed out.
Click to expand...
Click to collapse
You need the additional Tasker Plugin "Notification Listener" and make Tasker click on the notification as soon as it pops up. To close the camera screen after a few seconds, you just load the ring app again with tasker (don´t forget the toggle „always start new copy“).
derschmock said:
You need the additional Tasker Plugin "Notification Listener" and make Tasker click on the notification as soon as it pops up. To close the camera screen after a few seconds, you just load the ring app again with tasker (don´t forget the toggle „always start new copy“).
Click to expand...
Click to collapse
downloaded it...
tasker is just sooo overwhelming.. so many settings. so i create a profile or task? i went to task.. open app Ring. than i'm stuck on what next. what do i put for "if"
raf1919 said:
downloaded it...
tasker is just sooo overwhelming.. so many settings. so i create a profile or task? i went to task.. open app Ring. than i'm stuck on what next. what do i put for "if"
Click to expand...
Click to collapse
"Profile" is the event that triggers something. In our case this is the notification from the ring app. you can choose "Notification Listener Event -> Posted Apps -> Ring App" for that.
"Task" are the actions which are triggered by the Profile Event (click on the notification to open the camera screen, wait x Seconds, close the camera by opening the ring app again):
1. Plugin>Gestures>Configuration>Notification Key: %nlkey
2. wait>45 Seconds
3. Launch App>Ring
you don´t need the "if"
I got it working!! thanks alot
Hi.
I've got all necessary programs (first time I bought something from play store) but can't get it to work.
Part with :"Plugin>Gestures>Configuration>Notification Key: %nlkey"
does not work.
How to get it to work?

Android notification

I am looking for a solution for notifications in my application.
The notification begins and ends at a specific time, e.g. start: 8:00, end 12:00. In the meantime, the application sends a notification every 30 minutes. Any solutions?
Hi
You can go through the settings option. Sometimes the problem is of default which we forget to change. May be the application setting the default notification setting is of 30 min.

Question Lockscreen motion wallpaper stops playing after 5 seconds instead of 15 seconds.

It plays the full 15 sec when a notification turns on the screen but when I double tap to turn it on it only plays for 5 sec. I've tried different ones and used my own.
Anybody know of a reason or fix for this.
There really is no way to officially extend the lockscreen screen on time.
There is a workaround though.
Open Settings.
Tap Advanced Features
Tap Motion and Gestures.
Enable to the toggle to "Keep Screen on While Viewing."
Pretty much, this will keep yer screen on as long as you are looking at it... All the time. But the screen will resume its normal screen off function when you turn away.
Hope this kind of helps

How do I make tasker detect user screen touches?

My idea of my script is
If Google assistant is on screen for more than 15 seconds with no user touches, reduce brightness to 20.
Then, if I touch the screen, restore its brightness
Use a plugin TouchTask, then set a countdown task restarted by screentouch. In the profile use both application and touch event to work the way u want.

Categories

Resources