Difference between revisions of "Trigger: Battery Level"
m |
Endercraft (talk | contribs) |
||
Line 2: | Line 2: | ||
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:'''<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> | '''HINT:'''<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> | ||
− | 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 16% to 15% or up from 14% to 15% (respectively from 31% to 30% or from 29% to 30%)</pre> |
<br> | <br> | ||
'''Example Usage #1:'''<br/> | '''Example Usage #1:'''<br/> |
Revision as of 19:04, 9 June 2023
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 16% to 15% or up from 14% to 15% (respectively from 31% to 30% or from 29% to 30%)
Example Usage #1:
If the battery level decreases to 20% enable battery saving mode (this action requires adb hack or root)
Triggers Battery (<=20%)
Actions Battery saver ON
Constraints
Example Usage #2:
If the battery level increases to 30% disable battery saving mode (this action requires adb hack or root)
Triggers Battery (>=30%)
Actions Battery saver OFF
Constraints