I am trying to set up a notification group in a split YAML file but cannot figure out why it isn’t working. I have a groups.yaml with the following code:
When I take the whole notify section and move it to the parent configuration.yaml, the config check runs fine. If I leave the notify in the groups.yaml, I get the following error from check config:
Invalid config for [group]: value should be a string for dictionary value @ data[‘group’][‘notify’][‘entities’]. Got None. (See /config/configuration.yaml, line 26).
I kind of doubt it means anything for the issue above but, for added weirdness, if I change the config split to
groups: !include groups.yaml
the error changes to
Integration error: groups - Integration ‘groups’ not found.
Ok, this is my ignorance showing. I guess I assumed the part before the colon was a label that you could just make up but I see it’s a reference to an integration, as per Integrations - Home Assistant. I was wondering how the label was recognized/used by the rest of the system. This also makes more sense now that a split yaml is tied to an integration so the yaml can only include code that the specified integration can interpret.
Thanks for the quick lesson. Since that’s my only notification group, I’ll just leave it in configuration.yaml and will split if out if it gets larger or more complex.