HA doesn't reconnect to Google Mini (Chromecast)

Hi,

from the very begining of my journey with HA I have problems with my Google Mini and Chromecast.
I think I tried everything, but maybe you can guide me what to do.

First of all - I’m using HA on QNAP as a docker container - release 2020.12.1.
I have Asus as my home router: one subnet, Wifi - only 2.4.
Right now I have those integrations:

  • HACS
  • sonoff (from HACS)
  • weather - AccuWeather, OpenWeather
  • Shelly
  • Samsung SmartTV
  • MobileApp
  • Google Cast

Some Automations, scenes, … and cloud access from NabuCasa.
Everything works without problem till…

… something is breaking connection to one of casts (some router restart, wifi breaks, etc).
For sure - if I plug off my GH mini it stays unavailable after pluging in.
WIthout doing any changes - restart of HA and everything is fine!

No… creating automation for that it’s not an answer :slight_smile: Any other will be welcome :slight_smile:

My conf:

homeassistant:
  customize: !include customize.yaml
  unit_system: metric
  time_zone: Europe/Warsaw
  internal_url: "http://10.10.xx.xx:8123"
binary_sensor:
  - platform: template
    sensors:
      anyone_home:
        device_class: occupancy
        value_template:  >
           {{ states.person | selectattr('state','eq','home') | list | count > 0 }}
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sonoff:
  username: [email protected]
  password: !secret ewelink.pass
light:
  - platform: switch
    name: IN
    entity_id: switch.sonoff_1xxxxxxxx34_1
  - platform: switch
    name: OUT
    entity_id: switch.sonoff_1xxxxxxxx34_2
  - platform: group
    name: Salon
    entities:
      - light.IN
      - light.OUT
logger:
   default: info
   logs:
    homeassistant.components.cast: debug
    homeassistant.components.cast.media_player: debug
    pychromecast: debug
    pychromecast.discovery: debug
    pychromecast.socket_client: debug
    homeassistant.components.zeroconf: debug
    zeroconf: debug

Related logs:

2020-12-22 09:33:17 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-12-22 09:33:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('10.0.5.1',)
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Created socket <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.0.5.1', 5353)>
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Configuring socket <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.0.5.1', 5353)> with multicast interface 10.0.5.1
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Adding '10.10.xx.xxx' (socket 7) to multicast group
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('10.10.xx.xxx',)
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Created socket <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.10.xx.xxx', 5353)>
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Configuring socket <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.10.xx.xxx', 5353)> with multicast interface 10.10.xx.xxx
2020-12-22 09:33:22 DEBUG (SyncWorker_2) [zeroconf] Listen socket <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)>, respond sockets [<socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 5353)>, <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.0.3.1', 5353)>, <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.0.5.1', 5353)>, <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('10.10.xx.xxx', 5353)>]
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.204':5353 (socket 7): <DNSIncoming:{id=0, flags=33792, n_q=0, n_ans=1, n_auth=0, n_add=3, questions=[], answers=[record[ptr,in,_googlezone._tcp.local.]=120/119,1e15f534-89e4-51cc-eb33-00a249d738d9._googlezone._tcp.local., record[txt,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9._googlezone._tcp.local.]=4500/4499,b'#id=F75'..., record[srv,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9._googlezone._tcp.local.]=120/119,1e15f534-89e4-51cc-eb33-00a249d738d9.local.:10001, record[a,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9.local.]=120/119,10.10.xx.204]}> (269 bytes) as [b"\x00\x00\x84\x00\x00\x00\x00\x01\x00\x00\x00\x03\x0b_googlezone\x04_tcp\x05local\x00\x00\x0c\x00\x01\x00\x00\x00x\x00'$1e15f534-89e4-51cc-eb33-00a249d738d9\xc0\x0c\xc0.\x00\x10\x80\x01\x00\x00\x11\x94\x00c#id=F752719F147CC03DE6276D279DDD069C*b2b239a0-a618-412a-9597-bec5e10eacb9=8|All\x13__common_time__=0|0\xc0.\x00!\x80\x01\x00\x00\x00x\x00-\x00\xd2\xff\xff'\x11$1e15f534-89e4-51cc-eb33-00a249d738d9\xc0\x1d\xc0\xd6\x00\x01\x80\x01\x00\x00\x00x\x00\x04\n\n\x01\xcc"]
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.204':5353 (socket 7): <DNSIncoming:{id=0, flags=0, n_q=1, n_ans=0, n_auth=0, n_add=0, questions=[question[srv,in,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6._googlezone._tcp.local.]], answers=[]}> (77 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00$0ffe556a-e1d3-fd68-25c8-aeaefe122bb6\x0b_googlezone\x04_tcp\x05local\x00\x00!\x00\x01']
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.204':5353 (socket 7): <DNSIncoming:{id=0, flags=33792, n_q=0, n_ans=1, n_auth=0, n_add=3, questions=[], answers=[record[ptr,in,_googlerpc._tcp.local.]=120/119,googlerpc._googlerpc._tcp.local., record[txt,in-unique,googlerpc._googlerpc._tcp.local.]=4500/4499,b'#cd=F75'..., record[srv,in-unique,googlerpc._googlerpc._tcp.local.]=120/119,1e15f534-89e4-51cc-eb33-00a249d738d9.local.:8012, record[a,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9.local.]=120/119,10.10.xx.204]}> (178 bytes) as [b'\x00\x00\x84\x00\x00\x00\x00\x01\x00\x00\x00\x03\n_googlerpc\x04_tcp\x05local\x00\x00\x0c\x00\x01\x00\x00\x00x\x00\x0c\tgooglerpc\xc0\x0c\xc0-\x00\x10\x80\x01\x00\x00\x11\x94\x00$#cd=F752719F147CC03DE6276D279DDD069C\xc0-\x00!\x80\x01\x00\x00\x00x\x00-\x00\x00\x00\x00\x1fL$1e15f534-89e4-51cc-eb33-00a249d738d9\xc0\x1c\xc0{\x00\x01\x80\x01\x00\x00\x00x\x00\x04\n\n\x01\xcc']
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.204':5353 (socket 7): <DNSIncoming:{id=0, flags=33792, n_q=0, n_ans=1, n_auth=0, n_add=3, questions=[], answers=[record[ptr,in,_googlezone._tcp.local.]=120/119,1e15f534-89e4-51cc-eb33-00a249d738d9._googlezone._tcp.local., record[txt,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9._googlezone._tcp.local.]=4500/4499,b'#id=F75'..., record[srv,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9._googlezone._tcp.local.]=120/119,1e15f534-89e4-51cc-eb33-00a249d738d9.local.:10001, record[a,in-unique,1e15f534-89e4-51cc-eb33-00a249d738d9.local.]=120/119,10.10.xx.204]}> (269 bytes) as [b"\x00\x00\x84\x00\x00\x00\x00\x01\x00\x00\x00\x03\x0b_googlezone\x04_tcp\x05local\x00\x00\x0c\x00\x01\x00\x00\x00x\x00'$1e15f534-89e4-51cc-eb33-00a249d738d9\xc0\x0c\xc0.\x00\x10\x80\x01\x00\x00\x11\x94\x00c#id=F752719F147CC03DE6276D279DDD069C*b2b239a0-a618-412a-9597-bec5e10eacb9=8|All\x13__common_time__=0|0\xc0.\x00!\x80\x01\x00\x00\x00x\x00-\x00\xd2\xff\xff'\x11$1e15f534-89e4-51cc-eb33-00a249d738d9\xc0\x1d\xc0\xd6\x00\x01\x80\x01\x00\x00\x00x\x00\x04\n\n\x01\xcc"]
[...]
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.177':5353 (socket 7): <DNSIncoming:{id=0, flags=33792, n_q=0, n_ans=1, n_auth=0, n_add=3, questions=[], answers=[record[ptr,in,_googlerpc._tcp.local.]=120/119,googlerpc-1._googlerpc._tcp.local., record[txt,in-unique,googlerpc-1._googlerpc._tcp.local.]=4500/4499,b'#cd=74B'..., record[srv,in-unique,googlerpc-1._googlerpc._tcp.local.]=120/119,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6.local.:8012, record[a,in-unique,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6.local.]=120/119,10.10.xx.177]}> (180 bytes) as [b'\x00\x00\x84\x00\x00\x00\x00\x01\x00\x00\x00\x03\n_googlerpc\x04_tcp\x05local\x00\x00\x0c\x00\x01\x00\x00\x00x\x00\x0e\x0bgooglerpc-1\xc0\x0c\xc0-\x00\x10\x80\x01\x00\x00\x11\x94\x00$#cd=74B472FD173B416613129AA68976F2EB\xc0-\x00!\x80\x01\x00\x00\x00x\x00-\x00\x00\x00\x00\x1fL$0ffe556a-e1d3-fd68-25c8-aeaefe122bb6\xc0\x1c\xc0}\x00\x01\x80\x01\x00\x00\x00x\x00\x04\n\n\x01\xb1']
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.177':5353 (socket 7): <DNSIncoming:{id=0, flags=33792, n_q=0, n_ans=1, n_auth=0, n_add=1, questions=[], answers=[record[srv,in-unique,googlerpc-1._googlerpc._tcp.local.]=120/119,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6.local.:8012, record[a,in-unique,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6.local.]=120/119,10.10.xx.177]}> (118 bytes) as [b'\x00\x00\x84\x00\x00\x00\x00\x01\x00\x00\x00\x01\x0bgooglerpc-1\n_googlerpc\x04_tcp\x05local\x00\x00!\x80\x01\x00\x00\x00x\x00-\x00\x00\x00\x00\x1fL$0ffe556a-e1d3-fd68-25c8-aeaefe122bb6\xc0(\xc0?\x00\x01\x80\x01\x00\x00\x00x\x00\x04\n\n\x01\xb1']
2020-12-22 09:33:22 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.177':5353 (socket 7): <DNSIncoming:{id=0, flags=33792, n_q=0, n_ans=1, n_auth=0, n_add=3, questions=[], answers=[record[ptr,in,_googlezone._tcp.local.]=120/119,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6._googlezone._tcp.local., record[txt,in-unique,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6._googlezone._tcp.local.]=4500/4499,b'#id=74B'..., record[srv,in-unique,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6._googlezone._tcp.local.]=120/119,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6.local.:10001, record[a,in-unique,0ffe556a-e1d3-fd68-25c8-aeaefe122bb6.local.]=120/119,10.10.xx.177]}> (271 bytes) as [b"\x00\x00\x84\x00\x00\x00\x00\x01\x00\x00\x00\x03\x0b_googlezone\x04_tcp\x05local\x00\x00\x0c\x00\x01\x00\x00\x00x\x00'$0ffe556a-e1d3-fd68-25c8-aeaefe122bb6\xc0\x0c\xc0.\x00\x10\x80\x01\x00\x00\x11\x94\x00e#id=74B472FD173B416613129AA68976F2EB*b2b239a0-a618-412a-9597-bec5e10eacb9=1|All\x15__common_time__=1|158\xc0.\x00!\x80\x01\x00\x00\x00x\x00-\x02b\xff\xfc'\x11$0ffe556a-e1d3-fd68-25c8-aeaefe122bb6\xc0\x1d\xc0\xd8\x00\x01\x80\x01\x00\x00\x00x\x00\x04\n\n\x01\xb1"]
2020-12-22 09:33:28 DEBUG (SyncWorker_5) [homeassistant.components.cast.discovery] Starting internal pychromecast discovery
2020-12-22 09:33:28 DEBUG (Thread-5) [zeroconf] offsets = 0, 0, 0
2020-12-22 09:33:28 DEBUG (Thread-5) [zeroconf] lengths = 3, 0, 0
2020-12-22 09:33:28 DEBUG (Thread-5) [zeroconf] now offsets = 3, 0, 0
2020-12-22 09:33:28 DEBUG (Thread-5) [zeroconf] Sending (229 bytes #1) <DNSOutgoing:{multicast=True, flags=0, questions=[question[ptr,in,_googlecast._tcp.local.]], answers=[(record[ptr,in,_googlecast._tcp.local.]=120/114,Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6._googlecast._tcp.local., 1608626008080.757), (record[ptr,in,_googlecast._tcp.local.]=120/114,Google-Cast-Group-b2b239a0a618412a9597bec5e10eacb9-1._googlecast._tcp.local., 1608626008080.757), (record[ptr,in,_googlecast._tcp.local.]=120/114,Chromecast-1e15f53489e451cceb3300a249d738d9._googlecast._tcp.local., 1608626008080.757)], authorities=[], additionals=[]}> as b'\x00\x00\x00\x00\x00\x01\x00\x03\x00\x00\x00\x00\x0b_googlecast\x04_tcp\x05local\x00\x00\x0c\x00\x01\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x0041Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6\xc0\x0c\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x0074Google-Cast-Group-b2b239a0a618412a9597bec5e10eacb9-1\xc0\x0c\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x00.+Chromecast-1e15f53489e451cceb3300a249d738d9\xc0\x0c'...
2020-12-22 09:33:28 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '127.0.0.1':5353 (socket 7): <DNSIncoming:{id=0, flags=0, n_q=1, n_ans=3, n_auth=0, n_add=0, questions=[question[ptr,in,_googlecast._tcp.local.]], answers=[record[ptr,in,_googlecast._tcp.local.]=114/113,Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6._googlecast._tcp.local., record[ptr,in,_googlecast._tcp.local.]=114/113,Google-Cast-Group-b2b239a0a618412a9597bec5e10eacb9-1._googlecast._tcp.local., record[ptr,in,_googlecast._tcp.local.]=114/113,Chromecast-1e15f53489e451cceb3300a249d738d9._googlecast._tcp.local.]}> (229 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x03\x00\x00\x00\x00\x0b_googlecast\x04_tcp\x05local\x00\x00\x0c\x00\x01\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x0041Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6\xc0\x0c\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x0074Google-Cast-Group-b2b239a0a618412a9597bec5e10eacb9-1\xc0\x0c\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x00.+Chromecast-1e15f53489e451cceb3300a249d738d9\xc0\x0c']
2020-12-22 09:33:28 DEBUG (zeroconf-Engine-157) [zeroconf] Ignoring duplicate message received from '10.0.3.1':5353 (socket 7) (229 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x03\x00\x00\x00\x00\x0b_googlecast\x04_tcp\x05local\x00\x00\x0c\x00\x01\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x0041Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6\xc0\x0c\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x0074Google-Cast-Group-b2b239a0a618412a9597bec5e10eacb9-1\xc0\x0c\xc0\x0c\x00\x0c\x00\x01\x00\x00\x00r\x00.+Chromecast-1e15f53489e451cceb3300a249d738d9\xc0\x0c']
2020-12-22 09:33:28 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._162) [pychromecast.discovery] add_service _googlecast._tcp.local., Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6._googlecast._tcp.local.
2020-12-22 09:33:28 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._162) [homeassistant.components.cast.discovery] Discovered chromecast ChromecastInfo(services={'Google-Home-Mini-0ffe556ae1d3fd6825c8aeaefe122bb6._googlecast._tcp.local.'}, host='10.10.xx.177', port=8009, uuid='0ffe556a-e1d3-fd68-25c8-aeaefe122bb6', model_name='Google Home Mini', friendly_name='Biuro')
2020-12-22 09:33:28 DEBUG (zeroconf-ServiceBrowser__googlecast._tcp.local._162) [pychromecast.discovery] add_service _googlecast._tcp.local., Google-Cast-Group-b2b239a0a618412a9597bec5e10eacb9-1._googlecast._tcp.local.
[...]
2020-12-22 09:33:30 DEBUG (Thread-7) [homeassistant.components.cast.media_player] [media_player.biuro Biuro] Received cast device connection status: CONNECTED
2020-12-22 09:33:30 DEBUG (Thread-7) [homeassistant.components.cast.media_player] [media_player.biuro Biuro] Cast device availability changed: CONNECTED
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.controllers] Receiver:Updating status
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Sending: Message urn:x-cast:com.google.cast.tp.connection from sender-0 to receiver-0: {'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}}
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'GET_STATUS', 'requestId': 1}
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Connected!
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.socket_client] Thread started...
2020-12-22 09:33:30 DEBUG (Thread-8) [pychromecast.socket_client] [All(10.10.xx.177):32219] connection listener: 7f73b676a0 (CastStatusListener) ConnectionStatus(status='CONNECTED', address=NetworkAddress(address='10.10.xx.177', port=32219))
2020-12-22 09:33:30 DEBUG (Thread-8) [homeassistant.components.cast.media_player] [media_player.all All] Received cast device connection status: CONNECTED
2020-12-22 09:33:30 DEBUG (Thread-8) [homeassistant.components.cast.media_player] [media_player.all All] Cast device availability changed: CONNECTED
2020-12-22 09:33:30 DEBUG (Thread-8) [pychromecast.controllers] Receiver:Updating status
2020-12-22 09:33:30 DEBUG (Thread-8) [pychromecast.socket_client] [All(10.10.xx.177):32219] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'GET_STATUS', 'requestId': 2}
2020-12-22 09:33:30 DEBUG (Thread-8) [pychromecast.socket_client] [All(10.10.xx.177):32219] Connected!
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Received: Message urn:x-cast:com.google.cast.media from 1154ad92-d2e0-4d9c-8306-e4f256f7028e to sender-0: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 1, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 627.131323, 'supportedMediaCommands': 274445, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://195.150.20.246/rmf_fm', 'streamType': 'LIVE', 'mediaCategory': 'AUDIO', 'contentType': 'audio/mpeg', 'metadata': {'metadataType': 3, 'title': 'Najlepsza Muzyka / The Best Music', 'artist': 'Radio RMF FM', 'images': [{'url': 'https://cdn-profiles.tunein.com/s1217/images/logoq.png?t=636353'}], 'subtitle': 'Radio RMF FM'}, 'duration': None, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'customData': {'title': 'Radio RMF FM', 'subtitle': 'Najlepsza Muzyka / The Best Music', 'castUiTitle': 'Najlepsza Muzyka / The Best Music', 'castUiSubtitle': 'Radio RMF FM', 'image': 'https://cdn-profiles.tunein.com/s1217/images/logoq.png?t=636353', 'primaryGuideId': 's1217', 'secondaryGuideId': '', 'followOptions': [{'title': 'Favorite Station', 'guideId': 's1217', 'isFollowing': False, 'url': 'http://opml.radiotime.com/favorites.ashx?c=add&id=s1217&formats=mp3,aac,ogg,wav,hls&partnerId=NVok3txQ&serial=848da04a-3ad0-425a-b8ff-5ca6653b8cbd&version=1.18&itemToken=BgwMAAAAAAAAAAAAAAABwQQAAAEMAcEEAAABwQQAAA'}], 'ads': {'canShowAds': True, 'canShowPrerollAds': True, 'canShowCompanionAds': False, 'canShowVideoPrerollAds': False}, 'classification': {'contentType': 'music', 'isEvent': False, 'isOnDemand': False, 'isFamilyContent': False, 'isMatureContent': False, 'genreId': 'g3'}, 'ttl': 17000, 'share': {'canShare': True, 'shareUrl': 'http://tun.in/sejpH'}, 'isStation': True, 'isProgram': False, 'isTopic': False, 'contentId': 's1217'}, 'breaks': [], 'breakClips': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': '', 'streamType': 'NONE', 'contentType': '', 'duration': None}, 'autoplay': False, 'customData': {'guideId': 's1217', 'serial': '848da04a-3ad0-425a-b8ff-5ca6653b8cbd', 'version': 1.18, 'partnerId': 'NVok3txQ'}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 3}
2020-12-22 09:33:30 DEBUG (Thread-7) [pychromecast.controllers] Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 1, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 627.131323, 'supportedMediaCommands': 274445, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://195.150.20.246/rmf_fm', 'streamType': 'LIVE', 'mediaCategory': 'AUDIO', 'contentType': 'audio/mpeg', 'metadata': {'metadataType': 3, 'title': 'Najlepsza Muzyka / The Best Music', 'artist': 'Radio RMF FM', 'images': [{'url': 'https://cdn-profiles.tunein.com/s1217/images/logoq.png?t=636353'}], 'subtitle': 'Radio RMF FM'}, 'duration': None, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'customData': {'title': 'Radio RMF FM', 'subtitle': 'Najlepsza Muzyka / The Best Music', 'castUiTitle': 'Najlepsza Muzyka / The Best Music', 'castUiSubtitle': 'Radio RMF FM', 'image': 'https://cdn-profiles.tunein.com/s1217/images/logoq.png?t=636353', 'primaryGuideId': 's1217', 'secondaryGuideId': '', 'followOptions': [{'title': 'Favorite Station', 'guideId': 's1217', 'isFollowing': False, 'url': 'http://opml.radiotime.com/favorites.ashx?c=add&id=s1217&formats=mp3,aac,ogg,wav,hls&partnerId=NVok3txQ&serial=848da04a-3ad0-425a-b8ff-5ca6653b8cbd&version=1.18&itemToken=BgwMAAAAAAAAAAAAAAABwQQAAAEMAcEEAAABwQQAAA'}], 'ads': {'canShowAds': True, 'canShowPrerollAds': True, 'canShowCompanionAds': False, 'canShowVideoPrerollAds': False}, 'classification': {'contentType': 'music', 'isEvent': False, 'isOnDemand': False, 'isFamilyContent': False, 'isMatureContent': False, 'genreId': 'g3'}, 'ttl': 17000, 'share': {'canShare': True, 'shareUrl': 'http://tun.in/sejpH'}, 'isStation': True, 'isProgram': False, 'isTopic': False, 'contentId': 's1217'}, 'breaks': [], 'breakClips': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': '', 'streamType': 'NONE', 'contentType': '', 'duration': None}, 'autoplay': False, 'customData': {'guideId': 's1217', 'serial': '848da04a-3ad0-425a-b8ff-5ca6653b8cbd', 'version': 1.18, 'partnerId': 'NVok3txQ'}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 3}
[...]
2020-12-22 09:33:34 DEBUG (zeroconf-Engine-157) [zeroconf] Received from '10.10.xx.176':5353 (socket 7): <DNSIncoming:{id=0, flags=0, n_q=1, n_ans=0, n_auth=0, n_add=0, questions=[question[a,in,wpad.local.]], answers=[]}> (28 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x04wpad\x05local\x00\x00\x01\x00\x01']
2020-12-22 09:33:34 DEBUG (zeroconf-Engine-157) [zeroconf] Ignoring duplicate message received from '10.10.xx.176':5353 (socket 7) (28 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x04wpad\x05local\x00\x00\x01\x00\x01']
2020-12-22 09:33:34 DEBUG (zeroconf-Engine-157) [zeroconf] Ignoring duplicate message received from '10.10.xx.174':5353 (socket 7) (28 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x04wpad\x05local\x00\x00\x01\x00\x01']
2020-12-22 09:33:34 DEBUG (zeroconf-Engine-157) [zeroconf] Ignoring duplicate message received from '10.10.xx.174':5353 (socket 7) (28 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x04wpad\x05local\x00\x00\x01\x00\x01']
2020-12-22 10:07:42 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Not connected, sleeping for 5.0s. Services: set()
2020-12-22 10:07:44 DEBUG (Thread-8) [pychromecast.socket_client] [All(10.10.xx.177):32219] Not connected, sleeping for 5.0s. Services: set()
2020-12-22 10:07:47 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Not connected, sleeping for 5.0s. Services: set()
2020-12-22 10:19:05 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Not connected, sleeping for 5.0s. Services: set()
[...]
2020-12-22 10:19:07 DEBUG (Thread-8) [pychromecast.socket_client] [All(10.10.xx.177):32219] Not connected, sleeping for 5.0s. Services: set()
2020-12-22 10:19:10 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Not connected, sleeping for 5.0s. Services: set()
2020-12-22 10:19:12 DEBUG (Thread-8) [pychromecast.socket_client] [All(10.10.xx.177):32219] Not connected, sleeping for 5.0s. Services: set()
2020-12-22 10:19:15 DEBUG (Thread-7) [pychromecast.socket_client] [Biuro(10.10.xx.177):8009] Not connected, sleeping for 5.0s. Services: set()

Any ideawhat to do, what to check?
Wojtek

Logs from now on…

Logger: aiohttp.server
Source: components/media_player/__init__.py:895
First occurred: 13:50:28 (5 occurrences)
Last logged: 14:50:52

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 971, in get
    data, content_type = await player.async_get_media_image()
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 434, in async_get_media_image
    return await self._async_fetch_image_from_cache(url)
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 880, in _async_fetch_image_from_cache
    (content, content_type) = await self._async_fetch_image(url)
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 895, in _async_fetch_image
    response = await websession.get(url)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 527, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 541, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 898, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 997, in _create_direct_connection
    assert port is not None
AssertionError

and few minutes later …

Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.8/site-packages/pychromecast/socket_client.py:666
First occurred: 13:49:12 (2 occurrences)
Last logged: 15:06:32

[All(10.xx.xxx.177):32219] Heartbeat timeout, resetting connection
[Biuro(10.xx.xxx.177):8009] Heartbeat timeout, resetting connection

And “Biuro” is unavailable now :confused: On Google Home it’s still alive and I can use it without HA.

?

W.