I dont know if this ist the correct category, but i could not find a category for automations.
I could not find this topic yet and my google search was also not very successful.
Is it possible to make an automation with the sentence for example :"Set language to: "
And then create an action that will set the language of the voice assistant (Settings → Voice Assistants → [assistantX] → Configuration → Language) to this language?
alias: Test Sentence Trigger
description: Test Sentence Trigger
triggers:
- trigger: conversation
command:
- Set the language to {language}
And further in the automation you can use the template: {{ trigger.slots.language }} to see what the sentence parser found for the target language.
I can’t think of a way to do this exactly, but if you are talking about a voice satellite that you would like to have it switch languages, then maybe try creating two assistants under Assist, with one configure for one language, and the other in another language, and then you can use the following action to tell the satellite which assistant to use:
Thank you for your fast reply. Maybe i do not understand correctly (i am a beginner is home assistant automation ans cripts and all this stuff ), or we are talking about different things.
My main Problem is, that i cannot find the entity i need to push the language to. I want to set the language for the main voice assistant (see image).
You don’t need to change the language in the settings. You need to change the pipeline itself. Create a copy of your Assist1 with a different language and select one of them
That’s right. Where you now have “Assist1” with language=German, create another instance (Settings->Voice assistants, click on “Add Assistant”) and give it a name say “Assist2” and set it up the same as Assist1 except change the language to your other language.
So in the automation I mentioned earlier, the config for “option” would be either: option: Assist1 or option: Assist2