(59 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: Activity Recognition|Activity Recognition]]
  
[[Auto Rotate changed]]
+
[[Trigger: Airplane mode changed|Airplane mode changed]]
  
[[Autosync changed]]
+
[[Trigger: Android Wear|Android Wear]]
  
[[Battery Level]]
+
[[Trigger: App Install/Remove/Update|App Install/Remove/Update]]
  
[[Battery Saver State]]
+
[[Trigger: Application Launched/Closed|Application Launched/Closed]]
  
[[Battery Temperature]]
+
[[Trigger: Auto Rotate changed|Auto Rotate changed]]
  
[[Bluetooth Beacon (experimental]]
+
[[Trigger: Autosync changed|Autosync changed]]
  
[[Bluetooth Event]]
+
[[Trigger: Battery Level|Battery Level]]
  
[[Calendar Event]]
+
[[Trigger: Battery Saver State|Battery Saver State]]
  
[[Call Active]]
+
[[Trigger: Battery Temperature|Battery Temperature]]
  
[[Call Ended]]
+
[[Trigger: Bluetooth Beacon (experimental)|Bluetooth Beacon (experimental)]]
  
[[Call Incoming]]
+
[[Trigger: Bluetooth Event|Bluetooth Event]]
  
[[Call Missed]]
+
[[Trigger: Calendar Event|Calendar Event]]
  
[[Call Outgoing]]
+
[[Trigger: Call Active|Call Active]]
  
[[Cell Tower Change]]
+
[[Trigger: Call Ended|Call Ended]]
  
[[Clipboard Change]]
+
[[Trigger: Call Incoming|Call Incoming]]
  
[[Data Connectivity Change]]
+
[[Trigger: Call Missed|Call Missed]]
  
[[Day of Week/Month]]
+
[[Trigger: Call Outgoing|Call Outgoing]]
  
[[Day/Time Trigger]]
+
[[Trigger: Cell Tower Change|Cell Tower Change]]
  
[[Daydream On/Off]]
+
[[Trigger: Clipboard Change|Clipboard Change]]
  
[[Device Boot]]
+
[[Trigger: Dark Theme Change|Dark Theme Change]]
  
[[Device Docked/Undocked]]
+
[[Trigger: Data Connectivity Change|Data Connectivity Change]]
  
[[Dial Phone Number]]
+
[[Trigger: Day of Week/Month|Day of Week/Month]]
  
[[Empty Trigger]]
+
[[Trigger: Day/Time Trigger|Day/Time Trigger]]
  
[[Failed Login Attempt]]
+
[[Trigger: Daydream On/Off|Daydream On/Off]]
  
[[Fingerprint Gesture]]
+
[[Trigger: Device Boot|Device Boot]]
  
[[Flip Device]]
+
[[Trigger: Device Docked/Undocked|Device Docked/Undocked]]
  
[[Floating Buttn]]
+
[[Trigger: Dial Phone Number|Dial Phone Number]]
  
[[Geofence Trigger]]
+
[[Trigger: Empty Trigger|Empty Trigger]]
  
[[GPS Enabled/Disabled]]
+
[[Trigger: Failed Login Attempt|Failed Login Attempt]]
  
[[Headphones Insert/Removed]]
+
[[Trigger: Fingerprint Gesture|Fingerprint Gesture]]
  
[[Home Button Long Press]]
+
[[Trigger: Flip Device|Flip Device]]
  
[[Hotspot Enabled/Disabled]]
+
[[Trigger: Floating Button|Floating Button]]
  
[[Intent Received]]
+
[[Trigger: Geofence Trigger|Geofence Trigger]]
  
[[IP address Change]]
+
[[Trigger: GPS Enabled/Disabled|GPS Enabled/Disabled]]
  
[[Light Sensor]]
+
[[Trigger: Headphones Insert/Removed|Headphones Insert/Removed]]
  
[[Location Trigger]]
+
[[Trigger: Home Button Long Press|Home Button Long Press]]
  
[[Logcat Message]]
+
[[Trigger: Hotspot Enabled/Disabled|Hotspot Enabled/Disabled]]
  
[[MacroDroid Drawer Open/Close]]
+
[[Trigger: HTTP Server Request|HTTP Server Request]]
  
[[MacroDroid Initialised]]
+
[[Trigger: Intent Received|Intent Received]]
  
[[MacroDroid Mode Change]]
+
[[Trigger: IP address Change|IP address Change]]
  
[[MacroDroid Variable Change]]
+
[[Trigger: Light Sensor|Light Sensor]]
  
[[Media Button Pressed]]
+
[[Trigger: Location Trigger|Location Trigger]]
  
[[Media Button V2 Beta]]
+
[[Trigger: Logcat Message|Logcat Message]]
  
[[Mobile Service Status]]
+
[[Trigger: Macro enabled|Macro enabled]]
  
[[Music/Sound playing]]
+
[[Trigger: Macro finished|Macro finished]]
  
[[NFC Tag]]
+
[[Trigger: MacroDroid Drawer Open/Close|MacroDroid Drawer Open/Close]]
  
[[Notification]]
+
[[Trigger: MacroDroid Initialised|MacroDroid Initialised]]
  
[[Notification Bar Button]]
+
[[Trigger: MacroDroid Mode Change|MacroDroid Mode Change]]
  
[[Power Button Toggle]]
+
[[Trigger: MacroDroid Variable Change|MacroDroid Variable Change]]
  
[[Power Connected/Disconnected]]
+
[[Trigger: Media Button Pressed|Media Button Pressed]]
  
[[Priority Mode/Do Not Disturb]]
+
[[Trigger: Media Button V2 Beta|Media Button V2 Beta]]
  
[[Proximity Sensor]]
+
[[Trigger: Mobile Service Status|Mobile Service Status]]
  
[[Quick Settings tile]]
+
[[Trigger: Music/Sound playing|Music/Sound playing]]
  
[[Recent Apps Opened]]
+
[[Trigger: NFC Tag|NFC Tag]]
  
[[Regular Interval]]
+
[[Trigger: Notification|Notification]]
  
[[Roaming Started/Stopped]]
+
[[Trigger: Notification Bar Button|Notification Bar Button]]
  
[[Screen On/Off]]
+
[[Trigger: Power Button Long Press|Power Button Long Press]]
  
[[Screen Orientation]]
+
[[Trigger: Power Button Toggle|Power Button Toggle]]
  
[[Screen Unlocked]]
+
[[Trigger: Power Connected/Disconnected|Power Connected/Disconnected]]
  
[[Shake Device]]
+
[[Trigger: Priority Mode/Do Not Disturb|Priority Mode/Do Not Disturb]]
  
[[Shortcut Launched]]
+
[[Trigger: Proximity Sensor|Proximity Sensor]]
  
[[Silent Mode Enabled/Disabled]]
+
[[Trigger: Quick Settings tile|Quick Settings tile]]
  
[[Sim Card Change]]
+
[[Trigger: Recent Apps Opened|Recent Apps Opened]]
  
[[SMS Received]]
+
[[Trigger: Regular Interval|Regular Interval]]
  
[[Stopwatch]]
+
[[Trigger: Roaming Started/Stopped|Roaming Started/Stopped]]
  
[[Sunset/Sunrise]]
+
[[Trigger: Screen content|Screen content]]
  
[[Swipe Screen]]
+
[[Trigger: Screen On/Off|Screen On/Off]]
  
[[Tasker/Locale Plugin]]
+
[[Trigger: Screen Orientation|Screen Orientation]]
  
[[USB Device Connect/Disconnect]]
+
[[Trigger: Screen Unlocked|Screen Unlocked]]
  
[[Volume Button Long Press]]
+
[[Trigger: Shake Device|Shake Device]]
  
[[Volume Button Press]]
+
[[Trigger: Shortcut Launched|Shortcut Launched]]
  
[[VPN State]]
+
[[Trigger: Silent Mode Enabled/Disabled|Silent Mode Enabled/Disabled]]
  
[[Weather]]
+
[[Trigger: Sim Card Change|Sim Card Change]]
  
[[Webhook (URL)]]
+
[[Trigger: Sleep|Sleep]]
  
[[Widget Button]]
+
[[Trigger: SMS Received|SMS Received]]
  
[[Wifi SSID Transition]]
+
[[Trigger: SMS Sent|SMS Sent]]
  
[[Wifi State Change]]
+
[[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: UI Click|UI Click]]
 +
 
 +
[[Trigger: USB Device Connect/Disconnect|USB Device Connect/Disconnect]]
 +
 
 +
[[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 22:17, 10 June 2024

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

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

Fingerprint Gesture

Flip Device

Floating Button

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 Initialised

MacroDroid Mode Change

MacroDroid Variable Change

Media Button Pressed

Media Button V2 Beta

Mobile Service Status

Music/Sound playing

NFC Tag

Notification

Notification Bar Button

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

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

UI Click

USB Device Connect/Disconnect

Volume Button Long Press

Volume Button Press

VPN State

Weather

Webhook (URL)

Widget Button

Wifi SSID Transition

Wifi State Change