Skip to main content

EO Smart Charger Library

Project description

pyEOCharging

Python Library For interacting with EO Home EV Chargers.

This has only been tested with a EO Mini Pro 2.

Example usage:

import eocharging

conn = eocharging.connection("email_address", "password")

devices = conn.get_devices() #Get list of devices on account
print(devices)

sessions = devices[0].get_sessions()
print(sessions) #Print list of sessions from all time from first device on account

devices[0].disable() #Disable/lock the charger
devices[0].enable() #Enable/unlock the charger

currentChargeOpt = devices[0].get_chargeOpts() #get charger current settings
print(currentChargeOpt.__dict__) #show charger current settings

Note that among other things, get_chargeOpts returns a cpid which is needed to amend options (see set_chargeOpts)

newChargeOpts = eocharging.Device.chargeOpts(cpid=currentChargeOpt.cpid,opMode=newOpMode) #Construct new charger options - for full list, see those returned from get_chargeOpts()
devices[0].set_chargeOpts(newChargeOpts) #Set charger options. cpid is mandatory, plus at least one option to change.
currentChargeOpt = devices[0].get_chargeOpts() #Check new option was applied successfully

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

pyeocharging-0.0.7.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyEOCharging-0.0.7-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file pyeocharging-0.0.7.tar.gz.

File metadata

  • Download URL: pyeocharging-0.0.7.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for pyeocharging-0.0.7.tar.gz
Algorithm Hash digest
SHA256 81368cc6e6881f5a0642f4605d032882be5a8f27da759604a781e4738a0a05da
MD5 8518596fce8a9fa6f7d7b00cf617fd1e
BLAKE2b-256 e0ed4f51592ab2e82e32b8344bed06746935d2c272b19d1d6d466da58d332e48

See more details on using hashes here.

File details

Details for the file pyEOCharging-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pyEOCharging-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for pyEOCharging-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fff9372b5798a64a568d1ee9229c0696d38a5c5dd3ce5aad3daa5586777ecf19
MD5 20a2c737e321169266eb873fb9203a09
BLAKE2b-256 d8261c4804eb07aacd108076530a5edff7828cc15555bdc233c9f6eac4a15035

See more details on using hashes here.

Supported by

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