Configuration.yaml issue, but HA was running fine in the past

Hi, i’m using my HA for 2 yers now but after a power fail it starts in Recovery mode. I checked the logbook and there is a message my configuration.yaml is not ok.

The fault: * [548039643712] The system cannot restart because the configuration is not valid: Error loading /config/configuration.yaml: expected ‘’, but found ‘’ in “/config/configuration.yaml”, line 29, column 1

On line 29, column 1 the integration of my home thermostat starts (rooted Toon Thermostat). This was working fine for, lets say, 400 days…

The file:

Example configuration.yaml entry

sensor:

  • platform: toon_smartmeter
    host: 192.168.178.97
    port: 80
    scan_interval: 10
    resources:
    • gasused
    • gasusedcnt
    • elecusageflowpulse
    • elecusagecntpulse
    • elecusageflowlow
    • elecusagecntlow
    • elecusageflowhigh
    • elecusagecnthigh
    • elecprodflowlow
    • elecprodcntlow
    • elecprodflowhigh
    • elecprodcnthigh
    • elecsolar
    • elecsolarcnt
    • heat
    • waterflow
    • waterquantity

After searching on this forum I could not find a direct answer for this issue.

image

In the first 29 lines of your configuration.yaml file, are there any !include statements? If there are then the error message’s “line 29, column 1” isn’t the 29th line in the file. It’s the 29th line after the YAML processor has expanded all other files referenced via !include statements. In other words, it’s unlikely it’s complaining about the Toon sensor.

What is the first !include statement in configuration.yaml? For example, if it’s including automations.yaml then that is the file you should inspect for syntax errors.

Ah, this is my first include:
image

Thanks for your help, i found the issue. in groups.yaml there was Smart Meter instead of Smart_Meter

I’m happy!

You’re welcome!

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.

For more information about the Solution tag, refer to guideline 21 in the FAQ.

2 Likes

You appear to have marked your own post with the Solution tag.

The custom of this community forum is for the topic’s author (you) to mark the first, or best, reply/solution to the topic’s question/problem. My post explains why the error message you received shouldn’t be taken literally and where to look (in the first included file) to find the cause of the error message.


EDIT

Moderator has moved the Solution tag.

1 Like