Skip to main content

Bidgely

A Python library for getting historical and forecasted usage/cost from utilities that use Bidgely such as Hydro Ottawa.

Supported utilities:

  • Hydro Ottawa
  • Avista

Possible Supports:

  • BC Hydro
  • NS Power
  • Hydro One
  • Public Service Electric and Gas (PSE&G)

More here

Support a new utility

To add support for a new utility that uses the Bidgely API (you can tell if the energy dashboard of your utility makes network requests to a *.bidgely.com host in the network tab of your browser's developer tools -- naapi-read.bidgely.com for Hydro Ottawa, avista-prodapi.bidgely.com for Avista) add a file similar to hydroottawa.py

Name the file after the utility , e.g. hydroottawa.py for Hydro Ottawa or bchydro.py for BC Hydro.

Since this library is planned to be used by Home Assistant, then per https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md we cannot have a dependency on a headless browser and we can only parse HTML during login.

An exception is made for the authentication phase. An integration is allowed to extract fields from forms. To make it more robust, data should not be gathered by scraping individual fields but instead scrape all fields at once.

Example

See demo.py

Thank you

Inspired by opower by @tronikos

Async pycognito sign in from @dotKrad

Metadata

Release files for bidgely-avista 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bidgely-avista 0.2.0
File Size Uploaded
bidgely_avista-0.2.0.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bidgely-avista 0.2.0
File Interpreter ABI Platform
bidgely_avista-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.0 kB

Release files / bidgely_avista-0.2.0.tar.gz

Download URL bidgely_avista-0.2.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
73235edeeba324a43908676acd7d877f33d8254c6a7d9bc5dc1eb28a36fcf7c9
BLAKE2b-256 checksum
How to use checksums
9b9cc7171bced7cbc609552ca09a0d8a54c461db7b0ffee395803112ccc645a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.7 Darwin/25.5.0

Release files / bidgely_avista-0.2.0-py3-none-any.whl

Download URL bidgely_avista-0.2.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a1d5a31a3d9ea153a3c011b04096d62a402dce67d8c67d63ba9931b176e4790
BLAKE2b-256 checksum
How to use checksums
f34d23acfa13529604f7d7f1268bcd62811b025a9eb7446cdde90377e42d8f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.7 Darwin/25.5.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page