diff --git a/psacc-ha/README.md b/psacc-ha/README.md index 8d29a2d..ccd0ca5 100644 --- a/psacc-ha/README.md +++ b/psacc-ha/README.md @@ -20,14 +20,7 @@ You can find more details here : https://www.home-assistant.io/common-tasks/os#i ## Modify config file 1. [SSH to your raspberry or virtual machine](https://developers.home-assistant.io/docs/operating-system/debugging/#ssh-access-to-the-host) -2. Run the following command - -```shell -docker inspect -f '{{ .Mounts }}' $(docker ps -aqf "name=acc") | grep -o '/mnt/data[^ ]*psacc' -``` -It should return PSACC config path. - -4. cd `` +2. cd into `/addon_configs/b9f12d83_psacc` (if not found check for directory ending in `psacc`, or run `find /addon_configs -name "*psacc" -type d`) 5. You can now edit any config file ```shell nano charge_config.json diff --git a/psacc-ha/config.json b/psacc-ha/config.json index c4a4e6c..2dba68e 100644 --- a/psacc-ha/config.json +++ b/psacc-ha/config.json @@ -20,7 +20,10 @@ "ingress": true, "ingress_port": 5000, "panel_icon": "mdi:car", - "environment": {"PSACC_PORT": "5000", "PSACC_CONFIG_DIR": "/data"}, + "map": [ + "addon_config:rw" + ], + "environment": {"PSACC_PORT": "5000", "PSACC_CONFIG_DIR": "/config"}, "options": { "PSACC_OPTIONS": "-r --web-conf -c" }, "schema": { "PSACC_OPTIONS": "str" } }