Skip to main content

PECO Outage Counter smart home integration, free and open source

PECO Outage Counter integration for Gladys Assistant

Customers without power at PECO (Pennsylvania), by county and in total, from the public outage map.

The number of PECO customers without power in Gladys, by county and for the whole service area (southeastern Pennsylvania), from the public PECO outage map: customers out, customers served, the share out, the outages in progress and the alert PECO posts on its map during a storm.

Developed without a PECO account, the map being public: feedback welcome. Not affiliated with PECO or Exelon.

What you get​

  • A PECO outages (all counties) device: customers out, customers served, share of customers out, outages in progress, and whether an alert is shown on the outage map, with its title.
  • One device per county you follow (Bucks, Chester, Delaware, Montgomery, Philadelphia, York): the same four figures.
  • Two scene triggers: customers out above a threshold (in any county or for the whole of PECO), and a new alert on the map.
  • A dashboard widget, and a button to test the map.

Requirements​

  • Gladys Assistant 5.3.0 or later.
  • Internet access from Gladys to kubra.io, the host of the PECO outage map.
  • No account, no key.

Installation​

In Gladys, open Integrations → Install from GitHub and enter https://github.com/guim31/gladys-peco.

Configuration​

  • Counties to follow: one device per county. Leave empty to only get the device of the whole of PECO.
  • Refresh interval (minutes): 15 by default, 5 at the least. The map itself is updated about every 15 minutes.
  • Outage threshold (customers out): for the trigger below. Empty: off.
  • Language of the names: the language of the device and feature names (frozen once a device is added) and of the messages. French by default.

Then open the Discovery tab and add the devices you want.

Devices​

PECO outages (all counties)​

  • Customers out: customers without power right now.
  • Customers served: customers of PECO.
  • Share of customers out: in %, two decimals, computed from the two counts (the map itself only says "less than 5 %").
  • Outages in progress: the number of outage incidents.
  • Alert on the outage map: 1 when PECO shows an alert (storm, major event), else 0.
  • Outage map alert: its title, or "No alert on the map".

County​

The same four figures for one county.

Scenes​

PECO customers out above the threshold​

Fires when the customers out of a county, or of the whole of PECO, rise above the threshold of the configuration. Every county is watched, even without its device. It fires once per crossing, and again only after the count fell back to 80 % of the threshold. The field Areas limits it to some counties or to the whole of PECO. Variables: area code (BUCKS… or TOTAL), area name, customers out, customers served, share out, outages, threshold.

Alert on the PECO outage map​

Fires when PECO posts an alert on its outage map, or changes its text. Variables: title and text (500 characters at most), for a notification.

Dashboard​

PECO outages widget​

Customers out, share out and outages of the whole of PECO, the alert of the map, a 24-hour chart of the customers out (once the "all counties" device is added) and one row per county: customers out / served and the share. The alert, the chart and the counties can each be hidden.

Actions​

Test the PECO outage map reads the map now and shows the figures of the whole of PECO, in green; an error in red when the map cannot be read.

Data and limits​

  • The figures are those of the public PECO outage map, hosted by Kubra. They are estimates by PECO, and lag behind the field by some minutes.
  • The integration reads the map at the interval chosen, even without any device (the alert trigger needs none). A read is two or three small requests; the report is not downloaded again while the map has not changed.
  • Figures older than 3 hours are not published: the connection status says so.
  • Your own meter cannot be checked: that needs your PECO account.
  • Other Exelon utilities (ComEd, BGE, Pepco, Delmarva, Atlantic City Electric) are not supported yet.

Troubleshooting​

  • The connection status says the map cannot be read: Kubra or your Internet access is down; the integration tries again at the next interval. The Test button shows the error.
  • A county shows no value: the map did not name it in its last report.
  • The widget has no chart: add the "all counties" device.
  • Logs: LOG_LEVEL=debug shows every read.

Credits​

The ids of the map come from the peco Python library by IceBotYT (MIT), used by the Home Assistant PECO integration (Apache 2.0). The PECO name and logo belong to PECO, an Exelon company.

Configuration settings​

These are the settings PECO Outage Counter asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
The PECO outage mapsectionNoPublic figures of the PECO outage map (southeastern Pennsylvania), no account needed. A device for the whole of PECO, and one per county you follow. Not affiliated with PECO or Exelon.
Counties to followmulti_selectNoOne device per county: customers out, customers served, share out, outages in progress.
Refresh interval (minutes)numberNoThe map is updated about every 15 minutes. 5 minutes at the least.
Outage threshold (customers out)numberNoFor the "Customers out above the threshold" trigger, in a county or for the whole of PECO. Empty: off.
Language of the namesselectNoNames of the devices and features (frozen when a device is added) and the messages.

How to install PECO Outage Counter in Gladys​

  1. In Gladys, open Integrations: PECO Outage Counter appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-peco:1.0.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/guim31/gladys-peco.

PECO Outage Counter 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​

PECO Outage Counter 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 guim31, 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 🙂