Difference between revisions of "Trigger: Sleep"
(Created page with "This trigger will fire when the phone determines that you have fallen asleep of woken up (as specified). This trigger relies on Android's activity recognition feature to dete...") |
m |
||
Line 1: | Line 1: | ||
+ | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> | ||
This trigger will fire when the phone determines that you have fallen asleep of woken up (as specified). | This trigger will fire when the phone determines that you have fallen asleep of woken up (as specified). | ||
Line 6: | Line 7: | ||
It's recommend to use this trigger in conjunction with a time of day constraint so it can only fire around the time that you typically go to bed/wake up. Without this you may get false triggers such as when you put your phone down and leave the room for some time you may be classified as being asleep. | It's recommend to use this trigger in conjunction with a time of day constraint so it can only fire around the time that you typically go to bed/wake up. Without this you may get false triggers such as when you put your phone down and leave the room for some time you may be classified as being asleep. | ||
+ | </pre> | ||
+ | |||
+ | '''Example Usage'''<br/> | ||
+ | |||
+ | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Triggers | ||
+ | |||
+ | |||
+ | </pre><br> | ||
+ | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Actions | ||
+ | |||
+ | |||
+ | </pre><br> | ||
+ | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Constrains | ||
+ | |||
+ | |||
+ | </pre><br> | ||
+ | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Local variables | ||
+ | |||
+ | |||
+ | </pre><br> |
Revision as of 17:41, 29 April 2023
This trigger will fire when the phone determines that you have fallen asleep of woken up (as specified). This trigger relies on Android's activity recognition feature to determine when you fall asleep and when you wake up. This may not be accurate on some devices. To help find a setting that works well for your own device and scenarios you can tweak the awake and sleep thresholds. If you find that the trigger is firing when you don't expect it to, you should try adjusting the thresholds until you find values that work well for you. It's recommend to use this trigger in conjunction with a time of day constraint so it can only fire around the time that you typically go to bed/wake up. Without this you may get false triggers such as when you put your phone down and leave the room for some time you may be classified as being asleep.
Example Usage
Triggers
Actions
Constrains
Local variables