Hi everyone,
I’m looking for a few Homey users who would like to test an electricity price and CO₂ forecast in a real Advanced Flow setup.
This is not a Homey app and it does not replace or modify the dynamic prices in the native Homey Energy screen. It is a lightweight HomeyScript solution intended for automations such as EV charging, heat pumps, boilers, batteries or notifications.
The price data follows a “day-ahead first” approach: official day-ahead prices are used whenever available. Forecast values are only used for the remaining future period that is not yet covered by official market data.
For a simple automation, the summary API provides:
- the current electricity price;
- the current CO₂ intensity;
- whether the cheapest time window is active now;
- the next complete cheap time window;
- information about the available horizon and data sources.
For example, this HomeyScript returns true when the cheapest four-hour window is currently active:
const url =
'https://api.energypriceforecast.eu/api/v1/homey/summary?country=nl&hours=48&window_hours=4';
const response = await fetch(url);
if (!response.ok) {
throw new Error(`API request failed: HTTP ${response.status}`);
}
const data = await response.json();
return data.flat?.is_cheapest_window_now === true;
You can run the script every 15 minutes from an Advanced Flow and use its Yes/No result to enable or block the next action.
There is also a separate continuous 15-minute price series for users who prefer to calculate their own thresholds, rankings or time windows. Real quarter-hour day-ahead prices remain quarter-hourly. Hourly forecast values are returned as four equal quarter-hour slots, rather than inventing artificial price movements.
The public access currently supports up to 48 hours without an API key. I’m mainly interested in whether the setup works reliably in real Homey installations before taking the next step.
The full setup instructions and additional HomeyScript examples are available here:
Feedback that would be particularly useful:
- Does the script run correctly on your Homey?
- Is the Advanced Flow setup clear?
- Are the returned values and time windows plausible?
- Would you use the ready-made summary signals or the complete price series?
- Which country and use case are you testing?
Thank you for your Interest and Support!