I have to copy a file in the same directory as configuration.yaml. Where is it located in the docker version? The path is not shown on top of the about page.
It should be specified either in the Docker run command or docker-compose.yml
PATH_TO_YOUR_CONFIG
Disclaimer:
I use HAOS native X-86, bare metal. I neither need nor want the extra complication of learning containers or virtualizations.
My configuration.yaml file is in the config folder. I also have the Samba Share add-on installed which allows you to enable file sharing across different operating systems over a network. It lets you access your config files with Windows and macOS devices.
Here’s my HomeAssistant folders in Windows File Explorer: (My Home Assistant server is named “Home”, but yours will be “HomeAssistant”)
Unfortunately I dont find the config directory. When I open a it in portainer, the path is simple /config. But under debian the /config folder is empty.
There is a volume mount
/config /home/smart/homeassistant/config
but the folder is also empty
Shouldn’t it be the other way around?
PATH_TO_YOUR_CONFIG:/config
It would be alot easier if you posted your configuration / compose file.
/home/smart/homeassistant/config
Which one. Where is it located?
There are no browse buttons. There is no volume listed, which belongs to homeassistant. But there are the mounts in the inspect file:
“Mounts”: [
{
“Destination”: “/etc/localtime”,
“Mode”: “”,
“Propagation”: “rprivate”,
“RW”: true,
“Source”: “/etc/localtime”,
“Type”: “bind”
},
{
“Destination”: “/home/smart/homeassistant/config”,
“Mode”: “”,
“Propagation”: “rprivate”,
“RW”: true,
“Source”: “/config”,
“Type”: “bind”
}
],
There’s nothing in that folder?
I have to admit that I don’t know much about portainer. I used docker-compose when I ran HA core in docker. I run HA supervised in a VM now.
That’s what you need to tell us. Show how you have set it up.
Can you post your portainer stack?
Here is mine.
The first volume is where i can find my configuration.
# home_assistant
version: '3.3'
services:
home-assistant:
restart: unless-stopped
container_name: home-assistant
privileged: true
image: ghcr.io/home-assistant/home-assistant:stable
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
volumes:
- /home/mele/homeassistant:/config
- /var/run/docker.sock:/var/run/docker.sock
- /run/dbus:/run/dbus:ro
environment:
- TZ=america/toronto
- PUID=1000
- PGID=1000
- UMASK=007
network_mode: host
You need to post the entire either docker-compose.yaml or the Docker run command you used to install Home Assistant into Docker.
where that info is located is not a valid question. It doesn’t “exist” anywhere aside from the initial method you used to install Home Assistant into Docker.
Thank you very much for the support of your all. There was an error in the mount command. Now I have access to the configuration folder.