I had some scripts to cast music and images to a Sony Bravia TV via its in-built chromecast functionality. All was working perfectly until two days ago it just broke. I’m pretty sure this is an issue with an update to the built-in chromecast, as HA hadn’t been updated when it broke. The chromecast version on the Bravia is 1.52.246969, and googling that version it looks like it rolled out recently (within the last month maybe?)
So… I get these errors in my log now:
Logger: homeassistant.components.cast.media_player Source: components/cast/media_player.py:322 Integration: Google Cast (documentation, issues) First occurred: 8:54:28 (66 occurrences) Last logged: 13:12:18 Failed to cast media http://192.168.X.X/slides/UHD_waves_on_seal_island.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address ... Failed to cast media http://192.168.X.X/music/Angus_and_Julia_Stone-Red_Berries/03.All_The_Colours.flac. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Now, the really strange thing is I’m getting the same error for both the image and the music file - but the music file plays, whereas the image fails to display.
So this service call fails to produce an image:
service: media_player.play_media target: entity_id: media_player.bravia_chromecast data: media_content_id: "http://192.168.X.X/slides/UHD_waves_on_seal_island.png" media_content_type: "image/png"
But this one plays the music track, but still gives the error message:
service: media_player.play_media target: entity_id: media_player.bravia_chromecast data: media_content_id: "http://192.168.X.X/music/Angus_and_Julia_Stone-Red_Berries/03.All_The_Colours.flac/" media_content_type: "music"
Now, if I just change that media player entity to a 1st generation chromecast stick that I have, both those service calls work perfectly and produce no errors.
I’m posting this not really expecting there to be any answers other than “google broke something, just live in hope that they fix it” … but on the off chance someone can think of a work-around I’d be very appreciative. In the meantime I guess I’ll switch to using an external chromecast.