-
Notifications
You must be signed in to change notification settings - Fork 9
Add support for sending commands to Google Assistant #10
Comments
This would be very appreciated! |
+1 |
Mainly the reason would be to use broadcast command from google routines, so after automation normal voice could say "Dishwasher finished". Without all this "broadcasting ...." |
This is a thing I would also appreciate... As a way to trigger google home routines from home assistant 👍 Maybe I can also contribute a PR if I find some time... from researching a bit in previous projects I think commands can just be send to by omitting the google-assistant-broadcast/assistant.js Line 72 in 4b29492
So there could be 2 endpoints one for broadcasts and one for generic text commands. |
There are other solutions for sending commands instead of broadcasts from HA to Google, but keep in mind that you won't be able to trigger the built-in Home/Away routines. Doesn't work. The rest of the routines you can. |
What ways do you suggest? So I can have great nice google assistant voice instead of google translate robotic tts. Home Assistant would trigger command or routine and that would be perfect. |
yes I would like to use it in a similar way. I already forked the repo and implemented it but I could not test it unfortunately because I am not able to complete the auth workflow... I opened an issue #11 for this... all in all integrating this was frustrating so I stopped for now. |
@ismarslomic you should consider re-opening this. you have said in the HA community forums and in issues in github you can't broadcast to individual devices but you can. in greg's original solution (assistant relay) if you set broadcast to false and converse to false (so that a command would be sent) so that you passed something like this: {"user":"{{yourvaliduser}}","command":"broadcast to office hello, this is a test message."} it will send to just the speaker(s) in the room "office". This was functionality Google introduced a year or two ago. However, it only works when the message is sent as a command. This works so reliably that on another home automation platform I could create virtual individual speakers and then make a virtual speaker send the command "broadcast to {{the_provided_speaker_room_name}} {{original_message}}". I have been broadcasting to individual speakers for almost a year. I have finally cutover the rest of my devices to HA though so I can no longer use the solution from the other home automation platform. I am hoping you can allow this functionality here so I can continue to broadcast to individual speakers now that I've moved over completely to HA. |
Interesting, I was not aware of that you need to send the broadcast as a command to get it work with specific speaker. Thanks for the heads up. I can give it a shot and see how it works! |
I have added a way to opt out the prefix of I did also manage to send Can anyone with multiple speakers test the command and directing to specific speaker feature? Use following image: See also updated README doc |
Just updated, Commands and single-speaker broadcast work for me. |
Commands works, but does it work for routines for you? I have tried to enable routine with command not working |
Nice! For me it worked sending message to specific speaker when writing in english, but not in Norwegian. I think I did read somewhere that broadcasting to specific speaker was not supported in all languages |
I haven't tested, as I only use HA for automation. I think Assistant routines has poor user experience and don't see any benefit using it when I got HA |
I need routines just for only 1 purpose. Announce message. Then you won’t hear any intro like Broadcasting… just straight non robotic words. This would be best feature to integrate response on speakers in automations. |
As far as I understand there is a few things that the command APi on google cannot do. Amongst those; Routines and starting music. I will try to find a source later! |
I see, well. I'm not sure why routine commands doesn't work as I dont use Google Assistant for those use cases (thus reason why I wanted to keep this solution as narrowed and simple as possible). But feel free to explore it and see if you can manage to get it work. Personally, I would place a Flic button just beside the dishwasher and press it manually, so it triggers an HA automation (via webhook), which uses this broadcast solution to make an announcement. Closing this issue as support for commands has been provided. |
I have that solution, but I really hate this "Broadcast incoming...." I would like ONLY the phrase Dishwasher finished |
Could you allow to send commands instead of broadcast. So I could turn on some routines or send commands to assistant?
The text was updated successfully, but these errors were encountered: