Difference between revisions of "Trigger: Empty Trigger"

m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">
This trigger will never fire of its own accord. Its main use is for macros that are designed to be invoked from other macros using the [[Action: Macro run|Macro run]] action.
+
This trigger will never fire of its own accord. It can be used for a macro that you want to invoke only with the "Run Macro" action. It may also be used when still developing a macro as a placeholder for future trigger(s).
 
</pre>
 
</pre>
  
'''Example Usage'''<br/>
+
''' Options '''
  
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
This trigger has no configurable options.
Triggers
 
  
 +
''' Use Cases '''
  
</pre><br>
+
The Empty Trigger is useful for:
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
+
* Creating utility macros that should only run when called by other macros via the "Run Macro" action
Actions
+
* Building reusable action sequences that can be invoked from multiple places (Action Blocks are now preferred for this)
 +
* Macros that should never run automatically but only on demand
 +
* A placeholder trigger while a macro is in development
  
 +
''' Examples '''
  
</pre><br>
+
Example 1: Common settings toggle
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constrains
 
  
 +
  <pre class="trigger-style">Triggers
  
</pre><br>
+
Empty Trigger</pre>
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
+
  <pre class="action-style">Actions
Local variables
 
  
 +
Toggle WiFi
 +
Toggle Bluetooth
 +
Toggle Mobile Data</pre>
  
</pre><br>
+
''' Notes '''
 +
 
 +
* A macro with only an Empty Trigger will never run automatically.
 +
* To invoke such a macro, use the "Run Macro" action from another macro, or use the MacroDroid Shortcut widget.
 +
* Empty Trigger macros can also be invoked via the MacroDroid Webhook API or HTTP Request Trigger in another macro.

Latest revision as of 22:52, 5 January 2026

This trigger will never fire of its own accord. It can be used for a macro that you want to invoke only with the "Run Macro" action. It may also be used when still developing a macro as a placeholder for future trigger(s).

Options

This trigger has no configurable options.

Use Cases

The Empty Trigger is useful for:

  • Creating utility macros that should only run when called by other macros via the "Run Macro" action
  • Building reusable action sequences that can be invoked from multiple places (Action Blocks are now preferred for this)
  • Macros that should never run automatically but only on demand
  • A placeholder trigger while a macro is in development

Examples

Example 1: Common settings toggle

Triggers

Empty Trigger
Actions

Toggle WiFi
Toggle Bluetooth
Toggle Mobile Data

Notes

  • A macro with only an Empty Trigger will never run automatically.
  • To invoke such a macro, use the "Run Macro" action from another macro, or use the MacroDroid Shortcut widget.
  • Empty Trigger macros can also be invoked via the MacroDroid Webhook API or HTTP Request Trigger in another macro.