cancel
Showing results for 
Search instead for 
Did you mean: 

Google assistant can run only first script from Google home script editor

martin_macikk
Community Member

Hi, i have a problem

 

When I created a script in script editor and add starter "assistant.event.OkGoogle"  it can trigger only 1.part of the script...

When I say "Increase fan speed"  (it's in the 1. part in the script) it works but,

when I say "Increase fan speed two times"  (it's in the 2. part in the script) it searches on the web. WHY?

metadata:
  name: Fan speed controll
  description: Adjust fan speed

automations:

#1.part (speed +1)
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: Increase fan speed
   
      - type: assistant.event.OkGoogle
        eventData: query
        is: change fan speed

    actions:
      - type: device.command.ActivateScene
        activate: true
        devices: Fan speed +

#2.part (speed +2)
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: Increase fan speed two times
   
      - type: assistant.event.OkGoogle
        eventData: query
        is: change fan speed two times

    actions:
      - type: device.command.ActivateScene
        activate: true
        devices: Fan speed +
      - type: device.command.ActivateScene
        activate: true
        devices: Fan speed +

 It does the same in every script with two parts.

1 REPLY 1

EricTsengTy
Community Member

Feels like someone ever mentioned that here, and the problem hasn't been fixed yet.