Closed roydestroy closed 2 days ago
Same thing here.The second time I ran the automation the Failed cast worked ans the next cast Failed.
Enregistreur: homeassistant.components.automation.test_gpt_wake Source: helpers/script.py:2026 intégration: Automatisation (documentation, problèmes) S'est produit pour la première fois: 05:55:01 (2 occurrences) Dernier enregistrement: 06:10:15
Wake Up GPT !: Error executing script. Error for call_service at pos 3: CastMediaPlayerEntity.set_volume_level Failed: Failed to execute set volume. Wake Up GPT !: Error executing script. Error for call_service at pos 10: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://radios.rtbf.be/laprem1erebxl-128.mp3.
I also got a lot of these ...
2024-10-03 02:32:38.639 ERROR (Thread-19) [pychromecast.socket_client] [Rez(192.168.3.11):32080] Error reading from socket: socket connection broken 2024-10-03 02:32:38.642 ERROR (Thread-18) [pychromecast.socket_client] [Maison(192.168.3.11):32091] Error reading from socket: socket connection broken 2024-10-03 02:32:38.652 ERROR (Thread-20) [pychromecast.socket_client] [Hub(192.168.3.11):8009] Failed to connect to service HostServiceInfo(host='192.168.3.11', port=8009), retrying in 5.0s
Tried to perform action media_player.play_media in dev tools Here is the log :
2024-10-03 15:21:54.003 ERROR (Thread-21) [pychromecast.socket_client] [Barre de son([::ffff:c0a8:30d]):8009] Failed to connect to service HostServiceInfo(host='[::ffff:c0a8:30d]', port=8009), retrying in 5.0s 2024-10-03 15:23:35.752 ERROR (Thread-21) [pychromecast.socket_client] [Barre de son([::ffff:c0a8:30d]):8009] Failed to connect to service HostServiceInfo(host='[::ffff:c0a8:30d]', port=8009), retrying in 5.0s 2024-10-03 16:35:29.670 WARNING (SyncWorker_18) [pychromecast.controllers] PLAY command requested but no session is active. 2024-10-03 16:35:29.670 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity.media_play Failed: Failed to execute play. 2024-10-03 16:35:29.670 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140156942632416] Error handling message: CastMediaPlayerEntity.media_play Failed: Failed to execute play. (home_assistant_error) Philippe from 92.48.176.252 (Mozilla/5.0 (Linux; Android 14; SM-A546B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.70 Mobile Safari/537.36 Home Assistant/2024.9.4-13806 (Android 14; SM-A546B))
When running my "night mode" I set my devices to a lower volume, this doesnt work anymore either...
CastMediaPlayerEntity.set_volume_level failed in the logs.
Same Here with volume setting and quickplay ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, Logger: homeassistant.components.automation.phone_charging_tom Source: components/automation/init.py:763 integration: Automation (documentation, issues) First occurred: 08:24:49 (1 occurrences) Last logged: 08:24:49
Error while executing automation automation.phone_charging_tom: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://10.10.10.34:8123/api/tts_proxy/6a1371fe03c94597f9549a643075418bb61278b0_en_-_google_translate.mp3.
Logger: homeassistant.components.automation.set_volume_settings Source: helpers/script.py:2026 integration: Automation (documentation, issues) First occurred: 08:30:05 (1 occurrences) Last logged: 08:30:05
Set Volume Settings: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity.set_volume_level Failed: Failed to execute set volume.
Me too Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.2.152:8123/api/tts_proxy/5607da1a211ab236672a31fd5e3b5e876b5ead50_pl-pl_6e8b81ac47_cloud.mp3.
But sometimes work - when You play via acction
The issue doesn't seem to be limited to TTS. Also, when I try to play a radio stream it fails:
Home Assistant 2024.10.0 - Google Home Mini
2024-10-03 11:14:23.138 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281471349282496] 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 508, in _quick_play
quick_play(self._get_chromecast(), app_name, data)
File "/usr/local/lib/python3.12/site-packages/pychromecast/quick_play.py", line 97, in quick_play
controller.quick_play(**data, timeout=timeout)
File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 559, in quick_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 quick play https://icecast.omroep.nl/3fm-bb-mp3.
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/components/script/__init__.py", line 718, in _service_handler
response = await self._async_start_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 674, in _async_start_run
script_result = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 707, in _async_run
return await self.script.async_run(script_vars, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1795, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 463, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 527, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 557, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
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/cast/media_player.py", line 777, in async_play_media
await self.hass.async_add_executor_job(
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._quick_play Failed: Failed to execute quick play https://icecast.omroep.nl/3fm-bb-mp3.
Weirdly for my Sonos S1 it does work but for my Google speakers it does not. Happened since 2024.10.0 (docker version).
Using this action:
action: tts.cloud_say data: cache: false entity_id: media_player.devicehere message: test
Stacktrace
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 1021, in entity_service_call raise result from None File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1610, in async_request_call return await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1068, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 777, in async_play_media await self.hass.async_add_executor_job( 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._quick_play Failed: Failed to execute quick play http://HA/api/tts_proxy/53c8268ac28d4324ff77d58620147c93cec1d0d0_nl-nl_6e8b81ac47_cloud.mp3.
Here's some more logs. It looks like HA is losing connection to the speakers. From my experience, the first call while the device is idle will always fail but subsequent calls will work fine. Guessing a race condition?
2024-10-03 08:19:15.907 DEBUG (Thread-30) [homeassistant.components.cast.media_player] [media_player.kitchen_display Kitchen display] Received cast device connection status: LOST
2024-10-03 08:19:15.907 DEBUG (Thread-30) [homeassistant.components.cast.media_player] [media_player.kitchen_display Kitchen display] Cast device availability changed: LOST
2024-10-03 08:19:15.908 DEBUG (Thread-30) [homeassistant.components.cast.media_player] [media_player.kitchen_display Kitchen display] Received cast device connection status: CONNECTING
2024-10-03 08:19:15.909 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [125314577362816] 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 508, in _quick_play
quick_play(self._get_chromecast(), app_name, data)
File "/usr/local/lib/python3.12/site-packages/pychromecast/quick_play.py", line 97, in quick_play
controller.quick_play(**data, timeout=timeout)
File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 559, in quick_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 quick play https://www.home-assistant.io/images/cast/splash.png.
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 535, in turn_on
self._quick_play("default_media_receiver", app_data)
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 102, in wrapper
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play https://www.home-assistant.io/images/cast/splash.png.
2024-10-03 08:19:16.405 DEBUG (zeroconf-ServiceBrowser-_googlecast._tcp-460) [homeassistant.components.cast.discovery] Discovered new or updated chromecast ChromecastInfo(cast_info=CastInfo(services={HostServiceInfo(host='10.10.XX.XX', port=8009)}, uuid=UUID('adc3dfe5-cedc-7ada-bbb3-cadbd1103fcf'), model_name='Google Nest Hub', friendly_name='Kitchen display', host='10.10.XX.XX', port=8009, cast_type='cast', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-10-03 08:19:16.408 DEBUG (MainThread) [homeassistant.components.cast.media_player] _async_create_cast_device: ChromecastInfo(cast_info=CastInfo(services={HostServiceInfo(host='10.10.XX.XX', port=8009)}, uuid=UUID('adc3dfe5-cedc-7ada-bbb3-cadbd1103fcf'), model_name='Google Nest Hub', friendly_name='Kitchen display', host='10.10.XX.XX', port=8009, cast_type='cast', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-10-03 08:19:16.408 DEBUG (MainThread) [homeassistant.components.cast.media_player] Discovered chromecast with same UUID: ChromecastInfo(cast_info=CastInfo(services={HostServiceInfo(host='10.10.XX.XX', port=8009)}, uuid=UUID('adc3dfe5-cedc-7ada-bbb3-cadbd1103fcf'), model_name='Google Nest Hub', friendly_name='Kitchen display', host='10.10.XX.XX', port=8009, cast_type='cast', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-10-03 08:19:16.550 DEBUG (Thread-30) [homeassistant.components.cast.media_player] [media_player.kitchen_display Kitchen display] Received cast device connection status: CONNECTED
2024-10-03 08:19:16.550 DEBUG (Thread-30) [homeassistant.components.cast.media_player] [media_player.kitchen_display Kitchen display] Cast device availability changed: CONNECTED
2024-10-03 08:19:16.550 DEBUG (Thread-30) [homeassistant.components.cast.media_player] [media_player.kitchen_display Kitchen display] Multizone e4baa029-a7d2-4494-b832-3574b0c746e0 media status: <MediaStatus {'metadata_type': None, 'title': None, 'series_title': None, 'season': None, 'episode': None, 'artist': None, 'album_name': None, 'album_artist': None, 'track': None, 'subtitle_tracks': {}, 'images': [], 'supports_pause': False, 'supports_seek': False, 'supports_stream_volume': False, 'supports_stream_mute': False, 'supports_skip_forward': False, 'supports_skip_backward': False, 'current_time': 0.0, 'content_id': None, 'content_type': None, 'duration': None, 'stream_type': 'UNKNOWN', 'idle_reason': None, 'media_session_id': None, 'playback_rate': 1.0, 'player_state': 'UNKNOWN', 'supported_media_commands': 0, 'volume_level': 1.0, 'volume_muted': False, 'media_custom_data': {}, 'media_metadata': {}, 'current_subtitle_tracks': [], 'last_updated': None}>
2024-10-03 08:19:18.603 DEBUG (zeroconf-ServiceBrowser-_googlecast._tcp-460) [homeassistant.components.cast.discovery] Discovered new or updated chromecast ChromecastInfo(cast_info=CastInfo(services={MDNSServiceInfo(name='Google-Nest-Hub-adc3dfe5cedc7adabbb3cadbd1103fcf._googlecast._tcp.local.'), HostServiceInfo(host='10.10.XX.XX', port=8009)}, uuid=UUID('adc3dfe5-cedc-7ada-bbb3-cadbd1103fcf'), model_name='Google Nest Hub', friendly_name='Kitchen display', host='10.10.XX.XX', port=8009, cast_type='cast', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-10-03 08:19:18.604 DEBUG (MainThread) [homeassistant.components.cast.media_player] _async_create_cast_device: ChromecastInfo(cast_info=CastInfo(services={MDNSServiceInfo(name='Google-Nest-Hub-adc3dfe5cedc7adabbb3cadbd1103fcf._googlecast._tcp.local.'), HostServiceInfo(host='10.10.XX.XX', port=8009)}, uuid=UUID('adc3dfe5-cedc-7ada-bbb3-cadbd1103fcf'), model_name='Google Nest Hub', friendly_name='Kitchen display', host='10.10.XX.XX', port=8009, cast_type='cast', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-10-03 08:19:18.604 DEBUG (MainThread) [homeassistant.components.cast.media_player] Discovered chromecast with same UUID: ChromecastInfo(cast_info=CastInfo(services={MDNSServiceInfo(name='Google-Nest-Hub-adc3dfe5cedc7adabbb3cadbd1103fcf._googlecast._tcp.local.'), HostServiceInfo(host='10.10.XX.XX', port=8009)}, uuid=UUID('adc3dfe5-cedc-7ada-bbb3-cadbd1103fcf'), model_name='Google Nest Hub', friendly_name='Kitchen display', host='10.10.XX.XX', port=8009, cast_type='cast', manufacturer='Google Inc.'), is_dynamic_group=None)
I can confirm I have the problem and as above if I keep doing perform action after 2 or 3 tries it then starts working without issue. If I then go to the radio player it fails first time but works on the 2nd or 3rd try.
I think, and I am no expert, service has something to do with it...
Add a play media action, you get this
Select a cast device I selected Dining Room Display, you immediately get this...
Remove the service line and it allows you to change back to visual editor
Pick media TTS it will throw you back to YAML with a service line, remove that and it all works again.
Don't know if any of this helps, but hey it's what I found.
Same issue in all my scripts/automations. Error: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://192.168.1.90:8123/api/tts_proxy/50ffdca43e82fc80ed473a44ea56d7f54b35bd49_af-za_6e8b81ac47_cloud.mp3.
Same for me. I am using Google Home minis for all my TTS announcements, and using the Google Translate Text-to-speach integration AND a local pipeline. Regardless which I am using, the automation fails most fo the times. Not always, but more often than not. I think it fails always after it hasn't been triggered for a while! How I have set it up: all my TTS are in scrips. The automation calls the said script. When I trigger the script on its own:
_Failed to perform the action script/check_windows_and_announce. CastMediaPlayerEntity._quickplay Failed: Chromecast 192.168.0.223:8009 is connecting...
Last time it worked correctly yesterday in the 2024.9 release. Now I am running 2024.10 release and it has been busted since.
Below output from my speaker logs
turned off triggered by automation GLOBAL: Window status announcer mqtt topic zigbee2mqtt/Announcer/action
21:51:53 - 1 minute ago`
`became unavailable triggered by automation GLOBAL: Window status announcer mqtt topic zigbee2mqtt/Announcer/action
21:51:53 - 1 minute ago
Also, when trying to manually turn on a Google Mini speaker, I am randomly getting this error. However, it does turn on. If I turn it off and turn it on again, it turns out without the error.
Failed to perform the action media_player/turn_on. CastMediaPlayerEntity._start_app Failed: Failed to execute start app CC1AD845.
When trying to start a radio station on a google home mini using automation. Worked perfectly until yesterday.
2024-10-03 22:59:31.500 ERROR (MainThread) [homeassistant.components.automation.office_radio] OFFICE: Radio: Choose at step 1: choice 2: Error executing script. Error for call_service at pos 1: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://stream-uk1.radioparadise.com/aac-320.
2024-10-03 22:59:31.503 ERROR (MainThread) [homeassistant.components.automation.office_radio] OFFICE: Radio: Error executing script. Error for choose at pos 1: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://stream-uk1.radioparadise.com/aac-320.
2024-10-03 22:59:31.506 ERROR (MainThread) [homeassistant.components.automation.office_radio] Error while executing automation automation.office_radio: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://stream-uk1.radioparadise.com/aac-320.
have the exact same problem, after trying a couple of times it works, but first try almost always fail
Following
Here the same. Went back to 2024.9 On test system got 2024.10 to try until its solved.
I was also broken on 2024.10. I rolled back to 2024.9 and am working again.
Having the same issue after 2024.10 update. Im using HAOS and its been working fine before this. I run it in an automation before calender entries. If it runs i get the pling sound from the nest thats played before message but the nest its self then nothing except en error in log.
If run it manually directly after i ran it the first time it works as long as its still active.
Same if i press power button on nest device (via integration Google Cast) then run the action directly after, it works. Also an issue is that i get an error when i power on any nest, cast or hub device the first time aswell. See Power on error log below.
Action
action: tts.google_say
metadata: {}
data:
entity_id: media_player.nest
language: en
cache: false
message: In 15 minutes {{ states.calendar.shl.attributes.message}}
Cast error
Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:307 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 00:36:27 (1 occurrences) Last logged: 00:36:27
[139960054840576] Error handling message: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play http://xxxxxxxxxxxxx/api/tts_proxy/xxxxxxxxx.mp3. (home_assistant_error)xxxxxxxxxxxxx (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36)
Power on error
Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:245 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 00:44:12 (2 occurrences) Last logged: 00:44:37
[139959024650128] 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.
Me too: CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play
CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play Same error-following
Same here:
CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play
CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play Same error-following
Please don't make "same" or "me too" replies without adding any new or additional details. If you want to follow updates click the subscribe button and if you'd like to show you're affected add a 👍 on the original post. Otherwise the thread becomes noisy and harder to follow for the people interested and those trying to fix it.
Thanks in advance
a Tiny solution: placing a100 milli second delay in your automation before the ttsaction wil solve your problem for now. Not happy about it but it works a bit.
yup same problem, since update we only hear the "pling" call and then it says nothing. Indeed when you put a delay in front it workes.
also noticed that service is now action in automation, maybe that is also a problem
a Tiny solution: placing a100 milli second delay in your automation before the ttsaction wil solve your problem for now. Not happy about it but it works a bit.
Can you show a example how u added this delay?
a Tiny solution: placing a100 milli second delay in your automation before the ttsaction wil solve your problem for now. Not happy about it but it works a bit.
Can you show a example how u added this delay?
description: ""
mode: single
triggers:
- trigger: time
at: "00:08:00"
conditions: []
actions:
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 100
- action: tts.google_say
metadata: {}
data:
cache: false
entity_id: media_player.nest_group
message: TESTING
Hmm didnt work for me, for me it seems that the device must be already on for it to work no matter the delay.
So if would send to the kitchen below i would get error and if i send it to the already active livingroom one it works.
Hmm didnt work for me, for me it seems that the device must be already on for it to work no matter the delay.
So if would send to the kitchen below i would get error and if i send it to the already active livingroom one it works.
after the volume set you need to ad the delay
Dit is like this.
Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg
From: ABEIDO @.> Sent: Friday, October 4, 2024 9:56:49 AM To: home-assistant/core @.> Cc: Vabis1010 @.>; Comment @.> Subject: Re: [home-assistant/core] Quickplay of TTS fails everytime. (Issue #127370)
Hmm didnt work for me, for me it seems that the device must be already on for it to work no matter the delay.
So if would send to the kitchen below i would get error and if i send it to the already active livingroom one it works.
image.png (view on web)https://github.com/user-attachments/assets/f333cdcd-47e8-4196-aa1f-51bb29ec8914
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/127370#issuecomment-2393073418, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUUBXGWZFC22ZZV5GUBLWBDZZZC4DAVCNFSM6AAAAABPIXNDD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGA3TGNBRHA. You are receiving this because you commented.Message ID: @.***>
Does anyone have an automation YAML to reproduce it?
Does anyone have an automation YAML to reproduce it?
Almost any service call to the players will cause the error. Even just pressing the power button in the More Info dialog was enough to produce it.
action: media_player.volume_up
target:
entity_id: media_player.living_room_nest_mini
action: tts.speak
data:
media_player_entity_id: media_player.living_room_nest_mini
message: Blah
target:
entity_id: tts.google # Or any other TTS service including local models
Place a delay from 100 milliseconde between the volume set and the tts action.
Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg
From: droans @.> Sent: Friday, October 4, 2024 12:36:20 PM To: home-assistant/core @.> Cc: Vabis1010 @.>; Comment @.> Subject: Re: [home-assistant/core] Quickplay of TTS fails everytime. (Issue #127370)
Does anyone have an automation YAML to reproduce it?
Almost any service call to the players will cause the error. Even just pressing the power button in the More Info dialog was enough to produce it.
action: media_player.volume_up target: entity_id: media_player.living_room_nest_mini
action: tts.speak data: media_player_entity_id: media_player.living_room_nest_mini message: Blah target: entity_id: tts.google
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/127370#issuecomment-2393393932, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUUBXGXRMCEU7SC5CIQOXTLZZZVSJAVCNFSM6AAAAABPIXNDD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGM4TGOJTGI. You are receiving this because you commented.Message ID: @.***>
Does anyone have an automation YAML to reproduce it
alias: Deurbel select
description: ""
trigger:
- platform: mqtt
topic: home/doorbell/button
payload: pushed
condition: []
action:
- data:
volume_level: 0.8
target:
entity_id:
- media_player.nest_hub
- media_player.slaapkamer
action: media_player.volume_set
- parallel:
- target:
entity_id: media_player.nest_hub
data:
media_content_id: |
{% if is_state("input_select.deurbel", "Bells of summer") %}
http://192.168.188.106:8123/local/bel/Bells-of-summer.wav {% elif
is_state("input_select.deurbel", "Kerk klokken") %}
http://192.168.188.106:8123/local/bel/Church-bells.mp3 {% elif
is_state("input_select.deurbel", "Futuristisch") %}
http://192.168.188.106:8123/local/bel/Futuristic-doorbell.wav {%
elif is_state("input_select.deurbel", "Standaard") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-A2.mp3 {% elif
is_state("input_select.deurbel", "Kerst1") %}
http://192.168.188.106:8123/local/bel/Kerst1.mp3 {% elif
is_state("input_select.deurbel", "Kerst2") %}
http://192.168.188.106:8123/local/bel/Kerst2.mp3 {% elif
is_state("input_select.deurbel", "Kerst3") %}
http://192.168.188.106:8123/local/bel/Kerst3.mp3 {% elif
is_state("input_select.deurbel", "Kerst4") %}
http://192.168.188.106:8123/local/bel/Kerst4.mp3 {% elif
is_state("input_select.deurbel", "Futurama") %}
http://192.168.188.106:8123/local/bel/Futurama.mp3 {% elif
is_state("input_select.deurbel", "Melodrama") %}
http://192.168.188.106:8123/local/bel/Melodrama.mp3 {% elif
is_state("input_select.deurbel", "Standaard 2") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-A3.mp3 {% elif
is_state("input_select.deurbel", "Standaard 3") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-B1.mp3 {% elif
is_state("input_select.deurbel", "Standaard 4") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-B2.mp3 {% elif
is_state("input_select.deurbel", "Sirene") %}
http://192.168.188.106:8123/local/bel/Siren.mp3 {% elif
is_state("input_select.deurbel", "Ding Dong") %}
http://192.168.188.106:8123/local/bel/Ding-Dong.mp3 {% elif
is_state("input_select.deurbel", "William Tell") %}
http://192.168.188.106:8123/local/bel/William-Tell.mp3 {% elif
is_state("input_select.deurbel", "Iemand voor de deur") %}
http://192.168.188.106:8123/local/bel/Iemandvoordedeur.ogg_opus {%
endif %}
media_content_type: music
action: media_player.play_media
- target:
entity_id: media_player.slaapkamer
data:
media_content_id: |
{% if is_state("input_select.deurbel", "Bells of summer") %}
http://192.168.188.106:8123/local/bel/Bells-of-summer.wav {% elif
is_state("input_select.deurbel", "Kerk klokken") %}
http://192.168.188.106:8123/local/bel/Church-bells.mp3 {% elif
is_state("input_select.deurbel", "Futuristisch") %}
http://192.168.188.106:8123/local/bel/Futuristic-doorbell.wav {%
elif is_state("input_select.deurbel", "Standaard") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-A2.mp3 {% elif
is_state("input_select.deurbel", "Kerst1") %}
http://192.168.188.106:8123/local/bel/Kerst1.mp3 {% elif
is_state("input_select.deurbel", "Kerst2") %}
http://192.168.188.106:8123/local/bel/Kerst2.mp3 {% elif
is_state("input_select.deurbel", "Kerst3") %}
http://192.168.188.106:8123/local/bel/Kerst3.mp3 {% elif
is_state("input_select.deurbel", "Kerst4") %}
http://192.168.188.106:8123/local/bel/Kerst4.mp3 {% elif
is_state("input_select.deurbel", "Futurama") %}
http://192.168.188.106:8123/local/bel/Futurama.mp3 {% elif
is_state("input_select.deurbel", "Melodrama") %}
http://192.168.188.106:8123/local/bel/Melodrama.mp3 {% elif
is_state("input_select.deurbel", "Standaard 2") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-A3.mp3 {% elif
is_state("input_select.deurbel", "Standaard 3") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-B1.mp3 {% elif
is_state("input_select.deurbel", "Standaard 4") %}
http://192.168.188.106:8123/local/bel/Door-Bell-Ding-B2.mp3 {% elif
is_state("input_select.deurbel", "Sirene") %}
http://192.168.188.106:8123/local/bel/Siren.mp3 {% elif
is_state("input_select.deurbel", "Ding Dong") %}
http://192.168.188.106:8123/local/bel/Ding-Dong.mp3 {% elif
is_state("input_select.deurbel", "William Tell") %}
http://192.168.188.106:8123/local/bel/William-Tell.mp3 {% elif
is_state("input_select.deurbel", "Iemand voor de deur") %}
http://192.168.188.106:8123/local/bel/Iemandvoordedeur.ogg_opus {%
endif %}
media_content_type: music
action: media_player.play_media
Just the first 2 actions of the automation , fail....
2024.10.1 released which reverts pychromecast bump to 14.0.2
Problem still there in 2024.10.1
The problem for me is with set volume right now. Here is a screenshot.
Please open new issues with reproduction steps, debug logs and whatever more you can provide if you still have this issue
Same problem here: "CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play"
Not sure this is helpful or not. Getting the same error while playing a sound file (not TTS).
Like @skipishere said:
"Please don't make "same" or "me too" replies without adding any new or additional details. If you want to follow updates click the subscribe button and if you'd like to show you're affected add a 👍 on the original post."
Why is the issue closed though, you are wondering? Because it will be fixed in the next release of 2024.10.1, see https://github.com/home-assistant/core/issues/127506#issuecomment-2394261095
The problem
Before this update, (and after rolling back to the previous version) it was possible to send TTS messages to chromecast devices. Now quickplay fails, so what happens is that home assistant produces this error message, Failed to perform the action media_player/play_media. CastMediaPlayerEntity._quick_play Failed: Failed to execute quick play. This seems to happen to Google Cast devices with ANY TTS addon, (I've also tried Piper). If you try to play the media again (after HA has turned the cast device to Idle) then it succeeds.
What version of Home Assistant Core has the issue?
core-2024.10.0
What was the last working version of Home Assistant Core?
core_2024.9.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
TTS
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response