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


Requirements

  • Connectivity Helper is installed
  • Location permission for MacroDroid (must be set to "Allow all the time", not just "Allow only while using the app")
  • Location is enabled
  • Since Android 8.1 this functionality requires location permission and location services enabled


See Also