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?
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…
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.
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.
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.