Skip to content
Discussion options

You must be logged in to vote

You have to test that on your own, the tool was only made to extract data on a daily base and that is already lots of queries since some data is only provided for the total queried interval, but not for each slot.
You can use the energy_analysis helper method of the AnkerSolixApi class

async def energy_analysis(
    self,
    siteId: str,
    deviceSn: str,
    rangeType: str | None = None,
    startDay: datetime | None = None,
    endDay: datetime | None = None,
    devType: str | None = None,
) -> dict:
    """Fetch Energy data for given device and optional time frame.

    siteId: site ID of device
    deviceSn: Device to fetch data # This does not really matter since system level data…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomluther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants