Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
/ easee Public
forked from nordicopen/pyeasee

Easee EV charger API python library

License

Notifications You must be signed in to change notification settings

tmjo/easee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintenance Easee library

Buy me a coffee

Easee EV Charger library

This library is a thin wrapper around Easee's Rest API

Installation

You can install the libray from PyPI:

pip install easee

The library is tested on Python 3.7 and Python 3.8

Command line tool

Run python -m easee -h for help.

Usage of the library

Docs

Read the API documentation here

Small example

Easee is the connection class and Charger

from easee import Easee, Charger, Site

async def main():
    _LOGGER.info("Logging in using: %s %s", sys.argv[1], sys.argv[2])
    easee = Easee(sys.argv[1], sys.argv[2])
    chargers = await easee.get_chargers()
    for charger in chargers:
        state = await charger.get_state()
        _LOGGER.info("Charger: %s status: %s", charger.name, state["chargerOpMode"])

    sites = await easee.get_sites()
    for site in sites:
        _LOGGER.info("Get sites circuits chargers: %s", site["createdOn"])
        charger = site.get_circuits()[0].get_chargers()[0]
        state = await charger.get_state()
        _LOGGER.info("Charger: %s status: %s", charger.name, state["chargerOpMode"])

    await easee.close()

About

Easee EV charger API python library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 63.5%
  • Python 35.9%
  • Makefile 0.6%