Difference between revisions of "Trigger: Battery Level"

 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About this trigger</strong></span>
+
<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>
 +
'''HINT:'''<br/>
 +
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 #1:'''<br/>
 +
If the battery level decreases to 20% lower the screen brightness.
 +
<pre class="trigger-style">
 +
Triggers
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
+
Battery (<=20%)</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 class="action-style">
 +
Actions
  
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%)
+
Screen Brightness 25%
 
</pre>
 
</pre>
  
==<p><b>Supported configurations</b></p>==
+
<br>
 +
'''Example Usage #2:'''<br/>
 +
If the battery level increases to 30% increase the screen brightness.
 +
<pre class="trigger-style">
 +
Triggers
  
=== Increase/Decrease ===
+
Battery (>=30%)
 +
</pre>
 +
<pre class="action-style">
 +
Actions
  
* '''''Increase/Decrease'''''
+
Screen Brightness 75%
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
When the batery level increases or decreases to a specific level.
 
 
</pre>
 
</pre>
  
* '''''Any Change'''''
+
</pre><br>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
When the batery level makes any change, this means that it will be activated at every batery change.
 
</pre>
 

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%