Difference between revisions of "Trigger: Empty Trigger"

Line 1: Line 1:
<p class="header-style">
+
<pre class="header-style">
This trigger will never fire of its own accord. Its primary use is for macros that can never trigger on their own but only be invoked from other macros, for example by 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).
</p>
+
</pre>
 +
 
 +
''' 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
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Empty Trigger</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Toggle WiFi
 +
Toggle Bluetooth
 +
Toggle Mobile Data</pre>
 +
 
 +
''' 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.
 +
* Local variables can be passed to Empty Trigger macros using the "Run Macro" action with variable passing enabled.

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.
  • Local variables can be passed to Empty Trigger macros using the "Run Macro" action with variable passing enabled.