Configuration.yaml won't load

I’m having a hard time with configuration.yaml. I even tried restoring an old working version from yesterday but keep getting errors and I’m failing to see why. I’ve tried using a website that says my yaml is valid. Any ideas?

The error is:

Configuration invalid!
 Error loading /config/configuration.yaml: while parsing a block collection in "/config/automations.yaml", line 1, column 1 expected <block end>, but found '<block mapping start>' in "/config/automations.yaml", line 14, column 2

and my configuration.yaml is:

# 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

utility_meter:
  energy:
    source: sensor.envoy_202310076364_lifetime_net_energy_consumption
    cycle: daily
    unique_id: tarrifs
    tariffs:
      - on_peak
      - off_peak
      - super_off_peak

sensor:
  - platform: template
    sensors:
      aps_tariff:
        friendly_name: APS Tariff
        unit_of_measurement: 'USD/kWh'
        value_template: >
          {% set tariff = { "OnPeakSummer": 0.22335, "OffPeakSummer": 0.0809175, "OnPeakWinter": 0.2113875, "OffPeakWinter": 0.080925, "SuperOffPeak": 0.023745 } %}
          {% set time = { "month": (now ().strftime ('%m') | int), "hour": (now ().strftime 		  ('%H') | int), "weekday": (now ().weekday () | int) } %}
          {%if (time.month >= 5) and (time.month <= 10) %}
          {%if (time.hour >= 16) and (time.hour < 19) and (time.weekday < 5) %}
          {{ tariff.OnPeakSummer }}
          {%else%}
          {{ tariff.OffPeakSummer }}
          {%endif%}
          {%else%}
          {%if (time.hour >= 16) and (time.hour < 19) and (time.weekday < 5) %}
          {{ tariff.OnPeakWinter }}
          {%else%}
          {{ tariff.OffPeakWinter }}
          {%endif%}
          {%endif%}

device_tracker:
  - platform: synology_srm
    host: 192.168.1.1
    port: 8001
    username: **edited**
    password: **edited**
    verify_ssl: false
    interval_seconds: 10
    consider_home: 180
    new_device_defaults:
    track_new_devices: true

proximity:
  home:
    ignored_zones:
    devices:
      - person.1
      - person.2
      - person.3
    tolerance: 50
    unit_of_measurement: mi

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.1.77
  ip_ban_enabled: true
  login_attempts_threshold: 5

Error says that something is wrong in automations.yaml, perhaps identation around line 14

Armin

I’ve been staring at that so long I overlooked the obvious. I must have fixed a prior error in the main config and didn’t look at the others. Thank you very much for being my second set of eyes on this.