Skip to main content

BC Hydro smart home integration, free and open source

BC Hydro integration for Gladys Assistant

Track BC Hydro usage, cost, Step 1/2 tier and optional TOU rates.

Follow your BC Hydro electricity usage in Gladys: consumption, cost, the two-step rate (Step 1 / Step 2) and, optionally, the Time-of-Use (TOU) rate. The integration is cloud only and works for Canada (British Columbia).

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for BC Hydro and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

  • E-mail and Password: your BC Hydro customer portal sign-in. Smart-meter data must be available on your account. It is published with about a day of delay.
  • Two-step rate: the Step 1 allowance (kWh per day: 1,350 kWh per 60 days = 22.5), and the Step 1 and Step 2 prices in $/kWh. The defaults are approximate, BC Hydro revises them every year: check your bill.
  • Time-of-Use rate (optional): turn it on if you are on the TOU rate, then set the peak hours and the peak and off-peak prices. Costs and rates then follow the hours instead of the two steps.
  • Refresh interval: how often BC Hydro is read (one hour by default).

Use Test the connection to check your credentials.

BC Hydro has no public API. The integration signs in to the customer portal like the Home Assistant integration does, so a change on the portal can break it. Report any problem on the GitHub repository.

Usage​

In Discovery, add the BC Hydro device. It provides:

  • latest daily consumption (kWh) and cost ($);
  • billing period consumption (kWh);
  • current rate ($/kWh);
  • the tier (step1 / step2), or the TOU period (peak / off_peak) when TOU is on.

Scenes and dashboards​

Triggers

  • Tier changed: the billing period moved to Step 1 or Step 2. Variables: tier, previous_tier, period_kwh.
  • TOU period changed: the TOU rate entered or left the peak hours. Variables: period, rate.

Action

  • Refresh BC Hydro data: reads BC Hydro now. Outputs: refreshed, tier, daily_kwh, period_kwh.

Widget

  • BC Hydro: daily use and cost, tier, Step 1 usage, rate, TOU period, and a refresh button.

Help​

A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.

Configuration settings​

These are the settings BC Hydro asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
BC Hydro accountsectionNoSign-in used on the BC Hydro customer portal. Smart-meter data must be available on your account; it is published with about a day of delay.
E-mailstringYesE-mail of your BC Hydro account.
PasswordsecretYesPassword of your BC Hydro account.
Two-step ratesectionNoStep 1 is the first block of the billing period, at the lower price. The defaults are approximate: BC Hydro revises them each year, check your bill.
Step 1 allowance (kWh/day)numberNokWh per day at the Step 1 price (1,350 kWh per 60 days = 22.5).
Step 1 price ($/kWh)numberNoPrice per kWh in Step 1, in Canadian dollars.
Step 2 price ($/kWh)numberNoPrice per kWh in Step 2, in Canadian dollars.
Time-of-Use rate (optional)sectionNoIf you are on the optional TOU rate, turn it on: costs and rates then follow the peak and off-peak hours below instead of the two steps.
Use the TOU ratebooleanNo
Peak starts at (hour)numberNoLocal hour (0-23) when the peak period starts.
Peak ends at (hour)numberNoLocal hour (0-23) when the peak period ends.
Peak price ($/kWh)numberNoPrice per kWh during peak hours.
Off-peak price ($/kWh)numberNoPrice per kWh outside the peak hours.
Refresh interval (s)numberNoHow often BC Hydro is read, in seconds. Its data moves once a day: do not go too low.

How to install BC Hydro in Gladys​

  1. In Gladys, open Integrations: BC Hydro 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-bc-hydro: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-bc-hydro.

BC Hydro 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​

BC Hydro 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 🙂