Home Assistant release with the issue:
0.73.2
Last working Home Assistant release (if known):
Never worked so far
Operating environment (Hass.io/Docker/Windows/etc.):
Docker on Synology NAS, Raspberry PI
Component/platform:
https://www.home-assistant.io/components/script/
Description of problem:
It currently seems to be impossible to add multiple script includes. For example, one wants to include the scripts.yaml with the UI generated scripts and a folder with custom scripts.
For automations, this works great:
automation: !include automations.yaml
automation manual: !include_dir_merge_list automations
For scripts, the following should also work (slightly different as scripts are not lists as automations for some reasons):
script: !include scripts.yaml
script manual: !include_dir_merge_named scripts
Additional information:
Me and others tried various things but noone could bring it to work (see https://community.home-assistant.io/t/script-editor-and-split-up-files/40459/11)
You can achieve this by using packages https://www.home-assistant.io/docs/configuration/packages/
Yes, this is how I do it right now but it seems like a bug that it works with automation and silently fails with script.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This is still an issue in the latest version.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Still an issue
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This is still a frustrating issue.
Yup, just hit this issue. Automations can be handled this way but scripts cannot... makes no sense.
I just want to be able to use the UI when required but also have my existing scripts organised correctly into separate files.
automation extra: !include_dir_merge_list automations
automation: !include automations.yaml
script extra: !include_dir_merge_named scripts
script: !include scripts.yaml
Yes, this should be working the same across all includes. The suggestion from @drewzh makes sense.
Agree the approach from @drewzh makes sense, and would standardise the use of includes. It seems amiss that this bug is marked as stale, when the issue persists that you're unable to utilise both file-based and UI based scripts easily.
Ran into this same problem. Can we get this opened again?
Agree, still an issue and with more and more improvements to the editors this feels more urgent.
I want to be able to use the editor, as with automation, and still keep my specific hand made script files.
Still an issue in the latest version. Can this be re-opened or should it be re-created?
I would like to second repoening this or making a new issue if going toa single file is the future having both options enabled at the same time makes it a lot easier to migrate. Still seeing the issue ont he latest build
Home Assistant release with the issue:
0.107.7
Last working Home Assistant release (if known):
Never worked so far
Operating environment (Hass.io/Docker/Windows/etc.):
HA venv, DietPi OS running on pine64 SBC
Component/platform:
https://www.home-assistant.io/components/script/
Yes this is still and issue, would be good if it script would work the same as other types. 0.108.3
I've tried every different variation and still doesn't work.
Someone needs to open a new issue
Too bad this does not work yet. I have also gone through some moments I could not figure out what went wrong.
In the end, the advice of hard linking the UI generated file did work for me, but is still non-ideal.
Most helpful comment
Yes, this is how I do it right now but it seems like a bug that it works with automation and silently fails with script.