This library is an async thin wrapper around Easee's Rest API
You can install the libray from PyPI:
pip install pyeasee
The library is tested on Python 3.7 and Python 3.8
Run python -m pyeasee -h
for help.
Read the API documentation here
Easee is the connection class and Charger
from pyeasee 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()
This project uses black
for code formatting and flake8
for linting. To autoformat and run lint run
make lint