Please Help! Can not Split my config file "Integration error"

Sorry to bother everyone with something so seemingly simple feel like I am loosing the plot here, I cant even split my config file. This seems so simple to do using !inlcude, but every time that I do I get the same error message. Do I have setting preventing me from adding code to the config or do I need to start again.

Every time that I Google the issue it is just more people showing how to split the config in the same way that I am doing it.

Steps taken:

  1. created a new file called “testarea.yaml” in the same place as the configuration.yaml.

  2. In what I believe to be the correct location in the in the configuration file I included the testarea: !include testarea.yaml

It looks like this:

I thought this was simple and have tried this with about 20 different named files but I always get the following message when I test before a restart:

Am I doing something wrong, do I have a duff home assistant green or

The bit before the colon symbol must be a valid top level key. testarea: is not a valid key.

1 Like

hey Zoogara, my apologies, but what does a top level valid key mean. Am I typing it in incorrectly? I would really appreciate help with what to type in.

Have a read of this - Splitting up the configuration - Home Assistant

There is also a link in there to some example ones on Github.

The filename can be anything you like, but the bit before the colon needs to be a valid key - like sensor: or mqtt: or zone: - i.e the file you include is the configuration that would normally follow that key.

1 Like

Maybe I am getting the error because I am trying to set up a blank work area for later as apposed to creating one that I need for current work.

Thank you for the help and I will read the article a few more times until it all goes in. I hope you have a great day.

One you haven’t made up yourself. Typically an integration.

1 Like

Ah that makes sense, thank you.