evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.36k stars 615 forks source link

Climate friendly charging with adapt.sh #5199

Closed thorstenwagner closed 1 year ago

thorstenwagner commented 1 year ago

It's not always possible to fully charge via solar, especially in the winter months. I think it would be great to take the predictions of https://adapt.sh/ into account. Like: Only charge if it's at least comfortable for the climate.

What do you think? Is it out of scope of evcc?

andig commented 1 year ago

We're working on a "winter" mode. Climate friendliness can pretty well be approximated with PV availability imho which is what we're gonna improve next. May revisit later, wontfix for time being. Thank you for the suggestion and interesting link!

thorstenwagner commented 1 year ago

A comment here: Maybe you could also use the current carbon intensity from electricity maps ( API: https://app.electricitymaps.com/zone/DE )

andig commented 1 year ago

We're working on a "winter" mode. Climate friendliness can pretty well be approximated with PV availability imho which is what we're gonna improve next.

That will work during the day, but not during night.

May revisit later, wontfix for time being.

...and we're already revisiting. See https://github.com/evcc-io/evcc/pull/5454.

Do you want to provide a PR on that basis? I won't spend time on it as I don't have an adapt.sh account but the pattern should be clear and simple. Please let me know if you need help.

thorstenwagner commented 1 year ago

Asked around on Twitter: https://mobile.twitter.com/pixelbaumarkt/status/1603811295958122517

Maybe Adrien from adapt.sh can help us.

Btw there is an API available https://documenter.getpostman.com/view/20356812/Uz5CKx4B - but unfortunately not free.

andig commented 1 year ago

Seems we're not getting support from adapt.sh, too bad.

andig commented 1 year ago

Siehe https://github.com/evcc-io/evcc/discussions/4554#discussioncomment-4556573

thorstenwagner commented 1 year ago

Hmm, that came via twitter: https://www.co2signal.com/ An alternative l?

andig commented 1 year ago

Nope- its missing the forecast that we need for planning :(

premultiply commented 1 year ago

https://gruenstromindex.de/ ?

andig commented 1 year ago

Guter Tipp: https://github.com/evcc-io/evcc/pull/5635. Da brauchts nur noch den ZIP Code den man sich fast noch per IP-Lookup besorgen könnte. Damit wäre es zero-config!