Changing folder for scripts.yaml didnt work!

Hi guys,
i have a problem with my scripts.yaml.
I try to change the standard folder from config/scripts.yaml to config/yaml/scripts/scripts.yaml
For this i add the following line to the configuration.yaml

script: !include_dir_merge_named yaml/scripts/

Than i moved the scripts.yaml to this folder.
So far everything is fine.
BUT when i now try to change my scripts i got the message, that i cant change them via UI, i have to migrate them!
So i migrate one and saved it. During saving i got a timeout for the script installation. "The script should be saved in the scripts.yaml and would be visible if the problem is solved"

But the script isnt written in the script.yaml in the yaml/scripts/ folder!!
Instead its written in a NEW scripts.yaml directly under the config/ folder!
Why? I changed the saving folder for the scripts.yaml, but the system tries to read from some where else!?!
Is this a bug or a feature?
Can someone help me!

P.S: using 2026.6.4
Thx

That's just the way it is.
HA is pretty dumb when used through its UI, and all scripts and automations are hardcoded to be saved in config/scripts.yaml and config/automations.yaml

What I sometimes do is creating a script/automation through the UI, then move the actual generated YAML to a "pure" YAML file. But then you cannot edit it through the UI anymore :confused:

UI managed scripts need to be located inside your config folder in scripts.yaml. That's a hard requirement for using the UI.

If you know how to do linux symbolic links, you can sorta move that file, but HA will always look there when using the UI.

thx for the "help", but then it makes no sence to move this files...

Don't shoot the messenger(s) :wink: