Open jdekoven opened 4 hours ago
Hey there @jjlawren, @peterager, mind taking a look at this issue as it has been labeled with an integration (sonos
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
sonos documentation sonos source (message by IssueLinks)
Please attach the home-assistant.log that contains the error.
Hi Pete,
I’m not really sure what log you would need so I apologize as I’m not too clear. Basically, what is happening is I have different playlists in You Tube some of them will let me see the cue like this:
@.***
and some playlists I cannot pull the que. If I delete all the songs and add a few it will work. So I’m thinking somehow there are certain songs that are causing this problem?
@.***
In the log below I see this “attribute error” so not sure if this would tell me the problem? Sorry if I’m not getting you the information correctly on the log. Just never exported them before and don’t see a way to really do it. Let me know
AttributeError: 'DidlMusicTrack' object has no attribute 'album' 2024-11-15 23:48:00.933 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140005536665312] Error handling message: Unknown error (unknown_error) Desktop from 192.168.0.229 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.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 "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 816, in handle_execute_script script_result = await script_obj.async_run( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801, in async_run return await asyncio.shield(create_eager_task(run.async_run())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action return await long_task ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 60, in wrapper result = funct(self, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 786, in get_queue ATTR_MEDIA_ALBUM_NAME: track.album
Thanks, John
From: Pete Sage @.> Sent: 15 November 2024 22:40 To: home-assistant/core @.> Cc: John DeKoven @.>; Author @.> Subject: Re: [home-assistant/core] Sonos - cue is not always available (Issue #130714)
Please attach the home-assistant.log that contains the error.
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/130714#issuecomment-2480064036, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATF7TO5ENWCWKT6ONX4ANMT2AZZ4FAVCNFSM6AAAAABR32N4SOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGA3DIMBTGY. You are receiving this because you authored the thread.Message ID: @.**@.>>
The problem
With Sonos integration and you tube some of my playlists I can get a cue and some will not return a cue. If I clear songs from playlist and just add a few songs cue is available, but once I add a lot of songs cue no longer shows.
What version of Home Assistant Core has the issue?
2024.11.0
What was the last working version of Home Assistant Core?
2024.11 0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sonos
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
action: sonos.get_queue target: entity_id: media_player.master_bedroom_sonos data: {}
Anything in the logs that might be useful for us?
Failed to perform the action sonos.get_queue. Unknown error
Additional information
No response