I was able to get this working today! A few things have changed since the creation of this video. 1. When creating your OAuth Credentials, set your app as a Desktop App, not TV. 2. When creating your user in Assistant Relay, the Google authorization flow does not have a specific pop-up that says "Allow" anymore. Instead, there's a button that says Continue. 3. When you finish the Google authorization flow, it's going to open a tab with a blank screen. Your Auth key is in the url. Copy everything between "code=" and "&scope". You can paste that into the auth key screen in Assistant Relay setup. 4. After you visit the URL from your logs and enable the API, it will likely take up to 10-15 minutes for it to start working. Even then, I was not able to get it to broadcast from the sandbox. 5. When creating a test animation and you select the REST command you created as the action, it did not show the "Service Data" field. Click the 3 dots on your action and click "Edit in YAML". Now you'll see "data: {}". Type anything between the curly brackets, then switch back to visual editor and your field for Service Data will be visible.
This is the first video I’ve seen of yours and I am VERY impressed. All the side comments you make to cover for beginner scenarios is incredibly helpful for myself and many others I’m sure. Keep doing what you’re doing Grayson!
Thanks for Assistant Relay. I have two items the work with Google Assistant, but not Home Assistant. I also want to lock all my actions and routines to ONLY my voice, and Google Assistant doesnt do that, (going to try via HASS & Relay soon). Thanks, man
Just implemented and works great. I am concerned about the code no longer receving updates. For everyone that is having the issue with selecting service and not havin the message field, the following is workaround. Just add the call service and select the rest service. Then use the menu (3 dots) and choose edit via YAML. Add the values: data: message: "Turn on lights" Just ensure the message has the 2 space indentation.
This is a perfect tutorial video, thank you so much. I love the part at 6:15 where you explain why we are doing this setup and what it is accomplishing.
Awesome video! Setting up the Home Assistant / Google Home links has been challenging and this video was a huge help. Keep it up, as a new subscriber I hope to see a lot more from you. 😀
This is great! Thank you! Now, how do you do it via Nodered with Homeassistant, the Homassistant "call service" node asks for "domain" which I'm not sure what domain the service "rest_command" belongs. Thanks.
@@VuTCNguyenArtist were you able to do it using the 'call service' node or using the POST node described in the github page? I can't get it to work using the 'call service'
Read into “RESTful sensors for home assistant” which let you work with the data it responds with. Requires some understanding of JSON and REST API. If your comment gains some traction from others I could make a video on this :) Feel free to start digging and ask questions here in the meantime.
For those kind of situations I usually add a boolean helper in HA that I expose to GA. Add an automation to when boolean is on to TTS what you want as your response and set the boolean to off. Lastly, in Google Home app create a routine to set the boolean to on (so instead of saying "set input_boolean.is_lights_on" you say "is lights on" The good thing about this is that you can add multiple ways to trigger, that way you can add sentences that GA might misinterpret you or just different ways to say it. I have this to speak out how much time there is left on the egg timers in HA. I can also start the egg timers through Google home using the same input_boolean method.
@@GraysonAdams like to know how to build this, pushing from external device a webhook to homeassistant and this activates my thermostate with google assistant.. but want to get the temperature from google assistant to external device
Hi Grayson, thank you for all of the good content that you put out. You really helped a lot of people. Hope you're doing well, and that you're just busy with your real job.
Works with broadcast and turning on devices. Any advice in using a command such as "Play music" with apple music? - all im getting is "I dont understand"
Hi Grayson, thanks for this tutorial. i have followed your instructions and everything is working fine upto the very last step of creating the automation.When I select Call Service I don't get the service data field to enter my message. If I switch to configure in yaml and enter "message: turn off hall lights" I get an error message when I save the file. The error message is: Message malformed: extra keys not allowed@data['action'[0]'message']. Do you know where I have gone wrong? Thanks for your time.
In the Edit in YAML field, you should add the message after a data type, like this: service: rest_command.assistant_relay data: message: Turn on all the lights
Great video! Question; whenever i restart HA - all my google devices send a broadcast message saying "relay system initialized". Is there a way to stop this from happening? When i perform a reboot at night - its loud!.. Update: found the option under Config; Mute startup sound!
I don't think this works anymore. The repository is no longer maintained and I can't seem to get a automation to run. May be something in the changes with Home Assistant as well because it now sees a RESTful command not just a rest.
@@paulatkinson9010 Thanks mate, looks like it's as you've stated not maintained anymore - It's a shame as I'm looking for a solution like this - if you or anyone in the community finds ones please let me know. Thanks again
@@ltech1947 I actually have mine working without these integrations! 🙂 I didn't realise until I mate a few comments on Facebook but because I have my scripts exposed I can add them straight to Google Home 😉
@@ltech1947 Hey man it still works, just tested it :) Once you set up the automation at call service hit the the dots on the right and edit the yaml There you copy paste this: service: rest_command.assistant_relay data: message: turn off all lights message ofcourse is what you want the system to do
Thanks for the guide! currently having a small issue at the end. I don't see the service data area so I can't input the command. Any fix? I'll try rebooting in the meantime to see if that solves things.
@@astorpinto732 This is the gold, anyone having this issue follow Astor's advice. After setting Application to "Desktop App" I can sign in and then a page fails to load, but the Auth Code is in the URL so you can copy it out and authorise. Thank you Astor!
I have a couple devices that will not play well with Home Assistant (iDevices specifically does not have an integration) and with recent Alexa and Google Assistant Addons I can shoot these commands to them from within HA via Alexa voice commands.
Wow so detailed absolutely brilliant. For example the reminder of single quotes around the config - I would have forgotten them had you not mentioned it, Yaml - so easy to format inaccurately.
Great video. Thanks for posting. One question, though - I have no Service data field below the rest command on the automations. Everything else works, though. What am I missing?
@@SamHaddad Are you able to show the formatting for the code in the automations.yaml file. I am just getting used to HA and proper indentation in .yaml always gets me. Thanks. Also, I see some comments that this is no longer supported, but others more recently that seem to say they have it working. Before I waste to much more time, are you able to confirm that this still works? Thanks in advance!
Thanks for the tutorial. I have a quetion: when I load the json in the plugin web and add the user name there is no pop up page asking me to log my google account in order to generate the auth code (min 8:35). any clue why?
@@AlmondPizza Same. The add-on is no longer updated so I'm thinking this may have something to do with it. EDIT: There is a way to get it working. Check the newest comments on this video and look for one by Jake Moore. He has the fix written out.
Hey Grayson! awason guide :D but I am missing something in the very last part of setting up the automation. I dont get the possibility to type any service data .... the message:..... What am I doing wrong?
Hi there.. I finally got around to giving this a crack, It was a GREAT tutorial. with the exception of a few bugs which I over came... HOWEVER. I can not get the data sent to the speakers..I have even checked my activity log for google home, and everything is being transmitted to my google accountm but nothing is coming out of my speakers.. any suggestions?
Hey Grayson, this is great ... but I get a different error at 10:05 in your video. My error reads, "Auth error:TypeError: Cannot read property 'access_token' of undefined Error 14: UNAVAILABLE: Getting metadata from plugin failed with error: Cannot read property 'access_token" of undefined" Any idea why I'd be getting a different error to yours? What do I do with it here? Thanks
Thanks so much for this awesome and detailed tutorial! I have a question... How come nothing happens if my message is anything to do with music? For example, I want a light turning on to trigger a google home speaker to play a radio station. But when I type 'play BBC radio 2 on kitchen speaker' as my message in automations as the action, it doesn't work. Any idea why?
hey Grayson love your videos I am new to all this stuff. I was wondering how do I create custom commands for relays or latches I want to make a Comand to water my grass using a rasberry pi and a hose solenoid !
THANK YOU. The HA forum is full of folks who speak in jargon and the site pages are no more helpful. Everyone assumes you're fully cognizant of all the idiosyncrasies of the app. This is the first mention I've seen of someone noting we should be using a [non-default] file editor to enter the code snippets provided in various discussions. I've been scratching my head for hours trying to figure out to how to configure an automation given the pre-configured interface. INFURIATING.
Hey Grayson thanks for uploading such an in-depth video it was really helpful. Unfortunately when I get to the add user screen and hit add user it simple opens a new tab that is an about:blank tab instead of taking me to the login screen for the authorisation. Any ideas on how to get around this?
I did the complete installation, but when I come to the test phase, at the "actions" point, there is no possibility to add the service data (field is even not visible). So I have "action type" "call service". "Service" "RESTful Command: assistant_relay", which is the rest_command.assistant_relay. But the "service data" is not visible. See at time 14:13 in the video. Where am I going wrong? Or can someone give the full automations.yaml configuration for this example?
I finally solved it (or found a way to make it work). In the "actions" part, you have to click on the three dots at the right, and select "edit in yaml". Then you have to fill in the following code: service: rest_command.assistant_relay data: message: crumble start cleaning Now Crumble, my neato vacuum bot starts working (finally my house will be cleaned again :-) )
When I call the rest_command.assistant_relay service on the action type menu (creating a new automation), the service data box isn't shown. What can I do? Can U help me please?
Figured it out by other comments. Edit the automation action in yaml. than add the data property in the next line after the service call, like this: service: rest_command.assistant_relay data: message: turn on table light
Thanks for the tutorial! Installed it, but noticed that it is not possible to cast Media through specific devices due to Google Limitations (for example, "play Radio XYZ in device XYZ"). That was the main reason for me to implement it into my HA 😕
Hey Marcus, how did you go with this? Have you tried setting top an automation which plays a set playlist in google? then calling the automation to execute?
@@alexattard6085 in the sandbox this works "read me the news on Lounge Speaker" however I haven't tried in an automation yet with the payload but should be the same. I can't get it to play music tho
How can you specify which device a TTS message will go to? Example I would like the Good Morning routine to be executed when I turn my office light on but I only want the google home in my office to run the Good Morning command.
I've been glued to your videos, many thanks. My install of Assistant relay went fine but when starting it errored. "Port '3000' is already in use by something else on the host." Running homeassistant in virtual machine by Oracle. I dont know how to resolve this issue. Any tip ? Cheers from Rodoz
Awesome video man. I'm just in the process of setting up HomeAssistant for the second time and this really helped. An idea for the future: Maybe include a lovelace tutorial on how to create a button or something to link to the actions created. Also, I have no idea if possible, but I'd love to be able to trigger Home Assistant automation by giving Google Assistant a verbal command.
Also would love to know how to send 2+ commands without creating two automations? Eg. Turn on the lights, change colour to red and change brightness to 20%
Just as a tip you can have booleans (switches on/off) shown in google, but you will have to say turn on. Then in homeassistant you can have automations work depending on the change of the boolean. As an example i can say turn cleaning kitchen on, whitch turns the clean kitchen boolean on. Homeassistant then executes a script and turns the boolean back off, so i can start it agein next time i need it
When I try and add a new User and select the auth key json in Assistant Relay, it does not redirect me to select my google account. A blank page is displayed instead. So I can't get the auth code to set up the account in Assistant Relay. Does anyone know how to fix this?
This is amazing thanks. Just one question. I have it running but was hoping to start timers. Is this possible? At present it just keeps saying I can't do it on this device. I want a timer to start with an automation and then ask how long is left etc. Is that possible?
great video. I followed all the steps, I get to the sandbox and I get no errors, it says it is successful, but I don't hear anything on my google minis. Any idea where to start trouble-shooting this? Thanks Upon further examination, I can command Google and that works, just not the broadcast feature.
Can you use interactions? For example, have google ask you a question, you answer, and then depending on the answer, do something in Home Assistant
3 роки тому
great tuto man liked and subscribed. Just one qq, was wondering if you could do some automation examples related to conversation with Google Home... for example I enter my bathroom and google assistant asks me if I want to play some playlist and if I say yes, home assistant will cast a playlist to my google device...
Great Tutorial ! Clear video ! I'll try this immediately ! Thanks a lot! My first automation will be : when someone is pressing my ring doorbell => broadcast the message "someone is there !" Do you know if the interaction can be the other way around? So for instance, if I have a temperature sensor in my kitchen, integrated in my Home assistant. Could I ask my google home speaker : "what's the temperature in the kitchen ? "
Thank you for your video, it was incredibly helpful. I get stuck when creating an automation though. When I select the call service action, I do not have a field to enter a message. Any idea what could be wrong?
Thanks, Grayson! Perfectly explained - even for an old guy like me! ;-) But to manage expectations: This assistant-relay only supports a very few functions. If you want to start music or a radio station or maybe anything else that should be addressed to a specific home device: That is not supported. That is what I learned after installing this. And that's why I had to uninstall it again, because my main idea was to be able to start music or radio-stations on a google home device.
in the sandbox this works "read me the news on Lounge Speaker" however I haven't tried in an automation yet with the payload but should be the same. I can't get it to play music tho
Thanks for this video, I have been looking for a why to do this for months now, I cant believe I didn't come across this video with all the googling I've done over the last few months, then this video randomly come up on my suggest youtube videos.
Any ideas how can I broadcast a message when other smart processes finishes? Example: when my smart dishwasher finishes broadcast a completed message in all my assistants? Thank you!
I've been using Assistant Relay for over a year or more now to broadcast messages throughout the house without any drama, love it. What I would like to do though is have a Google Home device ask a question and expect an answer, then act accordingly. ie: have an automation trigger when I walk into the kitchen for the Google Home to ask me if I want to turn on the kettle. Any idea if this can be accomplished?
First time I could set this up. Now, I can turn on or off lights... broadcast a message,..... but, play radio station via tunein on a nest mini doesn't work. Tried almost any combination. I tried this in SANDBOX too,... but, the assistant mostly doesn't know what I mean. (doesn't understand). I also can't run "routines"?
Great Video, thank you. I am struggling with the other way around. I have google assistant connected to my Home Assistant and it is working with routines, e.g. custom command " turn off tv" which I defined in my Google assistant triggers a service in home assistant. The problem I have is that that routine is linked to my Google assistant and anyone in my household cannot trigger it as they have not set up the routine. Is there a way to create custom commands that work in google home triggering services in home assistant? Would be great if you could help or even make a video about it .
goodvideo mate :) can anyone help im running assistant relay on home assistant on vm but when i try make automation when i pick call service pick relay it doesnt say service data so carnt put nothink in box ? thankyou in advance who can help
@@RyanAdamsTech Here are steps that solved the problem for me: 1. Edit the configuration.yaml file to follow syntax presented at GRellays webside (perhaps at the time of making this video recommended syntax was different ) : In my case it looked as follow : rest_command: assistant_relay: url: *YOUR LOCAL ASSIO IP*.3000/assistant method: POST content_type: 'application/json' payload: '{"command":"{{ command }}", "user":"*YOUR NAME*"}' 2. Go to Configuration>Automation>*Edit Automation* 3.Under actions expand the options menu and click Edit in YAML 4. Add the following code on the bottom : data: command: **your GRellay command**
@@kacperduda7418 Thanks for helping support! I saved the configuration.yaml as instructed and edited the action in YAML but when saving the file it just says: Message malformed: Integration " not found I have tried this on both the stable and beta versions of AR -- any thoughts? Thanks! :)
Hey Grayson, I’m struggling to get this to work. I can get it to work o the google relay site, but when I go to call the service and send the commands I am unable to get any response.
Really good video. I used it to setup mine. About 3 days ago broadcasting stopped working. Any clue why? It still sends commands like turn off the light and etc
Wow amazing video... Does google allows you to create multiple developer applications? I already created one to be able to allow google assistant to recognise my exposed sensors and devices; is there any chance that this application could interfere somehow with that? Btw I just watch some other videos you made. The quality is very high. I really hope you are not giving up on youtube because you really deserve a lot of subscribers!
Anybody can help me? Once I want to authorize my user through the Assistant Relay addon it throws an invalid_request error (redirect_uri: urn:ietf:wg:oauth:2.0:oob) "You can't sign in to the app because it doesn't comply with Google's OAuth 2.0 policy to protect apps. You can let the app developer know that this app doesn't meet one or more of Google's validation rules."
I had this working for about a week and then it stopped. Now in the logs I am getting an error - Auth error:TypeError: Cannot read property 'access_token' of undefined 0|www | Error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: Cannot read property 'access_token' of undefined
As of a couple of days ago, Google changed the settings for the Oauth, meaning that it no longer works. And the Relay is no longer maintained. RIP GA Relay!
Hi! Thank you for all your video's regarding Home Assistant. You convinced me to buy a Pi and I'm having a lot of fun playing around with it. As I'm new regarding coding and HA, I'm not very good with troubleshooting and maybe you could help me out. Everything worked up until the very end, regarding the config configuration yaml. I got an error that the way I entered the method line (12:00). It says:" can not read a block mapping entry; a multiline key may not be an implicit key at line 17, column 11: method: 'post' ". Any idea what I might have done wrong? Kind regards!
Hi, great tutorial - I've changed the configuration.yaml file however when setting up an automation I don't get 'service data' therefore cannot type the command. Any tips.
So reading through comments I got it. First need to edit Yaml and paste this then go back to UI and type message and then the command. data: command: sync devices service: rest_command.assistant_relay
I love the video! I followed it completely but I still can't get it to work somehow. All the google stuff is well set up. And the yaml file too. But whatever I try I cant get the automation relay entitie reconized...
Could I script with this a conversation with google home? Like I wanna have more options to speak with google, like the bedtime alarm clock asking thing. If my PC is on and someone tells all plugs out, then I wanna that google asks you wanna do that for real? Pc is on. My kids did that a couple of times by accidebt, when I was working on that PC.
Awesome, I am on the begging of building voiceless smarthome. Since my language is not supported by Google in Google assistant and it would be too clumsy to use voice to control the home for family members. Opening the app for everything also beats the smarthome idea. So I want to have a simple hardware buttons that will trigger automations like a button in the kitchen that would summon the robot vaccum to clean there.
Hey man, love your video`s, but I`m struggeling with this thing man. please, could you help me? So in the sandbox it worked, but if I make an automation, nothing happends. don`t get it. I`m the biggest noob, so I hope you could help me out.
Thanx for the video and explanation... I followed the steps but get a error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: Cannot read property 'access_token' of undefined. Can you tell what went wrong?
I agree with @Andreas Skov, it no longer works. It leaves a gap, there is no way to send task easily to Google Assistant from Home Assistant. That would be great if Assistant Relay could update the Oauth login page in settings.
its a great video but is it also possible to let google talk to home assistant so i can say hey google turn on lights and that it goes with trough home assistant and than turn my lights on?
I'm having a weird issue and I would really appreciate any help with this. My installation is working fine. I can issue a command from the sandbox or from HomeAssistant automation and both works. The problem is this: when I type "shuffle jazz classics on kitchen tv" on google assistant, it understands and does it. However, when I type the same thing in the sandbox, Google says it does not understand. Can anyone guess why is this happening?
I was able to get this working today! A few things have changed since the creation of this video.
1. When creating your OAuth Credentials, set your app as a Desktop App, not TV.
2. When creating your user in Assistant Relay, the Google authorization flow does not have a specific pop-up that says "Allow" anymore. Instead, there's a button that says Continue.
3. When you finish the Google authorization flow, it's going to open a tab with a blank screen. Your Auth key is in the url. Copy everything between "code=" and "&scope". You can paste that into the auth key screen in Assistant Relay setup.
4. After you visit the URL from your logs and enable the API, it will likely take up to 10-15 minutes for it to start working. Even then, I was not able to get it to broadcast from the sandbox.
5. When creating a test animation and you select the REST command you created as the action, it did not show the "Service Data" field. Click the 3 dots on your action and click "Edit in YAML". Now you'll see "data: {}". Type anything between the curly brackets, then switch back to visual editor and your field for Service Data will be visible.
Thank you!!! I was suck on 1-3. The real fix is always in the comments!
thanks for this!
Thanks!!!!!
Thanks for the extra tips! I was stuck on these same problems until I saw your comment. 👍
for those that are still stuck on step 3 and get a blank page with "about:blank" in the URL, try a different browser
This is the first video I’ve seen of yours and I am VERY impressed. All the side comments you make to cover for beginner scenarios is incredibly helpful for myself and many others I’m sure. Keep doing what you’re doing Grayson!
I was wondered where all the influx of users had come from. Thanks for the tutorial! (Assistant Relay dev)
Thanks for Assistant Relay. I have two items the work with Google Assistant, but not Home Assistant. I also want to lock all my actions and routines to ONLY my voice, and Google Assistant doesnt do that, (going to try via HASS & Relay soon). Thanks, man
Been waiting for this tutorial for the longest time. I'm sure glad it came from you. Can't wait to try it out. Thanks Man!!
Just implemented and works great. I am concerned about the code no longer receving updates. For everyone that is having the issue with selecting service and not havin the message field, the following is workaround.
Just add the call service and select the rest service. Then use the menu (3 dots) and choose edit via YAML. Add the values:
data:
message: "Turn on lights"
Just ensure the message has the 2 space indentation.
This is a perfect tutorial video, thank you so much. I love the part at 6:15 where you explain why we are doing this setup and what it is accomplishing.
Awesome video! Setting up the Home Assistant / Google Home links has been challenging and this video was a huge help. Keep it up, as a new subscriber I hope to see a lot more from you. 😀
Dude you're very good on this, keep doing it. thank you so much for this tutorial.
This is great! Thank you! Now, how do you do it via Nodered with Homeassistant, the Homassistant "call service" node asks for "domain" which I'm not sure what domain the service "rest_command" belongs. Thanks.
Nvm, I found an example on Assistant Relay github page. Thanks!
@@VuTCNguyenArtist were you able to do it using the 'call service' node or using the POST node described in the github page? I can't get it to work using the 'call service'
Any chance you might do a tutorial for the nest SDM API Integration?
Glad you are back!
Been trying to get these steps nailed down. Thanks for the video! Saved me hours and hours.
So if I ask google "are 'x' lights on?" it provides feedback. Know of any way to store this feedback as a STATE?
Read into “RESTful sensors for home assistant” which let you work with the data it responds with. Requires some understanding of JSON and REST API.
If your comment gains some traction from others I could make a video on this :)
Feel free to start digging and ask questions here in the meantime.
For those kind of situations I usually add a boolean helper in HA that I expose to GA.
Add an automation to when boolean is on to TTS what you want as your response and set the boolean to off.
Lastly, in Google Home app create a routine to set the boolean to on (so instead of saying "set input_boolean.is_lights_on" you say "is lights on"
The good thing about this is that you can add multiple ways to trigger, that way you can add sentences that GA might misinterpret you or just different ways to say it.
I have this to speak out how much time there is left on the egg timers in HA. I can also start the egg timers through Google home using the same input_boolean method.
@@GraysonAdams like to know how to build this, pushing from external device a webhook to homeassistant and this activates my thermostate with google assistant.. but want to get the temperature from google assistant to external device
Hi Grayson, thank you for all of the good content that you put out. You really helped a lot of people. Hope you're doing well, and that you're just busy with your real job.
Hey mate, been using these as my "How to " for Home Assistant, these are great, cheers! Please post some more.
Hi if I have a Nabu Casa subscription would this give me the same benefits as your method or is this additional to it?
Works with broadcast and turning on devices. Any advice in using a command such as "Play music" with apple music? - all im getting is "I dont understand"
Hi Grayson, thanks for this tutorial. i have followed your instructions and everything is working fine upto the very last step of creating the automation.When I select Call Service I don't get the service data field to enter my message. If I switch to configure in yaml and enter "message: turn off hall lights" I get an error message when I save the file. The error message is: Message malformed: extra keys not allowed@data['action'[0]'message']. Do you know where I have gone wrong? Thanks for your time.
In the Edit in YAML field, you should add the message after a data type, like this:
service: rest_command.assistant_relay
data:
message: Turn on all the lights
@@stevenboy52 hi Steven, yep, tried that in just about every different combination possible.
@@rickperryman Same here..
@@stevenboy52 Hi, did you find a solutions to this as I'm having the same issue
Hi, did you find a solution? I can't get this to work
Great video! Question; whenever i restart HA - all my google devices send a broadcast message saying "relay system initialized". Is there a way to stop this from happening? When i perform a reboot at night - its loud!..
Update: found the option under Config; Mute startup sound!
I don't think this works anymore. The repository is no longer maintained and I can't seem to get a automation to run. May be something in the changes with Home Assistant as well because it now sees a RESTful command not just a rest.
having same issue on this - did you find a fix bud?
@@ltech1947 Not as yet mate :(
@@paulatkinson9010 Thanks mate, looks like it's as you've stated not maintained anymore - It's a shame as I'm looking for a solution like this - if you or anyone in the community finds ones please let me know. Thanks again
@@ltech1947 I actually have mine working without these integrations! 🙂
I didn't realise until I mate a few comments on Facebook but because I have my scripts exposed I can add them straight to Google Home 😉
@@ltech1947 Hey man it still works, just tested it :)
Once you set up the automation at call service hit the the dots on the right and edit the yaml
There you copy paste this:
service: rest_command.assistant_relay
data:
message: turn off all lights
message ofcourse is what you want the system to do
Great video mate! Awesome picture, what camera are you using?
Thanks for the guide! currently having a small issue at the end. I don't see the service data area so I can't input the command. Any fix? I'll try rebooting in the meantime to see if that solves things.
did you figure this out im also having this issue
@@justincampbell2719 not at all, or given up 🥲
@@DONQUIIIXOTE I'll look into it some more tomorrow if I can figure it out I'll send you what my fix was
@@justincampbell2719 thank you man!
Same for me... any solution?
Odd... it does not pop up with a google sign in where it should at 8:00
Select the Application type as "Desktop App" when creating OAuth client ID.
@@astorpinto732 This is the gold, anyone having this issue follow Astor's advice. After setting Application to "Desktop App" I can sign in and then a page fails to load, but the Auth Code is in the URL so you can copy it out and authorise. Thank you Astor!
@@chrislomas. GREAT! Thank you so much!
Will using port 3000 conflict with zwave2mqtt, which also uses port 3000?
I have a couple devices that will not play well with Home Assistant (iDevices specifically does not have an integration) and with recent Alexa and Google Assistant Addons I can shoot these commands to them from within HA via Alexa voice commands.
Wow so detailed absolutely brilliant. For example the reminder of single quotes around the config - I would have forgotten them had you not mentioned it, Yaml - so easy to format inaccurately.
great vid man thanks for the help. I like the flow of the vid, feels like it runs in the same way I'd debug common problems when starting a project.
Nice video. Maybe make a video about the automations you are using with it
Great video. Thanks for posting. One question, though - I have no Service data field below the rest command on the automations. Everything else works, though. What am I missing?
I have the exact same problem been trying to fix it all day finally ive found someone who's also got that problem
@@Kieran28 turns out that has to be added in the automations.yaml file.
@@SamHaddad Are you able to show the formatting for the code in the automations.yaml file. I am just getting used to HA and proper indentation in .yaml always gets me. Thanks. Also, I see some comments that this is no longer supported, but others more recently that seem to say they have it working. Before I waste to much more time, are you able to confirm that this still works? Thanks in advance!
Thanks for the tutorial. I have a quetion: when I load the json in the plugin web and add the user name there is no pop up page asking me to log my google account in order to generate the auth code (min 8:35). any clue why?
I have the same problem, if you find a way to solve it please answer :D
@@AlmondPizza Same. The add-on is no longer updated so I'm thinking this may have something to do with it. EDIT: There is a way to get it working. Check the newest comments on this video and look for one by Jake Moore. He has the fix written out.
Thanks! I use this now to "find my phone".
And, how to use this to make google speker play the answer to : "how does an animal sound" ?
Hey Grayson! awason guide :D but I am missing something in the very last part of setting up the automation. I dont get the possibility to type any service data .... the message:..... What am I doing wrong?
Hi there.. I finally got around to giving this a crack, It was a GREAT tutorial. with the exception of a few bugs which I over came... HOWEVER. I can not get the data sent to the speakers..I have even checked my activity log for google home, and everything is being transmitted to my google accountm but nothing is coming out of my speakers.. any suggestions?
Hey Grayson, this is great ... but I get a different error at 10:05 in your video. My error reads,
"Auth error:TypeError: Cannot read property 'access_token' of undefined
Error 14: UNAVAILABLE: Getting metadata from plugin failed with error: Cannot read property 'access_token" of undefined"
Any idea why I'd be getting a different error to yours? What do I do with it here? Thanks
Thanks so much for this awesome and detailed tutorial!
I have a question... How come nothing happens if my message is anything to do with music? For example, I want a light turning on to trigger a google home speaker to play a radio station. But when I type 'play BBC radio 2 on kitchen speaker' as my message in automations as the action, it doesn't work. Any idea why?
have you figured this out? I am having the same issue
hey Grayson love your videos I am new to all this stuff. I was wondering how do I create custom commands for relays or latches I want to make a Comand to water my grass using a rasberry pi and a hose solenoid !
THANK YOU. The HA forum is full of folks who speak in jargon and the site pages are no more helpful. Everyone assumes you're fully cognizant of all the idiosyncrasies of the app. This is the first mention I've seen of someone noting we should be using a [non-default] file editor to enter the code snippets provided in various discussions. I've been scratching my head for hours trying to figure out to how to configure an automation given the pre-configured interface. INFURIATING.
Hey Grayson thanks for uploading such an in-depth video it was really helpful. Unfortunately when I get to the add user screen and hit add user it simple opens a new tab that is an about:blank tab instead of taking me to the login screen for the authorisation. Any ideas on how to get around this?
Did you figure it out?
@@danielvega724 Unfortunately no
@@graydenpark831 try this ua-cam.com/video/RqGi_GI0ltU/v-deo.html&ab_channel=EverythingSmartHome, sorry Grayson but I wasn't able to use your way 😅
Same here, looks like is it broken and dead.
@@bryancamy Good news! Still works! As another user said (Astor Pinto) Select the Application type as "Desktop App" when creating OAuth client ID.
I did the complete installation, but when I come to the test phase, at the "actions" point, there is no possibility to add the service data (field is even not visible). So I have "action type" "call service". "Service" "RESTful Command: assistant_relay", which is the rest_command.assistant_relay. But the "service data" is not visible. See at time 14:13 in the video.
Where am I going wrong? Or can someone give the full automations.yaml configuration for this example?
I finally solved it (or found a way to make it work).
In the "actions" part, you have to click on the three dots at the right, and select "edit in yaml".
Then you have to fill in the following code:
service: rest_command.assistant_relay
data:
message: crumble start cleaning
Now Crumble, my neato vacuum bot starts working (finally my house will be cleaned again :-) )
@@bert772288 I have same problem...any fix yet? and can you elaborate how you fixed it?
@@bert772288 THANK YOU have been struggling with this for a couple hours now.
When I call the rest_command.assistant_relay service on the action type menu (creating a new automation), the service data box isn't shown. What can I do? Can U help me please?
Figured it out by other comments. Edit the automation action in yaml. than add the data property in the next line after the service call, like this:
service: rest_command.assistant_relay
data:
message: turn on table light
Thanks for the tutorial! Installed it, but noticed that it is not possible to cast Media through specific devices due to Google Limitations (for example, "play Radio XYZ in device XYZ"). That was the main reason for me to implement it into my HA 😕
same
@@sfenne same... it won't play any media
Hey Marcus, how did you go with this? Have you tried setting top an automation which plays a set playlist in google? then calling the automation to execute?
@@alexattard6085 in the sandbox this works "read me the news on Lounge Speaker" however I haven't tried in an automation yet with the payload but should be the same. I can't get it to play music tho
So it seems in the time it took me to get around to doing this, the project is no longer maintained. Has anything popped up that takes it's place?
I want to jnow too...
I've tried to install the assistant relay add on and I've didn't get...
Extremly well done video! Nice explanation.. What can we doe with it one year later?
How can you specify which device a TTS message will go to? Example I would like the Good Morning routine to be executed when I turn my office light on but I only want the google home in my office to run the Good Morning command.
I've been glued to your videos, many thanks. My install of Assistant relay went fine but when starting it errored. "Port '3000' is already in use by something else on the host." Running homeassistant in virtual machine by Oracle. I dont know how to resolve this issue. Any tip ? Cheers from Rodoz
8:12 after this I get a error saying "500 internal server error" what could be the problem
Awesome video man. I'm just in the process of setting up HomeAssistant for the second time and this really helped.
An idea for the future: Maybe include a lovelace tutorial on how to create a button or something to link to the actions created.
Also, I have no idea if possible, but I'd love to be able to trigger Home Assistant automation by giving Google Assistant a verbal command.
Also would love to know how to send 2+ commands without creating two automations?
Eg. Turn on the lights, change colour to red and change brightness to 20%
With Google you can normally do at least two commands by just using the word “and” between both commands
Just as a tip you can have booleans (switches on/off) shown in google, but you will have to say turn on. Then in homeassistant you can have automations work depending on the change of the boolean. As an example i can say turn cleaning kitchen on, whitch turns the clean kitchen boolean on. Homeassistant then executes a script and turns the boolean back off, so i can start it agein next time i need it
When I try and add a new User and select the auth key json in Assistant Relay, it does not redirect me to select my google account. A blank page is displayed instead. So I can't get the auth code to set up the account in Assistant Relay. Does anyone know how to fix this?
i get the same... were you able to resolve?
Select the Application type as "Desktop App" when creating OAuth client ID.
This is amazing thanks. Just one question. I have it running but was hoping to start timers. Is this possible? At present it just keeps saying I can't do it on this device. I want a timer to start with an automation and then ask how long is left etc. Is that possible?
13:45 i don't have the "service data" form visible, can you tell me why pls? sorry my bad english, i'm italian
With the deprecation of Apipa169's repo, what is your recommendation for accessing the assistant broadcast functionality?
Hi Grayson, would it be possible to send a TTS notification from outside your network to your Google mini/nest?
great video. I followed all the steps, I get to the sandbox and I get no errors, it says it is successful, but I don't hear anything on my google minis. Any idea where to start trouble-shooting this? Thanks
Upon further examination, I can command Google and that works, just not the broadcast feature.
Can you use interactions? For example, have google ask you a question, you answer, and then depending on the answer, do something in Home Assistant
great tuto man liked and subscribed. Just one qq, was wondering if you could do some automation examples related to conversation with Google Home... for example I enter my bathroom and google assistant asks me if I want to play some playlist and if I say yes, home assistant will cast a playlist to my google device...
Thanks for this. Documentation seems to be out of date, and this helped a lot. :-)
Great Tutorial ! Clear video ! I'll try this immediately ! Thanks a lot!
My first automation will be : when someone is pressing my ring doorbell => broadcast the message "someone is there !"
Do you know if the interaction can be the other way around?
So for instance, if I have a temperature sensor in my kitchen, integrated in my Home assistant. Could I ask my google home speaker : "what's the temperature in the kitchen ? "
How do you get google home speaker to broadcast when pressing doorbell ? In the "Action" do you type broadcast instead of message ?
Thank you for your video, it was incredibly helpful. I get stuck when creating an automation though. When I select the call service action, I do not have a field to enter a message. Any idea what could be wrong?
same here. not getting Service Data field. Have you been able to sort this out?
go to yaml mode and write below:
service: rest_command.assistant_relay
data:
message: Start Vacuum
@@123khurmi thanks, I ended up working this one out too, but I'm sure your comment will help others in future!
@@123khurmi You are a life saver
We need more of this.
Thanks, Grayson! Perfectly explained - even for an old guy like me! ;-) But to manage expectations: This assistant-relay only supports a very few functions. If you want to start music or a radio station or maybe anything else that should be addressed to a specific home device: That is not supported. That is what I learned after installing this. And that's why I had to uninstall it again, because my main idea was to be able to start music or radio-stations on a google home device.
Ah that's a bummer. I was thinking of a similar idea as well. I wonder if that's changed in the 8 months since you tried. 🤔
@@AhrenBaderJarvis it probably hasn't changet because the assistant relay project is dead :/
in the sandbox this works "read me the news on Lounge Speaker" however I haven't tried in an automation yet with the payload but should be the same. I can't get it to play music tho
Can you play UA-cam Music on Google Homes with this method?
Thanks for this video, I have been looking for a why to do this for months now, I cant believe I didn't come across this video with all the googling I've done over the last few months, then this video randomly come up on my suggest youtube videos.
Fantastic video, followed step by step and integrated with out issue! Thanks!
Any ideas how can I broadcast a message when other smart processes finishes? Example: when my smart dishwasher finishes broadcast a completed message in all my assistants? Thank you!
the step at 8:00 gives me a blank page. not the choose a account screen.
Thanks for the video, nice work. Would be nice to have same step by step instructions for HA with remote access as well.
Can you also use this integration to send commands to home assistant from Google? I have some Z-WAVE switches that can’t be accessed by Google.
I've been using Assistant Relay for over a year or more now to broadcast messages throughout the house without any drama, love it. What I would like to do though is have a Google Home device ask a question and expect an answer, then act accordingly. ie: have an automation trigger when I walk into the kitchen for the Google Home to ask me if I want to turn on the kettle. Any idea if this can be accomplished?
Great video but was having a hard time with a "network error" any tips?
OAuth out-of-band (oob) flow is deprecated since 2022-02-28
First time I could set this up. Now, I can turn on or off lights... broadcast a message,..... but, play radio station via tunein on a nest mini doesn't work. Tried almost any combination. I tried this in SANDBOX too,... but, the assistant mostly doesn't know what I mean. (doesn't understand).
I also can't run "routines"?
Great Video, thank you. I am struggling with the other way around. I have google assistant connected to my Home Assistant and it is working with routines, e.g. custom command " turn off tv" which I defined in my Google assistant triggers a service in home assistant. The problem I have is that that routine is linked to my Google assistant and anyone in my household cannot trigger it as they have not set up the routine.
Is there a way to create custom commands that work in google home triggering services in home assistant? Would be great if you could help or even make a video about it .
goodvideo mate :) can anyone help im running assistant relay on home assistant on vm but when i try make automation when i pick call service pick relay it doesnt say service data so carnt put nothink in box ? thankyou in advance who can help
It seems to be a recent issue. Run into the same problem
I have same problem...any fix yet?
I am also having this same issue. Would love some advice on a way to fix it.
@@RyanAdamsTech Here are steps that solved the problem for me:
1. Edit the configuration.yaml file to follow syntax presented at GRellays webside (perhaps at the time of making this video recommended syntax was different ) :
In my case it looked as follow :
rest_command:
assistant_relay:
url: *YOUR LOCAL ASSIO IP*.3000/assistant
method: POST
content_type: 'application/json'
payload: '{"command":"{{ command }}", "user":"*YOUR NAME*"}'
2. Go to Configuration>Automation>*Edit Automation*
3.Under actions expand the options menu and click Edit in YAML
4. Add the following code on the bottom :
data:
command: **your GRellay command**
@@kacperduda7418 Thanks for helping support!
I saved the configuration.yaml as instructed and edited the action in YAML but when saving the file it just says:
Message malformed: Integration " not found
I have tried this on both the stable and beta versions of AR -- any thoughts? Thanks! :)
Hey Grayson, I’m struggling to get this to work. I can get it to work o the google relay site, but when I go to call the service and send the commands I am unable to get any response.
is it possible to control routines with this made in google assistant?
Really good video. I used it to setup mine. About 3 days ago broadcasting stopped working. Any clue why? It still sends commands like turn off the light and etc
Wow amazing video... Does google allows you to create multiple developer applications? I already created one to be able to allow google assistant to recognise my exposed sensors and devices; is there any chance that this application could interfere somehow with that?
Btw I just watch some other videos you made. The quality is very high. I really hope you are not giving up on youtube because you really deserve a lot of subscribers!
Anybody can help me? Once I want to authorize my user through the Assistant Relay addon it throws an invalid_request error (redirect_uri: urn:ietf:wg:oauth:2.0:oob)
"You can't sign in to the app because it doesn't comply with Google's OAuth 2.0 policy to protect apps.
You can let the app developer know that this app doesn't meet one or more of Google's validation rules."
Hi Tim. I got the exact same error when I tried this just now. I have a feeling we may be out of luck on this.
I've got the same issue
same issue
same here
I had this working for about a week and then it stopped. Now in the logs I am getting an error - Auth error:TypeError: Cannot read property 'access_token' of undefined
0|www | Error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: Cannot read property 'access_token' of undefined
As of a couple of days ago, Google changed the settings for the Oauth, meaning that it no longer works. And the Relay is no longer maintained. RIP GA Relay!
Thanks, I was struggling with it's install, and was unable to get the authentication screen. But this explains it.
I just got this working
I couldn’t get pass through the authentication screen, I guess this is why
GOD DAMNIT GOOGLE! 😭😭😭😭
Hi! Thank you for all your video's regarding Home Assistant. You convinced me to buy a Pi and I'm having a lot of fun playing around with it. As I'm new regarding coding and HA, I'm not very good with troubleshooting and maybe you could help me out. Everything worked up until the very end, regarding the config configuration yaml. I got an error that the way I entered the method line (12:00). It says:" can not read a block mapping entry; a multiline key may not be an implicit key at line 17, column 11: method: 'post' ". Any idea what I might have done wrong? Kind regards!
Hi, great tutorial - I've changed the configuration.yaml file however when setting up an automation I don't get 'service data' therefore cannot type the command. Any tips.
So reading through comments I got it.
First need to edit Yaml and paste this then go back to UI and type message and then the command.
data:
command: sync devices
service: rest_command.assistant_relay
@@seanletsplay just looking for that tnx i will try it now :)
I love the video! I followed it completely but I still can't get it to work somehow. All the google stuff is well set up. And the yaml file too. But whatever I try I cant get the automation relay entitie reconized...
Could I script with this a conversation with google home?
Like I wanna have more options to speak with google, like the bedtime alarm clock asking thing.
If my PC is on and someone tells all plugs out, then I wanna that google asks you wanna do that for real? Pc is on. My kids did that a couple of times by accidebt, when I was working on that PC.
Hi, my HA dont show the call service. Any sugestion? Tks
Awesome, I am on the begging of building voiceless smarthome. Since my language is not supported by Google in Google assistant and it would be too clumsy to use voice to control the home for family members. Opening the app for everything also beats the smarthome idea. So I want to have a simple hardware buttons that will trigger automations like a button in the kitchen that would summon the robot vaccum to clean there.
how can i show a listing of the lights attached to my google on the home assistant so i can control individually ????
this works well! until... I receive this error: Getting metadata from plugin failed with error. Any idea? thanks
Hey man, love your video`s, but I`m struggeling with this thing man. please, could you help me?
So in the sandbox it worked, but if I make an automation, nothing happends. don`t get it. I`m the biggest noob, so I hope you could help me out.
Is any way to run HA script using Assistant Relay?
Comprehensive video. Instant sub.
Thanx for the video and explanation... I followed the steps but get a error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: Cannot read property 'access_token' of undefined. Can you tell what went wrong?
I'm having the same issue. Still working on why.
@@nickwaldvogel6586 did you get a solution to this Nick?
Great video. nice and quick no b.s.! Lots of great info!
I did all.. registered test app ets... but if i press "next" in port 300 app just empty page opens... and nothing heppens..:( I cant go to code
same
@@nils5856 I have read that google has changed some API
Great video... I have one problem every time I try to execute the automation a message appears saying "Response error 500" is there any solution ?
is there a way to do this for amazon alexa as well?
When I click on next, I am getting send to the Website about:blank and not to Googles Website for creating the Auth Code.
I agree with @Andreas Skov, it no longer works. It leaves a gap, there is no way to send task easily to Google Assistant from Home Assistant. That would be great if Assistant Relay could update the Oauth login page in settings.
its a great video but is it also possible to let google talk to home assistant so i can say hey google turn on lights and that it goes with trough home assistant and than turn my lights on?
I'm having a weird issue and I would really appreciate any help with this. My installation is working fine. I can issue a command from the sandbox or from HomeAssistant automation and both works. The problem is this: when I type "shuffle jazz classics on kitchen tv" on google assistant, it understands and does it. However, when I type the same thing in the sandbox, Google says it does not understand. Can anyone guess why is this happening?