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?