Open Ties42 opened 7 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (websocket_api
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
websocket_api documentation websocket_api source (message by IssueLinks)
I'm seeing the same issue when calling media_player.stop service on a chromecast device
Found fix #113839 when checking the release notes for 2024.3.1 which seemed to fix API calls to chromecast devices. Updated my container to 2024.3.2 and unfortunately fix #113839 does not fix this issue also.
I found Issue #112644 which is similar to this problem but opened on another integration. They also report that fix #113839 does not fix their exact problem.
I'm seeing the same issue when calling media_player.stop service on a chromecast device
I also get error if I do a service call for media_player.stop from the developer dashboard for chromecast devices.
The below error show in log, I am on HA 2024.3.2
Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:300 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 17:39:50 (4 occurrences) Last logged: 17:42:58
[281467347526336] Error handling message: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop. (home_assistant_error) Marco from 127.0.0.1 (Mozilla/5.0 (Linux; Android 14; SM-F946B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.119 Mobile Safari/537.36 Home Assistant/2024.1.5-12102 (Android 14; SM-F946B))
AND
Logger: homeassistant.helpers.script.websocket_api_script Source: helpers/script.py:1805 First occurred: 17:39:50 (4 occurrences) Last logged: 17:42:58
websocket_api script: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop.
Do you find that you no longer get the error, if you make sure the
Chromecast is playing media at the same time you call stop
?
On Sun, 24 Mar 2024, 11:49 sesame_madness, @.***> wrote:
I'm seeing the same issue when calling media_player.stop service on a chromecast device
I also get error if I do a service call for media_player.stop from the developer dashboard for chromecast devices.
The below error show in log, I am on HA 2024.3.2
Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:300 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 17:39:50 (4 occurrences) Last logged: 17:42:58
[281467347526336] Error handling message: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop. (home_assistant_error) Marco from 127.0.0.1 (Mozilla/5.0 (Linux; Android 14; SM-F946B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.119 Mobile Safari/537.36 Home Assistant/2024.1.5-12102 (Android 14; SM-F946B))
AND
Logger: homeassistant.helpers.script.websocket_api_script Source: helpers/script.py:1805 First occurred: 17:39:50 (4 occurrences) Last logged: 17:42:58
websocket_api script: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop.
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/113918#issuecomment-2016850469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZNA4OXVTO43PRE324RGFTYZ3Y2BAVCNFSM6AAAAABFAONFBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2TANBWHE . You are receiving this because you commented.Message ID: @.***>
Do you find that you no longer get the error, if you make sure the Chromecast is playing media at the same time you call
stop
? … On Sun, 24 Mar 2024, 11:49 sesame_madness, @.> wrote: I'm seeing the same issue when calling media_player.stop service on a chromecast device I also get error if I do a service call for media_player.stop from the developer dashboard for chromecast devices. The below error show in log, I am on HA 2024.3.2 Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:300 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 17:39:50 (4 occurrences) Last logged: 17:42:58 [281467347526336] Error handling message: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop. (home_assistant_error) Marco from 127.0.0.1 (Mozilla/5.0 (Linux; Android 14; SM-F946B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.119 Mobile Safari/537.36 Home Assistant/2024.1.5-12102 (Android 14; SM-F946B)) AND Logger: homeassistant.helpers.script.websocket_api_script Source: helpers/script.py:1805 First occurred: 17:39:50 (4 occurrences) Last logged: 17:42:58 websocket_api script: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop. — Reply to this email directly, view it on GitHub <#113918 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZNA4OXVTO43PRE324RGFTYZ3Y2BAVCNFSM6AAAAABFAONFBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA2TANBWHE . You are receiving this because you commented.Message ID: @.>
@Tahutipai yes indeed that is exactly the behavior, if the chromecast device I make the service call media_player.stop for is playing any media (internet radio during test) I not get the error. If nothing actually is playing it throws the error I mentioned.
Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (cast
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
cast documentation cast source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Is not solved, and are several other issues with similar problems. Also no response so far from code owner(s) so no idea if the issue even is being looked at.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Not solved on 2024.9.2 still wide spreaded issues with media player commands but not much movement on any solutions.
The problem
I call the media_player.media_play_pause service on a chromecast media player as part of a script. The commands return as timed out. The media_player does complete the first command (media_play_pause) but the rest of the script (seek + media_play_pause again to resume) does not complete. The media stays in pause status.
What version of Home Assistant Core has the issue?
core-2024.3.1
What was the last working version of Home Assistant Core?
core-2024.2.5
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Home Assistant WebSocket API
Link to integration documentation on our website
https://www.home-assistant.io/integrations/websocket_api
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
When I encountered the error on core-2024.3.1 I reverted to core-2024.2.5 to confirm the behavior. I have no issues with the script under 2024.2.5. Went back again to core-2024.3.1 and the problem is there again.