Difference between revisions of "Trigger: Battery Level"

Line 5: Line 5:
 
<br>
 
<br>
 
'''Example Usage #1:'''<br/>
 
'''Example Usage #1:'''<br/>
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% lower the screen brightness.
 
<pre class="trigger-style">
 
<pre class="trigger-style">
 
Triggers
 
Triggers
Line 13: Line 13:
 
Actions
 
Actions
  
Battery saver ON
+
Screen Brightness 25%
 
</pre>
 
</pre>
  
 
<br>
 
<br>
 
'''Example Usage #2:'''<br/>
 
'''Example Usage #2:'''<br/>
If the battery level increases to 30% disable battery saving mode (this action requires adb hack or root)
+
If the battery level increases to 30% increase the screen brightness.
 
<pre class="trigger-style">
 
<pre class="trigger-style">
 
Triggers
 
Triggers
Line 27: Line 27:
 
Actions
 
Actions
  
Battery saver OFF
+
Screen Brightness 75%
 
</pre>
 
</pre>
  
 
</pre><br>
 
</pre><br>

Revision as of 21:09, 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 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% 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%