Homeassistant integration to start a playlist with alexa

After a lot of trial and error, I’ve finally managed to get Alexa to respond to the following commands:
“Alexa, play music playlist Party zero one”
“Alexa, turn the music up” and “turn the music down.”
This is all made possible by the “emulated hue” app.

Here’s an excerpt from my configuration.yaml:

after template: !include template.yaml

emulated_hue:
listen_port: 80
expose_by_default: true

and from my template.yaml

  • switch:
    • name: “Musik lauter”
      unique_id: musik_lauter
      icon: mdi:volume-plus
      turn_on:
      service: media_player.volume_set
      target:
      entity_id: media_player.auralic
      data:
      volume_level: >
      {{ [state_attr(‘media_player.auralic’,‘volume_level’) + 0.08, 1] | min }}

    • name: “Musik leiser”
      unique_id: musik_leiser
      icon: mdi:volume-minus
      turn_on:
      service: media_player.volume_set
      target:
      entity_id: media_player.auralic
      data:
      volume_level: >
      {{ [state_attr(‘media_player.auralic’,‘volume_level’) - 0.08, 0] | max }}

    • name: “Musik normal”
      unique_id: musik_normal
      icon: mdi:volume-medium
      turn_on:
      service: media_player.volume_set
      target:
      entity_id: media_player.auralic
      data:
      volume_level: 0.70

    • name: “Musik Playlist Party01”
      unique_id: musik_playlist_party01
      icon: mdi:playlist-music
      turn_on:

      • service: media_player.shuffle_set
        target:
        entity_id: media_player.auralic
        data:
        shuffle: true
      • service: media_player.play_media
        target:
        entity_id: media_player.auralic
        data:
        media_content_type: music
        media_content_id: Playlists/party01

Restart homeassistant.

After Alexa language support has recognized these 4 switches, gi to to your Alexa App and add 4 routines (Musik lauter, Musik leiser, Musik normal, Musik Playlist null eins).
Now I can start the playlist party01, but only in sequential mode, not in shuffle. How to use the hassio mediaplayer app to pass shuffle: true to the roon api?