hass-music-assistant: track info and queue out of sync with reality
What version of Music Assistant has the issue?
2022.8.1
The problem
I had started a spotify playlist using MA to target my Sonos speakers (which had been grouped in the Sonos app).
After a while I checked MA and saw two things :
= track display was showing the wrong song and progress indicator not showing any progress
= queue itself had not been updated either
At the time of screenshot the active song in reality was “Liberty of Action” … so not even close to the first one in the list.
Error logs are devoid of any
How to reproduce
Unknown at this time.
I did have an automation start a set of playlists using the MA queue command :
`alias: Start muziek (weekend) sequence:
- service: scene.turn_on target: entity_id: scene.luidsprekers metadata: {}
- service: mass.queue_command data: command: play_media uri: - spotify://playlist/2vL2n1YjQVd1rIMTb5zEbN - https://open.spotify.com/playlist/0qHrlAzF0AKCLHrQ3i6WWA - https://open.spotify.com/playlist/0qxXwSOgfNzBYJQqMhwn4n - https://open.spotify.com/playlist/37i9dQZF1DX0xLQsW8b5Zx enqueue_mode: play target: entity_id: media_player.mass_all_sonos_speakers mode: single icon: mdi:file-music `
The playlist that caused the problem I had started in the MA webinterface by targetting one of my Sonos speakers.
Relevant log output
No relevent info found.
Additional information
The MA target “media_player.mass_all_sonos_speakers” is based on a HA group of Sonos speakers. The Sonos speakers themselves are also grouped within the Sonos app. As a result both groups are identical … but they do have their own queues in MA
What version of Home Assistant Core are your running
2022.8.1
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (11 by maintainers)
The latest versions are only patches so please wait until the next full release and we will see what the situation is then
MA v2b4 :
Playback with default settings has been good. Only two minor interrupts. During the second one the Symfonysk was playing while the Play:1 was silent, but it caught up.
I’m also seeing track progress and queue updates in sync.
Definitely looking good so far.
Like discussed in discord I need to build a small guard in the code to ignore “passive” speakers from the play action so in case you gave a group of grouped speakers, the play commands are only sent to the “leader” player.