UK Energy Price Cap (Ofgem) smart home integration, free and open source

Ofgem price cap per UK region: unit rates and standing charges
Shows the Ofgem energy price cap for your region in Gladys: electricity and gas unit rates and daily standing charges, for the current quarterly cap period. It applies to standard variable tariffs in Great Britain (England, Scotland and Wales).
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for UK Energy Price Cap (Ofgem) and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
Open the Configuration tab and choose:
- Region: your Ofgem charge restriction region (it is on your bill), or the GB average.
- Payment method: Direct Debit / other, standard credit, or prepayment meter.
- Electricity meter: single rate, or multi-rate (for example Economy 7).
No account and no API key are needed. Save, then use Check the Ofgem data to test the connection. Changing the configuration changes the published values, not the device.
Usage
Open the Discovery tab and add the Ofgem price cap device. It has six read-only sensors, in pounds (£): electricity and gas unit rate (£/kWh), standing charge (£/day) and the typical annual bill (£). Values include VAT and are kept in history.
Ofgem publishes the cap as a spreadsheet, once a quarter. The integration downloads it at most every six hours.
Rates are computed from Ofgem's own levels (cap at nil consumption for the standing charge, cap at typical consumption for the unit rate, with 2,500 kWh of electricity on a single-rate meter, 3,400 kWh multi-rate and 9,500 kWh of gas). They can differ slightly from the national headline figures Ofgem quotes.
Scenes and dashboards
- Trigger "Price cap changed": fires when Ofgem's cap moves to a new quarterly period. Filter by payment method. Variables:
period,period_start,region,electricity_unit_rate,electricity_standing_charge,gas_unit_rate,gas_standing_charge. - Action "Refresh the price cap": reads Ofgem's data now and returns the period, region and the four rates, usable by the next actions of the scene.
- Widget "Energy price cap": electricity and gas unit rates and standing charges, the cap period, region and payment method, and a refresh button.
Troubleshooting
- Ofgem data unavailable: the Ofgem website or the file could not be read. The integration retries on its own and keeps the last values.
- Nothing shows after adding the device: wait a minute for the first poll, or use Check the Ofgem data.
Configuration settings
These are the settings UK Energy Price Cap (Ofgem) asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Getting started | section | No | Pick your region, how you pay and your electricity meter. The cap is read from Ofgem's published workbook: no account, no API key. |
| Region | select | Yes | Your Ofgem charge restriction region (see your supplier bill). |
| Payment method | select | Yes | |
| Electricity meter | select | Yes |
How to install UK Energy Price Cap (Ofgem) in Gladys
- In Gladys, open Integrations: UK Energy Price Cap (Ofgem) appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/gboulvin/gladys-uk-energy-price-cap-ofgem:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/gboulvin/gladys-uk-energy-price-cap-ofgem.
UK Energy Price Cap (Ofgem) requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
UK Energy Price Cap (Ofgem) is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by gboulvin, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation