evcc-io / hassio-addon

Hass.io add-on for EVCC
97 stars 61 forks source link

HA - Config not found even it is existing #116

Closed route662 closed 3 weeks ago

route662 commented 1 month ago

Core 2024.10.4 Supervisor 2024.10.3 Operating System 13.2 Frontend 20241002.4

Using the HA with the description here https://github.com/evcc-io/hassio-addon?tab=readme-ov-file and the given template there https://github.com/evcc-io/hassio-addon/blob/main/evcc/ha_evcc_template.yaml I get the following failure massage, restated HA, filename and Folder is 100% corretly set at "Konfiguration", which is "/homeassistant/evcc.yaml"

Config not found. Please create a config under /homeassistant/evcc.yaml. For details see evcc documentation at https://github.com/evcc-io/evcc#readme.

thecem commented 1 month ago

Set it to /config/evcc.yaml

route662 commented 1 month ago

I don't have /config/; why can I not store it under /homeassistant/ ?

thecem commented 1 month ago

/config in an Addon container is mapped to /config(/homeassistant) in HA environment, this is given by HA

route662 commented 1 month ago

I don' t get the remark :)?

thecem commented 1 month ago

Set it to /config/evcc.yaml

https://developers.home-assistant.io/docs/add-ons/configuration

route662 commented 3 weeks ago

I would not see at as closed, as the Konfiguration Panel is not setting the path as expected and as described in the description. To store the file in the config/ path to make it work is just a quick fix in my understanding?

thecem commented 3 weeks ago

Read the above link.

Possible mapping’s are limited by HomeAssistant:

List of Home Assistant directory types to bind mount into your container. Possible values: homeassistant_config, addon_config, ssl, addons, backup, share, media, all_addon_configs, and data. Defaults to read-only, which you can change by adding the property read_only: false. By default, all paths map to / inside the addon container, but an optional path property can also be supplied to configure the path (Example: path: /custom/config/path). If used, the path must not be empty, unique from any other path defined for the addon, and not the root path. Note that the data directory is always mapped and writable, but the path property can be set using the same conventions.

Your suggestion is not listed.

btw /config is the root for linked /homeassistant. The Addon container maps /config within the evcc container to /config (/homeassistant) in HomeAssistant.