This trigger will fire when various Spotify events occur. In order for this trigger to function, you must enable the "Device Broadcast Status" option within the Spotify app's settings page.

Options

  • Playback Started - The trigger fires when music playback begins in Spotify
  • Playback Stopped - The trigger fires when music playback stops or is paused in Spotify
  • Song Changed - The trigger fires when the currently playing track changes

Requirements

  • Spotify app must be installed
  • "Device Broadcast Status" must be enabled in Spotify app settings

Enabling Device Broadcast Status

To enable broadcasting in Spotify:

  1. Open the Spotify app
  2. Go to Settings (gear icon)
  3. Scroll down to find "Device Broadcast Status"
  4. Enable the option

Without this setting enabled, the trigger will not receive any events from Spotify.

Magic Text Variables

When this trigger fires, Spotify-specific Magic Text values is available:

{spotify_track_id}, {spotify_artist}, {spotify_album}, {spotify_track}, {spotify_track_length_s}, {spotify_is_playing}

Examples

Example 1: Music mode

Enable music-friendly settings when Spotify starts playing:

Triggers

Spotify: Playback Started
Actions

Media Volume: 70%
Do Not Disturb: Enable (Allow media sounds)
Display Notification: "Spotify playing - DND enabled"

Example 2: Restore settings on stop

Restore normal settings when music stops:

Triggers

Spotify: Playback Stopped
Actions

Do Not Disturb: Disable
Media Volume: 50%

Example 3: Track change logging

Show current artist and track as floating text:

Triggers

Spotify: Song Changed
Actions

Floating Text: "{spotify-artist} - {spotify_track}"

Notes

  • If Spotify is not installed, a warning will be displayed when configuring this trigger with a link to install it
  • The trigger listens for Spotify-specific broadcast intents: playbackstatechanged, metadatachanged, and queuechanged
  • The "Device Broadcast Status" setting in Spotify controls whether these broadcasts are sent
  • This trigger only works with the official Spotify app, not Spotify Lite or web player
  • Some metadata may not be available depending on Spotify's current broadcast implementation

See Also