Sure, but I can not find a thing from the devs who do confirm it’s Google that causes this issue with the home hub. I have the hub for the exact same reason.
If you can solve the issue with CATT, I guess something similar can be build into HASS Cast I would imagine.
Hi, I have same issue. Found a solution that seems to be working for me. After sending the cast and waiting for to time out after 10 minutes, on the Google Hub swipe down from the top select Media and the Home assistant cast should be listed there. Select the cast and then it should stay up and not disappear after 10 minutes. Not as clean as it used to be and needs a manual poke on the Hub, but its something. Was worried I was going to have to shelve my GoogHub since I have no other use for it.
After ending a cast and restarting it didn’t timeout after 10 minutes. I haven’t done a lot of testing so I’d be intrested to hear if this works for other people.
Hi, the same for me with a lenovo smartscreen…
Sorry no luck for me. I can select it again but after 10 min its gone again…
I am also having this issue. My hub has been reduced to a clock.
Same issue here. My hub is now useless. It’s going in the drawer.
Try this method. Works well for me.
Unfortunately mine has now started doing the 10 minutes and timout issue regardless of if I select the cast manually. The GoogleHome received another update perhaps I was one update behind. Not largely useless to me again
Just stumbled upon this thread when deciding whether or not to buy a GA hub for a HA dashboard. From reading this thread and your post it seems like there is a 10 minute timeout regardless of whether or not you cast from the HA Google Cast integration or from CATT, but with CATT you can re-cast as it will wake the device from ambient mode. Is this correct?
CATT actually uses the pychromecast library which itself is from HA (https://github.com/home-assistant-libs/pychromecast). It looks like CATT uses dashcast for loading web pages (https://github.com/skorokithakis/catt/blob/286fde3b8306041a1859677b60ca82c01b9e53c0/catt/cli.py#L244) and sets the force parameter to True (https://github.com/skorokithakis/catt/blob/286fde3b8306041a1859677b60ca82c01b9e53c0/catt/controllers.py#L632) when sending a message. HA cast doesn’t specify the force parameter and the default force parameter for a message is False (https://github.com/home-assistant-libs/pychromecast/blob/0d6c4565f26649d8904cbc8f70d5db7220cd2d95/pychromecast/socket_client.py#L834). That might explain the difference in how the hub wakes up from ambient mode.
That would make sense.
Would be great if HA cast could have an option to force it!
Whilst having to refresh every 10 mins is annoying, using catt has actually solved a few problems i had around custom cards and content not always displaying, so thats a bit a silver lining
To archieve this with CATT is to difficult for people with low programming experience.
Indeed i hope HA cast i going to have the “force” option for every 10 minutes!
I am using Hassio on a PI4 and can’t get catt to work properly…
Its dead simple. I have next to 0 programming experience and got it working just fine.
1. Install/switch to the community SSH addon (GitHub - hassio-addons/addon-ssh: Advanced SSH & Web Terminal - Home Assistant Community Add-ons)
2. Add the following to the bottom of the add-on configuration
init_commands:
- python3 -m pip install catt
3. add an automation to cast using CATT every ten minutes. The first and 3rd actions are options but avoid hearing the cast sound every ten minutes. Instead you hear the volume change which is a more subtle sound.
Adjust “Family Room Display” to match your google home hub and double check your add-on name. (its at the end of the URL when you visit the add-on page)
- alias: CastToHub
trigger:
platform: time_pattern
minutes: /10
action:
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
input: catt -d "Family Room Display" volume 0
- delay: 00:00:05
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
input: catt -d "Family Room Display" cast_site http://192.168.1.24:8123/lovelace/googlehomehub
- delay: 00:00:10
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
input: catt -d "Family Room Display" volume 75
Thanks for the info, was doint wrong things!
It’s working now
Hi, I’m trying to cast with CATT, works fine when I’m using the SSH terminal, my dashboard is caste but I can’t automate it with the hassio.stdin service, the addon log return an error as below
Is someone have an idea on what is going wrong ?
Auto reply, set the ‘share_sessions’ parameter to ‘false’
Had this issue too. As you mentioned, change the SSH configuration to share_sessions: false
and it’ll receive and run the hassio.stdin
correctly
In the meantime I have created an automation that works with the integrated cast and re-casts a view every 9 min if the hub is not playing anything else: Cast and re-cast a lovelace view to a Google Hub
Has anyone installed catt on a Rpi4 hassio? Is it possible?