Hello everyone. I need you to help me finish this automation that I don’t know how to solve. The first problem I have is that I would like to activate the cinema_mode automation with a voice command that can be from a google-mini or an echo-dot. The other problem I have is with a home theater not responding to the first go command. I try to send a go command every second until the home theater (bdv_n9200w) is on. I hope someone can help me finish this automation and I thank you as always for the help of this forum.
With regards a google voice trigger, easiest way is to make a button helper in home assistant. Then expose this button to google home.
In google home make a routine triggered by a voice command of your choice and choose the action to be the button. I think the button can be found under “adjust home devices” from memory.
Then adjust your automation to be triggered by the button press.
I understand everything. I still can’t get it to appear in the helper button in google home or in echo dot. I exposed it in google assistant in nabu casa and it does not appear in google home app.
It doesn’t actually show up on either google or echo dot. I have many entities that were discovered but this button does not appear. Echo dot promptly tells me that a new device was discovered. But this button did nothing.
OK, if you are expecting it to show up in the main google home app it wont, you will need to make a google routine as stated and select “adjust home devices” and it should be listed under there!
If you check the button entity in nabu case exposed entities you will notice it shows up as a scene.
There for you need to select adjust scenes in the google home action not turn something on. It’s a scene because it’s a button so does not have an actual on / off state.
Why use routines? Just create a input_boolean and expose the input_boolean. Call the input_boolean “input_boolean.cinema_mode” and have the automation trigger off the switch and then "Hey Google Turn on cinema mode. The automation can then also flip the switch back to off when its done.
If you stay away from ‘google centric’ mixing of routines and such, you’ll have a far easier experience.
If there are mutiple modes (theatre, tv, etc) you can also use a input_select instead. and then you can say "Hey Google Set the Cinema mode to ‘theatre’ or whatever is in the input_select.
After you create the input_boolean, your automation will be like this:
Hello friends. @rossk thank you very much for the help.
Thanks to the help you are giving me, I managed to get it working halfway. The home theater sometimes does not turn on. So try to make it send a go command every few seconds. @calisro I misunderstood the issue of input_select. If I expose an input_select entity do I get several voice commands? I don’t quite understand what you explained to me. Sorry but I do not speak English.
So far what I’ve done is create a routine in google home and that triggers the input_boolean.
I’m saying, you don’t need a routine at all. Simply create a input_boolean.cinema_mode helper. Expose that to google_assistant. And then you can simply say 'Hey Google Turn on Cinema Mode". No routine required.
your automation then would have a trigger for input_boolean.cinema_mode when it turns on to run your automation like my example above.
Ah perfect. Understood. It’s working fine but the home theater doesn’t always turn on. Is the script I made ok? It can improve? I’d like you to try until it’s on.