media_player.play_media stopped working on 2024.9.3
The problem
I've just updated to 2024.9.3 from 2024.8.x and my automation (bellow) started failing and generating errors.
It used to always work and now it is generating the following errors:
Error: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.0.22/media/musica.mp3.
What version of Home Assistant Core has the issue?
core-2024.9.3
What was the last working version of Home Assistant Core?
core-2024.8.x
What type of installation are you running?
Home Assistant Core
Integration causing the issue
media_player
Link to integration documentation on our website
No response
Diagnostics information
System Information
| version | core-2024.9.3 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.12.4 |
| os_name | Linux |
| os_version | 6.6.46-haos |
| arch | aarch64 |
| timezone | Europe/Zurich |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| GitHub API Calls Remaining | 5000 |
| Installed Version | 1.34.0 |
| Stage | running |
| Available Repositories | 1417 |
| Downloaded Repositories | 3 |
Home Assistant Cloud
| logged_in | true |
|---|---|
| subscription_expiration | December 1, 2024 at 1:00 AM |
| relayer_connected | true |
| relayer_region | eu-central-1 |
| remote_enabled | false |
| remote_connected | false |
| alexa_enabled | false |
| google_enabled | true |
| remote_server | eu-central-1-2.ui.nabu.casa |
| certificate_status | ready |
| instance_id | ca0d14e49be04aa9bce547b38ff0ef0a |
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 13.1 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2024.09.1 |
| agent_version | 1.6.0 |
| docker_version | 26.1.4 |
| disk_total | 28.0 GB |
| disk_used | 10.2 GB |
| healthy | true |
| supported | true |
| host_connectivity | true |
| supervisor_connectivity | true |
| ntp_synchronized | true |
| virtualization | |
| board | green |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | ESPHome (2024.9.1), Let's Encrypt (5.2.1), Studio Code Server (5.16.0) |
Dashboards
| dashboards | 2 |
|---|---|
| resources | 0 |
| views | 5 |
| mode | storage |
Recorder
| oldest_recorder_run | September 29, 2024 at 10:01 PM |
|---|---|
| current_recorder_run | September 30, 2024 at 12:01 AM |
| estimated_db_size | 46.51 MiB |
| database_engine | sqlite |
| database_version | 3.45.3 |
Example YAML snippet
alias: Bedroom Sleep Song Start (timer/tag)
description: ""
trigger:
- platform: time
at: "19:00:00"
- platform: tag
tag_id: 9ce62df4-1939-4af9-a9e9-24bef25aa8b3
condition:
- condition: or
conditions:
- condition: time
after: "18:00:00"
- condition: time
before: "07:00:00"
action:
- target:
entity_id: media_player.bedroom_speaker
data:
media_content_type: audio/mp3
media_content_id: http://192.168.0.22/media/music.mp3
action: media_player.play_media
mode: single
Anything in the logs that might be useful for us?
2024-09-30 13:47:51.256 WARNING (SyncWorker_14) [pychromecast.controllers] PLAY command requested but no session is active.
2024-09-30 13:47:51.258 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281471862706608] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 100, in wrapper
return_value = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 558, in media_play
media_controller.play()
File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 630, in play
response_handler.wait_response()
File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute play.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 814, in async_media_play
await self.hass.async_add_executor_job(self.media_play)
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/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.media_play Failed: Failed to execute play.
2024-09-30 13:48:04.376 WARNING (SyncWorker_11) [pychromecast.controllers] PLAY command requested but no session is active.
2024-09-30 13:48:04.378 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281471862706608] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 100, in wrapper
return_value = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 558, in media_play
media_controller.play()
File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 630, in play
response_handler.wait_response()
File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute play.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 814, in async_media_play
await self.hass.async_add_executor_job(self.media_play)
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/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.media_play Failed: Failed to execute play.
2024-09-30 13:48:16.174 WARNING (SyncWorker_9) [pychromecast.controllers] PLAY command requested but no session is active.
2024-09-30 13:48:16.177 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281471862706608] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 100, in wrapper
return_value = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 558, in media_play
media_controller.play()
File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 630, in play
response_handler.wait_response()
File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute play.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 814, in async_media_play
await self.hass.async_add_executor_job(self.media_play)
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/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.media_play Failed: Failed to execute play.
2024-09-30 13:50:08.411 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281471849971920] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 100, in wrapper
return_value = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 518, in _start_app
self._get_chromecast().start_app(app_id)
File "/usr/local/lib/python3.12/site-packages/pychromecast/__init__.py", line 453, in start_app
response_handler.wait_response()
File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 54, in wait_response
raise RequestTimeout(self._request, self._timeout)
pychromecast.error.RequestTimeout: Execution of start app CC1AD845 timed out after 10.0 s.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 782, in async_turn_on
await self.hass.async_add_executor_job(self.turn_on)
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/cast/media_player.py", line 537, in turn_on
self._start_app(pychromecast.config.APP_MEDIA_RECEIVER)
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity._start_app Failed: Execution of start app CC1AD845 timed out after 10.0 s.
2024-09-30 13:50:25.261 WARNING (MainThread) [homeassistant.components.automation.bedroom_afternoon_tag] Bedroom 2 Sleep Song (Tag): Already running
2024-09-30 13:50:35.915 ERROR (MainThread) [homeassistant.components.automation.bedroom_afternoon_tag] Bedroom 2 Sleep Song (Tag): Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity._quick_play Failed: Execution of quick play http://192.168.1.22/media/music.mp3 timed out after 30.0 s.
Additional information
No response
Unfortunately is this already the case for a few Months now and not started with 2024.9.3.... there are several more similar issues created for this. It goes back already a long time but not get solved.
#114259
#112601
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!
Code owner commands
Code owners of cast can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign castRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
cast documentation cast source (message by IssueLinks)
Same problem here
Same issue here with pyatv (instead of cast). Started after upgrading to 2024.9.3
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in _run_service_call_catch_exceptions await coro_or_task File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/apple_tv/media_player.py", line 347, in async_play_media await self.atv.stream.play_url(media_id) File "/usr/local/lib/python3.12/site-packages/pyatv/core/facade.py", line 359, in play_url await self.relay("play_url")(url, **kwargs) File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/airplay/__init__.py", line 136, in play_url return await self._play_task ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/airplay/player.py", line 68, in play_url await self._wait_for_media_to_end() File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/airplay/player.py", line 84, in _wait_for_media_to_end resp = await self.rtsp.connection.get("/playback-info") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyatv/support/http.py", line 423, in get return await self.send_and_receive("GET", path, allow_error=allow_error) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyatv/support/http.py", line 496, in send_and_receive raise exceptions.HttpError( pyatv.exceptions.HttpError: HTTP/1.1 method GET failed with code 500: Internal Server Error
Same here
Logger: pychromecast.socket_client Source: /usr/local/lib/python3.12/site-packages/pychromecast/socket_client.py:420 First occurred: 4:39:42 PM (1 occurrences) Last logged: 4:39:42 PM
[Back Garden Speakers([::ffff:c0a8:29]):8009] Failed to connect to service HostServiceInfo(host='[::ffff:c0a8:29]', port=8009), retrying in 5.0s
Logger: homeassistant.components.automation.don_t_forget_to_take_your_pills_2 Source: components/automation/init.py:763 integration: Automation (documentation, issues) First occurred: 4:39:39 PM (1 occurrences) Last logged: 4:39:39 PM
Error while executing automation automation.don_t_forget_to_take_your_pills_2: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.0.49:8123/api/tts_proxy/039ad76cc8bde5d7321d9ce071d093c0660795ab_en-gb_6e8b81ac47_tts.home_assistant_cloud.mp3.
Logger: homeassistant.components.automation.don_t_forget_to_take_your_pills_2 Source: helpers/script.py:2026 integration: Automation (documentation, issues) First occurred: 4:39:39 PM (3 occurrences) Last logged: 4:39:39 PM
Don't forget to take your pills: Choose at step 1: choice 2: If at step 1: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.0.49:8123/api/tts_proxy/039ad76cc8bde5d7321d9ce071d093c0660795ab_en-gb_6e8b81ac47_tts.home_assistant_cloud.mp3. Don't forget to take your pills: Choose at step 1: choice 2: Error executing script. Error for if at pos 1: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.0.49:8123/api/tts_proxy/039ad76cc8bde5d7321d9ce071d093c0660795ab_en-gb_6e8b81ac47_tts.home_assistant_cloud.mp3. Don't forget to take your pills: Error executing script. Error for choose at pos 1: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.0.49:8123/api/tts_proxy/039ad76cc8bde5d7321d9ce071d093c0660795ab_en-gb_6e8b81ac47_tts.home_assistant_cloud.mp3.
WHY ISNT THIS BEING ADDRESSED?
I'm also having this issue. The casting actually works, but the step still results in an error and so my automation stops.
Mine was working fine under 2024.9.3 however once I updated to 2024.10.0 the automation no longer works. The strange thing is that if you run the individual step manually then it works. Its only when its a step ran as the complete automation that it fails (and so does the rest of the automation).
Here is the Trace showing the error ...
I'm also having this issue. The casting actually works, but the step still results in an error and so my automation stops.
I have the same problem. Dirty fix, but I've set:
continue_on_error: true
on all actions in the automation, and atleast that doesn't make it stop.
Same issue here, no TTS casting to Google speakers works after updating to 2024.10.0
Doesnt work when trying to execute manually via Dev Tools - Actions or in Automations.
"Logger: homeassistant.components.automation.glom_inte_koppla_in_bilen_notifikation_pa_garaget_hogtalare_om_dorren_oppnas_och_bilen_inte_ar_inkopplad Source: components/automation/init.py:763 integration: Automation (documentation, issues) First occurred: 13:23:09 (2 occurrences) Last logged: 13:47:39
Error while executing automation automation.glom_inte_koppla_in_bilen_notifikation_pa_garaget_hogtalare_om_dorren_oppnas_och_bilen_inte_ar_inkopplad: CastMediaPlayerEntity.quick_play Failed: Failed to execute quick play http://IP MASKED/api/tts_proxy/f7ad2e8a3d59e2ad3b500313b823bc757ce609c6_sv-_google_translate.mp3."
Similar issue here. I get
HomeAssistantError: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://[ip]:[port]/api/tts_proxy/b858cb282617fb0956d960215c8e84d1ccf909c6_it_-_tts.google_it_it.mp3.
when I try to send a message for my Google Home to pronounce. It seems that the message is always dropped when the Google Home is ‘woken up’ by the message. From then on, it reads the message. For me, the workaround of sending an empty message to ‘wake up’ the Google Home worked, then sending the actual message to be spoken, even though the error message still appears.
Same here. I wanted to reactivate my TTS notifications today, which notify me when I have the windows open for longer, but I also get this error when the Home Mini is off.
However, I also get an error when I just try to switch on the Google Home Mini via the dashboard:
Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/websocket_api/commands.py:245
Integration: Home Assistant WebSocket API ([Dokumentation](https://www.home-assistant.io/integrations/websocket_api), [Probleme](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
Erstmals aufgetreten: 15:15:38 (1 Vorkommnisse)
Zuletzt protokolliert: 15:15:38
[139716208283360] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 100, in wrapper
return_value = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 518, in _start_app
self._get_chromecast().start_app(app_id)
File "/usr/local/lib/python3.12/site-packages/pychromecast/__init__.py", line 453, in start_app
response_handler.wait_response()
File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute start app CC1AD845.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 794, in async_turn_on
await self.hass.async_add_executor_job(self.turn_on)
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/cast/media_player.py", line 537, in turn_on
self._start_app(pychromecast.config.APP_MEDIA_RECEIVER)
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity._start_app Failed: Failed to execute start app CC1AD845.
Same problem here but the problem is random
Having the same issues as well. Just updated to 2024.10.0. A rollback didn't fix the issue. It's wrecking my automations. I'm a diabetic and rely heavily on whole home broadcasts of TTS notifications along with other actions, to alert other family members if I need help. Also used for medication reminders. It's completely stopping my entire automations.
I've reconfigured both Google Assistant SDK and Google Cast & it didn't fix the issue.
When executing the action:
Error running action CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play (URL to media file)
When running Traces:
Executed: October 4, 2024 at 9:48:00 AM Error: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play (URL to media file)
When I try to edit the TTS portion of existing automations or if I try to create a new automation using TTS, I get the following:
Visual editor is not supported for this configuration
Key ‘service’ is not expected or not supported by the visual editor. You can still edit your config using YAML.
Current system about:
Core 2024.10.0 Supervisor 2024.10.0 Operating System 13.2.rc1 Frontend 20241002.2
Same problem here but the problem is random
Exactly the same situation for me.
Since Core update 2024.10.1, the error is no longer present and my TTS alarms are all working again. 😀
Even if I switch on the Home Mini manually via the dashboard, there is no longer an error message.
Think I may wait a lil bit longer to be certain lol
On Sun, 6 Oct 2024, 13:51 BiNiCKNiCH, @.***> wrote:
Since Core update 2024.10.1, the error is no longer present and my TTS alarms are all working again. 😀
Even if I switch on the Home Mini manually via the dashboard, there is no longer an error message.
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/127099#issuecomment-2395429236, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YJPQ3UBFJGCTJO3TGS32LZ2EW6BAVCNFSM6AAAAABPDEWYY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQZDSMRTGY . You are receiving this because you commented.Message ID: @.***>
Since Core update 2024.10.1, the error is no longer present and my TTS alarms are all working again. 😀
Even if I switch on the Home Mini manually via the dashboard, there is no longer an error message.
Did you have to do anything other than update or was it just that that fixed it?
Did you have to do anything other than update or was it just that that fixed it?
Nope, I only did the update.
Yes, it worked!
On Sun, 6 Oct 2024, 16:16 BiNiCKNiCH, @.***> wrote:
Did you have to do anything other than update or was it just that that fixed it?
Nope, I only did the update.
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/127099#issuecomment-2395475477, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YJPQ2PLXCMHNBIW4XQGB3Z2FH4ZAVCNFSM6AAAAABPDEWYY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ3TKNBXG4 . You are receiving this because you commented.Message ID: @.***>
When I try to edit the TTS portion of existing automations or if I try to create a new automation using TTS, I get the following:
Visual editor is not supported for this configuration
Key ‘service’ is not expected or not supported by the visual editor. You can still edit your config using YAML.
I've updated to the latest Home Assistant core but I'm still getting this same issue.
Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.2
When I try to edit the TTS portion of existing automations or if I try to create a new automation using TTS, I get the following: Visual editor is not supported for this configuration Key ‘service’ is not expected or not supported by the visual editor. You can still edit your config using YAML.
I've updated to the latest Home Assistant core but I'm still getting this same issue.
Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.2
You have to replace 'service' by 'action'
When I try to edit the TTS portion of existing automations or if I try to create a new automation using TTS, I get the following: Visual editor is not supported for this configuration Key ‘service’ is not expected or not supported by the visual editor. You can still edit your config using YAML.
I've updated to the latest Home Assistant core but I'm still getting this same issue. Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.2
You have to replace 'service' by 'action'
I shall give that a try but not being able to use the visual editor just because I've chosen that I want to play some media still seems like a bug.
I have several devices - even a brand new mi smart speaker which supposed to work (that's why I bought it).. can't get it to work yet. I only get the following error on my screen
Die Aktion media_player/media_play konnte nicht ausgeführt werden. CastMediaPlayerEntity.media_play Failed: Failed to execute play.
turning on|off the device works.. but play/stream not...
Although mine is working again I am still getting errors
On Wed, 9 Oct 2024, 16:36 Michael Schoen, @.***> wrote:
I have several devices - even a brand new mi smart speaker which supposed to work (that's why I bought it).. can't get it to work yet. I only get the following error on my screen
Die Aktion media_player/media_play konnte nicht ausgeführt werden. CastMediaPlayerEntity.media_play Failed: Failed to execute play.
turning on|off the device works.. but play/stream not...
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/127099#issuecomment-2402673989, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YJPQ7TK7TMLD2JFDDKE2LZ2VEOLAVCNFSM6AAAAABPDEWYY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBSGY3TGOJYHE . You are receiving this because you commented.Message ID: @.***>
Same problem at home: Docker installation, core version 2024.10.2 The issue is highly random, sometimes it works perfectly fine
Find below logs on execution console :
"Erreur : CastMediaPlayerEntity.quick_play Failed: Execution of quick play https://addrofHA/api/tts_proxy/edcfbb8b2e9d6fbfb1aac40403b3ce885b078d2a_fr-_tts.google_fr_fr.mp3 timed out after 30.0 s. Résultat : params: domain: tts service: speak service_data: cache: true media_player_entity_id: media_player.chambre_XXXX message: message entity_id: - tts.google_fr_fr target: entity_id: - tts.google_fr_fr running_script: false"
This stopped working consistently for me when upgrading to Core 2024.10 and the 2024.10.1 hasn't fixed it. It was working fine on prior versions. Now it only intermittently works. It appears to be a async timeout issue. Here are my logs
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:27:48 AM (2 occurrences)
Last logged: 11:28:29 AM
[139935950557040] Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/mrp/protocol.py", line 275, in _receive
await semaphore.acquire()
File "/usr/local/lib/python3.12/asyncio/locks.py", line 386, in acquire
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 996, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/apple_tv/media_player.py", line 521, in async_media_pause
await self.atv.remote_control.pause()
File "/usr/local/lib/python3.12/site-packages/pyatv/core/facade.py", line 82, in pause
return await self.relay("pause")()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/mrp/__init__.py", line 384, in pause
await self._send_command(CommandInfo_pb2.Pause)
File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/mrp/__init__.py", line 336, in _send_command
resp = await self.protocol.send_and_receive(messages.command(command, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/mrp/protocol.py", line 262, in send_and_receive
return await self._receive(identifier, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyatv/protocols/mrp/protocol.py", line 274, in _receive
async with async_timeout.timeout(timeout):
File "/usr/local/lib/python3.12/site-packages/async_timeout/__init__.py", line 141, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.12/site-packages/async_timeout/__init__.py", line 228, in _do_exit
raise asyncio.TimeoutError
TimeoutError
Still problem on 2024.10.3
Logger: homeassistant.components.script.announcement_marco_came_home_coffee Source: helpers/script.py:2026 integration: Script (documentation, issues) First occurred: 08:02:42 (1 occurrences) Last logged: 08:02:42
Announcement Marco Came Home Coffee: Error executing script. Error for call_service at pos 2: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.x.xxx:xxxx/api/tts_proxy/92ec3640ca848fa8c3a69f65b24dd963d1dc421e_en-ca_6e8b81ac47_cloud.mp3.
Same here unfortunately
This problem has not been solved. The core version has been updated to 2025.1.0, but it still cannot be used.
无法执行动作“media_player/play_media” 。 already streaming to device