Difference between revisions of "Trigger: Wifi State Change"

(Update)
m
Line 17: Line 17:
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
Manually select one or more Wi-Fi networks (SSID) that the trigger will react to.
 
Manually select one or more Wi-Fi networks (SSID) that the trigger will react to.
</pre><br>
+
</pre>
  
 
=== Disconnected from network ===
 
=== Disconnected from network ===
Line 28: Line 28:
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
Manually select one or more Wi-Fi networks (SSIDs) that the activator will react to when disconnected.
 
Manually select one or more Wi-Fi networks (SSIDs) that the activator will react to when disconnected.
</pre><br>
+
</pre>
  
 
=== Wifi disabled ===
 
=== Wifi disabled ===
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
It is activated when Wi-Fi is deactivated.
 
It is activated when Wi-Fi is deactivated.
</pre><br>
+
</pre>
  
 
=== Wifi enabled ===
 
=== Wifi enabled ===
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
It is activated when WiFi is activated.
 
It is activated when WiFi is activated.
</pre><br>
+
</pre>
 
 
==<p><b>Examples</b></p>==
 
 
 
=== Connected to network ===
 
* ''''' Turn off mobile data when you connect to a Wi-Fi network '''''
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
 
 
Connected to network
 
Any network
 
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
 
 
Mobile data OFF
 
* Requires adb or root hack
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constraints
 
 
 
 
 
</pre><br>
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
 
 
 
 
</pre><br>
 
 
 
=== Disconnected from network ===
 
* ''''' Turn on mobile data when you disconnect from a Wi-Fi network '''''
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
 
 
Disconnected from network
 
Any network
 
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
 
 
Mobile data ON
 
* Requires adb or root hack
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constraints
 
 
 
 
 
</pre><br>
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
 
 
 
 
</pre><br>
 

Revision as of 23:43, 25 January 2024

Introduction

This trigger will fire when the wifi state changes.

Please note that since Android 8.1 this functionality requires location permission and location services enabled in order to detect connect/ disconnect events.

Available Features

Connected to network

  • Any Network
It will react to any connected Wi-Fi (SSID).
  • Select manually
Manually select one or more Wi-Fi networks (SSID) that the trigger will react to.

Disconnected from network

  • Any Network
It will react to any disconnected Wi-Fi (SSID).
  • Select manually
Manually select one or more Wi-Fi networks (SSIDs) that the activator will react to when disconnected.

Wifi disabled

It is activated when Wi-Fi is deactivated.

Wifi enabled

It is activated when WiFi is activated.