I am working on a custom component to fetch energy prices and information from the ENTSO-e Transparency Platform (https://transparency.entsoe.eu/).
Day ahead energy prices are added as a sensor and can be used in automations to switch equipment.
This integration is in a very early state and a work in progress. All feedback and help is welcome!
API Access
You need an ENTSO-e Restful API key for this integration. To request this API key, register on the Transparency Platform and send an email to [email protected] with “Restful API access” in the subject line.
Brilliant! Exactly what I need with my upcoming dynamic energy contract and home battery. Ideally I would like to have all values for the upcoming 24hrs - use case is 1) charge car if/when electricity is cheapest 2) determine buy and sell optimum for home battery; typically there are 2 peaks per day.
Will try your component and see if I can help out a bit; my python is not that good though - really curious about other use cases.
Thanks! It’s good to know about use cases to determine what way to go with this integration.
My use cases are similar; also charging a car at cheap hours and buffering my heat pump at low prices.
I am also looking into a home battery.
How would an automation with 24 values look like for you? I am hesitant to add all hours, as it could make it a bit messy, and am not sure if this has value.
I was already looking into this. Will probably be added by the end of next week if it is not that difficult. Already done! You can now see the cheapest and most expensive hours.
Hi Jacco, that’s a good question. I want to build some logic to determine the trough and the peak, essentially any value which is next to/surrounded by 2 values which are higher is the trough (buying point) and any value which is next to 2 values which are higher is the peak (selling point)
This logic can be built in an automation within HA (input_datetime.nextpeak /next trough); second automation which triggers charge battery and triggers discharge battery.
Alternatively this could be built into python directly I suppose. Will take this further on GitHub.
Even better would be to link this with emhass; this tool optimizes usage based on expected solar production and historic usage of the house.
As I am not a programmer, I need some help to get the info into home-assistant and was wondering if it is possible for you to integrate this into your API-reading component, as there seems to be a ENTSO-e reference in the 2nd API link.
Hope you have time to look into this, much appreciated!
In the meantime, this might be helpful to you to get current EnergyZero prices into HA. It worked for me, though I’m still looking for a way to get all-in prices.
It seems like the the links you send just give the day ahead prices, right? This is what my custom component does as well. You can then just use this integration.
Very interesting, especially the cost modifier template part! Unfortunately, the Energyzero prices are not completely the same as what the ENTSO api shows.
Would you consider to integrating other api’s like Energyzero into this integration? Or should any deviations from the ENTSO data be fixed with the cost modifier?
The idea is that the cost modifyer is for deviations of individual suppliers from the day ahead prices. Getting API’s from all individual energy suppliers is a lot of work, so I am not planning on doing that. I opened a discussion to share modifyer templates:
Just installed the component, and it seems like a massive opportunity for significant savings on energy bills.
Does anyone have any blueprints to share how to actually build automations around the sensor data we get?
Also, it would be quite interesting to have “cheapest x hour(s) slot/interval” available, so tasks consuming electricity for multiple hours (washing machine, EV charging etc.) could be scheduled accordingly. Is this already doable?
Then you can make a template binary sensor which is ON when the price is expensive and OFF when price is normal or cheap. With this you can make a automation which use the binary sensor to heat when it is off and lower the temperature when it is on.
- binary_sensor:
- name: "Dyr strom"
state: "{{ states('sensor.prisniva') == 'EXPENSIVE' or states('sensor.prisniva') == 'VERY_EXPENSIVE' or states('sensor.prisniva') == 'EXTREMELY_EXPENSIVE' }}"
You can also modify this blueprint which use Tibber price data to use Entsoe price data.
Hi!
I have previously set up the NordPool Diff sensor in HA (can’t find the link right now) and with the latest version it uses your ENTSO-e integration. I now try to get it up and running.
I have a question regarding the API key. I have requested the key from the transparency platform support team yesterday but haven’t got it yet. Probably it will show up.
But I can’t find where to add the key in the configuration. Can you please share an example? Thanks!
/M
You won’t get the API key from them. You need to setup an account, request activation of api and subsequently you can generate a key in your account details.
Team are really helpful but can take 24 -48 hours to get response.
Ok, thanks!
They have responded and I may now generate an api key in the entso-e platform. But once I have it, where do I paste it into HA? I can’t find anywhere in the HACS integration to insert it. Please advise!
Not sure what you mean by hacs integration. You add the custom repository in hacs, install entsoe, restart HA, in integrations you add entsoe and follow the config flow. There it’s one of the parameters you need to fill. Steps are all on the GitHub page of @JaccoR