Yes there is no trigger in my automation: I would like use my voice or my text as trigger. Also, my intent is not to turn off a single light but to initiate a series of actions following the “Goodnight” command, triggered by voice or text using Assist.
* The automation.trigger service bypasses conditions by default and does not create a trigger variable so it is not appropriate for use with automations that rely on trigger-variable-based templates or trigger-id-based conditions.
Yes, thank you! When I wrote the update note I converted the automation into a script.
Then I didn’t know how to link a script to the intent_script because of the lack of explicit documentation about it. If there is, please point it out, thank you very much!
Thank you also to @Didgeridrew, I’ll try to add action.service=script.my_script
is it possible to have the source (the name of the speakeror satellite) in the trigger ?
I would like to have an automation that don’t do the same things depending on the context.
like for instance i want to be able to say “light” and it turn on the light in the correct room
or just saying “turn off” and it turn off the light or the music on the correct room
but how do i get information on the source ? like the area, satellite, device, pipeline or anything to have an idea from where this sentence was said ?
Each voice assistant has an entity called “Assist in progress”. You can use that as a condiditon.
So, if you say turn off the lights, and the Bedroom voice assistant state is Assist in progress, it will turn off the lights in the bedroom.
thanks for the idea, it’s a start, unfortunately it can’t be super reliable because it means I must not have 2 speaker assisteing at the same time. but it’s a good idea to start thanks
They said the context exist they know from which satellite it’s coming from, i hope it will be made available
Never mind. I don’t think that will work. I believe my first suggestion is the best idea right now.
If I come up with something better, Ill let you know.
Each satellite has their own ID, but its not available as an entity.