Google Home Mini custom commands and detect of source of command

Hello,

Is there a way to:

  1. Use custom commands to Google Home Mini and use them in HA? For example i would like to say: Good Morning or i am at Home and with this start HA action or swich some swich in HA. But i do not want to say: Turn on Good Morning or Turn on I am at Home as using exposed swiches.
    I see only way to use scenes, predefined in Google Home App. Is there better and directer way?
  2. To deteced from which Google Home Mini the command was made? To make an actions only in room where it was said.

Thanks a lot!

  1. Yes just expose a script. You will need to say ‘Run <Script Name>’. If you dont want to say run…, make a routine for whatever you want, that executes ‘Run <Script Name>’.
  2. Not that I am aware of.

For #2 in limited testing (I only implemented it this past weekend) this has worked for me

Thanks a lot!

  • I did not understood the second part.
    The script must contain one more script that runs first one?
    Could you make a small example?
  • No scenes or somthing else is need to be done in google home but only expose a script?

To run a script from Google Assistant, you need to say to it 'Run <script name>. It will then run. That obviously is kinda clunky and you actually want something easy to remember.

For example, say your script is called ‘Execute at bed time’. To google assistant you need to say, ‘Hey google, RUN Execute at bed time’. It would then run the script. Bit yuck.

You then go into Google Assistant Routines on your phone, and create a routine, where you say ‘Good night’, and that executes ‘RUN Execute at bed time’. You now just say ‘Hey Google, Good night’. Script now runs.

I meant exactly this in my first post :smiley:
Thanks a lot!