Automations files in specifics files

Hi,
I recently split my automations into specifics files in /config/custom_configs.
I change my configuration.yaml to take thoses changes like that :

# My own handmade automations
automation manual: !include_dir_merge_list custom_configs/automations/

# Automations I create in the UI
automation ui: !include automations.yaml

But I have several automations that no longer launch automatically with this method, like that :

- id: "1724660984859"
  alias: Activation de l'alarme en mode absence
  description: Activation de l'alarme lors du départ.
  triggers:
    - device_id: XxX
      domain: device_tracker
      entity_id: XxX
      type: leaves
      zone: zone.home
      trigger: device
  conditions:
    - condition: state
      entity_id: sensor.oneplus_wifi_connection
      state: <not connected>
  actions:
    - action: notify.mobile_app_oneplus
      data:
        message: Que voulez-vous faire ?
        data:
          actions:
            - action: alarme
              title: Activer l'alarme
            - action: ne_pas_activer
              title: Ne pas activer l'alarme
        title: "Activation de l'alarme :"
      enabled: true
    - wait_for_trigger:
        - event_type: mobile_app_notification_action
          event_data:
            action: alarme
          trigger: event
        - event_type: mobile_app_notification_action
          event_data:
            action: ne_pas_activer
          trigger: event
        - event_type: mobile_app_notification_action
          event_data: {}
          trigger: event
      enabled: true
      timeout:
        hours: 0
        minutes: 5
        seconds: 0
        milliseconds: 0
    - choose:
        - conditions:
            - condition: template
              value_template: '{{ wait.trigger.event.data.action == "alarme" }}'
          sequence:
            - action: script.scriptalarm
              metadata: {}
              data: {}
            - if:
                - type: is_open
                  condition: device
                  device_id: XxX
                  entity_id: XxX
                  domain: binary_sensor
              then:
                - action: notify.mobile_app_oneplus
                  metadata: {}
                  data:
                    title: "Incident activation de l'alarme :"
                    message: La baie vitrée est ouverte.
        - conditions:
            - condition: template
              value_template: '{{ wait.trigger.event.data.action == "ne_pas_activer" }}'
          sequence: []
        - conditions:
            - condition: template
              value_template: "{{ wait.trigger == None }}"
          sequence:
            - action: script.scriptalarm
              metadata: {}
              data: {}
            - if:
                - type: is_open
                  condition: device
                  device_id: XxX
                  entity_id: XxX
                  domain: binary_sensor
              then:
                - action: notify.mobile_app_oneplus
                  metadata: {}
                  data:
                    title: "Incident activation de l'alarme :"
                    message: La baie vitrée est ouverte.

The automations don’t run anymore automatically, but run good if I run it manually.

I don’t understand why.

Is that a UI automation or a handmade one?

I know the docs use a label for the UI automations, but I don’t and it works fine like this:

automation: !include automations.yaml
automation manual: !include_dir_merge_list automations

The one UI automation I have in automations.yaml works fine.

It’s a UI automation, that I migrate to specific file, I added label to the automation.

So you created it in the UI, then copied the YAML to a specific file in /config/custom_configs/automations/?

Did you delete the UI version? Can’t have two automations with the same ID. I always use UUID4 ids to avoid accidental duplication of the UI timestamp ones.

Yes I created it in the UI, then copied the Yaml to a specifig file. And after, I deleted lines in automations.yaml.
Need to change the ID ?