-
Notifications
You must be signed in to change notification settings - Fork 59
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
Implement Public Addon Config #75
Comments
Some add-ons need access to all these add-on-specific config folders. For example:
When those updated I will update the addon and release notes. |
implemented |
Don't you think we should consider a non-breaking migration? |
whats your proposal? |
So I could migrate my |
You have your db in Find your old DB and copy it to |
My proposal is to first of all roll back to /config, because of all the confusion this generates - see evcc-io/evcc#10744 The HA Supervisor Team got that too and will push out an update which makes /config and /addon_config side-by-side and this will allow us to do config migration in the background. See home-assistant/supervisor#4697 and https://github.com/home-assistant/developers.home-assistant/pull/1975/files#diff-9ae15e79c349af300614e97def45c1260fcde69f1f194c7a169f5ac2843cb898R62 for details |
old status, next try will be when HA has fixed there problems. I will leave this open. |
Currently frenck is doing a hacky migration, see https://github.com/hassio-addons/addon-appdaemon/pull/285/files#diff-a3cb8f1cd3251bfb32a8e374ec6ce13a10be81b009300b9f570d5b6fd70f0352R8 So what they do:
I'll try this inside my own fork and will monitor the official HA addons what they're doing. |
Hello everybody and first of all: thank you for providing evcc as this wonderful Home Assistant add-on! 👍 A few days ago I tried to install the add-on by following the installation instructions in the README and unfortunatelly I have to say, that I got very confused 🙈 The instructions still tell the user to copy evcc.yaml to the Finally, after some rather frustrating tinkering, I got the add-on to work properly 🎉 To spare future users this ordeal, please fix the README 🙏 Since almost two months have past since your last comments, I got curious what the state of affairs was. The revert mentioned above (home-assistant/supervisor#4697) was reverted yet again (home-assistant/supervisor#4702). So it seems that was Frenck is doing in his add-ons (mapping If you find the time to implement that, you could just leave the README as is 😄 |
Is there any idea out there? It looks like that evcc.db in /data is not persistent in docker host (Home Assistant) instead its only locally store in docker container, or where to find it on the host ? |
@goebelmeier, we should give it another try…? |
Just run a docker inspect on the container id. Should be I've used |
@klein0r an easy way: https://github.com/evcc-io/hassio-addon/blob/main/README.md#how-to-find-and-copy-dataevccdb documentation is adapted. |
@thecem Thanks, that was exactly my solution: https://www.youtube.com/watch?v=ibrmbByk0MU |
From my point of view it's worth trying. But first of all we need to extend https://github.com/evcc-io/evcc/blob/master/packaging/docker/bin/entrypoint.sh to contain the migration logic. So:
If that logic exists, we could
|
following mapping is possible:
"homeassistant_config":
Addon Configuration "addon_config":
Addon Configuration |
With this we could trigger following: If a file
Advantages:
|
There is a new preferred way to store configs. We should implement that and somehow provide a migration for legacy installations
https://developers.home-assistant.io/blog/2023/11/06/public-addon-config/
https://developers.home-assistant.io/docs/add-ons/configuration/#add-on-advanced-options
The text was updated successfully, but these errors were encountered: