Difference between revisions of "Constraint: Battery Level"

Line 1: Line 1:
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current battery level.</pre>
  
This constraint can be used to allow/prevent functionality from running based on the current level of the battery.
+
''' Options '''
  
It may be configured for the battery level being less than, equal to or greater than a specific battery percentage.
+
* '''Above/Below''' - Check if the battery is above or below a selected percentage
 +
* '''Battery Level''' - Set the percentage threshold or use a variable
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Turn auto sync off when the power is disconnected and battery is low''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Power Disconnected
 +
  <pre class="action-style">Actions
 +
 
 +
Autosync On/Off (Disable)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Battery Level - At or below 50%</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Battery Level|Battery Level Trigger]]
 +
* [[Action: Battery Saver|Battery Saver Action]]

Revision as of 11:03, 9 January 2026

This constraint allows or prevents a macro/feature from running based on the current battery level.

Options

  • Above/Below - Check if the battery is above or below a selected percentage
  • Battery Level - Set the percentage threshold or use a variable

Example

Example 1: Turn auto sync off when the power is disconnected and battery is low

Triggers

Power Disconnected
  <pre class="action-style">Actions

Autosync On/Off (Disable)
Constraints

Battery Level - At or below 50%

See Also