Skip to content

feat(home-assistant): play genres, moods and own playlists by voice - #1798

Merged
johnae merged 1 commit into
mainfrom
ha-genres-playlists
Sep 27, 2026
Merged

johnae merged 1 commit into
mainfrom
ha-genres-playlists

Conversation

@johnae

@johnae johnae commented Sep 26, 2026

Copy link
Copy Markdown
Owner

"Spela reggae" and playlist requests always failed. Sök musik and
Spela musik only handled artists, albums and songs, and playlists hit
another Spotify development-mode restriction: the tracks of a playlist you
don't own come back as playlists/…/items not found. That applies to public
playlists from search and to playlists you follow ("Best Techno 2026").

  • Genres and moods: Spela musik gets type genre, which queues the top
    25 tracks from Spotify's genre:"…" search filter. Search is still allowed
    in development mode. The model translates a mood into a genre, for example
    "lugn musik" becomes "chill".
  • Playlists: Sök musik lists three of your own library playlists, since
    only those play, and Spela musik accepts type playlist.
  • Exact artist: Sök musik adds exakt_artist when an artist has exactly
    the name asked for. "Spela Skriet" used to get "Menade du låten Skriet av
    Lars Winnerbäck?" even though the band Skriet was the top hit.

The prompt changes are runtime settings; the docs now contain the updated
prompt and the playlist restriction.

Tested in the kitchen with the Voice PE's context, speaker muted: reggae,
lugn musik, jazz, the playlist "Al Green", Skriet, Bob Marley, Dolly Style
and Bruce Springsteen all play. "Poly Style" still gets "Menade du Poly
Styrene?", which is correct. Genre results are only as clean as Spotify's
genre tags: "jazz" opened with a track that isn't jazz.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XfYTVcQVjCevVeoJofu8FF

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XfYTVcQVjCevVeoJofu8FF
@claude

claude Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@johnae
johnae merged commit 94db500 into main Sep 27, 2026
1 of 2 checks passed
@johnae
johnae deleted the ha-genres-playlists branch September 27, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant