Difference between revisions of "Constraint: Volume Level"

 
Line 8: Line 8:
 
''' Example '''
 
''' Example '''
  
''Example 1: Start playback only if media volume is high enough''
+
''Example 1: Auto start media playing only if media volume is not very high (to protect ears)''
 
   <pre class="trigger-style">Triggers
 
   <pre class="trigger-style">Triggers
  
Line 17: Line 17:
 
   <pre class="constraint-style">Constraints
 
   <pre class="constraint-style">Constraints
  
Volume Level - Media >= 30%</pre>
+
Volume Level - Media <= 70%</pre>
  
 
''' See Also '''
 
''' See Also '''
  
 
* [[Constraint: Ringer Volume|Ringer Volume Constraint]]
 
* [[Constraint: Ringer Volume|Ringer Volume Constraint]]

Latest revision as of 14:06, 9 January 2026

This constraint allows or prevents a macro/feature from running based on a specific volume stream level.

Options

  • Stream - Media, ringer, notification, alarm, etc.
  • Above/Below - Compare against a target level

Example

Example 1: Auto start media playing only if media volume is not very high (to protect ears)

Triggers

Headphones Insert/Removed - Connected
Actions

Control Media (Play)
Constraints

Volume Level - Media <= 70%

See Also