I have a file alexa_confirm.yaml with different answers for her, this file is in my config root.
I use
alexa:
intents: !include_dir_merge_named alexa/
to structure my code. That works great as it does for automation, scripts and so on. But here is my problem, inside one of the subfolder one of the Alexa intent use the Alexa_confirm.yaml and is search for it in its own folder. But the file is in config root. So how can i use that file without copying this file in every subfolder?
Thats not what i want, i have a lot or growing Alexa intent list and for structuring i want to have them in single files. That works great, but i do not want just “ok” as answer i want her to choose randomly from a list. And this list i add with Alexa_confirm.yaml like here.
But this file is in my config folder, but the file the code comes from is in Alexa/start/RunScriptIntent.yaml, so it can not see that file if i do not copy it into the same folder. But i do not want to move the file instead i am looking for a way to use it from config root so i can use the same file for all my Alexa intent where i want without copy it to every subfolder.
But be advised that there is currently an issue with using random in scripts so until that gets fixed, you’re only going to get one response until you restart HA and then it will use a new response from the list for everything.