Use Google Displays with Home Assistant (Step By Step)
Vložit
- čas přidán 5. 09. 2024
- *This guide is out of date, please see this video - • Use Google Displays wi... *
Use a Google Nest Hub display to control your Home Assistant with C.A.T.T. (Cast All The Things)
Written Guide - www.welcometot...
Configuration.yaml file -
CATT (Cast All The Things)
homeassistant:
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.86.0/24
allow_bypass_login: true
- type: homeassistant
Cast.sh file -
if ! catt -d "Cast display" status | grep 'PLAYING'; then
catt -d "Cast display" volume 0
catt -d "Cast display" cast_site love lace url
fi
Restart Every Ten Minutes Automation -
alias: Cast Dashboard
description: ''
mode: restart
trigger:
- platform: time_pattern
minutes: /10
condition: []
action:
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
input: bash config/cast.sh
Helpful guides I used -
C.A.T.T. Github page - github.com/sko...
Written Guide from Fuzzy - blog.fuzzymist...
Home Assistant Forum and John2014 - community.home...
This method is now out of date and no longer works. Please check out my updated guide
czcams.com/video/RBEz9nhFuG0/video.html
It’s easier than before.
catt works fine over here. Google cast is not.
Did this today, and it worked fine. Will not get Nadu Casa, as I only want it for local casting.
BUT, I can't get it to stay on my NestHub Gen2. When using SSH and typing "catt -d ..." it start and works great, but then, If one use the nesthub for something else, it's gone until I manual typing "catt -d..." again.
A dream would be to access HA-dashboard from the NestHub with easee...
@@tegheim do you use your router ip under trusted_network? and device ip under trusted_users? the id i understand, but i have restartet HA 20 times beacouse i lock my self out all time, i really want this to work beacouse the casting thing is sooo bad
Hey, nice to see new people joining the Home Assistant Scene! Picked up a Hub on clearance a Home Depot and instantly got into it again! Thanks!
Did this today, and it worked fine. Will not get Nadu Casa, as I only want it for local casting.
BUT, I can't get it to stay on my NestHub Gen2. When using SSH and typing "catt -d ..." it start and works great, but then, If one use the nesthub for something else, it's gone until I manual typing "catt -d..." again.
A dream would be to access HA-dashboard from the NestHub with easee...
You've got 3 Yes's! How wasn't I subscribed on you before? Added to my favorites.
Great! Works better than Home Assistant Cast but the downside....it doesn't work on ssl
Thank you it's working really well I appreciate this kind of videos I learned a lot
I can get the login screen to appear on my Gen 2 display, but I can't get a keyboard to appear to enter the user credentials.
Does anyone know how to get past this ?
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
“Trust me on this one” - I’d really rather you explained why
Thank you for the great video! Finally I could cast a lovelace page of my front door camera to my Google Nest Hub.
Is there a similar tool to CATT for Amazon Echo devices? I have several Echo Show devices and I'd like to cast my front door camera stream to them.
I'm actually looking into that. I may start doing a few echo devices to my house to see how they compare to google's smart speakers/displays.
It's certainly not 192.168.86.
Lol. Glad I'm not the only one to think that.
@@rwkw that's the subnet, not the address
@@rwkw I stand corrected. Still, .86 is only likely to be the subnet if you have google wifi.
the automation part isnt working for me i click run actions and it does nothing
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
Thank you for the great video! I followed the instructions and it worked. However, the background image I use in the dashboard is flickering. How can I solve this problem? Thank you so much!
Great video thanks
Have you been able to resolve the 30 second time out yet?
I’m sure you figured it out, but I’ve been using the new way and it’s way better.
@@NickRains What’s the new way?
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
great tutorial, but now there is new feature that Home assistant introduce called blue print, its easier that way i think rather then editing so many things
Thank you, this is awesome!
10 out 10 bro
How to add browser to Google nest hub.
So... you can create a virtual switch to send the home assistant server the action to then cast the home assistant dashboard and have a button to stop the castin right?
Correct.
thank you, it works for me except for the script so after a few sec the photos on the nest hub comeback... :(
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
5:33 how do i only allow the newly made user to be cast to my nest hub
nice and useful video ... I'm having some questions. will it cast every time? , trigger 10 min .. what is that for? my English, is not that good so only I cont understand. thanks
You can make it cast one time or you can create the automation to make it cast as long as you want.
@@NickRains I assume you send the page to the display every 10 minutes because it returns to the default Google interface after a timeout.
Correct. For some reason the nest displays clear the cast after 10 minutes
hi followed you video and everything worked great !!
i have a question though, when home assistant reboots i get an error when trying to start c.a.t.t
zsh: command not found catt:
i have to reinstall again (pip3 install catt)
there is something about not being in the path / or profile
do you have any idea how to solve this issue ?
rpi 4 / Ha image with hass OS
thanks paul.
Sorry, home assistant and terminal both updated and no longer support python 3. I’m working on a fix for this.
@@NickRains thanks for taking the time to reply.
paul
Hey, excellent video followed it bit by bit, casting is working however I have one issue which is it only casts once, which is fine, I think that's the python compatibility. Anywho I am having an issue that the cast timeout after 20-25 seconds. Is there anyway to get around this at all?
Reading the comments I really look forward to the python fix an all :)
Ta,
Jordan M
I'm getting back into making videos and unfortunately I do not have a fit for this, yet, I do have some ideas that might be of interest. Don't want to spoil anything, but working on a bunch of ideas that should start coming out soon.
This method is outdated. Probably take the video down as it’s probably confusing a newbie
however it still works, This method has many things that the new method does not have.
Probably a crazy question but I have everything up and running,, just can't login to the Nest Hub because something is in dark mode and I can't enter my credentials. I've switched my Home Assistant theme to light, and set the Hub to light... but still no dice. Any advice for this internet stranger?
If you added the hub to trusted networks then honestly, just keep tapping until you find the login button (it’s black even on the dark theme)
@@NickRains thanks for getting back! I must have messed something up. Added the full network under trusted but hitting 'Next' leads me to a 'something went wrong' error...
@@TheJessle did you ever figure this out? I think I might be running into something similar
@@alexanderwilliams8415 I didn't! I wonder if it's impossible to do on a gen 1 Google hub (I don't think it got the software update that will show a keyboard? Maybe?)
That's entirely conjecture though since everyone else seems to be able to get it to work it's either my equipment or my ineptitude...and I'd rather blame my equipment. 😆
@@TheJessle I don't think it's ineptitude. I believe the issue is it's an https address
Hi. odomna google pytal still login password to home assistant .. then according to the instructions I canceled the password or. allowed access so again google gives me a choice under which account I should log in. the problem is that I can't click through that Google cast
Follow the instructions on the updated video - Use Google Displays with Home Assistant 2022 update
czcams.com/video/RBEz9nhFuG0/video.html
what if i have duckdns and ssl?
Did you find a solution? I'm not able to login on the Google Home because of this. It gives me "login aborted"
I can't get it to login. I'm guessing this doesn't work with https assigned HA instances
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
@@NickRains that worked. Thanks!
hi, do you know why since a few days it stop casting after 30 seconds ?
@Ian Kolsteren so no solution for the moment ?
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
Hi, Thank you for the sharing.
The automation part (Every 10 minutes) is not working for me (It looks like the script is not run successfully, nothing react from Google Home HUb)
Following as the yaml under automation, would you mind to take a look on it?
alias: Cast Dashboard
description: ''
trigger:
- platform: time_pattern
minutes: /10
condition: []
action:
- service: hassio.addon_stdin
data:
addon: a0d7b954_ssh
input: bash config/cast.sh
mode: restart
Can you cast from the terminal?
Have you restarted your home assistant server?
Did you create the cast.sh file?
@@NickRains Yes, i can cast from the terminal. I did create cast.sh file and i did restart my homeassistant server. I try to edit the input to cast_site and it work perfectly. I think something wrong on the process of running cast.sh as a script
I do see one difference in your yaml. Here's mine
action:
- data:
addon: a0d7b954_ssh
input: bash /config/cast.sh
service: hassio.addon_stdin
In mine, the add-on and input comes before the service. Not sure if that would cause the issue, but I can keep looking into it.
@@NickRains Thank you for the reply. I remove the sentence of "if ! catt -d "Cast display" status | grep 'PLAYING'; then " and remain "volume 0" & "Cast_site" command and it work perfectly. I think the If Then command doesn't work well on my device. Thank you for the great tutorial and very looking forward for the upcoming video.
Can you use it and remove Google? I'm trying to get rid of all things google but love using their devices and cutting them off when possible.
Do you mean remove the "hey google" wake command?
@@NickRains Remove all Google from the device. It's open source or runs AOSP. I don't know much about these devices.
I don't believe so. If you wanted a voice activated display without Google, you could make one with a raspberry pi
You can probably just use the lcd as a screen for a pi or something like that, you will need to find the correct display driver but its worth a try
After reboot my home assistant(rpi), my home assistant lost python package, have you an idea ?
(apk add --no-cache python3
apk add --update py-pip
python3 -m pip install catt)
The newest version of home assistant no longer supports python3. I’m looking into another way of getting CATT to work
@@NickRains Any luck?
With google slowing rolling out fuchsia os to their displays, I might have found a new way of achieving the same, but better, results. It seems that fuchsia has a decent built in browser. I’m trying to figure out how to automate it.
How do you have number of parts in your LAN IP address less than mine? You have 192.168.86.0 while I have 192.168.178.1 . So am I suppose to replace 1 with 0 and add /24 or to add 0/24 after 192.168.178.1? While I was playing with these figures my HA after another reboot went to safe mode. Also you are casting address started with HTTP, while my internal HA address starts with HTTPS.
End in 0/24 so 192.1686.178.0/24
And yes, cast your site with http not https. It will not work with https.
@@NickRains thanks for your reply. Now I've got some homework to do
Let me know if it doesn't work
Hey Mate. thanks for your help but it didn't work. As soon as I added 0/24 at the end HA rebooted into the safe mode with half of the functions disabled. Probably this is because I'm running HA with duckdns remote access. Cast itself does work with Nest hub, when I tried to cast any web-site Nest shows it on the screen with full touching functionality. I also tried to open my HA in the browser with HTTP instead of usual HTTPS way - Google chrome refused to open it, showing standard "This page isn't working" response. Probably casting HTTPS to Nest hub isn't possible without compromising SSL safety yet. At least I tried.
I'm sorry. I should have opened with that first. This will not work with duckdns.
Hey, great video. But is there a way to replicate this without using the supervisor tab? Context: I'm running my hass server on an old android phone so i have only hass core and no supervisor tab.
Thanks
so my google display is still asking for a username and password anyway to get past that?
In your configuration.yaml file, make sure you allow_bypass_login: true
@@NickRains it was i forgot a - in front of the ip under trusted network
thanks for the reply!!!!! your video was awesome
I'm glad I could help. Yaml is awesome but not very forgiving. I've spent many hours trying to figure out "why this stupid script won't work" only to realize I mistyped one character.
I was stuck here
catt scan
ends up with AssertionError
It seems that home assistant and terminal no longer support python 3, which is what I used in the video. So I’m working on a way to fix this without having to stay in an older version of both.
@@NickRains I got it working but the catt scan doesn't find any of my chromecasts. I can make it work by hard-coding my device name. Otherwise it's great.
6:00 if i restart the server it boots back up in safe mode
Same thing here. Did you resolve it?
did you type .0 for your last digit of your network?
@@alexanderwilliams8415 probably not
@@TwanJaarsveld1 that was my issue initially. Right now working through login issue with external address for my HA
@@coumanssjoerd yes, i gave up
Who the hell has .86. in their local IP by default 0_o?
this is great but the dashboard dissappers every 30 seconds, how can i get it to stay alive
... you don't. Unfortunately, Google made a change and it will only work for 30 seconds. It used to be 10 minutes. I wish there was another way but I'm not aware of it
@@tbut7633 that's pretty sad but thank you for responding
@@johannes653 I really just did all of this for nothing kms
I’m sure you already saw, but the new way is so much better. I have an explainer video coming soon in case you need help
Sorry for the delay, here is the updated new way of using a google display with Home Assistant czcams.com/video/RBEz9nhFuG0/video.html
You must not know anyone who cooks
*PAYSONOS