Fix
media_player.shuffle_setno longer breaks scripts and automations after a radio. While Music Assistant played a dynamic source (radio, dynamic playlist), the players stopped offering shuffle and repeat (since 4.10.2), so Home Assistant refusedshuffle_setwith does not support action and stopped the whole script — for instance a wake-up script that set shuffle before starting its playlist. Shuffle and repeat are now always offered. On a dynamic queue, asking for the state it is already in does nothing; a real change is refused by Music Assistant with its own message.- The card still greys out the shuffle and repeat buttons during such playback, now from the new
queue_dynamicattribute of the players.
New
shufflefield ofmy_music_library.play_media(andextra: {shuffle: true}ofmedia_player.play_media): the media plays shuffled, first track included, even when it replaces a radio or a dynamic playlist. Music Assistant drops the shuffle a dynamic source imposed when it is replaced, so a separateshuffle_setbefore the play command was lost.
action: my_music_library.play_media
target:
entity_id: media_player.bedroom
data:
media_id: library://playlist/28
enqueue: replace
shuffle: trueIf your automations call shuffle_set right before a play_media that replaces the queue, move the shuffle into the play command as above.
See the CHANGELOG.