Error loading /config/configuration.yaml:

Hi everyone,

I’m encountering an issue with my Home Assistant configuration and could really use some help. I’ve been troubleshooting for a while but can’t seem to resolve it. Here is the error message I’m getting:

Error loading /config/configuration.yaml: expected ‘’, but found ‘’
in “/config/configuration.yaml”, line 3, column 1

configuration.yaml:

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

# Text to speech
tts:
- platform: google_translate

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

notify:

#W-LAN Schalter
tplink:
  discovery: false
  switch:
    - host: 192.168.178.60
    - host: 192.168.178.62
    - host: 192.168.178.63
#W-LAN Schalter

system_health:

# Example configuration.yaml entry
sensor:
  - platform: command_line
    name: CPU Temperature
    command: "cat /sys/class/thermal/thermal_zone0/temp"
    # If errors occur, make sure configuration file is encoded as UTF-8
    unit_of_measurement: "°C"
    value_template: "{{ value | multiply(0.001) | round(1) }}"
    
group:
  kitchen:
    name: Kitchen
    entities:
      - binary_sensor.presence_6
      - binary_sensor.tradfri_motion_sensor

logger:
  default: info
  logs:  
    homeassistant.components.zha: debug
    zigpy: debug
    
zha:
  zigpy_config:
    ota:
      ikea_provider: true                        # Auto update Trådfri devices
      ledvance_provider: true                    # Auto update LEDVANCE/OSRAM devices
      salus_provider: true                       # Auto update SALUS/Computime devices
      inovelli_provider: true                    # Auto update INOVELLI devices
      #otau_directory: /path/to/your/ota/folder  # Utilize .ota files to update everything else
      
zha:
zigpy_config:
 ota:
   otau_directory: /config/zigpy_ota
   ikea_provider: true
   ledvance_provider: true
   
logger:
default: info
logs:  
  homeassistant.components.zha: debug
  zigpy: debug

Thank you!

remove this

I removed the line and restarted HA. Now this error appears when checking the configuration:

Integration error: default - Integration ‘default’ not found.
Integration error: logs - Integration ‘logs’ not found.
Integration error: zigpy_config - Integration ‘zigpy_config’ not found.

This one is to be removed too

And this one.

:disappointed_relieved:

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

image

And this one should be

logger:
  default: info
  logs:  
    homeassistant.components.zha: debug
    zigpy: debug

The zigpy_config looks correct, if you have ZHA installed. See

No indentation on this line

tts:
- platform: google_translate

Should be

tts:
  - platform: google_translate

Now i cant restart HA anymore.

New error:
Error loading /config/configuration.yaml: while parsing a block collection
in “/config/configuration.yaml”, line 32, column 7
expected , but found ‘?’
in “/config/configuration.yaml”, line 35, column 7

That is actually valid. As long as the indentation under each block is consistent it can be anything, 0, 1 or 2 spaces etc…

Valid:

foobar:
  - something
  - something_else

Also valid:

foobar:
- something
- something_else

Not valid:

foobar:
  - something
- something_else

Two spaces is just convention.

I removed and all errors are gone. [May I remove this?

     logger:
default: info
logs:  
  homeassistant.components.zha: debug
  zigpy: debug

Don’t remove this

logger:
  default: info

Now I have deleted half of the config file. This is what it looks like now and there is still an error… :sob:

Error loading /config/configuration.yaml: while parsing a block mapping
in “/config/configuration.yaml”, line 2, column 1
expected , but found ‘’
in “/config/configuration.yaml”, line 27, column 6

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

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

notify:

#W-LAN Schalter
tplink:
  discovery: false
  switch:
    - host: 192.168.178.60
    - host: 192.168.178.62
    - host: 192.168.178.63
#W-LAN Schalter

system_health:
      salus_provider: true                       # Auto update SALUS/Computime devices
      inovelli_provider: true                    # Auto update INOVELLI devices
      #otau_directory: /path/to/your/ota/folder  # Utilize .ota files to update everything else
     
     logger:
default: info

indentation is still wrong

logger:
  default: info

try with this:

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

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

notify:

#W-LAN Schalter
tplink:
  discovery: false
  switch:
    - host: 192.168.178.60
    - host: 192.168.178.62
    - host: 192.168.178.63
#W-LAN Schalter

system_health:

     
logger:
  default: info

Perfect. Thank You!