Module pyeasee.site
Classes
class Circuit (data: Dict[str, Any], site: Any, easee: Any)
-
Represents a Circuit
Ancestors
- BaseDict
- collections.abc.Mapping
- collections.abc.Collection
- collections.abc.Sized
- collections.abc.Iterable
- collections.abc.Container
Methods
def get_chargers(self) ‑> List[Charger]
async def set_dynamic_current(self, currentP1: int, currentP2: int = None, currentP3: int = None, timeToLive: int = 0)
-
Set dynamic current on circuit level. timeToLive specifies, in minutes, for how long the new dynamic current is valid. timeToLive = 0 means that the new dynamic current is valid until changed the next time. The dynamic current is always reset to default when the charger is restarted
async def set_max_current(self, currentP1: int, currentP2: int = None, currentP3: int = None)
-
Set circuit max current
async def set_max_offline_current(self, currentP1: int, currentP2: int = None, currentP3: int = None)
-
Set circuit max offline current, fallback value for limit if charger is offline
async def set_rated_current(self, ratedCurrentFuseValue: int)
-
Set circuit rated current - requires elevated access (installers only)
class Equalizer (data: Dict[str, Any], site: Any, easee: Any)
-
Ancestors
- BaseDict
- collections.abc.Mapping
- collections.abc.Collection
- collections.abc.Sized
- collections.abc.Iterable
- collections.abc.Container
Methods
async def empty_config(self, raw=False)
-
Crate an empty config data structure
async def empty_state(self, raw=False)
-
Create an empty state data structyre
async def get_config(self)
-
Get Equalizer config
async def get_latest_firmware(self)
-
Get the latest released firmeware version
async def get_observations(self, *args)
-
Gets observation IDs
async def get_state(self)
-
Get Equalizer state
class EqualizerConfig (config: Dict[str, Any])
-
Ancestors
- BaseDict
- collections.abc.Mapping
- collections.abc.Collection
- collections.abc.Sized
- collections.abc.Iterable
- collections.abc.Container
class EqualizerState (state: Dict[str, Any])
-
Ancestors
- BaseDict
- collections.abc.Mapping
- collections.abc.Collection
- collections.abc.Sized
- collections.abc.Iterable
- collections.abc.Container
class Site (data: Dict[str, Any], easee: Any)
-
Represents a Site
Ancestors
- BaseDict
- collections.abc.Mapping
- collections.abc.Collection
- collections.abc.Sized
- collections.abc.Iterable
- collections.abc.Container
Methods
def get_circuits(self) ‑> List[Circuit]
-
Get circuits for the site
async def get_cost_between_dates(self, from_date: datetime.datetime, to_date: datetime.datetime)
-
Get the charging cost between from_datetime and to_datetime
def get_equalizers(self) ‑> List[Equalizer]
-
Get equalizers for the site
async def set_currency(self, currency: str)
-
Set currency for the site
async def set_name(self, name: str)
-
Set name for the site
async def set_price(self, costPerKWh: float, vat: float = None, currency: str = None, costPerKwhExcludeVat: float = None)
-
Set price per kWh for the site
class SiteState (data: Dict[str, Any])
-
Represents the site state as received through /sites/
/state Ancestors
- BaseDict
- collections.abc.Mapping
- collections.abc.Collection
- collections.abc.Sized
- collections.abc.Iterable
- collections.abc.Container
Methods
def get_charger_config(self, charger_id: str, raw=False) ‑> ChargerConfig
-
get config for charger from the instance data
def get_charger_state(self, charger_id: str, raw=False) ‑> ChargerState
-
get state for charger from the instance data