Spot Price
Spot Price fetches day-ahead electricity prices for a bidding zone, then at each local hour change picks the first matching Scenario and applies a Profile. It never writes entities ad hoc. Optional Shadow Mode only logs the winning scenario.
Introduced in 3.10.0. Useful for heat pumps and other electric heating; gas-only installs can leave it off.
Availability
- Off by default — turn it on under Modules → Spot Price
- Most 4 MB firmware builds omit the feature (
NO_EMSESP_FEATURE_PRICE); 16 MB / PSRAM boards include it - Needs network access to the price provider and a working clock (NTP)
Settings
Open Modules → Spot Price (admin only).
| Setting | Meaning |
|---|---|
| Enable Spot Price | Master switch |
| Region | Bidding zone, for example NL, SE3, DE-LU |
| VAT % | Added to the provider price |
| Markup (per kWh) | Extra amount after VAT |
| Provider | energy-charts (energy-charts API) |
| Shadow Mode | Log the winning scenario without applying a Profile |
Prices are shown as EUR/kWh (provider MWh ÷ 1000, then VAT and markup). Zones that publish 15‑minute prices (up to 96 points) are averaged into 24 hours automatically.
Older settings that still say energy_charts are renamed to energy-charts on load.
Scenarios
Ordered rules (up to 10). At the hour change, the first matching active scenario wins and its Profile is applied. The same winner as last hour is not re-applied.
Each scenario can use:
- Price under / over (EUR/kWh after VAT and markup)
- % over / under the day average
- Among lowest / highest N hours of the day
- Day mask (always / weekdays / weekend) and hour mask
- Up to 4 comfort conditions (entity + operator + value), for example indoor temperature ≥ 18 °C
Keep a final baseline catch-all scenario so every hour has a Profile.
Preview Today shows which scenario would win each hour without writing. Run evaluates now; Shadow Mode still blocks writes unless you force apply from the UI where offered.
MQTT
Publishes a compact price_data topic (current, average, min/max, rank, status, last scenario, and related fields).
Sensor discovery for Spot Price is not implemented yet. You can still create MQTT sensors by hand from price_data.
Typical setup
- Create Profiles for expensive, cheap and normal operation (for example lower room setpoint when prices are high)
- Add scenarios from most specific to least specific, ending with a baseline Profile
- Enable Spot Price, set your region, leave Shadow Mode on for a day and check the log / Preview
- Turn Shadow Mode off when you trust the mapping
Tips
- You are responsible for comfort; a failed fetch leaves settings unchanged
- Spot Price only makes sense with electricity cost that varies by hour
- Pair with Alerts if you want a notification when a price-driven Profile leaves the house too cold