Location of Custom Configurations in Home Assistant Docker Installation

I am trying to add an integration to work with a few of my Sonoff smart switches. I have the Home Assistant docker container installed on Ubuntu. It is working. The installation is in

/home/<username>/docker/homeassistant

where <username> is my username. The configuration.yaml file is in this directory. I have tried putting the custom_components/sonoff folder in:

/home/<username>/docker/homeassistant
/home/<username>/docker/homeassistant/config
/home/<username>/docker/homeassistant/.homeassistant/

When I add the sonoff: entry to the yaml file and validate it. Home Assistant tells me it can’t find the integration.

Where should the custom_components folder be located? It appears the location is different on different installations of Home Assistant, and for Docker the documentation merely says
<config dir>/custom_components

but doesn’t really say what <config dir> should be.

Nope, that folder always goes in the same location no matter what install method is used.

the folder will go in the same directory where your configuration.yaml file is located.

so if the configuration.yaml file is located here:

/home/<username>/docker/homeassistant/configuration.yaml

then the custom_components folder will go here:

/home/<username>/docker/homeassistant/custom_components/

Thank you. I figured out that it was a user permissions problem on the custom_components folder

1 Like