evcc-io / evcc

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

Add dynamic pricing for dutch energy providers energyzero/anwb energy/mijn domein energie etc. #10241

Closed peebee01 closed 1 year ago

peebee01 commented 1 year ago

Can you extend the supported dynamic energy providers with https://www.energyzero.nl/?

they provide dynamic priced electricity to consumers as well as to various resellers.

there are already examples of homeassistant integration using their API

https://www.home-assistant.io/integrations/energyzero/ https://github.com/klaasnicolaas/python-energyzero

With the winter coming up, optimized charging based on dynamic rates will be more valuable to me than PV charging

andig commented 1 year ago

Are the rates a 1:1 mapping of EntsoE? If yes you could already use that. Could you also post a link to the actual api description?

chrisnewblack commented 1 year ago

Likely a mapping of EntsoE but with the ease of use of cost modifiers applied for the suppliers that use energyzero? @peebee01 see https://github.com/evcc-io/evcc/issues/5291

peebee01 commented 1 year ago

Thanks I have tried to setup entsoe but couldnt find the settings parameters to use for evcc.yaml. Is there an example config somewhere? Entsoe is not one of the example variable energy pricing providers in the example yaml file:

or variable tariffs

# type: tibber
# token: "476c477d8a039529478ebd690d35ddd80e3308ffc49b59c65b142321aee963a4" # access token
# homeid: "cc83e83e-8cbf-4595-9bf7-c3cf192f7d9c" # optional if multiple homes associated to account

# type: awattar
# region: de # optional, choose at for Austria
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)

# type: octopusenergy
# tariff: AGILE-FLEX-22-11-25 # Tariff code
# region: A # optional

# type: elering # Nordpool
# region: ee # or lt, lv, fi
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)

# type: energinet # Energinet using the price in DKK
# region: dk1 # or dk2
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)
andig commented 1 year ago

Added example in https://github.com/evcc-io/evcc/commit/9a27739a1dbf80ef4cd8c4e1f630e15b042eab04. Lets reopen if not sufficient.

peebee01 commented 1 year ago

Thanks, In the mean time I requested and received the token from entsoe (replaced by xxxxxx in the code below). For others using these dutch energy providers you have to use the mentioned tax amounts to get the nett price in evcc You can use the same for feedin to keep track of the money returned for the unused electricity (salderen)


# tariffs are the fixed or variable tariffs
tariffs:
  currency: EUR # three letter ISO-4217 currency code (default EUR)
  grid:
     type: entsoe # Entso-E european market data
     domain: BZN|NL # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areas
     securitytoken: xxxxxx # api token
     charges: 0.1435 # energyzero additional charges per kWh
     tax: 0.21 # additional tax (21%)

  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: entsoe # Entso-E european market data
    domain: BZN|NL # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areas
    securitytoken: xxxxxx # api token
     charges: 0.1435 # energyzero additional charges per kWh
     tax: 0.21 # additional tax (21%)