CharlesGillanders / alphaess

This Python library logs in to www.alphaess.com and retrieves data on your Alpha ESS inverter, photovoltaic panels, and battery if you have one.
MIT License
22 stars 9 forks source link

Separate data functions #12

Closed SorX14 closed 1 year ago

SorX14 commented 1 year ago

9

Reduce HTTP calls to AlphaCloud API.

Adds function to get list of available ESS units (and caches result):

getunits()

Adds separate functions to retrieve specific data for specific units:

getdailystatistics(serial) getsystemstatistics(serial) getpowerdata(serial) getsettings(serial)

Retains backward compatibility

SorX14 commented 1 year ago

Closing this as you can just call the 'internal' functions, e.g:

data = await client._alphaess__powerdata(serial) if you don't want to use client.getdata()