Thanks for all the quick replies, at the end it was my temporary old router which is currently acting as a switch was blocking some traffic… Sorry to say
Kicked that one out and replaced it with a old switch while I’m waiting for my 2 new Unifi switches.
i have the same situation. But my chomecast can be found from my iphone, so mDNS is working ok, Only Home assistant can’t find it. Chromecast is on other vlan than HA, but iphone is on same LAN as HA and working ok. Did you ever solved it?
I’m having the same problems as OP. I use the Ubiquiti EdgeRouter X and an Unifi AC-AP pro. All devices (including the chromecasts) are on the LAN network, no VLANs configured.
I tried all suggestions I’ve found on the forums, but still no luck. I had the same issues with my previous router. Not sure if this is router related or HA related.
This is the error message:
Error while setting up cast platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 129, in async_setup_entry
[
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 130, in <listcomp>
_async_setup_platform(hass, ENTITY_SCHEMA(cfg), async_add_entities)
File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 218, in __call__
return self._exec((Schema(val) for val in self.validators), v)
File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 340, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 336, in _exec
v = func(v)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
return schema(data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['host']
Came here to say that at some point I must have enabled IGMP snooping on my two TP-Link Easy Smart switches months ago, but after a reboot of HA it lost sight somehow of all Google Home/Nest/Chromecast devices. Turning IGMP snooping off resolved the issue.
My mobile had the ability to cast as all devices involved were on the WiFi, on the same switch segment and IGMP didn’t come into play. Worth also noting all my devices are in the same VLAN.
I found I had to disable IPv6 on my Win10 PC. Likely all I had to do was turn it off on the card Virtual Box used to connect to the network (wired). But I turned it off on every single network card, wired, wireless, virtual. The casts immediately returned to operation for my HassOS VM.