Hi,
As you can probably tell am a newbie. I am trying to add a custom component and all the documentations says I have to put it under /config folder manually. The problem is I don’t have /config folder. I am using qemu/kvm image on my Linux system to test and I can see that everything is running in docker containers.
It’s the folder where your configuration.yaml is.
If I knew where that file is, I would have found the folder . I edited that file once using the web file editor.
I want to add a custom integration
I would say it somewhat depends on what mechanism you use to get to your config directory, but generally speaking it is located at /config
(but yes wherever the configuration.yaml
file is at). Some examples:
- File editor add-on using the web interface, you are already at
config
. - Terminal & ssh add-on, its web interface or using ssh takes you to
/root
directory and config is locate/root/config
- Samba Share add-on, from Windows its located at
\\homeassistant.local\config\
The file editor is good to edit the configuration.yaml but not to create a custom_components folder. I already have access to the filesystem via the VM directly without the need of SSH (login command from the VM) and again there is nothing under /root except .docker and .ssh. Everything is in docker containers and not on the docker host.
This is the qemu/kvm image downloadable from https://www.home-assistant.io/hassio/installation/
UPDATE
I installed the ssh addon and it is not really an ssh to the host OS, it took me into the container where I can see /config. I guess this needs to be changed in the docs
In the File editor, hit the “Browse” folder, and you’ll see a folder with a “+” sign which will allow you to add a directory.
But if you really want to operate in a more raw environment go to the HassOS console (for QEMU/KVM its the virt manager’s console for the hass image), and login in as root
(no password) and then enter login
. This puts you into the HassOS linux CLI. Couple of ways from here:
-
cd /mnt/data/supervisor/homeassistant/
. This is the physical volume the config directory resides on. -
docker exec -it homeassistant /bin/sh
. This will launch a shell that puts you in the HA docker container and you will be placed in the config directory.