(62 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
<pre class="header-style">
 
A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid.
 
A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid.
  
== List of Triggers ==
+
For a trigger to fire, the macro must be enabled (i.e. ready to run, not disabled) at the exact time the event occurs.
 +
</pre>
  
[[Activity Recognition]]
+
It is possible to add multiple triggers to a single macro and in this case any single trigger firing will cause the macro to be invoked.
  
[[Airplane mode changed]]
+
It is not possible to combine triggers with AND logic when using [[Constraint: Trigger Fired|Trigger Fired]] constraint (Basically saying "If trigger 1 fired AND trigger 2 fired") because a trigger is an instantaneous event, so it is not possible (or highly improbable) to get a state where two instantaneous events happen at exactly the same time. There's always exactly 1 trigger that started an execution of your macro actions.
  
[[Android Wear]]
+
As an alternative to combining triggers with an AND statement it is generally possible to add constraint logic to individual triggers such that they can be limited to fire when only some other state is also true.
  
[[App Install/Remove/Update]]
+
= List of Triggers =
  
[[Application Launches/Closed]]
+
[[Trigger: Accessibility Service State|Accessibility Service State]]
  
[[Auto Rotate changed]]
+
[[Trigger: Activity Recognition|Activity Recognition]]
  
[[Autosync changed]]
+
[[Trigger: Airplane mode changed|Airplane mode changed]]
  
[[Battery Level]]
+
[[Trigger: Android Wear|Android Wear]]
  
[[Battery Saver State]]
+
[[Trigger: App Install/Remove/Update|App Install/Remove/Update]]
  
[[Battery Temperature]]
+
[[Trigger: Application Launched/Closed|Application Launched/Closed]]
  
[[Bluetooth Beacon (experimental]]
+
[[Trigger: Auto Rotate changed|Auto Rotate changed]]
  
[[Bluetooth Event]]
+
[[Trigger: Autosync changed|Autosync changed]]
  
[[Calendar Event]]
+
[[Trigger: Battery Level|Battery Level]]
  
[[Call Active]]
+
[[Trigger: Battery Saver State|Battery Saver State]]
  
[[Call Ended]]
+
[[Trigger: Battery Temperature|Battery Temperature]]
  
[[Call Incoming]]
+
[[Trigger: Bluetooth Beacon (experimental)|Bluetooth Beacon (experimental)]]
  
[[Call Missed]]
+
[[Trigger: Bluetooth Event|Bluetooth Event]]
  
[[Call Outgoing]]
+
[[Trigger: Calendar Event|Calendar Event]]
  
[[Cell Tower Change]]
+
[[Trigger: Call Active|Call Active]]
  
[[Clipboard Change]]
+
[[Trigger: Call Ended|Call Ended]]
  
[[Data Connectivity Change]]
+
[[Trigger: Call Incoming|Call Incoming]]
  
[[Day of Week/Month]]
+
[[Trigger: Call Missed|Call Missed]]
  
[[Day/Time Trigger]]
+
[[Trigger: Call Outgoing|Call Outgoing]]
  
[[Daydream On/Off]]
+
[[Trigger: Cell Tower Change|Cell Tower Change]]
  
[[Device Boot]]
+
[[Trigger: Clipboard Change|Clipboard Change]]
  
[[Device Docked/Undocked]]
+
[[Trigger: Dark Theme Change|Dark Theme Change]]
  
[[Dial Phone Number]]
+
[[Trigger: Data Connectivity Change|Data Connectivity Change]]
  
[[Empty Trigger]]
+
[[Trigger: Day of Week/Month|Day of Week/Month]]
  
[[Failed Login Attempt]]
+
[[Trigger: Day/Time Trigger|Day/Time Trigger]]
  
[[Fingerprint Gesture]]
+
[[Trigger: Daydream On/Off|Daydream On/Off]]
  
[[Flip Device]]
+
[[Trigger: Device Boot|Device Boot]]
  
[[Floating Buttn]]
+
[[Trigger: Device Docked/Undocked|Device Docked/Undocked]]
  
[[Geofence Trigger]]
+
[[Trigger: Dial Phone Number|Dial Phone Number]]
  
[[GPS Enabled/Disabled]]
+
[[Trigger: Empty Trigger|Empty Trigger]]
  
[[Headphones Insert/Removed]]
+
[[Trigger: Failed Login Attempt|Failed Login Attempt]]
  
[[Home Button Long Press]]
+
[[Trigger: File Shared to MacroDroid|File Shared to MacroDroid]]
  
[[Hotspot Enabled/Disabled]]
+
[[Trigger: Fingerprint Gesture|Fingerprint Gesture]]
  
[[Intent Received]]
+
[[Trigger: Flip Device|Flip Device]]
  
[[IP address Change]]
+
[[Trigger: Floating Button|Floating Button]]
  
[[Light Sensor]]
+
[[Trigger: Fold State|Fold State]]
  
[[Location Trigger]]
+
[[Trigger: Geofence Trigger|Geofence Trigger]]
  
[[Logcat Message]]
+
[[Trigger: GPS Enabled/Disabled|GPS Enabled/Disabled]]
  
[[MacroDroid Drawer Open/Close]]
+
[[Trigger: Headphones Insert/Removed|Headphones Insert/Removed]]
  
[[MacroDroid Initialised]]
+
[[Trigger: Home Button Long Press|Home Button Long Press]]
  
[[MacroDroid Mode Change]]
+
[[Trigger: Hotspot Enabled/Disabled|Hotspot Enabled/Disabled]]
  
[[MacroDroid Variable Change]]
+
[[Trigger: HTTP Server Request|HTTP Server Request]]
  
[[Media Button Pressed]]
+
[[Trigger: Intent Received|Intent Received]]
  
[[Media Button V2 Beta]]
+
[[Trigger: IP address Change|IP address Change]]
  
[[Mobile Service Status]]
+
[[Trigger: Light Sensor|Light Sensor]]
  
[[Music/Sound playing]]
+
[[Trigger: Location Trigger|Location Trigger]]
  
[[NFC Tag]]
+
[[Trigger: Logcat Message|Logcat Message]]
  
[[Notification]]
+
[[Trigger: Macro enabled|Macro enabled]]
  
[[Notification Bar Button]]
+
[[Trigger: Macro finished|Macro finished]]
  
[[Power Button Toggle]]
+
[[Trigger: MacroDroid Drawer Open/Close|MacroDroid Drawer Open/Close]]
  
[[Power Connected/Disconnected]]
+
[[Trigger: MacroDroid Icon Long Press Shortcut|MacroDroid Icon Long Press Shortcut]]
  
[[Priority Mode/Do Not Disturb]]
+
[[Trigger: MacroDroid Initialised|MacroDroid Initialised]]
  
[[Proximity Sensor]]
+
[[Trigger: MacroDroid Mode Change|MacroDroid Mode Change]]
  
[[Quick Settings tile]]
+
[[Trigger: MacroDroid Variable Change|MacroDroid Variable Change]]
  
[[Recent Apps Opened]]
+
[[Trigger: Media Button Pressed|Media Button Pressed]]
  
[[Regular Interval]]
+
[[Trigger: Media Button V2 Beta|Media Button V2 Beta]]
  
[[Roaming Started/Stopped]]
+
[[Trigger: Media Track Changed|Media Track Changed]]
  
[[Screen On/Off]]
+
[[Trigger: Mobile Service Status|Mobile Service Status]]
  
[[Screen Orientation]]
+
[[Trigger: Music/Sound playing|Music/Sound playing]]
  
[[Screen Unlocked]]
+
[[Trigger: NFC Enabled State|NFC Enabled State]]
  
[[Shake Device]]
+
[[Trigger: NFC Tag|NFC Tag]]
  
[[Shortcut Launched]]
+
[[Trigger: Notification|Notification]]
  
[[Silent Mode Enabled/Disabled]]
+
[[Trigger: Notification Bar Button|Notification Bar Button]]
  
[[Sim Card Change]]
+
[[Trigger: Photo Taken|Photo Taken]]
  
[[SMS Received]]
+
[[Trigger: Popup Message|Popup Message]]
  
[[Stopwatch]]
+
[[Trigger: Power Button Long Press|Power Button Long Press]]
  
[[Sunset/Sunrise]]
+
[[Trigger: Power Button Toggle|Power Button Toggle]]
  
[[Swipe Screen]]
+
[[Trigger: Power Connected/Disconnected|Power Connected/Disconnected]]
  
[[Tasker/Locale Plugin]]
+
[[Trigger: Priority Mode/Do Not Disturb|Priority Mode/Do Not Disturb]]
  
[[USB Device Connect/Disconnect]]
+
[[Trigger: Proximity Sensor|Proximity Sensor]]
  
[[Volume Button Long Press]]
+
[[Trigger: Quick Settings tile|Quick Settings tile]]
  
[[Volume Button Press]]
+
[[Trigger: Recent Apps Opened|Recent Apps Opened]]
  
[[VPN State]]
+
[[Trigger: Regular Interval|Regular Interval]]
  
[[Weather]]
+
[[Trigger: Roaming Started/Stopped|Roaming Started/Stopped]]
  
[[Webhook (URL)]]
+
[[Trigger: Screen content|Screen content]]
  
[[Widget Button]]
+
[[Trigger: Screen On/Off|Screen On/Off]]
  
[[Wifi SSID Transition]]
+
[[Trigger: Screen Orientation|Screen Orientation]]
  
[[Wifi State Change]]
+
[[Trigger: Screen Unlocked|Screen Unlocked]]
 +
 
 +
[[Trigger: Screenshot Content|Screenshot Content]]
 +
 
 +
[[Trigger: Shake Device|Shake Device]]
 +
 
 +
[[Trigger: Shortcut Launched|Shortcut Launched]]
 +
 
 +
[[Trigger: Silent Mode Enabled/Disabled|Silent Mode Enabled/Disabled]]
 +
 
 +
[[Trigger: Sim Card Change|Sim Card Change]]
 +
 
 +
[[Trigger: Sleep|Sleep]]
 +
 
 +
[[Trigger: SMS Received|SMS Received]]
 +
 
 +
[[Trigger: SMS Sent|SMS Sent]]
 +
 
 +
[[Trigger: Spotify|Spotify]]
 +
 
 +
[[Trigger: Stopwatch|Stopwatch]]
 +
 
 +
[[Trigger: Sunset/Sunrise|Sunset/Sunrise]]
 +
 
 +
[[Trigger: Swipe Screen|Swipe Screen]]
 +
 
 +
[[Trigger: System log|System Log Entry]]
 +
 
 +
[[Trigger: System Setting Change|System Setting Change]]
 +
 
 +
[[Trigger: Tasker/Locale Plugin|Tasker/Locale Plugin]]
 +
 
 +
[[Trigger: Text Shared to MacroDroid|Text Shared to MacroDroid]]
 +
 
 +
[[Trigger: Torch On/Off|Torch On/Off]]
 +
 
 +
[[Trigger: UI Click|UI Click]]
 +
 
 +
[[Trigger: USB Device Connect/Disconnect|USB Device Connect/Disconnect]]
 +
 
 +
[[Trigger: USB Tethering|USB Tethering]]
 +
 
 +
[[Trigger: Volume Button Long Press|Volume Button Long Press]]
 +
 
 +
[[Trigger: Volume Button Press|Volume Button Press]]
 +
 
 +
[[Trigger: VPN State|VPN State]]
 +
 
 +
[[Trigger: Weather|Weather]]
 +
 
 +
[[Trigger: Webhook (URL)|Webhook (URL)]]
 +
 
 +
[[Trigger: Widget Button|Widget Button]]
 +
 
 +
[[Trigger: Wifi SSID Transition|Wifi SSID Transition]]
 +
 
 +
[[Trigger: Wifi State Change|Wifi State Change]]

Latest revision as of 10:00, 9 January 2026

A trigger is an instantaneous event that your device can detect to make a macro run. A macro must have at least one trigger to be valid.

For a trigger to fire, the macro must be enabled (i.e. ready to run, not disabled) at the exact time the event occurs.

It is possible to add multiple triggers to a single macro and in this case any single trigger firing will cause the macro to be invoked.

It is not possible to combine triggers with AND logic when using Trigger Fired constraint (Basically saying "If trigger 1 fired AND trigger 2 fired") because a trigger is an instantaneous event, so it is not possible (or highly improbable) to get a state where two instantaneous events happen at exactly the same time. There's always exactly 1 trigger that started an execution of your macro actions.

As an alternative to combining triggers with an AND statement it is generally possible to add constraint logic to individual triggers such that they can be limited to fire when only some other state is also true.

List of Triggers

Accessibility Service State

Activity Recognition

Airplane mode changed

Android Wear

App Install/Remove/Update

Application Launched/Closed

Auto Rotate changed

Autosync changed

Battery Level

Battery Saver State

Battery Temperature

Bluetooth Beacon (experimental)

Bluetooth Event

Calendar Event

Call Active

Call Ended

Call Incoming

Call Missed

Call Outgoing

Cell Tower Change

Clipboard Change

Dark Theme Change

Data Connectivity Change

Day of Week/Month

Day/Time Trigger

Daydream On/Off

Device Boot

Device Docked/Undocked

Dial Phone Number

Empty Trigger

Failed Login Attempt

File Shared to MacroDroid

Fingerprint Gesture

Flip Device

Floating Button

Fold State

Geofence Trigger

GPS Enabled/Disabled

Headphones Insert/Removed

Home Button Long Press

Hotspot Enabled/Disabled

HTTP Server Request

Intent Received

IP address Change

Light Sensor

Location Trigger

Logcat Message

Macro enabled

Macro finished

MacroDroid Drawer Open/Close

MacroDroid Icon Long Press Shortcut

MacroDroid Initialised

MacroDroid Mode Change

MacroDroid Variable Change

Media Button Pressed

Media Button V2 Beta

Media Track Changed

Mobile Service Status

Music/Sound playing

NFC Enabled State

NFC Tag

Notification

Notification Bar Button

Photo Taken

Popup Message

Power Button Long Press

Power Button Toggle

Power Connected/Disconnected

Priority Mode/Do Not Disturb

Proximity Sensor

Quick Settings tile

Recent Apps Opened

Regular Interval

Roaming Started/Stopped

Screen content

Screen On/Off

Screen Orientation

Screen Unlocked

Screenshot Content

Shake Device

Shortcut Launched

Silent Mode Enabled/Disabled

Sim Card Change

Sleep

SMS Received

SMS Sent

Spotify

Stopwatch

Sunset/Sunrise

Swipe Screen

System Log Entry

System Setting Change

Tasker/Locale Plugin

Text Shared to MacroDroid

Torch On/Off

UI Click

USB Device Connect/Disconnect

USB Tethering

Volume Button Long Press

Volume Button Press

VPN State

Weather

Webhook (URL)

Widget Button

Wifi SSID Transition

Wifi State Change