core: Google Cast Broken 109, HA and Casts on same network.
The problem
Google Cast broken somewhere between 108 and 109. Home Assistant and Casts all on the same IOT VLAN. mDNS works well My PCs on the private VLAN can see the cast devices within the IOT VLAN.
Cast Integration states it cannot find any cast devices on network.
Environment
HA Ver 109.6 HA Hosted within the Hassio VM. Virtualbox running VM on Win10 Host. Win10 has dual network connections. Wired goes to IOT Vlan, wireless to Private lan.
Problem-relevant configuration.yaml
No Cast Config in Config Yaml.
Traceback/Error logs
Additional information
HA’s VM’s Network card is bound to the wired card of the minipc.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (15 by maintainers)
I am seeing similar behavior. With 0.109, I had to run an Avahi reflector on my host to get mDNS working again (I am running a docker based setup without --net=host; yes that is not according to install instructions). That worked great, but with 0.110 I am seeing weird behavior:
Upon HA reboot, all devices show as unavailable - every reboot again. Restarting the HA container or host does not make a difference. With avahi-browse on the host I am able to confirm that both the LAN and the Docker net where the containers attach to see (and resolve) all 7 Cast devices. But HA still shows them as unavailable.
The fix? Rebooting my WiFi access points, which probably triggers another advertise or so by the Chromecasts. If I do this, they show up one-by-one in HA again without me touching HA - confirming that mDNS works…
Strange…
@tprelog No worries! I would say the reconnects you see in the log are pretty normal, Chrome Casts are generally not super stable and are reported by some users to reboot daily, possibly to dial home to Google for whatever reason. Also, since Chrome Casts will install firmware updates from Google without any notice, behavior will change over time.
Anyhow, Home Assistant should always be able to reconnect to Chrome Casts if the connection has been severed.
You could perhaps try to setup a ping sensor with a short interval, https://www.home-assistant.io/integrations/ping/#binary-sensor, to check if the Chrome Casts can be pinged when Home Assistant loses its connection.