Media_player enqueue (Sonos)

Hi,

I am trying to use the Sonos queue with Home Assistant.

Simply using media_player.play_media starts playing the track without adding it to the queue, just like playing for example a radio station using the native Sonos interface.

I found a (hidden, undocumented) parameter of media_player.play_media: enqueue. Setting this option to true actually adds the track to the queue, but there is no way to start playing the queue. media_player.media_pause and media_play stop and start the (radio-like) track and don’t touch the queue.

Is there another (hidden) parameter to forcefully start playing the Sonos queued tracks? Did I miss anything?

I ended up creating a new service sonos.play_queue: https://github.com/home-assistant/home-assistant/pull/24974

1 Like