Autoinput tasker task won’t work in the morning (Ring alarm disable)

149 views
Skip to first unread message

Ricky Spanish

unread,
Feb 6, 2020, 5:14:01 AM2/6/20
to Tasker
I have a task that disables my ring alarm in the morning:

Context:
Between 7am – 10am
If notification *Ring alarm*entry delay*landing*
If Wifi connected *mywifi*

Variable set %AUTOALARMDISABLE to %Time %Date
Autoinput Turnon
Autoinput unlock screen
Launch app – Ring
Wait 2 seconds
Media volume 10
Say "Attempting to disable alarm."
Wait 4 seconds
Autoinput action *click disarm*
Wait 4 seconds
Autoinput action *click disarm*
Wait 4 seconds
Autoinput action *click disarm*
Autoinput homescreen

When I try the task, it works fine. However, in the morning it never works. I have accurate alarms enabled in tasker and battery optimization turned off for both tasker and autoinput.

Can anyone offer any help why it doesn’t work when required? Is something being put to sleep? I sometimes get a message like "autoinput cannot unlock screen in current state", but am not sure if that relates to this. Maybe the alarm triggered notification isn't coming through. What a pain.

On another note can anyone offer any better way to do this?

Marta Hintz

unread,
Feb 6, 2020, 6:12:58 PM2/6/20
to Tasker
screen has to be on with auto input. it's emulating bgg screen touches. so add a screen on command before using auto input.

there are many ways to turn in screen depending on if it is locked or not. Google it for those ways. many good posts on how to wake up phone.

Ricky Spanish

unread,
Feb 9, 2020, 6:41:29 AM2/9/20
to Tasker
I do have a screen on command. I think the issue is by the time morning comes my pattern lock has engaged due to inactivity on the phone. Is there a way round this?

João Dias

unread,
Feb 10, 2020, 8:43:17 AM2/10/20
to tas...@googlegroups.com
Maybe you could wake your device like every half hour with AutoInput so it never times out? Not sure if that'll work...

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Reply all
Reply to author
Forward
0 new messages