Difference between revisions of "Trigger: Priority Mode/Do Not Disturb"
| Line 1: | Line 1: | ||
| − | <pre | + | <pre class="header-style">The Priority Mode/Do Not Disturb trigger fires when the device's Priority Mode or Do Not Disturb state is changed to a specific configuration. This allows you to automate actions based on the device's notification interruption settings.</pre> |
| − | + | ||
| − | </pre> | + | ''' Options ''' |
| − | * '' Allow All'' | + | |
| − | * '' Allow Priority Notifications'' | + | * '''Allow All''' - Fires when all notifications are permitted (Do Not Disturb is off) |
| − | * '' Block All'' | + | * '''Allow Priority Notifications''' - Fires when only priority notifications are allowed |
| − | * '' Alarm Only'' | + | * '''Block All''' - Fires when all notifications are blocked (total silence) |
| + | * '''Alarm Only''' - Fires when only alarm notifications are permitted (Android 6.0+) | ||
| + | |||
| + | ''' Examples ''' | ||
| + | |||
| + | ''Example 1: Dim screen when entering Do Not Disturb mode'' | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Priority Mode/Do Not Disturb: Block All</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Set Screen Brightness: 20% | ||
| + | Disable Notification LED</pre> | ||
| + | |||
| + | ''Example 2: Resume normal settings when DND is disabled'' | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Priority Mode/Do Not Disturb: Allow All</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Set Screen Brightness: Auto | ||
| + | Enable Notification LED</pre> | ||
| + | |||
| + | ''Example 3: Set alarm volume when in Alarms Only mode'' | ||
| + | |||
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Priority Mode/Do Not Disturb: Alarm Only</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Set Volume: Alarm Volume 100%</pre> | ||
| + | |||
| + | ''' Notes ''' | ||
| + | |||
| + | * The "Alarm Only" option is only available on Android 6.0 (Marshmallow) and higher | ||
| + | * On older versions of Android (5.x), only three options are available: Allow All, Allow Priority, and Block All | ||
| + | * The trigger listens for changes to the system's interruption filter setting | ||
| + | * Do Not Disturb settings can be changed manually by the user, by scheduled rules, or by apps with the appropriate permission | ||
| + | * This trigger reacts to the system DND state, regardless of what changed it | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Action: Set Do Not Disturb]] | ||
| + | * [[Constraint: Priority Mode/Do Not Disturb]] | ||
| + | * [[Action: Set Ringer Mode]] | ||
Revision as of 21:22, 6 January 2026
The Priority Mode/Do Not Disturb trigger fires when the device's Priority Mode or Do Not Disturb state is changed to a specific configuration. This allows you to automate actions based on the device's notification interruption settings.
Options
- Allow All - Fires when all notifications are permitted (Do Not Disturb is off)
- Allow Priority Notifications - Fires when only priority notifications are allowed
- Block All - Fires when all notifications are blocked (total silence)
- Alarm Only - Fires when only alarm notifications are permitted (Android 6.0+)
Examples
Example 1: Dim screen when entering Do Not Disturb mode
Triggers Priority Mode/Do Not Disturb: Block All
Actions Set Screen Brightness: 20% Disable Notification LED
Example 2: Resume normal settings when DND is disabled
Triggers Priority Mode/Do Not Disturb: Allow All
Actions Set Screen Brightness: Auto Enable Notification LED
Example 3: Set alarm volume when in Alarms Only mode
Triggers Priority Mode/Do Not Disturb: Alarm Only
Actions Set Volume: Alarm Volume 100%
Notes
- The "Alarm Only" option is only available on Android 6.0 (Marshmallow) and higher
- On older versions of Android (5.x), only three options are available: Allow All, Allow Priority, and Block All
- The trigger listens for changes to the system's interruption filter setting
- Do Not Disturb settings can be changed manually by the user, by scheduled rules, or by apps with the appropriate permission
- This trigger reacts to the system DND state, regardless of what changed it
See Also