mass_queue icon indicating copy to clipboard operation
mass_queue copied to clipboard

Player does not show

Open koymoy opened this issue 1 year ago • 8 comments

Tabs: Players and favorites shows up correctly. Also, search functionality works, but the player and queue-tab shows nothing. I've installed the queue integration and is seemingly installed and working correctly. It has been working on/off 2 times, but now it seems its "dead". When i search for ie. a playlist and want it to play it starts playing and i can see all relevant stuff ind MA directly, but nothing in the card. I am on the latest stable releases. I have tried uninstalling and reinstalling both integrations - same result. Otherwise a very nice card i would very much like to use - great work! 👍

koymoy avatar Nov 04 '25 20:11 koymoy

This smells like a networking issue. Check your browser, HA, and MA logs. My guess is that the MA integration is pointing at one address while this integration is pointing at another.

droans avatar Nov 05 '25 14:11 droans

I'm getting same bug on today's recent version. I mean, could be same bug. Seeing this in logs:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 270, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2816, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2859, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mass_queue/services.py", line 205, in get_recommendations
    actions = get_entity_actions_controller(hass, entity_id)
  File "/config/custom_components/mass_queue/utils.py", line 51, in get_entity_actions_controller
    mass_queue_entry = get_mass_queue_entry(hass, entity_id)
  File "/config/custom_components/mass_queue/utils.py", line 46, in get_mass_queue_entry
    return find_mass_queue_entry(hass, mass)
  File "/config/custom_components/mass_queue/utils.py", line 77, in find_mass_queue_entry
    entry_url = entry.runtime_data.mass.connection.ws_server_url
                ^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntry' object has no attribute 'runtime_data'

trying to debug. seems like other plugins and integrations have had a similar issue: https://github.com/home-assistant/core/pull/121725/files#diff-cd5f3b4ee42701b8b408a819ad97eb201f15fad40d2416e6619b36a57ad8a96fR167

elialbert avatar Nov 26 '25 16:11 elialbert

That would usually mean that the entry has not been set up properly. The usual reason is that the Music Assistant Queue Actions and Music Assistant integrations are pointing at different addresses or you are referencing a disabled/unconfigured Music Assistant Queue Actions integration.

droans avatar Nov 26 '25 18:11 droans

that was happening, I should have linked the draft pr i opened with this issue sorry- does that help? i'm not sure why it was looking for mass.local instead of localhost. could you help me understand that problem?

elialbert avatar Nov 27 '25 00:11 elialbert

that was happening, I should have linked the draft pr i opened with this issue sorry- does that help? i'm not sure why it was looking for mass.local instead of localhost. could you help me understand that problem?

That's the URL it was configured with. If you used autodiscovery, this could lead to a situation where the URL can change and/or vary from what Music Assistant uses.

You can always try to delete the current entry and set it up fresh with the correct URL.

droans avatar Nov 27 '25 00:11 droans

great I'm gonna keep poking at that. you know I did try to delete and set up fresh but it just did the same thing. I'm really not sure where mass.local comes from, I never wrote that

elialbert avatar Nov 27 '25 01:11 elialbert

@koymoy when you go into settings -> integrations -> Music Assistant Queue Actions is it there? and if so what is the config url of the entity there

elialbert avatar Nov 27 '25 01:11 elialbert

If it helps, I find that the easiest way to debug HA live is to use the Pyscript Jupyter kernel. With it, you can directly tap into the live hass object and import anything from the homeassistant namespace.

Once you set it up, you can access the specific entry with the code below:

entries = hass.config_entries.async_entries()
mass_entry = [
  entry for entry in entries 
  if entry.domain== 'mass_queue'
  and entry.title == ENTRY_TITLE
][0]

The Music Assistant entry can be nabbed the same way, just change the domain in the last line.

droans avatar Nov 29 '25 15:11 droans