šŸ‘ļøā€šŸ—ØļøšŸ”“ Presence guard

by Sergiu Susman

Version 3 (April 12, 2026)

Download (8 downloads)

Lock when presence not confirmed. Non-premium.
Useful in case of forgetting the device somewhere or falling asleep when an app is keeping the device awake (unlocked with screen on to play content). May prevent unnecessary battery drain and leaving the unattended device unsecured for too long.



There are 2 timers:
- suppressed time (block #6)
- monitoring interval (block #10)

The 'suppressed time' (25min default) is the time when monitoring is not started yet since the presence is assumed; this timer runs after each unlock and after each successful confirmation of the user presence via dialog. This is a large value since the device may be static if watching a video on a phone holder so we don't want to bother the user too often (think of long YouTube videos).

The 'monitoring interval' (5min default) is started when the 'suppressed time' elapses and is recurrent as long as the 'suppressed time' is not started again. If no movement is detected during one monitoring interval then a presence confirmation dialog is prompted. If not confirmed, the device will lock shortly after. Movement is detected via general acceleration with sensitivity set in blocks #13 and #23 (≄0.1m/s² default).

Notes:
- thanks Vinicius' https://llamalab.com/automate/community/flows/52571 for idea/inspiration
- the confirmation dialog block #16 also has a timeout set (1min default) you can customise
- I would recommend to play around with the sensitivity value as it may differ across devices and use case (e.g. if phone laying on your chest is not locking from the breathing motions or just being a bad snorer šŸ˜)
- the long 'suppressed time' can be omitted after unlocks (but still be retained after user confirmations) by simply moving the fork block #4 to point its "new" fiber connector to block #10 instead of pointing to block #6; this way the monitoring (and chance of locking) will start much faster at the expense of also possibly prompting just the initial user presence confirmation sooner