home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.89k stars 30.11k forks source link

homeassistant.components.cast.media_player #118058

Open budies2001 opened 4 months ago

budies2001 commented 4 months ago

The problem

I am not sure exactly, but every once in a while with me doing anything I get an error in the logs and I am not sure why.

homeassistant.components.cast.media_player

What version of Home Assistant Core has the issue?

2024.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Cast

Link to integration documentation on our website

https://www.home-assistant.io/integrations/cast

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:411
integration: Google Cast (documentation, issues)
First occurred: May 23, 2024 at 7:48:00 PM (1352 occurrences)
Last logged: 11:06:00 AM

Failed to cast media http://192.168.1.51:8123/api/tts_proxy/b858cb282617fb0956d960215c8e84d1ccf909c6_en-us-arianeural_-_edge_tts.mp3 from internal_url (http://192.168.1.51:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media http://192.168.1.51:8123/media/local/media/funny/Dumbo%20Pink%20Elephants%20on%20Parade%20HD.mp3media-source://media_source/local/media/funny/crazy-realistic-knocking-sound-troll-twitch-streamers_small.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJlYjMzZDAwZmM4YzM0NWY1OWI2YzFmZjAwODg5OThiZCIsInBhdGgiOiIvbWVkaWEvbG9jYWwvbWVkaWEvZnVubnkvRHVtYm8gUGluayBFbGVwaGFudHMgb24gUGFyYWRlIEhELm1wM21lZGlhLXNvdXJjZTovL21lZGlhX3NvdXJjZS9sb2NhbC9tZWRpYS9mdW5ueS9jcmF6eS1yZWFsaXN0aWMta25vY2tpbmctc291bmQtdHJvbGwtdHdpdGNoLXN0cmVhbWVyc19zbWFsbC5tcDMiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTY1MjM3NTQsImV4cCI6MTcxNjYxMDE1NH0.PVEhHHwPoStxOIH7goP9qK9Ae8g1TYbsENnpe9vrHfs from internal_url (http://192.168.1.51:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Additional information

No response

home-assistant[bot] commented 4 months ago

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 close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign cast` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove 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)

Melantrix commented 4 months ago

I have the same issue. Casting is using my internal url. While my external one is configured correctly..

phiberoptick commented 3 months ago

I am experiencing this as well. I have for quite a while actually. It seems to be random.

Home Assistant is reachable internally or externally via the same host name. HTTPS works on both. If you query home assistant internally, the response is the internal IP. If you query it externally, the response is my routers external IP which is then port forwarded the internal IP. Like I said, both ways use the same FQDN and SSL is enabled and works either way you access it.

The really weird part is I'm able to set the volume and anything else with the speakers. In fact, I hear it set the volume which is in my automation before it should cast and then it does nothing and then the error. And then it sets the volume back like it is set to do after casting in the automation.

At some point it just stopped doing the casting at all. I haven't heard it actually cast the broadcast audio in a month or two maybe. I've lost track. Every time the automations fire, all I get are the volumes being set as it's configured to do but no cast audio in-between. I'm unable to even do it via a service call to the TTS say, the deprecated one or TTS speak. They both give me the same error. I've even tried to tell it to cache it. Hoping that it might mess up the first time but then just pull from the cache every other time. Hoping that maybe it was a latency thing and it was timing out. No luck.

nromagna commented 3 months ago

In the same boat for the past couple of months... Any ideas?

phoenix-9 commented 3 months ago

I have the same issue. I use Chromecast dongles. I cannot cast local media or dashboards. The TV screen will go blank, and I get a spinning circle. If I cast one of my Unifi security cameras (rtsps) from Homeassistant, it does work. For me, casting local media and dashboards has never worked. Homeassistant has an internal ip address (192.168.x.x). I also have an external ip address that the router forwards to the internal address. Homeassistant has a valid letsencrypt ssl certificate. Homeassistant is at version 2024.6.4.

When casting a local video file: Failed to cast media https://hassio.mclemente.net:8123/media/local/Video/9.mkv?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiMmI1Mzg5MzhlYjc0OWJjYWYxMjZjMmVmMzIzODc3MSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvVmlkZW8vOS5ta3YiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTkxOTc5NDEsImV4cCI6MTcxOTI4NDM0MX0.SYi903hDMGeNk6ZGWGAvWPIGMpUZftMnLiz3EI9jYU0 from internal_url (https://hassio.mclemente.net:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

When casting a deshboard: Exception in _handle_signal_show_view when dispatching 'cast_show_view': ({'hass_url': 'https://hassio.mclemente.net:8123', 'hass_uuid': '60474ee72ca5422d9774c4a34e2e1b2d', 'client_id': None, 'refresh_token': 'c233b058e0c9b4b10a2ccd9146b22f3f6293d26527f307163358ef88395fe792d62fe0f7898f9e17d87198f3cc67469f11c9e79b0a1613d1901ead3ce5912ece'}, 'media_player.chromecast_basement', '0', None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 1031, in _handle_signal_show_view self._hass_cast_controller.show_lovelace_view(view_path, url_path) File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/homeassistant.py", line 195, in show_lovelace_view self._send_connected_message( File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/homeassistant.py", line 221, in _send_connected_message self._connect_hass( File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/homeassistant.py", line 166, in _connect_hass raise PyChromecastError() # pylint: disable=broad-exception-raised ^^^^^^^^^^^^^^^^^^^^^^^^^ pychromecast.error.PyChromecastError

pergolafabio commented 1 month ago

Hi, seeing same issue as well, i start my camera stream on the google hub device, not sure why its using the IP address, i have setup my internal/external address correctly

Whats strange, i do see the camera stream for 10 seconds, then it fails

bjerem commented 3 weeks ago

Hello, Same issue on my side when I'm trying to use TTS with Google Home Nest Mini Here is the HA Cast debug logs with the followings error : [pychromecast.controllers] Media:Load failed with code None(unknown code) for queue item id 1 [pychromecast.controllers] Media:Not firing load failed

2024-09-05 21:25:23.370 DEBUG (MainThread) [homeassistant.components.cast.media_player] [media_player.salon Salon] Playing {'media_id': 'http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3', 'media_type': 'audio/mpeg'} with default_media_receiver
2024-09-05 21:25:23.371 INFO (SyncWorker_59) [pychromecast.controllers] Receiver:Launching app CC1AD845
2024-09-05 21:25:23.371 DEBUG (SyncWorker_59) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'LAUNCH', 'appId': 'CC1AD845', 'requestId': 507}
2024-09-05 21:25:23.374 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to sender-0: {'launchRequestId': 507, 'status': 'USER_ALLOWED', 'type': 'LAUNCH_STATUS'}
2024-09-05 21:25:23.374 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Message unhandled: Message urn:x-cast:com.google.cast.receiver from receiver-0 to sender-0: {'launchRequestId': 507, 'status': 'USER_ALLOWED', 'type': 'LAUNCH_STATUS'}
2024-09-05 21:25:23.385 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received unknown namespace: Message urn:x-cast:com.google.cast.multizone from receiver-0 to *: {'requestId': 0, 'status': {'devices': [{'capabilities': 196612, 'deviceId': '5b722a16-35fe-36d1-a8aa-e42ebd83cbf2', 'name': 'Salon', 'volume': {'level': 0.6200000047683716, 'muted': False}}], 'isMultichannel': False, 'playbackSession': {'appAllowsGrouping': True, 'isVideoContent': False, 'streamTransferSupported': True}}, 'type': 'MULTIZONE_STATUS'}
2024-09-05 21:25:24.332 DEBUG (zeroconf-ServiceBrowser-_googlecast._tcp-243) [pychromecast.discovery] add_service _googlecast._tcp.local., Google-Nest-Mini-5b722a1635fe36d1a8aae42ebd83cbf2._googlecast._tcp.local.
2024-09-05 21:25:24.333 DEBUG (zeroconf-ServiceBrowser-_googlecast._tcp-243) [homeassistant.components.cast.discovery] Discovered new or updated chromecast ChromecastInfo(cast_info=CastInfo(services={HostServiceInfo(host='192.168.X.Y', port=8009), MDNSServiceInfo(name='Google-Nest-Mini-5b722a1635fe36d1a8aae42ebd83cbf2._googlecast._tcp.local.')}, uuid=UUID('5b722a16-35fe-36d1-a8aa-e42ebd83cbf2'), model_name='Google Nest Mini', friendly_name='Salon', host='192.168.X.Y', port=8009, cast_type='audio', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-09-05 21:25:24.334 DEBUG (MainThread) [homeassistant.components.cast.media_player] _async_create_cast_device: ChromecastInfo(cast_info=CastInfo(services={HostServiceInfo(host='192.168.X.Y', port=8009), MDNSServiceInfo(name='Google-Nest-Mini-5b722a1635fe36d1a8aae42ebd83cbf2._googlecast._tcp.local.')}, uuid=UUID('5b722a16-35fe-36d1-a8aa-e42ebd83cbf2'), model_name='Google Nest Mini', friendly_name='Salon', host='192.168.X.Y', port=8009, cast_type='audio', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-09-05 21:25:24.334 DEBUG (MainThread) [homeassistant.components.cast.media_player] Discovered chromecast with same UUID: ChromecastInfo(cast_info=CastInfo(services={HostServiceInfo(host='192.168.X.Y', port=8009), MDNSServiceInfo(name='Google-Nest-Mini-5b722a1635fe36d1a8aae42ebd83cbf2._googlecast._tcp.local.')}, uuid=UUID('5b722a16-35fe-36d1-a8aa-e42ebd83cbf2'), model_name='Google Nest Mini', friendly_name='Salon', host='192.168.X.Y', port=8009, cast_type='audio', manufacturer='Google Inc.'), is_dynamic_group=None)
2024-09-05 21:25:24.335 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to *: {'requestId': 507, 'status': {'applications': [{'appId': 'CC1AD845', 'appType': 'WEB', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'senderConnected': False, 'sessionId': 'bd4d6669-bb05-429a-bba2-fffa99bb821a', 'statusText': 'Default Media Receiver', 'transportId': 'bd4d6669-bb05-429a-bba2-fffa99bb821a', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.6200000047683716, 'muted': False, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'}
2024-09-05 21:25:24.335 DEBUG (Thread-7) [pychromecast.controllers] Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.6200000047683716, volume_muted=False, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.media'], session_id='bd4d6669-bb05-429a-bba2-fffa99bb821a', transport_id='bd4d6669-bb05-429a-bba2-fffa99bb821a', status_text='Default Media Receiver', icon_url='', volume_control_type='master')
2024-09-05 21:25:24.335 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Sending: Message urn:x-cast:com.google.cast.tp.connection from sender-0 to bd4d6669-bb05-429a-bba2-fffa99bb821a: {'type': 'CONNECT', 'origin': {}, 'userAgent': 'PyChromecast', 'senderInfo': {'sdkType': 2, 'version': '15.605.1.3', 'browserVersion': '44.0.2403.30', 'platform': 4, 'systemVersion': 'Macintosh; Intel Mac OS X10_10_3', 'connectionType': 1}}
2024-09-05 21:25:24.336 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to bd4d6669-bb05-429a-bba2-fffa99bb821a: {'type': 'GET_STATUS', 'requestId': 508}
2024-09-05 21:25:24.337 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to bd4d6669-bb05-429a-bba2-fffa99bb821a: {'media': {'contentId': 'http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3', 'streamType': 'LIVE', 'contentType': 'audio/mpeg', 'metadata': {}}, 'type': 'LOAD', 'autoplay': True, 'customData': {}, 'requestId': 509, 'sessionId': 'bd4d6669-bb05-429a-bba2-fffa99bb821a'}
2024-09-05 21:25:24.354 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to *: {'requestId': 0, 'status': {'applications': [{'appId': 'CC1AD845', 'appType': 'WEB', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'senderConnected': True, 'sessionId': 'bd4d6669-bb05-429a-bba2-fffa99bb821a', 'statusText': 'Default Media Receiver', 'transportId': 'bd4d6669-bb05-429a-bba2-fffa99bb821a', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.6200000047683716, 'muted': False, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'}
2024-09-05 21:25:24.354 DEBUG (Thread-7) [pychromecast.controllers] Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.6200000047683716, volume_muted=False, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.media'], session_id='bd4d6669-bb05-429a-bba2-fffa99bb821a', transport_id='bd4d6669-bb05-429a-bba2-fffa99bb821a', status_text='Default Media Receiver', icon_url='', volume_control_type='master')
2024-09-05 21:25:24.397 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to *: {'type': 'MEDIA_STATUS', 'status': [], 'requestId': 0}
2024-09-05 21:25:24.397 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Message unhandled: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to *: {'type': 'MEDIA_STATUS', 'status': [], 'requestId': 0}
2024-09-05 21:25:24.398 DEBUG (Thread-7) [pychromecast.controllers] Media:Updated 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-09-05 21:25:24.419 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to sender-0: {'type': 'MEDIA_STATUS', 'status': [], 'requestId': 508}
2024-09-05 21:25:24.419 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Message unhandled: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to sender-0: {'type': 'MEDIA_STATUS', 'status': [], 'requestId': 508}
2024-09-05 21:25:24.419 DEBUG (Thread-7) [pychromecast.controllers] Media:Updated 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-09-05 21:25:24.443 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 1, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'media': {'contentId': 'http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3', 'streamType': 'LIVE', 'contentType': 'audio/mpeg', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'currentItemId': 1, 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3', 'streamType': 'LIVE', 'contentType': 'audio/mpeg', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 1}, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 509}
2024-09-05 21:25:24.443 DEBUG (Thread-7) [pychromecast.controllers] Media:Updated 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': True, 'supports_seek': True, 'supports_stream_volume': True, 'supports_stream_mute': True, 'supports_skip_forward': False, 'supports_skip_backward': False, 'current_time': 0, 'content_id': 'http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3', 'content_type': 'audio/mpeg', 'duration': None, 'stream_type': 'LIVE', 'idle_reason': None, 'media_session_id': 1, 'playback_rate': 1, 'player_state': 'IDLE', 'supported_media_commands': 274447, 'volume_level': 1, 'volume_muted': False, 'media_custom_data': {}, 'media_metadata': {}, 'current_subtitle_tracks': [], 'last_updated': datetime.datetime(2024, 9, 5, 19, 25, 24, 443475)}>
2024-09-05 21:25:24.443 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received unknown namespace: Message urn:x-cast:com.google.cast.multizone from receiver-0 to *: {'requestId': 0, 'status': {'devices': [{'capabilities': 196612, 'deviceId': '5b722a16-35fe-36d1-a8aa-e42ebd83cbf2', 'name': 'Salon', 'volume': {'level': 0.6200000047683716, 'muted': False}}], 'isMultichannel': False, 'playbackSession': {'appAllowsGrouping': True, 'isVideoContent': False, 'streamTransferSupported': True}}, 'type': 'MULTIZONE_STATUS'}
2024-09-05 21:25:24.529 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to sender-0: {'type': 'LOAD_FAILED', 'requestId': 509, 'itemId': 1}
2024-09-05 21:25:24.530 DEBUG (Thread-7) [pychromecast.controllers] Media:Load failed with code None(unknown code) for queue item id 1
2024-09-05 21:25:24.530 DEBUG (Thread-7) [pychromecast.controllers] Media:Not firing load failed
2024-09-05 21:25:24.543 DEBUG (Thread-7) [pychromecast.socket_client] [Salon(192.168.X.Y):8009] Received: Message urn:x-cast:com.google.cast.media from bd4d6669-bb05-429a-bba2-fffa99bb821a to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 1, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'ERROR'}], 'requestId': 0}
2024-09-05 21:25:24.543 DEBUG (Thread-7) [pychromecast.controllers] Media:Updated 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': True, 'supports_seek': True, 'supports_stream_volume': True, 'supports_stream_mute': True, 'supports_skip_forward': False, 'supports_skip_backward': False, 'current_time': 0, 'content_id': 'http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3', 'content_type': 'audio/mpeg', 'duration': None, 'stream_type': 'LIVE', 'idle_reason': 'ERROR', 'media_session_id': 1, 'playback_rate': 1, 'player_state': 'IDLE', 'supported_media_commands': 274447, 'volume_level': 1, 'volume_muted': False, 'media_custom_data': {}, 'media_metadata': {}, 'current_subtitle_tracks': [], 'last_updated': datetime.datetime(2024, 9, 5, 19, 25, 24, 543734)}>
2024-09-05 21:25:24.544 ERROR (Thread-7) [homeassistant.components.cast.media_player] Failed to cast media http://192.168.X.X:8123/api/tts_proxy/b9f585d4b6c6118bee72e30172f31e5eab01aea1_fr-fr_-_google_translate.mp3 from internal_url (http://192.168.X.X:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Here is a tcpdump just to show you that there is no communication issue :

21:47:00.822352 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [S], seq 4257761461, win 29200, options [mss 1300,sackOK,TS val 2781757587 ecr 0,nop,wscale 6], length 0
21:47:00.822403 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [S.], seq 1696396716, ack 4257761462, win 65160, options [mss 1460,sackOK,TS val 4153937653 ecr 2781757587,nop,wscale 7], length 0
21:47:00.824794 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [P.], seq 1:639, ack 1, win 457, options [nop,nop,TS val 2781757590 ecr 4153937653], length 638
21:47:00.824832 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [.], ack 639, win 505, options [nop,nop,TS val 4153937655 ecr 2781757590], length 0
21:47:00.826156 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 1:208, ack 639, win 505, options [nop,nop,TS val 4153937656 ecr 2781757590], length 207
21:47:00.826198 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 208:6648, ack 639, win 505, options [nop,nop,TS val 4153937656 ecr 2781757590], length 6440
21:47:00.826211 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 6648:11800, ack 639, win 505, options [nop,nop,TS val 4153937656 ecr 2781757590], length 5152
21:47:00.826265 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [.], ack 1, win 457, options [nop,nop,TS val 2781757589 ecr 4153937653], length 0
21:47:00.826287 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [.], ack 639, win 505, options [nop,nop,TS val 4153937656 ecr 2781757590], length 0
21:47:00.830412 IP 192.168.X.X.48080 > 192.168.X.Y.8009: Flags [.], ack 4100, win 887, options [nop,nop,TS val 4153937661 ecr 2781757555], length 0
21:47:00.833054 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [.], ack 11800, win 836, options [nop,nop,TS val 2781757598 ecr 4153937656], length 0
21:47:00.833092 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 11800:24680, ack 639, win 505, options [nop,nop,TS val 4153937663 ecr 2781757598], length 12880
21:47:00.833113 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 24680:25968, ack 639, win 505, options [nop,nop,TS val 4153937663 ecr 2781757598], length 1288
21:47:00.833131 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 25968:37560, ack 639, win 505, options [nop,nop,TS val 4153937663 ecr 2781757598], length 11592
21:47:00.836304 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [.], ack 13088, win 876, options [nop,nop,TS val 2781757601 ecr 4153937663], length 0
21:47:00.836343 IP 192.168.X.X.8123 > 192.168.X.Y.50720: Flags [P.], seq 37560:40136, ack 639, win 505, options [nop,nop,TS val 4153937666 ecr 2781757601], length 2576
21:47:00.840085 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [R.], seq 639, ack 20816, win 1117, options [nop,nop,TS val 2781757605 ecr 4153937663], length 0
21:47:00.840288 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [R], seq 4257762100, win 0, length 0
21:47:00.841824 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [R], seq 4257762100, win 0, length 0
21:47:00.842066 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [R], seq 4257762100, win 0, length 0
21:47:00.843324 IP 192.168.X.Y.50720 > 192.168.X.X.8123: Flags [R], seq 4257762100, win 0, length 0

192.168.X.X is my HA 192.168.X.Y is my Google Home

Everything works before and unfortunately I can't say exactly when it starts to fail. I'm running HA Core 2024.9.0 in a docker container and I'm using GoogleCast native integration.

Thank you for your help

crazykiwi2003 commented 2 weeks ago

Same here - TTS on my Google Nest Mini suddenly stopped working today. No way to get it alive again...

susanacf90 commented 2 weeks ago

I have a Google Nest Hub that was working fine until today too and it suddenly doesn't play casted TTS... My Google Home Mini though is still working great.

OvernightPancake commented 2 weeks ago

Same issue here, working fine up until today. I have it working still on the Nest Mini, however the Nest Hub and Home Mini devices are not working.

yzjJosh commented 1 week ago

Same issue here. Worked fine until today. The interesting thing is that I have 3 Nest Mini with the same firmware version. Only one of them has this issue.

WaeedHussain commented 1 week ago

Has anyone checked the Google Cast version on their devices? I wonder if some of us have had an update recently (Google docs have been behind in version updates, it's not unheard of)

My Cast version for the Nest Hub Max is 3.74.419799 whereas all of the other (working devices) is 3.73.420420

I've asked this in another comment section

yzjJosh commented 1 week ago

I don't have a Nest Hub. But I can confirm that my "broken" Nest Mini and the "good" Nest Mini has the same cast firmware version 3.73.429109

It could be due to some server side change in Nest that slowly rolls out to devices.

OvernightPancake commented 1 week ago

This is what I see in my end:

Not Working Devices: Nest Hub v3.74.419799 Home Mini v3.73.429109

Working Device: Nest Mini v3.73.429109

Interestingly, when I set up a Speaker Group with all 3 devices, the Nest Hub works along with the Nest Mini, however the Home Mini still does not and the Nest Hub by itself still does not work.

WaeedHussain commented 1 week ago

Bizarre, when I tried to to group play them all together none of them worked even though the problem is only with 1/5. I think yzjJosh is correct in this case with it being a server side issue considering the versions arent consistent

OvernightPancake commented 1 week ago

Good news! Everything is working again on my end, definitely seems to have been a server side issue.

budies2001 commented 1 week ago

Yes, seems to have been fixed. All working on my side too.