evcc-io / hassio-addon

Hass.io add-on for EVCC
90 stars 53 forks source link

Can't find evcc.db #97

Closed chriscomputerfreak closed 2 months ago

chriscomputerfreak commented 3 months ago

Where is the evcc.db located in the home assistant installation? Thanks!

goebelmeier commented 2 months ago

/mnt/data/supervisor/addons/data/49686a9f_evcc in the underlying Home Assistant OS. See https://www.home-assistant.io/common-tasks/os/ for details

thecem commented 2 months ago

@chriscomputerfreak did this answer help?

fritzrichter commented 2 months ago

It seems that the /data directory is unique for each plugin/docker-container and not shared among others. If you ssh into the machine you actually do not ssh into the machine but into the ssh docker of the ssh-agent, therefore you can not find the data directory of another plugin. I actually migrated from a previous evcc installation and had to replace the evcc.db as well, here is what I did.

  1. Copy over the new evcc.db to a shared directory like /config
  2. Copy the file into the docker image with docker cp evcc.db c3f120885218:/data/addons/data/49686a9f_evcc/evcc.db where c3f120885218 is the docker_id of the running ghcr.io/home-assistant/amd64-hassio-supervisor:latest
thecem commented 2 months ago

I think this answer described the solution. thx to @fritzrichter