Music Assistant Queue Actions v0.8.1 failing to load with Music Assistant v2.7.0-b17+
I believe this is due to the fact that the recently release version of MA (2.7.0b17 )added Authentication and requires all connections to MA to be authenticated.
Any ideas ?
Seems like you're right - I'll take a look at it tomorrow.
Are you able to rollback to b16 in the meantime? Or does the change prevent that?
Just published a beta update. It should resolve the issue. However, I don't think I've got reconfiguring to work so you may need to delete the config entry and re-add it.
I went down to 2.7.0b16... let me go back up and test it out!
Just tried the beta version... I did have to remove the existing entry and create a new one after installing Version 0.9.0... After that and adding the MA host , it redirected to login into MA and then everything was working again!!!
That was fast though! Thanks!
Thanks! Pushing it out live now. I also added a change which (hopefully) should fix reauth but I won't know until others can test it for me.
I am still encountering issues with actions working. I did get the notification to re-authenticate with music assistant but I am still getting errors trying to run any mass_queue actions
for example:
Failed to perform the action mass_queue.get_recommendations. Cannot find entry for Music Assistant at ws://d5369777-music-assistant:8094/ws
The most likely culprit is your Music Assistant entry pointing at a different address than Music Assistant Queue Actions. Check in .storage/core.config_entries - you'll likely see both of them using different URLs.
That's not an unusual issue if you set it up with auto-discovery and either have different subnets or use HAOS.
Just to be clear, if this is the issue, the fix is pretty simple:
- Copy the URL that Music Assistant has configured.
- Delete the Music Assistant Queue Actions config entry
- Add Music Assistant Queue Actions back. Paste the URL you copied from step 1.
It should work without needing to restart HA or make any other changes. None of your cards, scripts, or automations should be affected.
the internal url looks like http://d5369777-music-assistant:8094, but when i use that my browser can't resolve to the music assistant authentication screen. Only if i use http://192.168.x.xx:8095 does it take me to the authentication screen.
I've removed the integration, added it back and authenticated using http://mass.local:8095, but it still doesn't seem to work.
Failed to perform the action mass_queue.get_queue_items. Cannot find entry for Music Assistant at ws://d5369777-music-assistant:8094/ws
I am running HAOS, btw, and like jianyu-li, the internal url doesn't open in my browser to be authenticated. The two config entries do have different URLs, http://d5369777-music-assistant:8094 and http://mass.local:8095
I just released a beta - see if that fixes the issue. Instead of using the server URL to find the Music Assistant integration, it's now using the Unique ID.
I just released a beta - see if that fixes the issue. Instead of using the server URL to find the Music Assistant integration, it's now using the Unique ID.
This did resolve it for me. I did the authentication process on mobile and it was a little rocky but it did the job.
Things I noticed that were different:
- No longer have a "log in with home assistant" option but could be because I created a password earlier in my testing
- When it redirected back to my mobile app it gave me an error. I killed the app and re-opened and everything was configured and working
I have all working now, but this errors appears now
In Chrome Registrador: homeassistant.components.websocket_api.http.connection Fuente: custom_components/mass_queue/utils.py:291 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 01:45:24 (18 ocurrencias) Última vez registrado: 01:45:28
[139785370572800] Error handling message: Unknown error (unknown_error) Albin from 192.168.10.201 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/config/custom_components/mass_queue/websocket_commands.py", line 58, in api_download_and_encode_image result = await download_and_encode_image(url, hass) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mass_queue/utils.py", line 291, in download_and_encode_image req = await session.get(url) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 639, in _request raise err_exc_cls(url) aiohttp.client_exceptions.InvalidUrlClientError
In Firefox Registrador: homeassistant.components.websocket_api.http.connection Fuente: custom_components/mass_queue/utils.py:291 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 07:35:37 (23 ocurrencias) Última vez registrado: 07:36:55
[139785467384576] Error handling message: Unknown error (unknown_error) Albin from 190.123.243.69 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/config/custom_components/mass_queue/websocket_commands.py", line 58, in api_download_and_encode_image result = await download_and_encode_image(url, hass) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mass_queue/utils.py", line 291, in download_and_encode_image req = await session.get(url) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 639, in _request raise err_exc_cls(url) aiohttp.client_exceptions.InvalidUrlClientError
This happens when I'm on the dashboard where Mass Player is located.
Are you seeing that with the beta or release version of the card?
Are you seeing that with the beta or release version of the card?
In the latest beta and in the latest realease 2.4.0
In lates beta 2.4.1b7 realease the errors are 2 at the same time: Registrador: homeassistant.components.websocket_api.http.connection Fuente: custom_components/mass_queue/utils.py:291 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 08:27:54 (5 ocurrencias) Última vez registrado: 08:27:54
[139785107323168] Error handling message: Unknown error (unknown_error) Albin from 190.123.243.69 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/config/custom_components/mass_queue/websocket_commands.py", line 58, in api_download_and_encode_image result = await download_and_encode_image(url, hass) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mass_queue/utils.py", line 291, in download_and_encode_image req = await session.get(url) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 639, in _request raise err_exc_cls(url) aiohttp.client_exceptions.InvalidUrlClientError
Registrador: homeassistant.components.websocket_api.http.connection Fuente: components/websocket_api/decorators.py:28 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 08:27:54 (4 ocurrencias) Última vez registrado: 08:27:54
[139785107323168] Error handling message: Unknown error (unknown_error) Albin from 190.123.243.69 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) TypeError: object NoneType can't be used in 'await' expression
I have an error, which I suspect is also due to this as well, is that right (HA & MA noob here):
Configuration error: can't access property "entity_id", e is null
mass_queue was installed prior to the card but no entity can be added at all in the card's configuration. Additionally, in the browser's console there is an additional error: Uncaught TypeError: can't access property "toLowerCase" of null in ha-selector-select.ts.
That error comes from the mass_queue/download_and_encode_image WebSocket command. The error itself isn't wrong and shouldn't be suppressed... The calls are just being made with a blank/null URL.
Instead, I am releasing a new beta version of mass-player-card which will perform a much deeper check of the URL validity to determine if a URL is accessible, including if it a string and meets a minimum character threshold.
There will also be an update to mass_queue, though, but this addresses a different issue. With v2.7.0, MA changed the provider IDs in order to allow for multiple entries of the same provider. This had the side effect of breaking how the integration finds providers when calling mass_queue.get_recommendations. The fix will take care of this for us.
That error comes from the
mass_queue/download_and_encode_imageWebSocket command. The error itself isn't wrong and shouldn't be suppressed... The calls are just being made with a blank/null URL.Instead, I am releasing a new beta version of
mass-player-cardwhich will perform a much deeper check of the URL validity to determine if a URL is accessible, including if it a string and meets a minimum character threshold.There will also be an update to mass_queue, though, but this addresses a different issue. With v2.7.0, MA changed the provider IDs in order to allow for multiple entries of the same provider. This had the side effect of breaking how the integration finds providers when calling
mass_queue.get_recommendations. The fix will take care of this for us.
only one error now (v2.4.1-b.8 and v0.9.2-b.2) Registrador: homeassistant.components.websocket_api.http.connection Fuente: components/websocket_api/decorators.py:28 integración: Home Assistant WebSocket API (documentación, problemas) Ocurrió por primera vez: 16:07:36 (24 ocurrencias) Última vez registrado: 16:07:56
[140437791081792] Error handling message: Unknown error (unknown_error) Albin from 192.168.10.201 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) TypeError: object NoneType can't be used in 'await' expression