My yaml file isnt working

Hi, the check says:

Error loading /config/configuration.yaml: while parsing a block collection
  in "/config/configuration.yaml", line 17, column 5
expected <block end>, but found '?'
  in "/config/configuration.yaml", line 30, column 5

My yaml file:

# 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
sensor: !include sensors.yaml
discovery:

waste_collection_schedule:
  sources:
    - name: ics
      args:
        file: "www/Heichelheim.ics"
      customize:
        - type: Gelber Sack
          alias: GelberSack
          icon: mdi:recycle
        - type: HausmĂĽll
          alias: Restmuell
          icon: mdi:trash-can
        - type: Altpapier
          alias: PapierTonne
          icon: mdi:trash-can-outline
    fetch_time: "7:00"
    day_switch_time: "7:30"

So whats wrong with it?

It looks okay. Did you install & configure the integration and restarted HA before adding this to your configuration.yaml?

looks like 2 extra spaces on the fetch_time: and day_switch_time: lines.
Those entries should be aligned with sources according to the documentation…
image

2 Likes

Indentation. The last two lines look suspicious, probably should be at sources: level.

1 Like

It works, thank you guys.

1 Like