Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">The MacroDroid Mode Change trigger fires when entering or exiting a specific MacroDroid mode. MacroDroid Modes allow you to organize and control the behavior of your macros by grouping them into different operational states. You can manage modes through the MacroDroid app's configuration panel to create, edit, delete, or activate different modes.</pre>
This trigger will fire when a particular MacroDroid mode is entered/exited.
  −
</pre>
  −
<br>
  −
'''Example Usage'''<br/>
     −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
''' Options '''
Triggers
      +
* '''Enter Mode''' - The trigger fires when the specified mode becomes active
 +
* '''Exit Mode''' - The trigger fires when the specified mode is deactivated
 +
* '''Any Change''' - The trigger fires whenever any mode transition occurs (entering or exiting any mode)
   −
</pre><br>
+
''' Mode Selection '''
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
  −
Actions
      +
After selecting Enter Mode or Exit Mode, you can choose which specific mode to monitor:
   −
</pre><br>
+
* '''[String Variable]''' - Use a string variable to dynamically specify the mode name. This allows the mode name to be determined at runtime based on the variable's value.
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
+
* '''Specific Mode''' - Select from the list of configured MacroDroid modes (e.g., "Standard", "Work", "Home", etc.)
Constraints
      +
''' Examples '''
   −
</pre><br>
+
''Example 1: Switch to silent mode when entering Work mode''
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
  −
Local variables
      +
  <pre class="trigger-style">Triggers
   −
</pre><br>
+
MacroDroid Mode Change: Enter Mode (Work)</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Set Ringer Mode: Vibrate Only</pre>
 +
 
 +
''Example 2: Log whenever any mode change occurs''
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
MacroDroid Mode Change: Any Change</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Log Event: Mode changed to [mode]</pre>
 +
 
 +
''' Notes '''
 +
 
 +
* The trigger fires immediately when a mode transition occurs
 +
* When using the "Any Change" option, no specific mode selection is required
 +
* The mode name can be specified using a string variable for dynamic mode matching
 +
* Modes can be set using the "Set MacroDroid Mode" action
 +
* When importing macros, if a referenced mode does not exist, it will be automatically created
 +
 
 +
''' See Also '''
 +
 
 +
* [[Action: Set MacroDroid Mode]]
 +
* [[Constraint: MacroDroid Mode]]