cancel
Showing results for 
Search instead for 
Did you mean: 

assistant.event.OkGoogle Query Not working, but used to

PapaTurtle
Community Member

I have this script which used to work flawlessly 

metadata:
name: Computer Lighting Control
description: Computer On
automations:
#### Middle of the Night ####
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: Turn on computer
- type: assistant.event.OkGoogle
eventData: query
is: Turn on the computer
- type: assistant.event.OkGoogle
eventData: query
is: computer on
condition:
type: time.between
before: sunrise-1sec
after: 12:00 AM
weekdays:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
actions:
- type: device.command.ColorAbsolute
devices:
- Computer - Shack
color:
name: Red
- type: device.command.BrightnessAbsolute
brightness: 20
devices:
- Computer - Shack
#### Early Morning ####
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: Turn on computer
- type: assistant.event.OkGoogle
eventData: query
is: Turn on the computer
- type: assistant.event.OkGoogle
eventData: query
is: computer on
condition:
type: time.between
before: sunrise+5hour # Roughly before 11:00:00 AM
after: sunrise
weekdays:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
actions:
- type: device.command.ColorAbsolute
devices:
- Computer - Shack
color:
name: Candle Light
- type: device.command.BrightnessAbsolute
brightness: 50
devices:
- Computer - Shack
#### Day Time Hours ####
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: Turn on computer
- type: assistant.event.OkGoogle
eventData: query
is: Turn on the computer
- type: assistant.event.OkGoogle
eventData: query
is: computer on
condition:
type: time.between
before: sunset-30min
after: sunrise+5hour1sec # Roughly after 11:00:01 AM
weekdays:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
actions:
- type: device.command.BrightnessRelative
devices:
- Computer - Shack
brightnessRelativePercent: 75
- type: device.command.ColorAbsolute
devices:
- Computer - Shack
color:
name: Warm White
#### Night Time Hours ####
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: Turn on computer
- type: assistant.event.OkGoogle
eventData: query
is: Turn on the computer
- type: assistant.event.OkGoogle
eventData: query
is: computer on
condition:
type: time.between
before: 11:59 PM
after: sunset-30min
weekdays:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
actions:
- type: device.command.BrightnessRelative
devices:
- Computer - Shack
brightnessRelativePercent: 25
- type: device.command.ColorAbsolute
devices:
- Computer - Shack
color:
name: Candlelight
#- type: device.command.BrightnessRelative
# brightnessRelativePercent: 25
# devices: Computer - Shack

 

Now over the past two days or so it has stopped work. So now I tried a very simple script with a query.

metadata:
name: Turn on the computer
description: When someone says turn on the computer to a speaker turn on the
computer light.
automations:
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: Turn on the computer
actions:
- type: device.command.OnOff
devices:
- Computer - Shack
on: true

And this doesn't work either. what is the problem? I can manually run it with the button in the editor & it runs fine. What is the problem? Anyone else noticed this?

1 Recommended Answer

ClausZiegler
Community Member

YES - it is working again from this morning

View Recommended Answer in original post

17 REPLIES 17

a1vdu
Community Member

Same here since yesterday. Running the routine manually works just fine, but the voice command doesn’t start the routine. I’m from Italy and I was in the preview program. I tried leaving but so far nothing changed

dabizweb
Community Member

Same problem here from Spain. Ok Google commands from starter using automation scripts no longer working

JJS139
Community Member

Same problem, no voice triggered scripts using Ok Google assistant working.   Did same test as other post - simple script does not work.  Works on manual trigger, works voice trigger from my phone, but not from home hub or nest audio devices.  


Automation history shows no event started, but my Google history for assistant does show that event was started by voice but it never makes it to the automation.

Nes58
Community Member

Same problem here (Netherlands), is working from mij phone, but not from the Nest Hub's. on preview.

jaylotta
Community Member

I am able to start scripted automations using the Home app UI but not voice.  When I went to Google Home Settings -> Routines, all of my automations show 0 actions.  Weird since I can go into the Google Home -> Automations tab and they are all there and run fine.  I used the Home UI on the phone to create a simple voice activated script and it works fine.  All of the existing automations were created using the Web UI with the assistant.event.OkGoogle starter type.  I don't know what the new automation I created looks like in declarative script because I can't see the code.

jaylotta
Community Member

One other thing to add:  When I use a Nest display to view the automations and attempt to run any of them it just says "Sorry, I don't understand."

bmplaza123
Community Member

 same problem for me, voice not trigged scripted routines

ClausZiegler
Community Member

And same problem in Denmark

tecking
Community Member

I have the same problem in Japan...

Jalterach
Community Member

From Italy, I started tinkering to understand what had happened, but now I see that this is a much more widespread issue. Google should fix this problem, as it is causing major disruptions worldwide.

TJimmy
Community Member

Same problem in Czechia, last time it worked on 20. 11.

Fredt1
Community Member

Same problem in Belgium...

Nobbeh
Community Member

same here in Sweden 

bmplaza123
Community Member

It's working again. I don't know if Google fixed it or if it coincided with a change I made in the settings. 

ClausZiegler
Community Member

YES - it is working again from this morning

Yes finally fixed here tol

Neil_S
Community Member

Fixed for me this morning in the UK also