music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.37k stars 52 forks source link

media_player.join not working #3134

Open JDogg016 opened 9 hours ago

JDogg016 commented 9 hours ago

What version of Music Assistant has the issue?

2.3.2

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

2024.10.4

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

The problem

Running the action to join two Sonos MA Speakers has no effect:

action: media_player.join
data:
  group_members:
    - media_player.ma_gym_overhead_speaker_sonos
    - media_player.ma_gym_tv_speaker_sonos
target:
  entity_id: media_player.ma_gym_tv_speaker_sonos

How to reproduce

Just try to run an action to join Sonos speakers in HA (or through Node Red).

Music Providers

N/A

Player Providers

Sonos

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.10.4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

OzGav commented 8 hours ago

Are you certain they are both MA provided entities? Can those exact same two speakers be joined in the MA UI?

JDogg016 commented 7 hours ago

Yes. I confirmed the correct naming convention (as, admittedly, it can get confusing). The funny thing is I can run an action to 'unjoin' them from one another.

When I join the two Speakers in the Sonos App I can confirm the speakers join in MA (in about 30 seconds). When I join the speakers in MA, they show as joined in the Sonos App about 30 seconds later.

Also, if they are previously joined (ie. through MA or the Sonos App), I receive the following message upon attempting to join them in Node-Red: Player Gym TV Speaker is already synced to another player on its own, you need to unsync it first before you can join other players to it."

OzGav commented 1 hour ago

The last error would seem to be correct if the player is already synced? Please review the HA log after trying the join action.

Also please format any code snippets so we can see that it isn’t a typo (edit your original post please)

JDogg016 commented 40 minutes ago

Formatted the code snippet. Also, I assume you mean the HA Core log (under System)? After performing the action, there is nothing in the Log (maybe I need to turn on debug logging)? Also, there is nothing in the logbook for the devices at issue.

OzGav commented 13 minutes ago

OK looks like I can recreate this. It will be looked into further soon.