08-15-2023 11:30 PM
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
08-17-2023 10:55 AM
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"?
08-21-2023 11:30 PM
Nope - just wants to give me a definition for enlighten.
08-22-2023 06:46 AM
OK, another option is "Illuminate". I know this query works because I have it setup for one of my lighting automations.
08-18-2023 09:37 PM - edited 08-18-2023 09:37 PM
Not sure whether you already know or not.
You can check Google Assitant Activity to know what Google Assitant recognized your voice command as.