cancel
Showing results for 
Search instead for 
Did you mean: 

okGoogle command can't start a broadcast [Solved]

Hollen_ar_mor
Community Member

Hello,

In Automation, a "okGoogle" query can't make a "broadcast" !

With the YAML below, it works when I click on the routine (on my phone or web), but it doesn't when I say the query to an assistant.

Somebody else has this issue ?

 

metadata:
  name: test
  description: Scripted automation

automations:
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: test repas

  actions:
    - type: device.command.SetVolume
      volumeLevel: 80
      devices: Clock Salle - Salle

    - type: time.delay
      for: 2sec

    - type: assistant.command.OkGoogle
      okGoogle: diffuse "c'est l'heure de déjeuner"
      devices: Clock Salle - Salle

 

4 REPLIES 4

Pitsom
Community Member

Hi, i think diffuse is not working.

 

In French, "diffuse" works. When I click on the routine's arrow, it works.

It just doesn't work when  I speak.

 

This one doesn't work neither :

 

metadata:
  name: test
  description: Scripted automation

automations:
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: test repas

  actions:
    - type: device.command.SetVolume
      volumeLevel: 80
      devices: Clock Salle - Salle

    - type: time.delay
      for: 2sec

    - type: assistant.command.Broadcast
      message: it's lunch time
      devices: Clock Salle - Salle

Pitsom
Community Member

This one works if i say Test.

 

metadata:

  name: Ok Google

  description: Ok Google

automations:

  - starters:

      - type: assistant.event.OkGoogle

        eventData: query

        is: Test

    actions:

      - type: assistant.command.OkGoogle

        devices:

          - Nest - Wohnzimmer

        okGoogle: Termine

 

 

Hollen_ar_mor
Community Member

Thank you for the answer.

"time.delay" put the mess...

This one works perfectly : 

metadata:
  name: test
  description: Scripted automation

automations:
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: test

  actions:
    - type: device.command.OnOff
      on: true
      devices: Guirlande 1 - Salle

    - type: device.command.SetVolume
      volumeLevel: 80
      devices: Clock Salle - Salle

    - type: assistant.command.Broadcast
      message: it's lunch time
      devices: Clock Salle - Salle

 

But with this one, the speaker says nothing :

metadata:
  name: test
  description: Scripted automation

automations:
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: test

  actions:
 
    - type: device.command.SetVolume
      volumeLevel: 80
      devices: Clock Salle - Salle

    - type: time.delay
      for: 3sec
      
    - type: assistant.command.Broadcast
      message: it's lunch time
      devices: Clock Salle - Salle

 

Weird...

For any other action, "time.delay" works well...