Custom component not found by configuration.yaml

Hi,

I have a custom component installed with HACS. I think installation is correct because I can find the folder under ‘config/custom_components’ in home assistant OS.

Based on the instructions of the component I have to edit the configuration.yaml to include some keys, like the following:

my_custom_component_name:
  key: some_key

unfortunately after I do this I receive an error from the validation check of the yaml:

Component error: my_custom_component_name - Integration ‘my_custom_component_name’ not found.

I thought everythin which is placed under the folder ‘config/custom_components’ in home assistant OS should be automatically recognized.

Is somebody able to explain why this is not the case? Are there any additional steps I need to perform?

Thanks

1 Like

Sounds like you should contact the author of this super-secret custom integration whose name is not revealed anywhere in your post.

1 Like

Did you do a restart after the install? The safe way would be install with HACS → restart → set config entries in configuration.yaml → restart. After that all should work.

But as Taras said, what component is that? Maybe there are known issues…

it is home_connect_beta it is a beta version of home_connect.

I cannot restart hass OS because the yaml is incorrect and it does not let me…

so you think the problem is on the component or something I am doing wrongly? There are no additional config steps to perform in hass OS?

yes I raised this issue :slight_smile:

That’s why I proposed the way noted above. Install and then restart, after the first restart change the config and restart again.

I haven’t had this for a long time, but there were components, that needed to be restarted after installation. IIRC HACS is one of them. :slight_smile:

So in your case, remove the config entries, restart so the component is recognized, change the config and restart again to load the config for the now known component. :slight_smile:

1 Like

thanks @paddy0174 I tried again as you suggested. I removed the component config then restarted, but after re-adding the component in the yaml I still get the same error and I cannot restart the OS because of the error in the yaml.

failed to call service homeassistant/restart. The system cannot restart because the configuration is not valid: Component error: home_connect_beta - Integration ‘home_connect_beta’ not found.