Difference between revisions of "Trigger: Wifi State Change"

m
(Update)
Line 1: Line 1:
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
== Introduction ==
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
This trigger will fire when the wifi state changes.
 
This trigger will fire when the wifi state changes.
  
You can configure it to fire
+
Please note that since Android 8.1 this functionality requires location permission and location services enabled in order to detect connect/ disconnect events.
 +
</pre>
 +
 
 +
==<p><b>Available Features </b></p>==
 +
 
 +
=== Connected to network ===
 +
* ''''' Any Network '''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It will react to any connected Wi-Fi (SSID).
 +
</pre>
  
when wifi is enabled or disabled, or when connected to/disconnected from a specific network.
+
* ''''' Select manually '''''
 +
<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.
 +
</pre><br>
  
Please note that since Android 8.1 this functionality requires location permission and location services enabled in order to detect connect/ disconnect events.
+
=== Disconnected from network ===
 +
* ''''' Any Network '''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It will react to any disconnected Wi-Fi (SSID).
 
</pre>
 
</pre>
<br>
 
'''Example Usage'''<br/>
 
  
 +
* ''''' Select manually '''''
 +
<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.
 +
</pre><br>
 +
 +
=== Wifi disabled ===
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It is activated when Wi-Fi is deactivated.
 +
</pre><br>
 +
 +
=== Wifi enabled ===
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It is activated when WiFi is activated.
 +
</pre><br>
 +
 +
==<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;">
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
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><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
Actions
  
 
+
Mobile data ON
 +
* Requires adb or root hack
 
</pre><br>
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">

Revision as of 20:10, 4 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.


Examples

Connected to network

  • Turn off mobile data when you connect to a Wi-Fi network
Triggers

Connected to network
Any network


Actions

Mobile data OFF
* Requires adb or root hack


Constraints



Local variables



Disconnected from network

  • Turn on mobile data when you disconnect from a Wi-Fi network
Triggers

Disconnected from network
Any network


Actions

Mobile data ON
* Requires adb or root hack


Constraints



Local variables