Using CATT

I’m putting the displays together next to my workplace today, so I can monitor, I can also put the action in one ssh commando. see if that works better.

update:
is trigged the commando’s on the same time. One got lost in the proces. I added a 30 second wait to wait to get the first one finished

1 Like

Coupple of days ago i saw the hub’s get new firmware pushed. I also heard that you can start using Netflix on the screens. Not that it’s relevant in this thread, but i cannot imagine that if you are watching Netflix on this thing the series or film stops playing after 10 minutes?? Is this bug still a thing? Haven’t tested yet…

:thinking: that 10 min thing is stupid. wonder how it works now

I will disable my automation that starts the cast every 10 minutes and check if it’s still there after firmware update. Will report back

Bug is still there.

If you are talking about the 10 minute thing, it is not a home assistant bug. Please contact your manufacturer.

Ofcourse it is not a Home Assistant bug. Where do you read that? Please contact your manufacturer? What are you even saying? lol

Get onto Google. It is their screw up. They need to know t here are annoyed customers.

Ofcourse it’s something to fix on their end. You know just as much as I do that “Get onto Google” won’t make any difference.

2 Likes

Youtube videos don’t seem to time out.

Meaning that there must be a way to keep a stream alive.

I’m using HASSIO image on Rasp Pi.
Initially I installed catt by SSH-ing in and ran “pip3 install catt” in the command line.
I can execute catt from SSH terminal but not via shell_command. Turning on debug logs showed that catt was not found when executing shell_command.

Solution
Added a pip_install shell command and I only have to call it once.
After that, it’s able to run my shell_command.cast command.

shell_command: 
  pip_install : pip3 install catt
  cast : catt -d "your Device" cast_site http://...   
2 Likes

I wonder if the new chromecast with remote might resolve this? https://www.youtube.com/watch?v=9sj0UrJ-BeE&ab_channel=GoogleNest

1 Like

Ah this is great, works so much better for me than the Cast integration.

I’ve set up voice control via Google Assistant so I can say “Hey Google, set bedside display to <home/cameras/media/etc>” and it fires the corresponding shell command to show that Lovelace dash on the display. (In my case, Lenovo 7").

The only way I’ve found so far to have a “menu” of options via Google Assistant is to publish a Universal Media Player with the source_list set up with each menu item, and a template in UMP’s select_source command to fire the relevant action based on the chosen source.

In this instance, each display is a separate shell command, as it didn’t seem possible to pass variables (like a specific dash name/id) to a command. This results in each service being uniquely named, and it also seems like you can’t template the service name in a UMP. It took a few steps to bridge this gap:

  • Create a UMP where the select_source command is configured with template list of "if source = , set value to " conditions
  • Use an input_number helper to store the ID changes
  • Add a list of possible display names in customize.yaml under a source_list for the UMP
  • Make an automation that triggers when the input number updates, and executes the corresponding shell command
  • Ensuring that the source names configred in the UMP and customize.yaml are both identical to what Google Assistant sends through. There’s very little room for error; Initially it wouldn’t work with “Cameras 1”, had to change it to “Cameras One”

While this works well enough and is far from the biggest integration hassle I’ve seen in HA, I was wondering if I missed something obvious to have a simpler config that allows me to select a dashboard with Google Assistant via CATT?

Hello grate job and thanks first.
I have a rpi3+ with home assistant (old hassio) wit version 0.92 (i stop because is my stabe system).
I have installed catt i manage to do it with ssh addon but it opens the hme page in a google hub with the autentication…
I tried to add in my config.yalm
In the homeassistant part:
auth_providers:

  • type: trusted_networks
    trusted_networks:
    - xxx.xxx.xx.1/24
    trusted_users:
    xxx.xxx.xx.1/24: my_id
    allow_bypass_login: true
    • type: homeassistant
      I restarted the server and i doest start… i had to delete the auth providers. Does someone why it doest work?? Is the ip directio ending in 1 ok?? Or should it be ending in 0…i want to allow fro internal acces no to log in in home assistant…or my 0.92.ha version doesnt supoort auth providers?? Thanks a lot

Please post your code properly. See here point 11 How to help us help you - or How to ask a good question

Try to tap on your Google Hub under the Autentication Fild. There is a button under it, its hard to see becouse of the colore, but its there.

Sorry I was with mobile phone
I recopy. I hope its ok.

Hello grate job and thanks first.
I have a rpi3+ with home assistant (old hassio) wit version 0.92 (i stop because is my stabe system).
I have installed catt i manage to do it with ssh addon but it opens the hme page in a google hub with the autentication…

I restarted the server and i doest start hassio… i had to delete the auth providers part in configuration.yalm.
Does someone why it doest work??
Is the ip direction ending in 1/24 ok?? Or should it be ending in 0/24…i want to allow for internal acces no to log in in home assistant…
Doesnt my 0.92.ha version support auth providers??
Thanks a lot

This what i added in my config.yalm. the formating is no ok but it wasnt a formaring problem. Thanks

In the homeassistant part:

auth_providers:
type: trusted_networks
trusted_networks:
xxx.xxx.xx.1/24
trusted_users:
xxx.xxx.xx.1/24: my_id
allow_bypass_login: true
type: homeassistant

Hey thanks. Yes i read this. My ploblem is i dont know how to configure alright the auth providers in configuration.yalm. mainly i dont kwow wearher the ip addres of my lan shluld ve wnding in 0/24 or 1/24. I want to leave without loggin my whole internal lan…thanks again

Thanks. I have some strange issue on last step main manual provided by John
Testing from Developer tools call hassio.addon_stdin service

addon: a0d7b954_ssh
input: catt -d "Living Room display" cast_site https://192.168.XX.YYY:8123/lovelace-cast/downstairs

Nest hub DashCast shows force loading of page and then just exits with casting sound.
All other sites casting using same line works.
Even accessing from https:// duckdns works, but in that case I don’t have trusted network.
Is tihs because of https:?

Would it be possible to catt a camera stream directly to the google home hub? I got it working with the build in cast but then the image of the camera is verry small. When I just show the camera which is also added to google home it will fill the whole screen.

What i’m creating is to just show the camera image when the frontdoor bell rings.