| Line 1: |
Line 1: |
| − | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> | + | <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> |
| − | This trigger will fire when the devices Priority Mode / Do Not Disturb state is changed.
| |
| − | </pre> | |
| | | | |
| − | '''Example Usage'''<br/> | + | ''' Options ''' |
| | | | |
| − | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
| + | * '''Allow All''' - Fires when all notifications are permitted (Do Not Disturb is off) |
| − | Triggers
| + | * '''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 ''' |
| | | | |
| − | </pre><br>
| + | ''Example 1: Dim screen when entering Do Not Disturb mode'' |
| − | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Actions
| |
| | | | |
| | + | <pre class="trigger-style">Triggers |
| | | | |
| − | </pre><br> | + | Priority Mode/Do Not Disturb: Block All</pre> |
| − | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | + | <pre class="action-style">Actions |
| − | Constrains
| |
| | | | |
| | + | Set Screen Brightness: 20% |
| | + | Disable Notification LED</pre> |
| | | | |
| − | </pre><br>
| + | ''Example 2: Resume normal settings when DND is disabled'' |
| − | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Local variables
| |
| | | | |
| | + | <pre class="trigger-style">Triggers |
| | | | |
| − | </pre><br> | + | Priority Mode/Do Not Disturb: Allow All</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Set Screen Brightness: Auto |
| | + | Set Media Volume: 70%</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * 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: Priority Mode / Do Not Disturb]] |
| | + | * [[Constraint: Priority Mode / Do Not Disturb]] |