Difference between revisions of "Constraint: Wifi State"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current Wi-Fi state.</pre> |
| − | + | ''' Options ''' | |
| − | + | * '''Enabled''': Constraint passes only when Wi-Fi is on | |
| + | * '''Disabled''': Constraint passes only when Wi-Fi is off | ||
| + | * '''Connected/Disconnected''': Optionally check connection state or SSID | ||
| + | |||
| + | ''' Example ''' | ||
| + | |||
| + | ''Example 1: Enable mobile data only when Wi-Fi is disconnected'' | ||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Application Launched/Closed - Launched (YouTube)</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Mobile Data On/Off (Enable)</pre> | ||
| + | <pre class="constraint-style">Constraints | ||
| + | |||
| + | Wifi State - Disconnected</pre> | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Trigger: Wifi State Change|Wifi State Change Trigger]] | ||
| + | * [[Action: Wifi Configure|Wifi Configure Action]] | ||
Latest revision as of 14:08, 9 January 2026
This constraint allows or prevents a macro/feature from running based on the current Wi-Fi state.
Options
- Enabled: Constraint passes only when Wi-Fi is on
- Disabled: Constraint passes only when Wi-Fi is off
- Connected/Disconnected: Optionally check connection state or SSID
Example
Example 1: Enable mobile data only when Wi-Fi is disconnected
Triggers Application Launched/Closed - Launched (YouTube)
Actions Mobile Data On/Off (Enable)
Constraints Wifi State - Disconnected
See Also