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

Home assistant player with spotify can not be controlled (Works with HA Spotify connection) #2975

Open
1 task done
distante opened this issue Sep 28, 2024 · 23 comments
Open
1 task done
Labels
HA Player low prio This does not have very high prio

Comments

@distante
Copy link

What version of Music Assistant has the issue?

2.2.5

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

2024.9.1

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

  • Yes

The problem

While on MA, trying to play a song into a HA provided player does not work. It just starts and stops what was already on the queue (from another service)

Also, if Spotify did not had that player as target before (from the Spotify app), MA does nothing.

Example Right now:
HA Home assistant integration:
image

Music Assistant:
image

How to reproduce

Add a Medion device to Home assistant, add it as a player on MA.

Music Providers

Spotify

Player Providers

Home Assistant

Full log output

music-assistant 28.09.log

Additional information

The player is the same as the one on this issue #2939. A Mediom Player (Frontier Silicon)

What version of Home Assistant Core are your running

2024.9.3

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)

@OzGav
Copy link
Contributor

OzGav commented Sep 28, 2024

Sorry I am not 100% sure what you are describing above but it sounds like you expect MA and some other software to work together? If so that is not the case. MA works independently of any other software that may be able to play to a device. If this is not what you are asking about then please try and describe the issue again.

@distante
Copy link
Author

Hi, sorry if I did not describe it correctly.

My expectation is that after adding a player (from Home assistant provider), I should be able to send Spotify music from using Music Assistant to the player and control it.

Currently I can only click Play/pause when the player is already running already, but each song I "send" is not picked up by the player.

I just put an screenshot of the other Spotify integration to show how there is a discrepancy between what the player is really playing and what Music Assistant is showing.

@OzGav
Copy link
Contributor

OzGav commented Sep 29, 2024

What other player types have you tried? Provide all of the information requested from the troubleshooting page of the docs

@distante
Copy link
Author

distante commented Sep 29, 2024

I have done everything I though could affect from the player config, disable TTS, normalization etc, On the music server I also disabled volumen normalization and almost all special settings like cross fade and so on.

I have tried changed all the HTTP profiles and nothing worked.

If you point me out to where I can see more logs I would gladly do it. I setup up the player and providers as log level but I do not see anything helpful.

@OzGav
Copy link
Contributor

OzGav commented Sep 29, 2024

Have you confirmed it is only HA player providers that are affected? Have you tried different HA entities?

@OzGav OzGav added the More info label Oct 1, 2024
@distante
Copy link
Author

distante commented Oct 4, 2024

Sadly I just have that one player so I can not test another ones.

But when I provided the same radio with the DNLa provider it also failed.

@OzGav
Copy link
Contributor

OzGav commented Oct 4, 2024

If you install the snapcast provider then you can stream to a browser. Why do you mention radio in your previous reply as your original report was about Spotify?

@distante
Copy link
Author

distante commented Oct 6, 2024

Hello again,

Sorry I meant "Radio" as in the Hardware, this Medion one, maybe it is not the correct english word (we use it a lot in Spanish).

I tried with the Snapcast provider and it works correctly there. I can send and control music from Spotify without any issues.

@OzGav
Copy link
Contributor

OzGav commented Oct 6, 2024

Sorry to say but fixing HA player providers is low priority. This will stay here for now though.

@OzGav OzGav added low prio This does not have very high prio player support Issue or feature request for specific player and removed triage More info labels Oct 6, 2024
@distante
Copy link
Author

distante commented Oct 6, 2024

OK understood. Although when I add the player directly also doesn't work.

@OzGav
Copy link
Contributor

OzGav commented Oct 6, 2024

If it is a native players then review the docs for assistance then the open and closed issues. If nothing helps then open an issue.

@distante
Copy link
Author

distante commented Oct 6, 2024

The other issue was #2939

@OzGav
Copy link
Contributor

OzGav commented Oct 6, 2024

Yeah unfortunately you are using the two most problematic player providers due to their poor standardisation

@OzGav OzGav added HA Player and removed player support Issue or feature request for specific player labels Oct 22, 2024
@OzGav OzGav moved this from Done/verify to NEXT in Music Assistant (V2) backlog Oct 24, 2024
@OzGav
Copy link
Contributor

OzGav commented Oct 29, 2024

Just coming back to this one. Have you tried the different HTTP profiles in the advanced settings?

image

@distante
Copy link
Author

Hello. Yes, I tried it.

@OzGav OzGav removed the More info label Oct 29, 2024
@OzGav
Copy link
Contributor

OzGav commented Oct 29, 2024

So just confirm that you POWER ON the player and then select a track and PLAY NOW and nothing happens? What HA integration have you used to gain access to this device?

edit: Do you see the track appear in the queue in the MA UI?

@distante
Copy link
Author

when I do that, nothing happens in the player but I see the track in the MA UI as if it was playing.

In HA I am using the Spotify integration it self. One thing I found out in this days, is that calling set source on the HA integration via script does not work due a missing API call. I do not know if that is related
home-assistant/core#129122

@OzGav
Copy link
Contributor

OzGav commented Oct 29, 2024

Have you tried disabling the HA Spotify integration? If Spotify is getting calls from both then that could be the problem.

edit: Disable the Spotify integration, restart HA, restart MA and then see what happens

@distante
Copy link
Author

That I had not tried, But I tried the Spotify integration itself after MA did not work, there is when I found out it was a MA issue and not something with my account.

@OzGav
Copy link
Contributor

OzGav commented Oct 29, 2024

OK you can also add the Snapcast provider and try streaming to a browser tab. https://music-assistant.io/player-support/snapcast/

@distante
Copy link
Author

Snapcast works as expected.

I also notice now that after I was listening into snapcast, I would Play and Stop the music on the other player, but never change or select a song, It just plays what is already there.

@OzGav
Copy link
Contributor

OzGav commented Oct 29, 2024

I see I have asked this before actually. Sorry too many issues to be across. So yes definately a player problem. What HA Integration is it?

Not sure what you meant in the last thing you wrote above.

@distante
Copy link
Author

No problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HA Player low prio This does not have very high prio
Projects
Status: NEXT
Development

No branches or pull requests

2 participants