Skip to main content

Ontario electricity rates smart home integration, free and open source

Ontario electricity rates integration for Gladys Assistant

Ontario TOU, Ultra-Low Overnight and tiered electricity rates, with the holiday calendar

Electricity rates of the Ontario Energy Board (OEB): Time-of-Use (TOU), Ultra-Low Overnight (ULO) and Tiered prices, with the Ontario statutory holiday calendar the TOU schedule depends on. Everything is computed locally, no account needed.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Ontario electricity rates and click Install.
  3. Wait for the container to start, then open Discovery and add the Ontario electricity rates device.

Configuration​

The OEB sets the prices (cents per kWh) and revises them about every 1 November. The defaults are the prices of 1 November 2025: check them on the OEB website and edit them in the Configuration tab. The schedules (TOU: on-peak 7-11 and 17-19, mid-peak 11-17, off-peak 19-7, weekends and holidays; ULO: ultra-low 23-7, on-peak 16-21 on weekdays) and the holidays (New Year, Family Day, Good Friday, Victoria Day, Canada Day, Labour Day, Thanksgiving, Christmas, Boxing Day) are built in, in Ontario time.

Usage​

The device publishes, every minute: the TOU price and period, the ULO price and period, the tier 1 and tier 2 prices (in $/kWh) and the day type (weekday, weekend or holiday). Periods are off_peak, mid_peak, on_peak, ultra_low and weekend_off_peak. The tiered plan switches to tier 2 above 1000 kWh a month in winter (November to April) and 600 kWh in summer.

Scenes and dashboards​

  • Trigger Rate period changed: fires when the period of the TOU or ULO plan changes; filter on the plan and the new period; variables: plan, period, previous period, price (¢/kWh).
  • Action Get the current rate: returns the current period and price of a plan, the next period and the minutes until it starts.
  • Widget Ontario rates: current TOU and ULO prices, periods and the next TOU change.

Configuration settings​

These are the settings Ontario electricity rates asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Rates set by the OEBsectionNoPrices in cents per kWh, as set by the Ontario Energy Board. The OEB revises them about every 1 November: update them here. The schedules and the holiday calendar are built in.
TOU off-peak (¢/kWh)numberNoPrice in cents per kWh.
TOU mid-peak (¢/kWh)numberNoPrice in cents per kWh.
TOU on-peak (¢/kWh)numberNoPrice in cents per kWh.
ULO ultra-low overnight (¢/kWh)numberNoPrice in cents per kWh.
ULO weekend off-peak (¢/kWh)numberNoPrice in cents per kWh.
ULO mid-peak (¢/kWh)numberNoPrice in cents per kWh.
ULO on-peak (¢/kWh)numberNoPrice in cents per kWh.
Tiered, tier 1 (¢/kWh)numberNoPrice in cents per kWh.
Tiered, tier 2 (¢/kWh)numberNoPrice in cents per kWh.

How to install Ontario electricity rates in Gladys​

  1. In Gladys, open Integrations: Ontario electricity rates appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/gboulvin/gladys-ontario-electricity-rates-oeb:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/gboulvin/gladys-ontario-electricity-rates-oeb.

Ontario electricity rates 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​

Ontario electricity rates 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.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂