I'm using the HA Voice Assistant Preview Edition and trying to create an automation where I want, as a condition, which voice assistant heard the command. The automation will wait for the command "turn on the lights", it will then determine which voice assistant heard the command, and if it is the one for that room it will turn on the primary light in the room.
I have the basic automation:
`alias: Great Room - Turn on the lights
description: ""
triggers:
- trigger: conversation
command: Turn on the lights
actions: - action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.ceiling_light
mode: single`
I am struggling to figure out a way to determine if the command was issued to the great room voice assistant. My understanding is that Alexa and Google Assistant support an attribute of "last_heard" and "last_command" and I could check those in a template. However, I can't find an equivalent for the voice assistant preview addition.
Any guidance on a way to accomplish this would be greatly appreciated.
Thanks in advance for the help