Easee EV Charger library
This library is an async thin wrapper around Easee's Rest API
Installation
You can install the libray from PyPI:
pip install pyeasee
The library is tested on Python 3.13
Command line tool
Run python -m pyeasee -h for help.
Usage of the library
Docs
Read the API documentation here
Small example
Save the example to a file and run it like this: python3 example.py Username is the phone number that was used to register the Easee account with country code. E.g. +46xxxxxxxxx.
import asyncio
import sys
from pyeasee import Easee
async def async_main():
if len(sys.argv) < 3:
print(f"Usage: {sys.argv[0]} <username> <password>")
return
print(f"Logging in using: {sys.argv[1]} {sys.argv[2]}")
easee = Easee(sys.argv[1], sys.argv[2])
sites = await easee.get_sites()
for site in sites:
print(f"Site {site.name} ({site.id})")
equalizers = site.get_equalizers()
for equalizer in equalizers:
print(f" Equalizer: {equalizer.name} ({equalizer.id})")
circuits = site.get_circuits()
for circuit in circuits:
print(f" Circuit {circuit.id}")
chargers = circuit.get_chargers()
for charger in chargers:
state = await charger.get_state()
print(f" Charger: {charger.name} ({charger.id}) status: {state['chargerOpMode']}")
await easee.close()
asyncio.run(async_main())
See also __main__.py for a more complete usage example.
Development
This project uses black for code formatting and flake8 for linting. To autoformat and run lint run
make lint
Attribution, support and cooperation
This project was started by the late Niklas Fondberg, @fondberg. The repository has been inherited by his collaborators.
Metadata
Release files for pyeasee 0.8.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyeasee-0.8.18.tar.gz | 28.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeasee-0.8.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.3 kB
Release files / pyeasee-0.8.18.tar.gz
| Download URL | pyeasee-0.8.18.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2e70a6b209cad4d3b13b83887127aeb353049ff7d696d7f12e623d0c1d1bf07
|
|
BLAKE2b-256 checksum How to use checksums |
e94cd382ac126c6375cdd537f100cff7831627a39581869854f2c501430cc1f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / pyeasee-0.8.18-py3-none-any.whl
| Download URL | pyeasee-0.8.18-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3906c4ae01ccde6998496eb1d5e80deb5fe1c93a4a506096e2fc9f6d4894bedf
|
|
BLAKE2b-256 checksum How to use checksums |
5f229f7eae6fa3059a97f5e5fd798f2d1d391643a381a32dc2f9980fb0afc41a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|