Sorry of this has been asked a thousand times before.
I have Nabu Casa so have a working external url.
I’m trying to get Google Cast to work with a Google Home Display. I keep getting errors because for some reason HA is not sending my external url. See here:
Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:387
Integration: Google Cast (documentation, issues)
First occurred: 21:27:25 (1 occurrences)
Last logged: 21:27:25
Failed to cast media http://homeassistant.local:8123/api/camera_proxy_stream/camera.front_door?authSig=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI5ZjM0NWYxOWQxNDk0ZmQ0YTA0ZDJlNWM0M2JmYjFiYyIsInBhdGgiOiIvYXBpL2NhbWVyYV9wcm94eV9zdHJlYW0vY2FtZXJhLmZyb250X2Rvb3IiLCJpYXQiOjE2NDcwMzQwNDIsImV4cCI6MTY0NzEyMDQ0Mn0.a5-BBsHnGRjPrl0WeNHqA2x_4Mt1UHL2oTuYsLQo57k from internal_url (http://homeassistant.local:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address'
It doesn’t matter what I try, I get the same error. Any help would be very gratefully received!
Hmmm. I’m running in a virtual box on an intel nuc so there may be network shenanigans due to the bridged connection. But, everything else is fine. I don’t know how I can make the integration pass my external url to the Google display instead of my internal one. Thanks
Hi, yes I gave up with running HA in a virtual machine, I re-purposed the intel nuc to have HA run on it directly. That solved all sorts of problems. Try changing your external address from auto to your actual nabu case external address and make the internal one your ip:8123, see if that makes a difference.
Anyone still having this issue? The external/internal URL interface seems buggy on 2024.5. Sometimes when you enter an external URL, the internal URL goes blank, and vice versa…
At any rate, populating both URLs with my external URL still results in a
* Failed to cast media http://[externalURL]/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_en-us_71d80e3cc3_google_cloud.mp3 from internal_url ([externalURL]). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
My external URL is definitely accessible internally and externally from my network. Going to the URL itself manually brings up a audio clip but it never plays.
Just wondering if there’s anyone else experiencing this issue with the google casting?
I have a internal URL with https and a valid certificate, and an external URL which is mTLS protected. I have found that the casting doesn’t work as it always tries to use the external address, despite the internal one being set. Is there a way to force the use of the internal URL ?
Edit: Just figured it out, I can actually set the external URL to the internal URL instead and that way the cast integration will use that URL instead.
This doesn’t seem to impact my ability to connect remotely either so I guess that works?