Difference between revisions of "Trigger: Battery Level"
m |
|||
| Line 1: | Line 1: | ||
| − | <pre style="color: | + | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> |
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="color: | + | '''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 above 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%) | Don't forget that a trigger fires once at the exact time the event occurs. So, in the above 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> | </pre> | ||
| Line 7: | Line 7: | ||
If the battery level decreases to 20% enable battery saving mode (this action requires adb hack or root) | If the battery level decreases to 20% enable battery saving mode (this action requires adb hack or root) | ||
</pre> | </pre> | ||
| − | <pre style="color: | + | <pre style="background-color: red; color: white; border-radius: 10px; padding: 10px;"> |
| + | Triggers | ||
| + | |||
Battery (<=20%) | Battery (<=20%) | ||
| − | </pre> | + | </pre><br> |
| − | <pre style="color: # | + | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> |
| + | Actions | ||
| + | |||
Battery saver ON | Battery saver ON | ||
| − | </pre> | + | </pre><br> |
| − | '''Example Usage:''' | + | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> |
| − | If the battery level increases to 30% disable battery saving mode (this action requires adb hack or root) | + | Constrains |
| − | <pre style="color: | + | |
| + | |||
| + | </pre><br> | ||
| + | '''Example Usage:''' If the battery level increases to 30% disable battery saving mode (this action requires adb hack or root)<br/> | ||
| + | <pre style="background-color: red; color: white; border-radius: 10px; padding: 10px;"> | ||
| + | Triggers | ||
| + | |||
Battery (>=30%) | Battery (>=30%) | ||
| − | </pre> | + | </pre><br> |
| − | <pre style="color: # | + | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> |
| + | Actions | ||
| + | |||
Battery saver OFF | Battery saver OFF | ||
| − | </pre> | + | </pre><br> |
| − | <pre style="color: | + | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> |
| − | </pre> | + | Constrains |
| + | |||
| + | |||
| + | </pre><br> | ||
Revision as of 03:38, 28 April 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 above 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:
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
Constrains
Example Usage: 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
Constrains