| Line 1: |
Line 1: |
| − | <pre class="header-style"> | + | <pre class="header-style">The Hotspot Enabled/Disabled trigger fires when the WiFi hotspot (tethering) functionality is enabled or disabled on the device. This allows you to automate actions based on hotspot state changes.</pre> |
| − | This trigger will fire when the wifi hotspot functionality is enabled or disabled.
| + | |
| − | </pre> | + | ''' Options ''' |
| | + | |
| | + | * '''Hotspot Enabled''': Trigger fires when the WiFi hotspot is turned ON |
| | + | * '''Hotspot Disabled''': Trigger fires when the WiFi hotspot is turned OFF |
| | + | |
| | + | ''' Examples ''' |
| | + | |
| | + | ''Example 1: Notification When Hotspot Enabled'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Hotspot Enabled</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Popup Message - Hotspot is now active |
| | + | Set Variable - hotspot_active = true</pre> |
| | + | |
| | + | Shows a notification and sets a variable when the hotspot is turned on. |
| | + | |
| | + | ''Example 2: Disable Hotspot After Timeout'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Hotspot Enabled</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Wait 30 minutes |
| | + | IF hotspot_active = true |
| | + | Hotspot Configure - Disable |
| | + | Popup Message - Hotspot auto-disabled after 30 minutes |
| | + | END IF</pre> |
| | + | |
| | + | Automatically disables the hotspot after 30 minutes to save battery. |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger monitors the "android.net.wifi.WIFI_AP_STATE_CHANGED" broadcast. |
| | + | * The trigger responds to state changes in the WiFi Access Point (hotspot) functionality. |
| | + | * Some devices may require additional permissions or settings for hotspot control. |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Action:_HotSpot_On/Off|Hotspot On/Off Action]] |
| | + | * [[Constraint:_Wifi_HotSpot_State|Wifi Hotspot Constraint]] |