| Line 1: |
Line 1: |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | + | <pre class="header-style">This trigger will fire when the device is put into or taken out of silent mode. Silent mode is when the ringer volume is set to zero.</pre> |
| − | Will fire when the device is put into or taken out of silent mode.
| |
| | | | |
| − | Silent modee is when the ringer volume is set zero. | + | ''' Options ''' |
| − | </pre> | + | |
| | + | * '''Silent Mode Enabled''' - The trigger fires when the device enters silent mode (ringer volume set to zero) |
| | + | * '''Silent Mode Disabled''' - The trigger fires when the device exits silent mode (ringer volume set above zero) |
| | + | |
| | + | ''' Examples ''' |
| | + | |
| | + | '''Example 1: Visual notification for silent mode''' |
| | + | |
| | + | Flash the screen when receiving notifications while in silent mode: |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Silent Mode Enabled/Disabled: Silent Mode Enabled</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Set Variable: [flash_notifications] = true</pre> |
| | + | |
| | + | '''Example 2: Restore normal settings''' |
| | + | |
| | + | Re-enable notifications when exiting silent mode: |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Silent Mode Enabled/Disabled: Silent Mode Disabled</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Set Variable: [flash_notifications] = false |
| | + | Display Notification: "Sound mode restored"</pre> |
| | + | |
| | + | '''Example 3: Meeting mode automation''' |
| | + | |
| | + | Enhance silent mode with additional settings for meetings: |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Silent Mode Enabled/Disabled: Silent Mode Enabled</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Vibrate: Disable |
| | + | Auto-Sync: Disable |
| | + | Display Notification: "Meeting mode activated"</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Calendar Event Active</pre> |
| | + | |
| | + | '''Example 4: Vibrate pattern for silent notifications''' |
| | + | |
| | + | Use a custom vibration pattern when entering silent mode: |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Silent Mode Enabled/Disabled: Silent Mode Enabled</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Vibrate: Custom pattern (100ms on, 100ms off, 100ms on)</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger listens for the Android RINGER_MODE_CHANGED_ACTION broadcast |
| | + | * Silent mode is specifically when the ringer volume is set to zero, not to be confused with vibrate mode |
| | + | * On some devices, Do Not Disturb may affect silent mode detection |
| | + | * The trigger fires immediately when the ringer mode changes |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Action:_Volume_Change|Volume Change]] |
| | + | * [[Action:_Silent_-_Vibrate_Off|Silent - Vibrate Off Action]] |