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

HASSIO: Adjust hassio config.json to map all data relevant directories #110

Closed
Frintrop opened this issue Sep 3, 2024 · 4 comments
Closed

Comments

@Frintrop
Copy link

Frintrop commented Sep 3, 2024

Describe the bug

In HASSIOs config.json only "config" is a mapped volume to hassio host.
Which mappings have to be configured for sqlite database and other configurations like SOC limit for chargers, soc handling for battery ?!

Steps to reproduce

Update HASSIO version of evcc..
Sometimes many configs are gone...

Configuration details

network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: xxx
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 30s # control cycle interval. Interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval

#database configuration for persisting charge sessions and settings
#database:
#   type: sqlite
#   dsn: /config/evcc.db

Log details

none

What type of operating system are you running?

HomeAssistant Add-on

Version

0.130

@goebelmeier
Copy link
Contributor

Did you change any Add-On configuration defaults? The default paths are

config_file: /config/evcc.yaml
sqlite_file: /data/evcc.db

and that's quite fine. /data is a persistent volume which is only accessible to that specific addon. More documentation can be found here https://developers.home-assistant.io/docs/add-ons/configuration/

@andig andig transferred this issue from evcc-io/evcc Sep 3, 2024
@thecem
Copy link
Collaborator

thecem commented Sep 3, 2024

Which mappings have to be configured for sqlite database and other configurations like SOC limit for chargers, soc handling for battery ?!

Actual there is only /config as volume configured and not planned to move to addon_config.

@jomach
Copy link

jomach commented Sep 27, 2024

@Frintrop @goebelmeier I also just had a look at this, because I was thinking about the same problem. I just restarted the evcc container and checked the creation time of the evcc.db. It looks fine. For example:

Screenshot 2024-09-27 at 09 30 01

Sep 25, today we have the 27 so the file is not being re-created. I think this can be closed

@Frintrop Note that the map config documentation says:
Note that the data directory is always mapped and writable, but the path property can be set using the same conventions.

@thecem
Copy link
Collaborator

thecem commented Oct 2, 2024

@thecem thecem closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants