Cannot add Customize.Yaml to Configuration.Yaml

Hi everyone. I am a new user, but I have managed to get Hassio up and running. I am now at the point where I am trying to put pictures to people. I understand the format for the customize.yaml, but I cannot get my configuration.yaml to accept it. When I check my config this is the error I get:

Error loading /config/configuration.yaml: mapping values are not allowed here
in “/config/customize.yaml”, line 5, column 17

I have pursued the internet and these forums and have discovered two solutions:

  1. Add Homeassistant:
    homeassistant:
    customize: !include customize.yaml

This causes an error on line 5 of my configuration.yaml regardless of where I locate it (top, bottom, middle, even placed it on line 5). Because of the error I did further research. The documents say these lines need to be added depending on the age of your install (I am at the latest).

The second solution is similar to the first, but it does not have “homeassistant:”
2. Add the customize line in the configuration.yaml
customize: !include customize.yaml

This causes the exact same error on my check of the configuration.yaml as the first. Again I added it to every section of the configuration.yaml to try to get away from the line 5 error, but nothing worked.

What am I missing? Do I need to program the pictures in the configuration.yaml instead of the customize.yaml? Is there a better solution of fix I haven’t been able to find? Please point me in the right direction

I’m not sure if it is an indentation error. Ion your configuration.yaml it should be like this:

homeassistant:
  customize: !include customize.yaml

and not like this:

homeassistant:
customize: !include customize.yaml

Can you please post your configuration.yaml file (and don’t forget to format it correctly by pressing the </> button) and your customize.yaml file.

Sorry, I didn’t format it correctly. Here is the configuration.yaml for the first solution that did not work. I added it to the very top:

# Configure a default setup of Home Assistant (frontend, api, etc)
homeassistant:
  customize: !include customize.yaml
  
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
  base_url: https://my_domain.duckdns.org:8123
  server_port: 8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

# Text to speech
tts:
  - platform: google_translate

# Discovery Setting
discovery:
  ignore:
    
  enable:
    
        
# Z-Wave USB Setting
zwave:
  usb_path: /dev/ttyACM0

# MQTT Discovery settings
mqtt:
  discovery: true
  discovery_prefix: homeassistant
  broker: core-mosquitto
  username: !secret mqtt
  password: !secret mqtt_pass

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

This is the second solution in my configuration.yaml. It gets exactly the same error the previous configuration.yaml does:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
http:
  base_url: https://my_domain.duckdns.org:8123
  server_port: 8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

# Text to speech
tts:
  - platform: google_translate

# Discovery Setting
discovery:
  ignore:
    
  enable:
    
        
# Z-Wave USB Setting
zwave:
  usb_path: /dev/ttyACM0

# MQTT Discovery settings
mqtt:
  discovery: true
  discovery_prefix: homeassistant
  broker: core-mosquitto
  username: !secret mqtt
  password: !secret mqtt_pass

customize: !include customize.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

I hope this is easier to understand than what I posted earlier. Thank you for your help

Does the customize.yaml file actually exist?

If I read correctly, line 5 is in relation to default_config:?

Try removing default_config: and adding in the components you want from the default one at a time.

this is the top of my configuration.yaml

homeassistant:
  name: Home
  latitude: !secret latitude
  longitude: !secret longitude
  elevation: !secret altitude
  unit_system: imperial
  time_zone: America/Chicago
  customize: !include customize.yaml
  packages: !include_dir_named packages

you can see how the whole thing lays out in my github linked below.

Yes, thank you, the customize.yaml exists. Currently line five is in relation to default_config, but I have moved the lines around throughout the configuration.yaml and I still get an error on line 5.

Thank you, I did follow that, I have tried the way you have it listed, but seem to continue getting the line 5 error in my configuration.yaml.

When HA reads that file, it expands out things that are “included”. It could be failing on default_config: after it’s “expanded” so it could be one of those things.

Thanks for the guidance. I tried without default_config, and I have put default_config in different sequences. I will try again though