| Line 1: |
Line 1: |
| − | ===<p><b>About</b></p>=== | + | <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> |
| | | | |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | ''' Options ''' |
| − | This trigger will fire when a particular MacroDroid mode is entered/exited.
| |
| | | | |
| − | In the MacroDroid configuration you can find the current mode list, where you can create new modes, edit existing ones, delete or set the current mode.
| + | * '''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) |
| | | | |
| − | You can also change it using the
| + | ''' Mode Selection ''' |
| − | </pre>
| |
| − | '' See also: '' ''[[Action: Set MacroDroid Mode]], [[Constraint: MacroDroid Mode]].'' | |
| | | | |
| − | ==<p><b>Supported configurations</b></p>==
| + | After selecting Enter Mode or Exit Mode, you can choose which specific mode to monitor: |
| | | | |
| − | * ''''' Enter Mode''''' | + | * '''[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. |
| | + | * '''Specific Mode''' - Select from the list of configured MacroDroid modes (e.g., "Standard", "Work", "Home", etc.) |
| | | | |
| − | * ''''' Exit Mode'''''
| + | ''' Examples ''' |
| | | | |
| − | * ''''' Any Change'''''
| + | ''Example 1: Switch to silent mode when entering Work mode'' |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | 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]] |