Dzielenie/Splitting konfiguracji

Przepraszam za pewnie błahe pytanie początkującego, ale nijak nie mogę rozgryźć tematu:
Próbuję rozdzielić automatyzacje i przenieść je do osobnego folderu:

  1. dodałem w pliku /homeassistant/configuration.yaml
    linię “automation custom: !include_dir_merge_list ./automations”
# 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
automation custom: !include_dir_merge_list ./automations
  1. utworzyłem folder automations:
  2. w folderze automations są dwa pliki .yaml
  3. w plikach jest kod przeniesiony z pierwotnego: automations.yaml
- alias: WIFI - nowe urządzenie w sieci
  trigger:
    platform: event
    event_type: tplink_router_new_device
  action:
    service: notify.mobile_app_telefon_adam
    data:
      message: Nowe urządzenie {{ trigger.event.data.hostname }} MAC {{ trigger.event.data.mac_address
        }}
      title: NOWE urządzenie w sieci
  1. nie ma błędów konfiguracyjnych po ponownym uruchomieniu HA
  2. automatyzacji nie widać na liście automatyzacji, na liście stanów encji widnieją jako niedostępne.

Co robię nie tak?

Jak prawidłowo zamieszczać YAML, inny kod lub logi w postach na forum

W mojej opinii lepszym rozwiązaniem jest Package w Home Assistant.

./ oznacza katalog w górę, jesteś w głównym drzewie katalogów więc dajesz bez ./

automation custom: !include_dir_merge_list automations

Ten wariant też przerabiałem - bez powodzenia:

# 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
automation custom: !include_dir_merge_list automations

W pliku automations.yaml - który widzę mam takie zapisy:

- id: '1739125984454'
  alias: Radio rano 7:00
  description: ''
  triggers:
  - trigger: time
    at: 06:50:00
  conditions: []
  actions:
  - action: switch.toggle
    metadata: {}
    data: {}
    target:
      entity_id:
      - switch.radio_yamaha_on_off
      - switch.yamaha_wxc_50_on_off
  mode: single

W plikach szczegółowych w katalogu automations - których nie widzę takie:

- alias: WIFI - nowe urządzenie w sieci
  trigger:
    platform: event
    event_type: tplink_router_new_device
  action:
    service: notify.mobile_app_telefon_adam
    data:
      message: Nowe urządzenie {{ trigger.event.data.hostname }} MAC {{ trigger.event.data.mac_address
        }}
      title: NOWE urządzenie w sieci
  id: 78efd81c79df44a7ba2647ab68fa22ef

Nie jest czasami problemem ilość spacji na początku kodu?

Taki jest zapis w include

---
id: '2175879175501'
alias: House - Night Mode Deactivated
initial_state: on
trigger:
  - platform: homeassistant
    event: start
  - platform: time
    at: "04:10:00"
condition:
  condition: and
  conditions:
    - condition: time
      after: '04:10:00'
      before: '21:00:00'
    - condition: state
      entity_id: input_boolean.night_mode
      state: 'on'
action:
  - service: input_boolean.turn_off
    entity_id: input_boolean.night_mode

Rozwiązanie okazało się bardziej oczywiste - jak zwykle to zresztą bywa.

Przy tworzeniu nowych plików w edytorze trzeba dodawać rozszerzenie.
Myślałem, że jest ono domyślnie dodawane.

Jak widać na moich poprzednich zrzutach rozszerzeń brakowało.

Wszytko działa.