Difference between revisions of "Constraint: Battery Saver State"

 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether Battery Saver is enabled.</pre>
This constraint can be used to allow/prevent something running based on the battery saver state of the device.
+
 
</pre>
+
''' Options '''
 +
 
 +
* '''Enabled''': Constraint passes only when Battery Saver is on
 +
* '''Disabled''': Constraint passes only when Battery Saver is off
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Dim the screen only when Battery Saver is active''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Screen On/Off - Screen On</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Brightness (40%)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Battery Saver State - Enabled</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Battery Saver State|Battery Saver State Trigger]]
 +
* [[Action: Battery Saver|Battery Saver Action]]

Latest revision as of 11:04, 9 January 2026

This constraint allows or prevents a macro/feature from running based on whether Battery Saver is enabled.

Options

  • Enabled: Constraint passes only when Battery Saver is on
  • Disabled: Constraint passes only when Battery Saver is off

Example

Example 1: Dim the screen only when Battery Saver is active

Triggers

Screen On/Off - Screen On
Actions

Brightness (40%)
Constraints

Battery Saver State - Enabled

See Also