cancel
Showing results for 
Search instead for 
Did you mean: 

assistant.event.OkGoogle not recognizing phrase

Klaxon
Community Member

using the below script to issue by voice "light me up" google responds by asking for what time - I think it is hearing me say "wake me up" and tries setting an alarm.

When I ask for "darken me" it turns off the wrong light.

Frustrated.

 

metadata:
  name: test voice activation # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
  description: turn test lamp on by voice activation  saying "ok google, light me up" and off using "ok google, darken me"

automations:
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: light me up # No need to add "Ok Google" to the query here.
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        on: true
        devices: Kasa1 - Test Room

  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: darken me
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        on: false
        devices: Kasa1 - Test Room

 

4 REPLIES 4

DWB1973
Community Member

Have you tried removing "me" from the query?  Does the automation work if you replace "light me up" with "enlighten", and "darken me" with just "darken"?

Klaxon
Community Member

Nope - just wants to give me a definition for enlighten.

DWB1973
Community Member

OK, another option is "Illuminate".  I know this query works because I have it setup for one of my lighting automations.

EricTsengTy
Community Member

Not sure whether you already know or not.
You can check Google Assitant Activity to know what Google Assitant recognized your voice command as.