Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

23 Commits

Repository files navigation

pyEOCharging

Python Library For interacting with EO Home EV Chargers.

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

Example usage:

importeochargingconn=eocharging.connection("email_address", "password")
devices=conn.get_devices() #Get list of devices on accountprint(devices)
sessions=devices[0].get_sessions()
print(sessions) #Print list of sessions from all time from first device on accountdevices[0].disable() #Disable/lock the chargerdevices[0].enable() #Enable/unlock the chargercurrentChargeOpt=devices[0].get_chargeOpts() #get charger current settingsprint(currentChargeOpt.__dict__) #show charger current settingsNotethatamongotherthings, get_chargeOptsreturnsacpidwhichisneededtoamendoptions (seeset_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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages