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

consistant grünstromindex examples #673

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

naltatis
Copy link
Member

fixes #672

@naltatis naltatis merged commit 6a993bd into main Nov 19, 2024
1 check passed
@mpw96
Copy link

mpw96 commented Nov 19, 2024

@naltatis Now I'm really confused. The evcc.yaml of the demo instance shows this:

  co2:
    type: grünstromindex
    zip: 12349

And it's not only grünstrom, that was just an example. What is the desired way of configuring all co2 tariffs?

@naltatis
Copy link
Member Author

@mpw96 both ways work and will work in the future.

Some background: The type: template notation uses our template abstraction that adds metadata and is the basis for generating our documentation, cli assistant and config ui. See https://github.com/evcc-io/evcc/blob/master/templates/definition/tariff/gruenstromindex.yaml#L13-L15

type: gruenstromindex is the concrete implementation (go file). In case of Grünstromindex its a 1:1 match. We have 1 template that maps to 1 specific implmentation. For other devices or tariffs its more complex. A lot of meter templates e.g. use type: modbus under the hood.

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

Successfully merging this pull request may close these issues.

Bug in der Dokumentation der CO2 Tarife
2 participants