Unable to create my own !include myname.yaml file

Heya all !

So I wanted to cleanup my configuration.yaml file a bit and split up different items into separate yaml files.
At the end of my configuration.yaml file, i added the following line :

alerts: !include alerts.yaml

I also created an empty alerts.yaml file at the same location where I have the configuration.yaml file, so basically in the root of the config folder.

However, when I try to check the validity of my configuration.yaml file, I get the following error :

Integration error: alerts - Integration 'alerts' not found.

So I’m not sure what I’m doing wrong here?
Side-question, will this allow me to update this alerts.yaml file without actually restarting home assistance since the changes wont be made in the configuration.yaml file again?

Thanks in advance !
Tom

It’s alert: (singular)

are you saying that I can’t choose my own “name” before the colon ? Or are there certain words that are reserved ?

So I changed it to alert and that indeed fixed my issue. Thanks so much!
But it seems that this does not allow me to only update the alert.yaml file withouth restarting my home assistance instance ? Is this somehow configurable ?

to continue, I tried to add this line :

blabla: !include blabla.yaml

and again on checking my configuration.yaml file, it complains that it can’t add the blabla integration.

Integration error: blabla - Integration 'blabla' not found.

Does this then mean that I can only add certain new yaml files ? and not just create my own ? I’m a bit lost here :frowning:

1 Like

Good question. So I also know because having same issue’s with custom “my_own_name.yaml”.

You can only add integrations you have in your system.
So
knx: !include whateveryouwant.yaml
Is valid, HA does not care what you name the yaml file (still follow naming rules tho)
If you actually have an integration thats called blabla, then yes you should be able todo just that.

2 Likes

Right ! So the name of the yaml file is not important, but the part before the colon should really be an existing integration ?

That makes sense now and shows me where I went wrong. thanks for clearing that up!

2 Likes

OOhhhh that explains a lot.