Separate config and data directories

Currently, HA stores all static configuration and dynamic data in the same folder :/config. It would be nice to have separate folders so that it’s possible to separate static configuration and resources that get version controlled from dynamic data (databases, logs, temp files, etc)

For example, my use case is kubernetes. My static, version controlled YAML needs to be mounted as a kubernetes secret at /config…but secrets are read only, which means that HA can’t write its data there. What I’d like to do is mount /config for static configuration and /data for all the rest. This is a common pattern for other applications.

In order to maintain backwards compatibility, perhaps there could be a command line argument to specify different directories.