Trigger "User absent"

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderators: MURTUMA, Martin

Posts: 6
Joined: 11 Jan 2019 10:40

Trigger "User absent"

Postby tempe222 » 12 Jan 2019 08:42

This trigger when locking the screen would be very helpful for battery saving actions.

Tempe

User avatar
Posts: 1606
Joined: 21 Jul 2017 18:50

Re: Trigger "User absent"

Postby Desmanto » 12 Jan 2019 12:20

Locking the screen will turn it off. Why don't just use Trigger "Display State" - off?
Index of Automagic useful thread List of my other useful posts (and others')

Posts: 6
Joined: 11 Jan 2019 10:40

Re: Trigger "User absent"

Postby tempe222 » 12 Jan 2019 22:46

It's not the same because this triggers flows e.g. when you just turn on the display for seeing the time or if you have new messages (i.e. not unlocking) and the screen turns off again by itsself

User avatar
Posts: 1606
Joined: 21 Jul 2017 18:50

Re: Trigger "User absent"

Postby Desmanto » 13 Jan 2019 18:51

Let me rephrase your need (CMIIW). What you want is
Screen off : turn on battery saver
Unlock screen : turn off battery saver.

If that so, use
Trigger Display State - off : turn on battery saver
Trigger User Present : Turn off battery saver

Don't use Trigger Display State - On, for turning off battery saver, as you haven't unlocked the phone yet (only to check time). Using User present, the flow only triggered after you successfully unlock the phone; turning the screen on won't trigger it.
Index of Automagic useful thread List of my other useful posts (and others')

Posts: 9
Joined: 10 Sep 2018 09:03

Re: Trigger "User absent"

Postby lojzik » 14 Jan 2019 07:36

Sometimes phone is not locked after "display off" immediately, so If I switch on phone after "display off", I get only "display on" trigger without "User present" trigger and phone is not locked. So "user present" can't be paired with "display off"

User avatar
Posts: 1606
Joined: 21 Jul 2017 18:50

Re: Trigger "User absent"

Postby Desmanto » 14 Jan 2019 17:53

You can try to check at your lockscreen setting, change the lockscreen after timeout to immediately. But if you still want some buffer time, example 5-10 seconds; you can still do the same buffer in the Screen off flow.

Use Condition Keyguard Locked to check if the screen is off and locked. If it hasn't yet, false, go to sleep 5-10 seconds (depends on the delay), and check again using another Keyguard locked. Both true from both Keyguard Locked, turn on the battery saver. So in case, you turn on the screen before the 5-10 seconds delay, then the condition will be false, battery saver is not enabled during that period. It will wait until another cycle of screen off, triggering the flow again and only after finally confirm it is locked, then it will enable the battery saver.

The exit still the same trigger, user present, turn off battery saver.
Index of Automagic useful thread List of my other useful posts (and others')

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests