You can easily get current and historical electricity prices in Home Assistant by using our REST endpoint together with Home Assistant's REST integration.
The example configuration gives you an entity called entities.spotprice_now, which displays the spot price right now. The device also receives a number of attributes, e.g.
If you customize your price settings on the page (using the hamburger menu), your changes will be immediately reflected in the configuration to the right.
The service is free and open to everyone, no API key is required. However, it is used at your own risk, no guarantees are given! More information about data source and data quality can be found at the bottom of the page.
The base url to the endpoint is https://spot.56k.guru/api/v2/hass
, and the following parameters is available.
NOTE: If you've made any customizations on this page, the example url is already up to date with your personal settings.
SEK
NOK
EUR
PLN
...
SE
or DE-LU
0.05
for 5 cents per kWh1
is no multiplier, 1.02
is 2% added fee on spot price before adding extra fees and VAT.1
is no VAT, 1.25
is 25% VAT and so on.2
will result in 0.05kWh, 4
-> 0.00521, and so on.
This is an example showing how to use above configuration out of the box, to render a nice graph showing electricity prices for today and tomorrow.
Note that all values in the graph is multiplied by 100 to show cents or öre instead of EUR or SEK.
All statistics are retrieved from ENTSO-e transparency platform. Current exchange rate fetched from ECB.
The figures shown should be correct, but are supplied without guarantees. The site and related services are provided for private use, at your own risk.
The source code of the page is completely open and is available at github.com/hexagon/spotweb
Bugs and issues are reported through 'Issues' on GitHub. Contact can also be made via email to hexagon{a}56k.guru.