| 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 whether external power is connected.</pre> |
| | | | |
| − | This constraint can be used to allow/prevent functionality from running depending if the device is connected/not connected to an external power source.
| + | ''' Options ''' |
| | + | |
| | + | * '''Connected''': Constraint passes only when power is connected |
| | + | * '''Disconnected''': Constraint passes only when power is disconnected |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Run a backup only while charging'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Day/Time Trigger - 02:00</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Run Macro: System Backup</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Power Connected - Connected</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Power Connected/Disconnected|Power Connected/Disconnected Trigger]] |