I’m trying to cast a dashboard view to a Google Nest Hub. When I start casting, the Hub immediately shows some HA/Nabu Casa graphics, followed by “Not connected”. After a few seconds it switches to “Connected” and then gets stuck there.
If I then recast the dashboard again after the Hub shows “Connected”, it shows up and works as expected.
I’ve tried using both the Google Cast service and play media service, with the same result. Casting anything else, like a camera stream works as it should, so the problem seems limited to when trying to cast dashboard views only.
Does anyone have any suggestions for what could be the issue here?
I’ve tried a few different ways (even selecting the dashboard in the GUI using the media player card gets the same result), but here’s my current config:
I can add that I did eventually find a (messy) workaround. It doesn’t solve the inherent issue, but at least my specific automation works.
I noticed that the Google Hub media player doesn’t change state to playing until after it gets stuck at “Connected”, so I’ve added a wait step for when the media player changes state and then cast the dashboard again.
Yeah, I’m running 2024.3. Sadly, I can’t confirm which versions that might be affected by this, other than the latest one.
I have played around with Google Cast previously a long time ago, but I can’t remember seeing this problem until now when I tried to build an actual automation. Until now, I’ve only had to cast camera streams, which work as expected.
I’m currently on mobile so I don’t have the exact configuration in front of me, but essentially instead of a timer, I’ve added a “wait for trigger” step that waits for when the media device changes state to “playing”.
It’s not the most elegant solution, but it should at least be quicker than a simple delay.
I can confirm that Daniel’s workaround works for me.
I’m using Node-Red and I have added a wait until my mediaplayer is ‘playing’, then cast the dashboard again.
Hopefully next month’s update fixes this issue.