Change .homeassistant location and name

I want to move the whole configuration folder to another location and rename it. What do I have to change so that it will still work afterwards?

I am on macOS using Home Assistant Core in venv.

There is a command line parameter hass -c <config folder> that allows you to specify the config folder.

1 Like

Is there some documentation about this?

Is this done when HA is running? Are there any risks, downsides to that?

I was looking yesterday, but couldn’t find any.

No, you would stop HA, rename/move the configuration folder, start HA with that command line parameter.
I am using this parameter in my dev environment - on macOS and running in venv started from the command line. I am not aware of any downsides. Just make sure the new folder location is still backed up.

1 Like

I understand, so I have to start Home Assistant with -c /path every time or it goes back to default, right?

Yes, that’s correct. I assume you have some sort of launchctl/launchd script to start HA? That’s where you would configure this parameter.

1 Like