Making an automatiozation gets me error and I can no longer edit it

Hello, I encountered an error after updating to 2024.8. Whenever I create an automation in the UI and save it, every automation becomes uneditable, and I receive an error stating, “This automation cannot be edited from the UI because it is not stored in the automations.yaml file, or doesn’t have an ID.” To resolve this, I must either duplicate and edit each automation or modify the automations.yaml file in any manner, even adding a new line seems to correct the issue.

I suspect this may be related to recent automation rewrites, although I’m not entirely certain. I haven’t attempted safe mode since I’m connected via Cloudflare tunnel and not on a local network at the moment. My configuration.yaml is nearly default, except for the added sensors and the configuration of trusted proxies.

Has anyone encountered this issue as well? I tried to google the error, but no good results came up.

Attaching configuration.yaml


# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
    
sensor:
  - platform: rest
    name: Twitch Follower Count
    resource: https://api.twitch.tv/helix/channels/followers?broadcaster_id=<redacted>
    headers:
      Authorization: !secret twitch_key
      Client-ID: !secret twitch_ID
    value_template: '{{ value_json.total }}'
    scan_interval: 5 
    
  - platform: rest
    name: Twitch name
    resource: https://api.twitch.tv/helix/users?id=<redacted>
    headers:
      Authorization: !secret twitch_key
      Client-ID: !secret twitch_ID
    value_template: '{{ value_json.data[0].display_name }}'
    scan_interval: 300

and automations.yaml

- id: '1723124212464'
  alias: <redacted> dosiahla 10 follows na twitchi
  description: ''
  trigger:
  - platform: numeric_state
    entity_id:
    - sensor.twitch_follower_count
    for:
      hours: 0
      minutes: 1
      seconds: 0
    above: 9
  condition: []
  action:
  - device_id: 9fd2f20ac712c5ec27fbeef9a300d682
    domain: mobile_app
    type: notify
    message: "\U0001F389Gratulujem lásočka"
    title: Dosiahla si 10 followerov!
  - action: light.turn_on
    metadata: {}
    data:
      rgb_color:
      - 255
      - 0
      - 208
      brightness_pct: 100
    target:
      entity_id: light.triones_0205110006ec
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: light.triones_0205110006ec
  mode: single
- id: '1723124495158'
  alias: Notifka na vypnutú TV
  description: ''
  trigger:
  - platform: device
    type: turned_off
    device_id: 6f3302e4c2d88c7a6f9084825501b411
    entity_id: c76926672c5017c92480a7a9b80eeff3
    domain: remote
  condition: []
  action:
  - metadata: {}
    data:
      message: TV sa práve vypla.
    action: notify.mobile_app_<redacted>_iphone
  - action: notify.mobile_app_samsung_galaxy_s22_ultra_5g
    data:
      message: TV sa práve vypla.
  mode: single
- id: '1723183227455'
  alias: novy followik
  description: ''
  trigger:
  - platform: state
    entity_id:
    - sensor.twitch_follower_count
  condition:
  - condition: template
    value_template: '{{ trigger.from_state.state|int < trigger.to_state.state|int
      }}'
  action:
  - action: light.turn_on
    metadata: {}
    data: {}
    target:
      device_id: 8aa660f9435ce8b975a8b342365c787c
  - action: light.turn_on
    metadata: {}
    data:
      effect: rb_cross_fade
    target:
      entity_id: light.triones_0205110006ec
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      device_id: 8aa660f9435ce8b975a8b342365c787c
  mode: single