Where to put custom_components directory? (docker)

I have installed home assistant using docker, instalation path:
/usr/share/hassio/homeassistant
In this directory i also have configuration.yaml and it works
image

But where should i put custom_compopents directory?
Tried to

/usr/share/hassio/homeassistant/custom_compopents
/usr/share/hassio/homeassistant/config/custom_compopents

Any other suggestions?

1 Like

You have installed home assistant core. There is no Hassio.

I believe this document has the details you are looking for but I can’t open it to check as I am behind a corporate firewall that bans google docs:

https://drive.google.com/drive/folders/1oKhnQ1rz-Yd5HheA8rNk5YNq8e67-5Kh

The folder is already there as far as i can see from your screenshot. It must be in the same directory as configuration.yaml as far as I know. (In my setup it is like this) The two things you tried both say compopents instead components

I’ve put it there, it doesn’t works

What doesn’t work?

I’ve put there hacs and hysen/climate.py scripts, and they’re not shown in ui after reboot

Did you follow the instructions step-by-step for hacs from your link?

They says to put hacs directory to custom_components directory:


i assume that i need to put it here: /usr/share/hassio/homeassistant/custom_compopents
But on next step it should appear on ui so i can add that module, but it not appears, seems like wrong path…

Did you restart Home Assistant? Did you refresh your browser cache?

Yes, after each change i’m restarting it, takes few minutes to restart.

Did you refresh the browser cache? Nothing under integrations?

You also have to set up the custom component in your configuration.yaml file.

you should have an entry there that looks like this:

hacs:
  token: !secret github_access_token
  appdaemon: True
  theme: True

or you should add HACS thru the UI integrations page.

That’s not how you spell components

Edit - ignore me, presumed you’d copy/pasted the path, but I see from the screenshot it’s spelled correctly on the system.

It’s not appearing in UI, i can’t select it… strange, looks like all is correct…

Any errors in the log? I remember recently there was someone who hadn’t copied all the files over because they missed the hidden directory. Log would show missing files.

And/or can you checksum the contents of your /custom_compopents/hacs directory and compare it with a freshly downloaded copy on another computer.

is that another coincidental spelling error or are you just carrying the original spelling error on thru?

:slightly_smiling_face:

I was trying to be funny originally, but then halfway through changed my mind and just stuck with the actual suggestion but forgot to change the spelling back.

I’m too tired for internet apparently :see_no_evil:

1 Like

I thought it was funny.

My motto is “never miss an opportunity for sarcasm”. :laughing:

1 Like

Might be a bit too late, anyway:

What comes to my mind is that you might have several custom_components directories.
Make sure you give the right path to your volume option of your docker run command.

For your case it could be something like:
docker run -d --name homeassistant --privileged --restart=unless-stopped -v /usr/share/hassio/homeassistant:/config --network=host ghcr.io/home-assistant/home-assistant:stable