02-10-2024 11:37 AM - edited 02-12-2024 10:20 AM
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
02-10-2024 10:56 PM
Hi, i think diffuse is not working.
02-11-2024 01:36 AM
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
02-11-2024 03:07 AM
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
02-12-2024 10:11 AM
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...