Scripts all fail to save

I’m newly on 2025.11.1. I can’t seem to be able to create any scripts. I removed the scripts.yaml from the configuration.yaml and rebooted. When I create to create a notification via Portal UI or via YAML, it give me a timeout for 1-2 seconds then it goes away I can save but it never actually saves it. When I go back into scripts it’s empty with a “Create your first script”.

I don’t see anything in ha core logs that would point to a disk issue. Other functions are all working. Disk is only 27% used so plenty of space.

Here is the more complex notification that I was trying to save, but a simple notify iphone via the UI didn’t work either:

alias: "Thermostat: notify"
mode: parallel
fields:
  title:
    description: Title
  message:
    description: Body
sequence:
  - action: notify.mobile_app_iphone_awm_15
    data:
      title: "{{ title }}"
      message: "{{ message }}"

  - action: telegram_bot.send_message
    response_variable: tg
    data:
      config_entry_id: "01K29XM7J88P3JQNZ8CG2XDWDX"  # your bot’s entry id
      target:
        - 7938407510                               # your chat_id
      title: "{{ title }}"
      message: "{{ message }}"
      parse_mode: plain_text

  - variables:
      telegram_chats: "{{ tg.chats | default([]) }}"

If that’s not there, it might be why you are having problems…
I believe you need the scripts: key in configuration.yaml and/or a scripts.yaml file somewhere to contain the UI data.

Created just a script:, same issue scripts timeout and never save. tried adding an empty script: !includes conf/script.yaml same issue.

In configuration.yaml, you need

script: !include scripts.yaml

for the UI Script editor to save files.

That will work for having scripts, but you need to create your scripts using notepad++, vs code editor, file editor or something else, not the built-in UI script editor

(Same goes for automations, only /config/automations.yaml is accepted by the UI automations editor)

That would be fine as long as the conf/script.yaml file exists.

For that one a file has to exist at that location as well.

1 Like

But … I do have:

automation: !include automations.yaml

And when I use the portal to update/add new automation it is added/updated in the yaml file.

That doesn’t seem to work the same way for scripts.

script: !include script.yaml

The script.yaml does exist (and it’s empty)

-rw-r--r--    1 root     root             0 Nov 12 07:36 script.yaml

But when I try to add a script from Portal, it isn’t saved.

I tried both, having the script.yaml in the subdir conf/ and in the same directory as configuration.yaml.

script: !include scripts.yaml

scripts.yaml

Don’t forget you change anything, even a single letter in the configuration.yaml, you need to restart for HA to implement it.

I knew that but I must have missed a restart between all of the different changes. Loaded the script into the yaml and restarted again and now it shows up. Thank you.

1 Like