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?