Difference between revisions of "Trigger: Battery Level"
m |
|||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <pre | + | <pre class="header-style"> |
When the battery % increases or decreases, this trigger will fire. The trigger can be configured to trigger on any change or when the battery % increases or decreases to a certain level.</pre> | When the battery % increases or decreases, this trigger will fire. The trigger can be configured to trigger on any change or when the battery % increases or decreases to a certain level.</pre> | ||
− | '''HINT:'''< | + | '''HINT:'''<br/> |
− | Don't forget that a trigger fires once at the exact time the event occurs. So, in the | + | Don't forget that a trigger fires once at the exact time the event occurs. So, in the below examples, it will only fire when battery level goes down from 21% to 20% or up from 29% to 30%.<br/> |
− | < | + | <br> |
− | '''Example Usage:'''<br/> | + | '''Example Usage #1:'''<br/> |
− | If the battery level decreases to 20% | + | If the battery level decreases to 20% lower the screen brightness. |
− | < | + | <pre class="trigger-style"> |
− | |||
Triggers | Triggers | ||
− | Battery (<=20%) | + | Battery (<=20%)</pre> |
− | </pre | + | <pre class="action-style"> |
− | <pre | ||
Actions | Actions | ||
− | + | Screen Brightness 25% | |
− | </pre> | + | </pre> |
− | |||
− | |||
− | + | <br> | |
− | + | '''Example Usage #2:'''<br/> | |
− | '''Example Usage:''' If the battery level increases to 30% | + | If the battery level increases to 30% increase the screen brightness. |
− | <pre | + | <pre class="trigger-style"> |
Triggers | Triggers | ||
Battery (>=30%) | Battery (>=30%) | ||
− | </pre | + | </pre> |
− | <pre | + | <pre class="action-style"> |
Actions | Actions | ||
− | + | Screen Brightness 75% | |
− | </pre> | + | </pre> |
− | |||
− | |||
− | |||
</pre><br> | </pre><br> |
Latest revision as of 21:14, 10 June 2024
When the battery % increases or decreases, this trigger will fire. The trigger can be configured to trigger on any change or when the battery % increases or decreases to a certain level.
HINT:
Don't forget that a trigger fires once at the exact time the event occurs. So, in the below examples, it will only fire when battery level goes down from 21% to 20% or up from 29% to 30%.
Example Usage #1:
If the battery level decreases to 20% lower the screen brightness.
Triggers Battery (<=20%)
Actions Screen Brightness 25%
Example Usage #2:
If the battery level increases to 30% increase the screen brightness.
Triggers Battery (>=30%)
Actions Screen Brightness 75%