Это видео недоступно.
Сожалеем об этом.
How to integrate Google Assistant with Home Assistant without a subscription
HTML-код
- Опубликовано: 15 авг 2024
- I'm going to show you how to integrate Google Assistant with Home Assistant. So you can control all your Home Assistant entities using your voice from any Google Assistant enabled-speaker. And I'm going to show you how to do it for free.
TIMESTAMPS:
0:00 Intro
0:19 Ways to configure Google Assistant
1:19 Set up new project via Actions on Google
3:46 Create a service account in Google Cloud API
4:46 Download the JSON file for the Service account
5:17 Enable the HomeGraph API
5:38 Configure the Google Assistant integration in Home Assistant
6:49 Link Home Assistant in the Google Home App
7:34 Disable entities from being exposed to Google Assistant
8:09 Add Aliases to entities and set them up into rooms
8:32 Reenable the Actions on Google Test environment
WRITTEN GUIDE
www.juanmtech....
RECOMMENDED VIDEOS
- Getting started with Home Assistant - 2021
• Getting started with H...
- How to integrate Google Assistant with Home Assistant Cloud
• How to integrate Googl...
- How to integrate Amazon Alexa with Home Assistant
• How to integrate Amazo...
- Install Proxmox and virtualize Home Assistant
• Install Proxmox and vi...
- Home Assistant on Docker and Ubuntu - Setup Guide
• Home Assistant on Dock...
❤️ SUPPORT THE CHANNEL ❤️
SUBSCRIBE: www.youtube.co...
PATREON: / juanmtech
BUY ME A COFFEE: www.buymeacoff...
AMAZON AFFILIATE LINK: amzn.to/2nM3bvM
FOLLOW ME ON
TWITTER: / juanmtech
FACEBOOK: / juanmtech
INSTAGRAM: / juanmtech
MY GEAR
Camera: amzn.to/2nd3nIt
Lens 1: amzn.to/2nFL7CO
Lens 2: amzn.to/2o57cxW
Mic 1: amzn.to/2qh5Iiq
Mic 2: amzn.to/2m75JIE
Tripod: amzn.to/2oLeoh5
⚠️ DISCLOSURE
Some of the links on this video are affiliate links, meaning that I would earn a commission if you click through and make a purchase at no additional cost to you.
SOUNDTRACK
Song: Cartoon - Howling (ft. Asena)(Charlie Lane Remix)[NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: ncs.io/HowlingCRmx
Watch: youtu.be/
#HomeAssistant #GoogleAssistant
Brilliant video - I've watched quite a few from you and have now subscribed. Thanks for producing well documented content.
I had problems getting this to work but I was able to fix it. A couple of tips for those who may run into the same problem:
1) Make sure you are copying the "Private KEY" and not the Private ID.
2 )For the port that you put into the URL: while 443 is the default port for SSL, in some cases (like mine) your Home Assistant will not be running on port 443 but the default 8123 (or whatever port you forwarded it to on your firewall). Make sure that the port you provide in the URL during set up reflects this or it will not be able to connect to your local instance over the internet.
I woke up this morning and I thought: "what do I miss for my HA today? I miss Google Assistant integration!" And two hours later I got an alert on my phone that Juan added a new video. And that was on Google Assistant integration. I'm terrified! Google and Juan read my mind already! Thanks, Juan for the video - but you already know it - you read my mind :)
but why do you need Google assistant when you have Home assistant?
Great video, excellent content, very clear and good pace without any fluff. One comment that others have stated is that PORT (Port 443 in your video) may be dependent for each user. In my case I am not using 443 which caused a bit of confusion and lost time. Once I modified the port numbers to match the ports I have exposed this worked. Thank you Juan!
Juan, I'd like to thank you for this well-described video and step-by-step walkthrough. I struggled to get Google Home integrated for a while now, but everything needs time :-) ...it's also part of the learning curve. However your videos helped me a lot so far. Keep up doing these videos on Home Assistant topic!!!
That was more easy than I expected! Maybe important to notice that the 443 port is the port that you exposed your HA installation for external access.
This may be an important point for a lot of people! It wasn't working for me, and I was wondering about whether 443 was correct, so I watched the video again and he explicitly stated that the port should be set to 443 (which was not how I set up my remote access). After seeing this comment, I switched to the port I used, and it started working. Thanks for sharing this comment!
I used to use 8123 in my old setup but I can no longer use it after switching to NGINX. After watching this viedeo....thought I'd give 443 a try. It worked!
Thank you! HA documentation is outdated, only you were able to save me! Definitely buying you a coffee.
Thank you. I finally managed to integate Google Assistant due to your video!
I am bit confused and thinking to buy Mibao, Kamep, GEREE cctv camera from Amazon and to connect it with SmartLife app, because I have a door sensor installed on SmartLife app. It will be hand to have everything in one app. Will this work?
This was PERFECT! I tried to install it with the other guides on the Internet and had issues. This worked first time. Thanks
You are the best. Everything is working fine after your detailed video. Thank you so much.
It totally worked for me. I am blissful, joyful with that. It's incredible your research and explanation.
Thanky you.
Tip for another users: type carefully and look to your right configuration.
Finally instructions that are clear (and work). The remote access video was also very clear and I was able to integrate GA with HA and cancelled my Nabu Casa subscription. Tried many approaches and failed to get it all working. Now it does THX!
It finally works! After 3 nights and many videos, this one was finally covering everything!!!
Can confirm this still works perfectly. The process to download the JSON is slightly different but self explanatory, you need to first edit keys and click create a new key. The process and created file is otherwise identical.
Amazing tutorial, as always. Very well paced and got every step in the video I could follow along exactly. Thank you!
Dude, your instructions were PERFECT. I'm amazed by how well this thing works! Thank you so much!
This took me days to figure out last time. Up and running again in 20 minutes flat! Thank you for the very helpful video!
You're a legend. This was a great video that worked perfectly. Thank you so much.
Juan, this is exactly the video I need right now! Will be watching later!
Glad I stumbled across this its not exactly straight forward to integrate Google Assistant with Home Assistant and your tutorial was excellent and helped me to achieve this, thank you
Thanks for the hint with VSCode - I found out that they have remote SSH plugin that allows to edit home-assistant on remote device. Works like a charm!
Easily explained. Not all the talk around the subjects that I've had to listen to on many other tutorials. You even muted out the "Hey Google" part.
Great and to the point tutorial 👍 Works great, thank you.
The only workign guide, you have just earned my subcription
I lost you on "Enter your URL". What URL. Do you mean, I have to register DNS name and have static IP for my Internet provider?
This is an amazing video tutorial. Followed exactly as mentioned and now my thermostat is in Google home. Subscribed! Thank you!
It is working. Thank you so much ❤ Now i can control my Tasmota devices with my Google Nest Mini. No more China clouds 😂
Tip for your project-ID (2:30 minute). You can also find your Project-ID in the webbrowser-URL, just next to /project. That way you won't have to leave the previous page. (Account linking)
TOP, I found my solution ...
All I had to do was redirect port 443 for Home Assistant on my box.
Thank you and long live your channel ...
David, can you explain what you did to redirect port 443? I'm having the same issue.
@@johnroberts8493 Hello, on my Box, i have create 2 redirections on TCP and UDP from 443 to 8123
@@davidrobin3771 Are you talking about a simple port forward on your router or a rule of some sort in Home Assistant?
@@johnroberts8493 I am having this same problem do you mind sharing your fix
Great video, thanks.
The instructions for the JSON file may have changed or yours is just a different way of doing it. I copied the JSON file into my config folder and then had the entry:
service_account: !include my_downloaded_JSON_filename.json
Having done all this, I'm still a bit confused:
1) I haven't put any includes or excludes in my config, but only a subset of entities I've exposed are showing up in the Home app and I don't know why.
2) Although I'm reporting state changes, I cannot see what I can do with them in the Home app. eg. I have a binary_sensor.GDIsOpen; it's a reed switch that closes when the garage door is open. The Home app can see it, and I want my Google Home to say "The Garage door has been opened", but I don't know how. (I've done it in Alexa although it doesn't work! But that's another story).
3) Also, I would like to be able to ask google if the garage door is open, but I don't seem to be able to (is it just I'm not getting the phrasing right). I can ask it what the temperature in the garage is and that works (I have a temp sensor being reported).
4) Do I need to go into the google account every 30 days to keep this all working?
That's probably enough for now. Thanks again.
Upvoting and adding a +1 to this. I was getting config errors using the key/email as described in the video. The documentation on the Home Assistant website says to do it as you did, and that resolved my config error and let me proceed
I am also upvoting since this is where I had to deviate from the video to get it working.
I am so glad i found your comment I was getting an error too. Went back to the HA documentation and added the .json file - problem solved.
Other than that, this video is spot on for the Google steps... I can now yell at the assistant from across the room again :)
Very nice tutorial! Thanks to you I can automatically cast HA to my Nest Hub :)
I knew by delaying the creation of integration between the HA and GA, I am gonna make the process much easier. There we go ..... Jokes aside thanks Juan, very informative and to the point, as always ;-)
Grande!!!! 😀
Guida dettagliatissima, facile anche per un inesperto come me.
Grazie!!!!! 😀
Thanks Juan, worked like a charm!
Thanks a million, I was going crazy trying to set up this HA configuration
Great video! Followed it exactly and works great! However, I noticed that not all my sensors are sent to GA, despite me specifically allowing "sensors" or the the actual sensor name with in entity config. What gives? Do I have to set up the sensor properly in HA? For the specific sensor I'm not seeing if from an MQTT broker. HA sees and logs the sensor no problem, but GA cannot see it.
another great video Juan!, thanks!
Hey Juan, thanks for this video ...seriously AWESOME.
Hey Juan, not sure if you've noticed but the recent update to Home Assistant (2021.7) has broken this integration. I get all the way through the process but when I go to Google home and add device, it goes to the duckdns server and times out. it won't bring up the HA page like ti does on this video. I've tried "Check for new devices" on the integration that worked previously and it timed out .. also tried doing it over from the beginning and it does the same. Have you noticed this on yours too? Any chance you could have a look and see why this isn't working now?
When i try to add the intergration in Google home app i got the message after i login to Home Assistant: "couldn't update the setting, Check your connection" please an solution, because this is an awesome feature!
Can you cast messages from Home Assistant to be played in your Google Nest devices?
Great video but i tried to match the "test" in Google Home and after login my account the screen back to the main menu. How can i fix this problem?
Hi, I had the same issue. Is there any know reason why it appened?
any solutions found? i have the same problem
I found the solution for my case: had same issue with certificate linked to my home assistant installation. I move to duckdns solution and I solve the problem.
@@francescotesta8965 What does that mean? can you explain a little bit more? I am having the same problem.
Quality video form Juan as always, thank you!
invaluable guide on how to link with Google Home. This is simply unachievable using the Home Assistant doco... much is left out, perhaps on purpose.
Everything in the video worked until I started getting errors when editing the config file. I switched to Everything Smart Home's video for the HA editing and it worked. I am running HA in Virtual Box at the moment so maybe that had something to with it.
I am getting invalid client id or redirect uri when I tried to add devices through google home.
Can you please help here? Thanks.
Hello, I was having this issue and managed to solve it. I did two things:
1) I am not using port forwarding for my home assistant external access so I had to remove all instances of ":443" in my urls
2) I had put the name of my project into the Client ID field in the Actions Console under the "Develop" header
When correcting the Client ID field I also had to remove quotation marks, remove brackets and parentheses, and insert Google's id tag for my project into the end of the oauth url, after the /r/ portion of the example. I was able to find google's id for my project in the JSON file we download in a later step, and at the top of the page three button menu, under project settings. For me it was james-assistant-57467
I hope this helps anyone checking these comments!
Hi Juan , Thank you for you VDO , I useful for start to use HA but i got some issue and need to you help , I follow up you process but after configuration with goole home(login page) i found error : " Invalid client id or redirect url" .
I try to remove and follow up you process many time but result still same. please sugesst me how to correct issue, Thank you
I have the same problem cant find a fix :(
Hello, I was having this issue and managed to solve it. I did two things:
1) I am not using port forwarding for my home assistant external access so I had to remove all instances of ":443" in my urls
2) I had put the name of my project into the Client ID field in the Actions Console under the "Develop" header
When correcting the Client ID field I also had to remove quotation marks, remove brackets and parentheses, and insert Google's id tag for my project into the end of the oauth url, after the /r/ portion of the example. I was able to find google's id for my project in the JSON file we download in a later step, and at the top of the page three button menu, under project settings. For me it was james-assistant-57467
I hope this helps anyone checking these comments!
thank you so much for this. the regular home assistant documentation is consistently terrible and of course does not work. this did.
Amazing video. Works pretty well.
Thanks
Very good tutorial! Thanks a lot.
This doesn't work at the moment as one more step needs to be added, but this will fix it:
When you are on the google assistant actions console, go to the overview tab and click 'Enter Information Required for the Actions Directory' which can be found under the 'Get Ready For Deployment' section. Add both full and short descriptions, add a small logo, your contact details, and a privacy policy link (google docs shareable link with some text will work).
I had to completely restart the entire process to get it working, but it now works after doing this. Just do it before you go over to the google cloud console.
tried this and did not work for me
@@michaelmenzie2806 Maybe try restarting the process from scratch? Don't leave this step till last, do it when you are doing everything else on the Google assistant actions console, and then proceed.
Wow! Im gonna try this later, very nice video!!
What is the proper way to get rid of the GCP actions test environment indefinitely instead of re-enabling every once in a while?
Great tutorial. I am also using duck dns for my ssl certificates. I am comfused. Which url should i provide? I thought that i had to put my public ip and then judt forward the port to my home assistant server. You however just put the domain name. What should i do? A should I change something in my router settings?
Any video on how to setup the Fulfillment URL - is there some DNS stuff involved? any help would be greatly appreciated
I'm curious, if I have a matter device added to Home Assistant, will it also be visible and controllable in google home if I scan the QR code? in other words can I view and control a matter device from both HA and Google Nest/Home interchangeably?
ur videos are always awesome!
This worked great Juan. Thank you very much! Subscribing :-)
Double thumbs up. Thank you
great video and so detailed. However... after doing this it worked for 3 days and now after i have done nothing, when i try it Google Home says it cant reach my "home integrations" and i tried unlinking and relinking in the google home app and it says it can't connect
This helped me a lot and worked for me !
where can I find my fulfilment URL?
I managed to do all that, and my devices are working, including voice commands with GA (Google Assistant), but I have a problem. Inside GA actions page, when I select add action and choose something like "set or adjust devices of my home" I go to a blank screen, no devices listed. In the end I only can adjust my devices via personalized action commands (by typing a sentence) not by using the set devices of my home option. I tried to fill action directory information, and a buch of other options but still no luck. I guess I should stick with scripts of HASS? I am little lost here. The issue by doing by typing a sentence I have more limited control of the devices, like a light color, can't be too specific, like using the color wheel.
This is very helpful thank you very much
Very nice tutorial. thank you very much!
Love this video and already doing it that way.
Wanted to know how I would go by switching to the cloudfare tunnels with this setup ?
What and where would I habe to change in the Google actions portion for it to work ?
" couldn't update the setting, Check your connection" please help!!! Thank you
Same here, please an solution!
Is it possible to do the other way around? Controlling Google home devices with home assistant?
Thank you so much. You save my life!
Awesome video! Thanks!
Under fulfillment which dns should i use? Is it the home assistant dns?
I get to 7:15. It opens up the login window for Home Assistant, I put in my credentials. Signing in... Then nothing! It doesn't add my project to my linked services. The page just refreshes.
Same here i tried may different options and tried another tutorial and it fails at the same point. In the app after login thinks few seconds and nothing happens. I assume it my be a problem with the connection with HA. If you find a solution please let me know.
Same here.....
@@adifoto6362 I have same problem. Did you find a solution?
@@CoyEli Unfortunately not. i just give up.
If you already had all your devices in Google home, and were thinking of jumping into HA because you really want the automations, would you still need to do all this? Wouldn’t Google already have the linkages to all your devices and continue to function as it were? Is there any issue with setting up HA for the first time if you already have everything in Google home? Can they merely coexist or is that crossing the streams somehow?
Thanks so much... finally it's work in my Hassio :-)
Thank you very much but on my phone, when i select the [test] Home Assistant, the message of the navigator is : "ERR_CONNECTION_REFUSED"
Do you have an idea ?
Thank's
If you did not use port 443 for remote access when setting up home assistant, try specifying the port you used instead. That's what worked for me.
Hi Juan!
As always an amazing tutorial!
My one question is, after we add all the devices in G-Home, will my family members be able control them with voice or only me?
Good man thanks for the video. !!!
Thank you very much, Juan! Not 1, but 2 big thumbs up from me!
And also a (probably stupid) question: Do I have to reenable Actions on Google Test environment every month, or just once?
I have an error in the minute 7:10. After "Linking your [test] ESH Home Assistant account".
I have the following error "Could not reach [test]ESH Home assistant. Please try again."
Thank you for the video, Juan. What if you already have a bunch of devices under Google Home Assistant? Do they get synced to HA?
So, I've setup my Google account and it's all working like in the video and it's linked to my Home Assistant etc. However, if I say "Hey, Google" and a command, is this going through Google and the linked services of my devices, or Home Assistant? Might be a stupid question but I haven't been able to find the answer anywhere I've looked and it's never covered in these tutorials.
excellent video thanks for making it
Thanks, my dude.
hermano, u are the best
Great video!! Subscribed.
Are you gonna do a video for Alexa (without subscription) as well?
Thanks!
Hi, I followed until 7.18mins also have error with Google Home. After keyin username and passowrd then click on Next button, it showed signing in and linking then failed with error: ""Couldn't update the settings. Check your internet
For some reason, it won't connect anymore in the Google Home app (I don't see the link account loading screen), I did remove everything (every project) and build everything up again so I really know that this is not causing the problem. The only thing I changed is my router for a UDM (Unifi Dream Machine) Where is it going wrong that I can't connect my account anymore? Any ideas? I do get the login screen from my Home Assistant in the Google Home app, but it won't link!
Did you figure it out? I got the same problem
Thanx! I didn't know this way existed.
@JuanMTech Hi Juan. I followed everything you said and did in the video. However, once I got to the Google Home app. I located the new device but HA would not open saying the connection is not secure. Now what do I do to either get passed this or correct this error message? Thanks
Great video as always. However I run into authorization issues when I use the project ID in "Client ID issued by your Actions to Google". My issue was solved by using the project name instead of ID. Works like a charm now. No idea why I need to add the project name instead of Project ID.
Awesome vid Juan, Can we use this with CloudFlare as well?
I used it with CloudFlare and it works just fine. No need to add any ports after the link though.
You are the best!!!
Q how you get the knowledge of this all cause in home assistant it isn’t wellt documented?
On a separate note, is it possible to add a Smarthub mini Into home assistant? I would like better control of my IR devices (TV, air conditioner, etc)and smatbots.
Great tutorial. I'm wondering if there is a way to add my wife to the (test) project so that she can have it one her phone?
My duckdns works, but not always... Sometimes it just wont connect... Second problem, Google assistant cant see my scripts. When I refreshed devices connected to home assistant, it is now showing that there are 2 more, but they do not appear in the list of devices where I see bulbs and switches...
Running into a problem (after resolving a few others), and can't find any help on the HA community..
When I try to add the integration into Google Home, it loads the HA screen, but kicks out an authentication error:
Error: invalid client id or redirect url
I have access to HA via duckdns from outside my home network, so this has to be something in my google configuration or HA config for Google Assistant. As far as I can tell, everything is correct as specified in the video.
Any advice?
Thanks Juan. 👍
is it possible to control any other device with a "chromecast with google tv" remote? (with your voice)
Thank you soooo much!!
i seem to be having issues when it comes to getting the Home Assistant login screen on my device. i am behind a double NAT and i dont know where to go from here. currently using pfsense as router/firewall. can you help?
awesome video if i may say.. have a new subscriber....
7:08 After I enter username and password I get the error "Impossible to update settings. Check Internet connection". What can it be the issue???
EDIT: I started again from the beginning with the procedure I found on your site and now it's working correctly.