Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After skipping to next track via media_player.media_next_track, track repeats over and over #3265

Open
1 task done
TheWebMachine opened this issue Dec 5, 2024 · 1 comment
Labels
bug Something isn't working Chromecast

Comments

@TheWebMachine
Copy link

What version of Music Assistant has the issue?

2.4.0b7

What version of the Home Assistant Integration have you got installed?

HA Native and 2024.11.x

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

This has been a bug for a little while now, spanning several versions of HA, MA add-on, and integration (now built-in too); only just now getting a chance to report it after some further testing.

When casting a Queue to a speaker or group (GCast), I will often trigger a track skip via automation (Assist voice or dashboard button) that identifies the player currently playing and then skips via that player. This is the action enacted on the playing speaker, which is the MA entity, not the HA Google Cast native entity:

action: media_player.media_next_track
metadata: {}
data: {}
target:
  entity_id:
    - media_player.whole_house

The track skips to the next one as it is supposed to. However, once that track finishes playing, it just repeats...over and over. It's as if the Repeat Single Track is getting enabled. I can skip again and it will move to next in queue, but then repeat that single track over and over.

That said, if I go into that queue, toggle any Repeat option on and then off again the player will properly move on from the current track once finished playing it.

In case it makes any difference, I am using Radio Mode against a YTM playlist to create the Queue.

How to reproduce

  1. Play a queue of music to a speaker (or group)
  2. Skip track using action: media_player.media_next_track
  3. Wait and notice the new current track repeat itself, never moving on to the next track in the queue

...now that a single track keeps repeating, see resolution by...

  1. View the player's queue in MA
  2. Select Repeat Mode and either Repeat Single Track or Repeat Entire Queue
  3. Toggle Repeat Mode back to Repeat Off
  4. Wait and notice the queue moves on from current track when finished

Music Providers

YTM is the only provider I use.

Player Providers

Chromcast/GCast is the only provider I use.

Full log output

NOTE: I am attaching both the MA log direct from its GUI and the log output from the Add-on. For some reason, the add-on's logging shows more data (a repeating warning, in particular) than the log I downloaded from MA GUI, even with debug off. Not sure why there is a mismatch between logging, as I was under the impression that the add-on configuration dictated logging params for both. In the add-on config, I have logging level set to Info.

d5369777_music_assistant_beta_2024-12-05T17-46-38.814Z.log
music-assistant.log

Additional information

Core 2024.12.0
Supervisor 2024.11.4
Operating System 14.0
MA 2.4.0b7 (HA Add-On)
MA Built-In Integration (but also was a problem in HACS v2024.11.x)

What version of Home Assistant Core are your running

2024.12.0

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Linux

@OzGav
Copy link
Contributor

OzGav commented Dec 8, 2024

I am not seeing this problem but I can get a track to repeat once when the queue is two tracks long and both tracks are allowed to play through (Cast and local provider). This will be looked at further in due course.

@OzGav OzGav added bug Something isn't working Chromecast and removed triage labels Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Chromecast
Projects
Status: NEXT
Development

No branches or pull requests

2 participants