Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map app config to home-assistant addon_config dir #46

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions psacc-ha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<path returned by last command>`
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
Expand Down
5 changes: 4 additions & 1 deletion psacc-ha/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
}