evcc icon indicating copy to clipboard operation
evcc copied to clipboard

RTE / EDF TEMPO price integration

Open ioniks opened this issue 6 months ago • 19 comments

Is your feature request related to a problem? Please describe. In France, EDF offers a TEMPO tariff with Blue, White and Red days (with off-peak hour and full hour for all its tariffs) The rates are fixed for periods of 6 months, the color of the day are accessible from the next day (accessible in the morning around 7 or 8 am and confirmed from 11 am) by an API.

Describe the solution you'd like A call to this api to know the color of the current day + the color of the next day would be good with a fixed information of the price in the configuration (which would allow to adapt it for each change)

Additional context Mostly it is up to 16cts the Kwh, however in full hour in red day it is 73 cts the kwh !

Thanks

ioniks avatar Dec 07 '23 17:12 ioniks

Can you provide details for the API?

naltatis avatar Dec 07 '23 17:12 naltatis

Yes.

This repo use it for Home Assistant plugin : https://github.com/hekmon/rtetempo This is the documentation for the API : https://data.rte-france.com/catalog/-/api/doc/user-guide/Tempo+Like+Supply+Contract/1.1

ioniks avatar Dec 07 '23 18:12 ioniks

Looking at the API it is not clear to me where we can find out what the price for write/blue/red hours are?

andig avatar Dec 08 '23 08:12 andig

Like i say in the issue, the price is not in the API, just the color of the day. The price is fixed every 6 month and not in API, I proposed to be able to modify it in the configuration for this.

ioniks avatar Dec 08 '23 08:12 ioniks

@ioniks could you please share an access token for testing with [email protected]?

andig avatar Dec 08 '23 09:12 andig

@andig it's sended

ioniks avatar Dec 08 '23 09:12 ioniks

Re https://github.com/evcc-io/evcc/pull/11051#issuecomment-1847462131: I no longer understand the price structure. Can you please explain the tariff (again)? What are the colors? Only a price? Or price plus peak time (s)?

andig avatar Dec 08 '23 17:12 andig

Yes

For each day color there are two prices. off-peak and peak hours.

off-peak hours vary from one person to another in France. For example, I have from 10:38 p.m. to 6:38 a.m. and another person can have 10:48 p.m. to 6:48 a.m.

Actually the price table is : (cts €/kWh) Blue :

  • peak : 13.69
  • off peak : 10.56

White :

  • peak : 16.54
  • off peak : 12.46

Red :

  • peak : 73.24
  • off peak : 13.28

ioniks avatar Dec 08 '23 17:12 ioniks

Ok. And are the peak/off peak hours the same time for the different colors? Or does each color need its own time table in addition to its own prices? Is the off-peak price identical across all colors?

andig avatar Dec 10 '23 14:12 andig

Yes off peak are always the same time

ioniks avatar Dec 10 '23 14:12 ioniks

To summarise:

  • single off-peak price
  • single set of peak hours
  • different peak prices per color

Correct?

andig avatar Dec 11 '23 08:12 andig

No :

  • single set of peak hours
  • different peak prices and off-peak price per color

Actually : Blue off peak price : 10.56 cts € White off peak price : 12.46 cts € Red off peak price : 13.28 cts €

Every peak and off peak price is different for every color (6 different tarifs)

ioniks avatar Dec 11 '23 08:12 ioniks

Sounds like we should change the config like this:

type: edf-tempo
clientid: ...
clientsecret: ...
zones: // peak zones
  - ...
prices:
  red:
    peak: ...
    offpeak:
  blue:
    peak: ...
    offpeak: ...
  white:
    peak: ...
    offpeak: ...

andig avatar Dec 11 '23 18:12 andig

Yes, perfect.

Configuration of peak zone is more simple than configuration of off-peak zone.

👍

ioniks avatar Dec 11 '23 18:12 ioniks

hi @andig ,

Litlle update : The peak and off-peak hours for this subscription are the same nationally in France from 6:00 to 22:00 for peak hours and from 22:00 to 6:00 for off-peak hours

Sorry I didn’t get this information ...

But who can the most can the least ;)

ioniks avatar Dec 17 '23 17:12 ioniks

Hi @andig do you need more information ?

ioniks avatar Dec 28 '23 15:12 ioniks

Hi,

Is this feature is operationnal. I don't succeed to implement it on my config. I have an error :

panic: assignment to entry in nil map

goroutine 118 [running]: github.com/evcc-io/evcc/tariff.NewEdfTempoFromConfig(0x4000d3dfe4?) github.com/evcc-io/evcc/tariff/edf-tempo.go:73 +0x504

This is my test config :

tariffs: currency: EUR # (default EUR) grid: # See https://github.com/hekmon/rtetempo to generate api Application on rte-france.com type: edf-tempo clientid: xxx clientsecret: xxx prices: red: 0.3 blue: 0.3 white: 0.3

I don't succeed too with this config : prices: red: peak: ... offpeak: blue: peak: ... offpeak: ... white: peak: ... offpeak: ...

Please someone how succeed to configure it can share his config please?

A big Thanks

oliviermichaud avatar Feb 15 '24 17:02 oliviermichaud

@oliviermichaud

This is not finished

ioniks avatar Feb 15 '24 17:02 ioniks

@ioniks

Ok thank you for your fast answer. So i will wait.

For information, the EDF Tempo subscription volume increase a lot in France due to the price of electricity. I’m sure this development interest a lot of people.

Thank you for your Job. Evcc is so nice

oliviermichaud avatar Feb 15 '24 17:02 oliviermichaud