Sonos no sources other than "TV"

Since recently I’ve installed a Sonos Beam Gen2 and 2 Sonos One in my living room.
HASS found it and installed the integration and now I’ve got a media player to tinker with.

But the strange thing is that I can only select the TV as source and not my favorites.
I’ve found some old posts regarding a bug, but cannot seem to find recent issues with it.

I’m probably missing a memo?

If you are looking for sensor.sonos_favorites but can’t find it then it may be disabled.

  1. Go to Settings > Devices & Services > Entities
  2. If you see a box in the upper right corner indicating a number of entities are not shown, click it to reveal them.
  3. In the search box, type Favorites (just Favor should be sufficient) and it should reduce the list to displaying the disabled sensor.

  1. Click the entity and, in the displayed popup, click Enable and then Update.

If the sensor doesn’t appear within 30 seconds (like the displayed message promises), restart Home Assistant.


NOTE

Favorites used to be an attribute in the media_player entity but, early in 2022, was changed to a dedicated sensor.

I found the sensor and enabled it, but wasn’t able to select it as a source.
But it seems that I need to call it differently.

Thanks!

How to play a random favorite:

  - service: media_player.select_source
    target:
      entity_id: media_player.sonos_kitchen
    data:
      source: "{{ state_attr('sensor.sonos_favorites', 'items').values() | list | random }}"

Did my instructions help you to solve the problem you reported?