Skip to main content

Python client for ConEdison smart energy meters

Project description

This is a utility package to interact with a ConEdison or Orange and Rockland Utility smart energy meter

The utility returns the latest meter read start time, end time, usage value and unit of measurement.

It requires the [coned.com](coned.com) or [oru.com](oru.com) credentials (email, password, MFA type, MFA secret) and the account uuid and meter number. MFA type can be either SECURITY_QUESTION or TOTP (e.g. Google Authenticator). For MFA Security Question, to set up your MFA secret (answer), log into coned.com (or oru.com), go to your profile and reset your 2FA method. When setting up 2FA again, there will be option to say you do not have texting on your phone. Select this and you should be able to use a security question instead. For MFA TOTP, choose Google Authenticator, choose a device type and when presented with the QR code, click on “Can’t scan?”. It should provide you with the MFA secret. To find the account uuid, log into coned.com (or oru.com) then use the browser developer tools to search for a GET request to opower.com with the word utilityAccounts that looks like: https://cned.opower.com/ei/edge/apis/DataBrowser-v1/cws/utilities/cned/utilityAccounts/ACCOUNT_UUID/reads?aggregateType=bill&includeEnhancedBilling=false&includeMultiRegisterData=false. (note the URL would have the word ‘oru’ for oru). The meter number can be found on your utility bill.

Example usage:

import asyncio
from coned import Meter

meter = Meter(
    email="myemail@email.com",
    password="myconedpassword",
    mfa_type=Meter.TOTP,
    mfa_secret="myconedmfasecret",
    account_uuid="cd754d65-5380-11e8-2307-2656615779bf",
    meter_number="703437804",
    site=Meter.CONED)

event_loop = asyncio.get_event_loop()
startTime, endTime, value, unit_of_measurement = event_loop.run_until_complete(meter.last_read())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coned-0.4.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coned-0.4.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file coned-0.4.0.tar.gz.

File metadata

  • Download URL: coned-0.4.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.13

File hashes

Hashes for coned-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e5eb2af9201d697c683a503630e4352fc22a0ba32612ecf63b4b45ecbd6cb6f7
MD5 fd6968a2007e4ddcbc9ad2d1e5ef6fd9
BLAKE2b-256 5c9909c70a7629d4b01b2f4e07ba37b73b89a2bf28884405741232286275face

See more details on using hashes here.

File details

Details for the file coned-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: coned-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.13

File hashes

Hashes for coned-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df50c8b1a9e434bafe7e187e8a13ea66bd75ff99739d003e3ca582d3af8bc579
MD5 0b7dae0c7e000079e408db300e9a1e6b
BLAKE2b-256 0e9538b77909fe5c4a21cb6d9e7a1b987eff70c2407790c1fb7fefb2341ef995

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page