Hi everyone,
I built a free public API for Home Assistant automations that provides forecasted electricity prices and CO2 values for several European markets.
The idea is simple:
- use it for dynamic tariff automations
- shift EV charging or appliances into cheaper hours
- or prefer lower-CO2 hours instead of only lower-price hours
No custom integration is required at the moment. It works with the public endpoints plus standard REST/template sensors in Home Assistant.
Setup guide and more detailed Information:
Currently supported:
DE, NL, BE, DK1, DK2, FR, AT, CZ
soon NO1-5
later the rest of europe
A typical use case would be:
- charge when the forecasted price is low
- or charge only when price is acceptable and CO2 is below a chosen threshold
A few notes:
- these are forecasted market values
- household-specific grid fees, taxes, and supplier add-ons are not always included automatically
- for many automations, the relative curve is more important than the exact final household price
Feedback is welcome.
Hi! Around 50 of you in the Home Assistant community are already using my forecast regularly. I imagine it could be useful to quite a few more people here.
Do you have any suggestions for improvements? Or is there anything currently stopping you from using it?
I actually came across it via evcc - but I’m located in Austria. Any chance / way to include also AT zone?
Yes, Austria is already supported on my side. I’ve contacted the official evcc maintainers and asked them to include the AT price zone in the official tariff template.
I expect it to be added within the next day or two, or otherwise with the next larger evcc update. Once it is available, you should be able to select the Austrian tariff directly in evcc.
Update: there’s now a native HACS integration (beta)
I built a proper Home Assistant integration on top of the same API. It’s in beta and not yet in the HACS default store, so for now you add it as a custom repository:
- HACS → the “⋮” menu → Custom repositories
- Add
https://github.com/BackupBaTTerY/energypriceforecast-home-assistant, category Integration
- Install Energy Price Forecast EU, restart Home Assistant
- Settings → Devices & Services → Add Integration → search “Energy Price Forecast EU”
What it adds on top of the REST-sensor package:
- Full config-flow setup — pick your market/zone, no YAML editing
- A raw price-series sensor with
raw_today / raw_tomorrow attributes (same convention as the Nordpool integration), so it drops into existing apexcharts-card setups
- Optional “cheapest N hours” tracking — picks the N cheapest upcoming hours even if they’re not contiguous (the API’s own summary endpoint only finds one best continuous window)
- Optional assumption-based all-in retail price (grid fee + levies + VAT on top of the market price), where the market has enough data for it
- Configurable poll interval and diagnostics (API-key status, allowed vs. used horizon)
The YAML package from the original post still works exactly as before and isn’t going anywhere — this is an additional option, not a replacement. Both can even run side by side.
Repo (issues/feedback welcome, it’s genuinely still beta): GitHub - BackupBaTTerY/energypriceforecast-home-assistant: Home Assistant integration for Energy Price Forecast – electricity price forecasts for European bidding zones. · GitHub
AT will be part of evcc with the next update 