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

Ostrom - errors when configuring #18929

Closed
1 of 2 tasks
ibuprofen600 opened this issue Feb 18, 2025 · 5 comments
Closed
1 of 2 tasks

Ostrom - errors when configuring #18929

ibuprofen600 opened this issue Feb 18, 2025 · 5 comments
Labels
tariffs Specific tariff support

Comments

@ibuprofen600
Copy link

ibuprofen600 commented Feb 18, 2025

Describe the bug

Adding Ostrom as documented triggers an error: "Error during startup. Check your configuration and restart.
tariff [grid] cannot create tariff type 'template': invalid key: price"

Configuration details

Image

Log details

starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main  ] INFO 2025/02/18 09:50:41 evcc 0.200.1
[main  ] INFO 2025/02/18 09:50:41 using config file: /config/evcc.yaml
[db    ] INFO 2025/02/18 09:50:41 using sqlite database: /data/evcc.db
[mqtt  ] INFO 2025/02/18 09:50:41 connecting evcc-2044051639 at tcp://core-mosquitto.local.hass.io:1883
[mqtt  ] DEBUG 2025/02/18 09:50:41 tcp://core-mosquitto.local.hass.io:1883 connected
[main  ] INFO 2025/02/18 09:50:41 listening at :7070
[main  ] FATAL 2025/02/18 09:50:41 tariff tariff [grid] cannot create tariff type 'template': invalid key: price
[main  ] FATAL 2025/02/18 09:50:41 will attempt restart in: 15m0s

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.200.1

@ibuprofen600
Copy link
Author

ibuprofen600 commented Feb 18, 2025

a bit of online research shows others having success merging 'type' and 'template' like this:

Image

this will cause a different error for me:

"Error during startup. Check your configuration and restart.
tariff [grid] cannot create tariff type 'ostrom': decoding failed due to the following error(s): '' has invalid keys: price"

@andig
Copy link
Member

andig commented Feb 18, 2025

Pls share trace log

@andig andig added the tariffs Specific tariff support label Feb 18, 2025
@ibuprofen600
Copy link
Author

Pls share trace log

evcc-20250218-130234-trace.log

attached

@andig
Copy link
Member

andig commented Feb 18, 2025

'ostrom': decoding failed due to the following error(s): '' has invalid keys: price"

Your config does not contain "price". Either you have a yaml/db conflict or our application uses a different yaml/db than you think.

@andig andig closed this as completed Feb 18, 2025
@ibuprofen600
Copy link
Author

@andig actually, I was using the (experimental) UI configuration to change from a fixed tariff to Ostrom (comment fixed out, add Ostrom in). Doing it in this way was causing the conflict. Once I went and edited the evcc.yaml file under /addon_configs/49686a9f_evcc/ manually, the issue got resolved (my evcc lives in Homeassistant)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tariffs Specific tariff support
Projects
None yet
Development

No branches or pull requests

2 participants