core icon indicating copy to clipboard operation
core copied to clipboard

Chromecast Socket Problems

Open pedolsky opened this issue 2 years ago • 2 comments

The problem

Since the 'unsupported' issue as part of the latest supervisor update, HA can no longer connect to my Google Nest Mini:


Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:396 
First occurred: 4. November 2022 um 22:41:05 (5 occurrences) 
Last logged: 4. November 2022 um 23:59:14

[Google Nest Mini(192.168.178.38):8009] Failed to connect to service ServiceInfo(type='mdns', data='Google-Nest-Mini-f88d773427db4488ffaebb7422472215._googlecast._tcp.local.'), retrying in 5.0s

Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:610 
First occurred: 00:04:03 (1 occurrences) 
Last logged: 00:04:03

[Google Nest Mini(192.168.178.38):8009] Error reading from socket.

Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:672 
First occurred: 4. November 2022 um 21:38:55 (22 occurrences) 
Last logged: 00:13:30

[Google Nest Mini(192.168.178.38):8009] Heartbeat timeout, resetting connection

What version of Home Assistant Core has the issue?

core.2022.11.1

What was the last working version of Home Assistant Core?

core-2022.10.x

What type of installation are you running?

Home Assistant Supervised

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: pychromecast.socket_client
Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:396 
First occurred: 4. November 2022 um 22:41:05 (5 occurrences) 
Last logged: 4. November 2022 um 23:59:14

[Google Nest Mini(192.168.178.38):8009] Failed to connect to service ServiceInfo(type='mdns', data='Google-Nest-Mini-f88d773427db4488ffaebb7422472215._googlecast._tcp.local.'), retrying in 5.0s

Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:610 
First occurred: 00:04:03 (1 occurrences) 
Last logged: 00:04:03

[Google Nest Mini(192.168.178.38):8009] Error reading from socket.

Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:672 
First occurred: 4. November 2022 um 21:38:55 (22 occurrences) 
Last logged: 00:13:30

[Google Nest Mini(192.168.178.38):8009] Heartbeat timeout, resetting connection



### Additional information

_No response_

pedolsky avatar Nov 04 '22 23:11 pedolsky

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 Change the title of 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.

(message by CodeOwnersMention)


cast documentation cast source (message by IssueLinks)

home-assistant[bot] avatar Nov 04 '22 23:11 home-assistant[bot]

Now my TV is joining the party:


2022-11-07 15:30:49.585 ERROR (Thread-4) [pychromecast.socket_client] [BORUSSIA(192.168.178.25):8009] Failed to connect to service ServiceInfo(type='mdns', data='BRAVIA-4K-GB-ATV3-450a6f784694021189f8477ead1828f7._googlecast._tcp.local.'), retrying in 5.0s

pedolsky avatar Nov 07 '22 17:11 pedolsky

Same issue on my Chromecast with Google TV. All my Google Mini (nest) speakers still work as expected though.

Logger: pychromecast.socket_client Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:396 First occurred: 13:51:34 (7 occurrences) Last logged: 14:28:54

[Living Room TV(192.168.1.68):8009] Failed to connect to service ServiceInfo(type='mdns', data='Chromecast-xxxxxxxxxxxxxxx._googlecast._tcp.local.'), retrying in 5.0s [Living Room TV(192.168.1.68):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.68', 8009)), retrying in 5.0s

Logger: pychromecast.socket_client Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:663 First occurred: 13:51:34 (7 occurrences) Last logged: 14:28:54

[Living Room TV(192.168.1.68):8009] Error communicating with socket, resetting connection

Logger: pychromecast.socket_client Source: /usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py:610 First occurred: 13:51:34 (7 occurrences) Last logged: 14:28:54

[Living Room TV(192.168.1.68):8009] Error reading from socket.

`

Elroc avatar Nov 09 '22 14:11 Elroc

I've started to experience similar issues on 2022.10.5. My Chromecast with Google TV connection is really unreliable, however my Sony Bravia with Google TV still works fine.

pmannk avatar Nov 13 '22 21:11 pmannk

My google mini can pull from radio browser and play music just fine, and my local server with HA in the browser can play audio from my Plex just fine - but combining the 2 and sending a song to the mini results in it just turning to idle and not playing anything, this had been working just fine for half a year until about 2 weeks ago.

Is this wrapped up in this issue as well?

EagleDTW avatar Nov 15 '22 01:11 EagleDTW

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.