github Patafoin/ha-my-music-library v4.21.1
4.21.1 — Shuffle in automations after a radio

one hour ago

Fix

  • media_player.shuffle_set no 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 refused shuffle_set with 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_dynamic attribute of the players.

New

  • shuffle field of my_music_library.play_media (and extra: {shuffle: true} of media_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 separate shuffle_set before 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: true

If 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.

Don't miss a new ha-my-music-library release

NewReleases is sending notifications on new releases.