Module pyeasee.easee
Main client for the Eesee account.
Functions
async def raise_for_status(response)
Classes
class Easee (username, password, session: aiohttp.client.ClientSession = None)
-
Methods
def base_uri(self)
async def check_status(self, response)
async def close(self)
-
Close the underlying aiohttp session
async def connect(self)
-
Connect and gets initial token
async def delete(self, url, **kwargs)
async def get(self, url, **kwargs)
async def get_account_products(self) ‑> List[Site]
-
Get all sites and products that are accessible by the logged in user
async def get_active_countries(self) ‑> List[Any]
-
Get all active countries
async def get_chargers(self) ‑> List[Charger]
-
Retrieve all chargers
async def get_currencies(self) ‑> List[Any]
-
Get all currencies
async def get_site(self, id: int) ‑> Site
-
get site by id
async def get_site_state(self, id: str) ‑> SiteState
-
Get site state
async def get_sites(self) ‑> List[Site]
-
Get all sites
async def post(self, url, **kwargs)
async def put(self, url, **kwargs)
def sr_is_connected(self)
async def sr_subscribe(self, product, callback)
-
Subscribe to signalr events for product, callback will be called as async callback(product_id, data_type, data_id, value)
async def sr_unsubscribe(self, product)
-
Unsubscribe from signalr events for product BUG: Does not work