Difference between revisions of "Trigger: Battery Level"

Tags: Mobile web edit Mobile edit
Line 1: Line 1:
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 style="color: black">
 
+
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>
'''Example Usage'''<br/>
+
'''HINT:'''<pre style="color: black">
Battery level = 15% ==> battery saving enabled.<br/>
+
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%)
Battery level = 30% ==> battery saving disabled.
+
</pre>
 
+
'''Example Usage:'''<br/>
''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%)''
+
If the battery level decreases to 20% enable battery saving mode (this action requires adb hack or root)
 +
</pre>
 +
<pre style="color: Red">
 +
Battery (<=20%)
 +
</pre>
 +
<pre style="color: #3498DB">
 +
Battery saver ON
 +
</pre>
 +
'''Example Usage:'''<br/>
 +
If the battery level increases to 30% disable battery saving mode (this action requires adb hack or root)
 +
<pre style="color: Red">
 +
Battery (>=30%)
 +
</pre>
 +
<pre style="color: #3498DB">
 +
Battery saver OFF
 +
</pre>
 +
<pre style="color: Green">
 +
</pre>

Revision as of 01:15, 21 October 2022

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)

Battery (<=20%)
Battery saver ON

Example Usage:
If the battery level increases to 30% disable battery saving mode (this action requires adb hack or root)

Battery (>=30%)
Battery saver OFF