Sonos - media_player.play_media - extra attributes, title & thumb not working

This feature: Add the ability of setting media attributes on media players when calling media_extractor.play_media or media_player.play_media

would be great to get this working on sonos media players as well.

I cannot make it work on Heos Integration.

Here is my script example :

alias: Webradio FIP Rock
sequence:
  - service: media_player.play_media
    data:
      media_content_id: http://direct.fipradio.fr/live/fiprock-hifi.aac
      media_content_type: url
      extra:
        title: FIP Rock
        thumb: >-
          https://www.radiofrance.fr/client/immutable/assets/fip-seosquare.8560e7c8.png
    target:
      entity_id: media_player.marantz_nr1200_heos
mode: single
icon: mdi:guitar-pick-outline

Then there is the attributes of my media_player entity:

source_list:
  - Apple TV
  - CD
  - Tuner
  - Vinyls
group_members: []
volume_level: 0.51
is_volume_muted: false
media_content_id: '1'
media_content_type: music
media_title: Url Stream
media_artist: Url Stream
media_album_name: fiprock-hifi.aac
shuffle: false
entity_picture_local: null
media_album_id: '1'
media_queue_id: 1
media_source_id: 1024
media_station: null
media_type: song
friendly_name: Marantz NR1200 (HEOS)
supported_features: 2817597
media_duration: 0

It still says “Url Stream” insteed of the title that put in extra.

Any ideas ?

I’m stuck with this as well. :cry:

I started looking at the code of the HEOS integration and to me it looks like there is nothing implemented to handle the extra features of the media_player within the heos component. Thus stuff like title and thumb doesn’t work. If I want it enough I might add this at some point.

However I have a quick workaround by playing stuff as HEOS favorite:

This way I get my thumbnail showing.

Note for favorites to work you need to sign in to HEOS with HA. See Denon HEOS - Home Assistant if you cant play your favorites.