Difference between revisions of "Trigger: Silent Mode Enabled/Disabled"

(Created page with "1")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
1
+
<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>
 +
 
 +
''' Options '''
 +
 
 +
* '''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]]

Latest revision as of 21:57, 6 January 2026

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.

Options

  • 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:

Triggers

Silent Mode Enabled/Disabled: Silent Mode Enabled
Actions

Set Variable: [flash_notifications] = true

Example 2: Restore normal settings

Re-enable notifications when exiting silent mode:

Triggers

Silent Mode Enabled/Disabled: Silent Mode Disabled
Actions

Set Variable: [flash_notifications] = false
Display Notification: "Sound mode restored"

Example 3: Meeting mode automation

Enhance silent mode with additional settings for meetings:

Triggers

Silent Mode Enabled/Disabled: Silent Mode Enabled
Actions

Vibrate: Disable
Auto-Sync: Disable
Display Notification: "Meeting mode activated"
Constraints

Calendar Event Active

Example 4: Vibrate pattern for silent notifications

Use a custom vibration pattern when entering silent mode:

Triggers

Silent Mode Enabled/Disabled: Silent Mode Enabled
Actions

Vibrate: Custom pattern (100ms on, 100ms off, 100ms on)

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