RedditPP Mascot

RedditPP

r/homeassistant • … • u/TheMagicalMeatball

Music Assistant Automation help - shuffle???

\*\*Starting a playlist shuffled via HA automation — is it possible?\*\*

I'm trying to start a Spotify playlist via a Home Assistant automation using \`music\_assistant.play\_media\`, with shuffle enabled so it doesn't play from track 1 every time.

I've tried the following approaches without success:

1. \`media\_player.shuffle\_set: true\` \*before\* \`play\_media\` — no effect, always plays from track 1

2. \`media\_player.shuffle\_set: true\` \*after\* \`play\_media\` with a 5 second delay (to allow the queue to fully build first) — still no effect, always plays from track 1 in playlist order

I know the persistent shuffle option exists in MA Settings but I only want shuffle enabled for this specific automation — not for all playback on that player.

Is there any supported way to start a playlist in shuffled order via a HA automation? Any help appreciated!

— 0