| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this restriction '''</span> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current battery level.</pre> |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| |
| − | This constraint can be used to allow/prevent functionality from running based on the current level of the battery. | |
| | | | |
| − | It may be configured for the battery level being less than, equal to or greater than a specific battery percentage.
| + | ''' Options ''' |
| − | </pre> | + | |
| | + | * '''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> |
| | + | <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]] |