Difference between revisions of "Action: Airplane Mode On/Off"

m
m (test)
Line 1: Line 1:
'''Note'''<br/>
+
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px; margin: 10;">
'''This action either requires a rooted device or you must make MacroDroid the default assist app on your device (Android 7+). By making MacroDroid the default assist app it has access to control the device's airplane mode (which is impossible without it)'''.<br/><br/>
+
Triggers
This action allows you to turn on/off or toggle the device's airplane (flight) mode.<br/>
+
 
<br/>'''Features available'''<br/>
+
Day/Time Trigger
<br/>'''Root Only'''<br/>
+
22:00 Mon - Sun
*'''Airplane Mode On:''' Activate airplane mode (you can choose whether to keep wifi or bluetooth enabled).<br/>
+
 
*'''Airplane Mode Off:''' Deactivate airplane mode.<br/>
+
Day/Time Trigger
*'''Airplane Mode Toggle:''' Toggles the current state of the airplane mode.<br/>
+
07:00 Mon - Sun
<br/>
+
</pre>
'''Macrodroid As Default Assist App'''<br/>
+
 
*'''Airplane Mode On:''' Activate airplane mode.<br/>
+
<pre style="background-color: #40289F; color: white; border-radius: 10px; padding: 10px; margin: 0;">
*'''Airplane Mode Off:''' Deactivate airplane mode.<br/>
+
If
*'''Airplane Mode Toggle:''' Toggles the current state of the airplane mode.<br/>
+
Trigger Fired: Day/Time Trigger
 +
22:00 Mon - Sun
 +
</pre>
 +
 
 +
<pre style="background-color: #1660B0; color: white; border-radius: 10px; padding: 10px; margin: 0;">
 +
Actions
 +
 
 +
</pre>
 +
 
 +
<pre style="background-color: #40289F; margin: 0; color: white; border-radius: 10px; padding: 10px; margin: 0;">
 +
End If
 +
</pre>
 +
 
 +
<pre style="background-color: #1660B0; color: white; border-radius: 10px; padding: 10px; margin: 0;">
 +
Actions
 +
 
 +
Set Digital Assistant
 +
Macrodroid
 +
</pre>
 +
 
 +
 
 +
 
 +
<pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px; margin: 10;">
 +
Constraints
 +
 
 +
</pre>
 +
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px; margin: 0;">
 +
Local variables
 +
 
 +
assistant = False
 +
</pre>

Revision as of 22:54, 11 January 2024

Triggers

Day/Time Trigger
22:00 Mon - Sun

Day/Time Trigger
07:00 Mon - Sun
If
Trigger Fired: Day/Time Trigger
22:00 Mon - Sun
Actions

End If
Actions

Set Digital Assistant
Macrodroid


Constraints

Local variables

assistant = False