This repository contains a collection of Home Assistant automations that enable voice-controlled Spotify playback via custom conversation triggers.
With these automations, you can play music, adjust volume, and control playback effortlessly.
⚠️ Note: Currently, this automation is available only in German.
I’d be happy if someone contributes a yaml with the English translation of the voice commands. 😊
-
Play Music by Artist
Example (DE):"Spiele Musik von Queen"
Example (EN):"Play music by Queen"
-
Play Specific Songs
Example (DE):"Spiele den Song Bohemian Rhapsody"
Example (EN):"Play the song Bohemian Rhapsody"
-
Play Podcasts
Example (DE):"Starte den Podcast Fest & Flauschig"
Example (EN):"Start the podcast Fest & Flauschig"
-
Artist Radio & Playlists
Example (DE):"Spiele das Radio von Coldplay"
or"Spiele die Playlist Party Hits"
Example (EN):"Play the radio of Coldplay"
or"Play the playlist Party Hits"
-
Control Playback
Commands:- German:
"Pause Spotify"
,"Nächstes Lied"
,"Shuffle an"
,"Lautstärke auf 50%"
- English:
"Pause Spotify"
,"Next song"
,"Shuffle on"
,"Volume to 50%"
- German:
-
Like Songs
Example (DE):"Ich mag dieses Lied"
Example (EN):"I like this song"
-
Voice: Spiele Musik von
🎤 Plays music from a specific artist. -
Voice: Spiele Song
🎵 Plays a specific song. -
Voice: Spiele Podcast
🎙️ Plays a specific podcast. -
Voice: Spiele Radio von
📻 Plays the radio of a specific artist. -
Voice: Spiele Spotify und Lieblingssongs
❤️ Plays your favorite songs. -
Voice: Spiele Spotify Weekly
🔄 Plays your weekly Spotify playlist (Spotify Weekly). -
Voice: Lautstärke ändern
🔊 Adjusts the volume (up, down, or to a specific percentage). -
Voice: Nächstes Lied
⏭️ Skips to the next song. -
Voice: Zufällige Wiedergabe
🔀 Toggles shuffle on or off. -
Voice: Spotify abspielen / Play
▶️ Starts Spotify playback. -
Voice: Spiele Playlist - v2
📂 Plays a specific playlist, optionally in shuffle mode. -
Voice: Like Current Song
⭐ Marks the currently playing song as a favorite. -
Voice: Pause Spotify
⏸️ Pauses or stops Spotify playback.
- Home Assistant with SpotifyPlus ( Big thanks to @thlucas )
- Recommended hardware: Home Assistant Voice Preview Edition (VPE)
- Adjust entity IDs (e.g.,
media_player.spotifyplus_yourID
) and Spotify IDs/links as needed. - Add the following helpers and scripts in your
configuration.yaml
:
input_text:
voice_spotify_last_search:
name: "Last Playlist Search"
initial: ""
input_number:
voice_spotify_last_search_index:
name: "Last Playlist Search Index"
min: 0
max: 10
step: 1
mode: box
- Script to select correct spotify source, if needed. (script.play_spotify_on_yourID_source)
sequence:
- alias: Update Source
if:
- condition: not
conditions:
- condition: state
entity_id: media_player.spotifyplus_yourID
attribute: source
state: Spotify Connect Your Source
then:
- data:
source: Spotify Connect Your Source
target:
entity_id: media_player.spotifyplus_yourID
action: media_player.select_source
- action: spotifyplus.player_set_shuffle_mode
metadata: {}
data:
state: true
entity_id: media_player.spotifyplus_yourID
enabled: true
alias: Play Spotify on your Source
mode: single
icon: mdi:spotify
description: ""
📢 Contributing Feel free to fork, translate, suggest improvements, or add new automations! Contributions are always welcome. 😊
For more details, check out the discussion here: 👉 Home Assistant Community Forum