Changes

no edit summary
Line 1: Line 1: −
<pre class="header-style">
+
<pre class="header-style">The Headphones Inserted/Removed trigger fires when headphones are connected to or disconnected from the device. This allows you to automate actions based on headphone connection events, with the ability to differentiate between headphones with and without a microphone.</pre>
This trigger will fire when headphones are connected or removed from the device.
  −
</pre>
     −
'''Configuration Options'''
+
''' Options '''
   −
* Headpones Inserted
+
* '''Headphones Inserted''': Trigger fires when headphones are plugged in
** Any
+
** '''Any''': Triggers for any type of headphones
** No microphone
+
** '''No Microphone''': Only triggers for headphones without a microphone
** With microphone
+
** '''With Microphone''': Only triggers for headphones/headsets that include a microphone
   −
* Headpones Removed
+
* '''Headphones Removed''': Trigger fires when headphones are unplugged
 +
 
 +
''' Examples '''
 +
 
 +
''Example 1: Launch Music App When Headphones Connected''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Headphones Inserted (Any)</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Launch Application - Spotify</pre>
 +
 
 +
Automatically launches Spotify when any headphones are connected.
 +
 
 +
''Example 2: Pause Media When Headphones Removed''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Headphones Removed</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Control Media - Pause</pre>
 +
 
 +
Pauses media playback when headphones are unplugged to prevent audio from playing through the device speaker.
 +
 
 +
''' Notes '''
 +
 
 +
* This trigger monitors the ACTION_HEADSET_PLUG broadcast.
 +
* The microphone detection options only apply to the "Headphones Inserted" selection.
 +
* Bluetooth headphones may not trigger this event - use the Bluetooth trigger for wireless headphones.
 +
* Some devices may report headphone microphone presence differently.
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger:_Bluetooth_Event|Bluetooth Event Trigger]]
 +
* [[Action:_Control_Media|Control Media Action]]