Using CATT

Can you check my earlier comment here to see if that solves it for you as well?

Thanks for this, this is the screen I see and I’ve tried clicking under the password field but can’t get trusted users to appear? image
Just to add I get this notification in home assistant also

Login attempt or request with invalid authentication from 192.168.68.108

It’s even below the Next button (pushing that one gives the authentication message in the log).
The field is not visible, probably caused by the dark theme. See the picture below, you have to press on the position of Trusted Networks on your hub.

3 Likes

Got it! Thanks for this! Must have pressed ever bit of the screen apart from this but when I tried before! Now to add to a command line switch!

Would anyone be able to help with an issue? I’ve got CATT working fine if I use the command in a terminal window but looking to trigger as part of a script. I’ve tried to follow the example above and it says the script is triggered but no response.
The shell command I’ve used is

shell_command:
  cast_kitchen_display: ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no [email protected] "/home/matt/.local/bin/catt -d 'Kitchen Display' cast_site 'http://192.168.68.110:8123/lovelace-system/system-info'"

Home Assistant is running on the same host as catt if that makes a difference in the IPs I use. I also have passwords disabled on the host and only access via ssh key again if that makes a difference to the command? I only have one chrome cast as well so should I remove -d Kitchen Display? Should it literally just be catt cast_site command?

Only thing I have different in mine is -o "StrictHostKeyChecking=no" but looking at other posts on here that doesn’t seem necessary. Might suggest trying something simple like this to see if SSH is even working:

ssh -i /config/ssh/id_rsa -o StrictHostKeyChecking=no [email protected] ping 192.168.68.110

I wanted to thank folks for this thread as I’ve found CATT to be infinitely more reliable than HomeAssistant Cast. I wrote a blog post laying out how to get CATT set up, let me know if you folks think I missed anything: https://blog.fuzzymistborn.com/homeassistant-and-catt-cast-all-the-things/

4 Likes

How do you authorise when you just want to cast to a chromecast attached to a TV, which has no touch capabilities?

I could not make it work either. I made it work using node red with a node “bigssh” and the command : catt -d IPADRESS cast_site ‘https://xxx:8123/lovelace/home
This command is triggered by the state of input boolean. HA then changes this input boolean via script

Guess you can’t if there’s no touch capabilities.

Thanks, I’ve got it working with the following

ssh [email protected] "/home/matt/.local/bin/catt -d 'Kitchen Display' cast_site 'http://192.168.68.110:8123/lovelace-system/system-info'"

Think the issue was ssh keys and the port

I’ve added this as a shell command in my config and then to a script but it doesnt seem to work in that the script fires but nothing happens on my Google Hub but if I use the command in the terminal in HA it does work. Should I use a command line switch instead?

Thanks, I managed to get it partially working as above, when you say you couldnt get it to work, was it with the script as I am struggling on this or was it the command in general?

It was with the shell command in home assistant. It worked always ok with the commande in the terminal

Ah that’s the issue I seem to be having now…

Yeah use shell_command and call it as a service. I have an example in my blog post.

Are you using ssh keys with bigssh?

No, just username and password

Has anyone got this working with a Shield? I can type my username in but can’t move the cursor to the password field and I can’t find trusted networks to select via that method? Did manage trusted networks on my home hub so not sure why I can’t find on the shield…

I’ve got this working with SSH keys now if you needed any help?

Hello all and thanks for all the information on this thread. I finally got my Lovelace screen to cast to my nest hub but after 10 minutes it reverts to the clock. Is this happening for anyone else? Is there a setting to allow the cast to remain on screen until catt stop is called?

Thanks
Ian